Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3192)

Unified Diff: chrome/browser/sync_file_system/drive_backend/metadata_database.h

Issue 443793003: [SyncFS] Clear dirty flag on changelist application phase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync_file_system/drive_backend/metadata_database.h
diff --git a/chrome/browser/sync_file_system/drive_backend/metadata_database.h b/chrome/browser/sync_file_system/drive_backend/metadata_database.h
index cfd745d94ece7a99ac2d1b8b77c8575b8fa07d33..2f862329d865c03f520f0a091756fb3fafc5f2a4 100644
--- a/chrome/browser/sync_file_system/drive_backend/metadata_database.h
+++ b/chrome/browser/sync_file_system/drive_backend/metadata_database.h
@@ -343,6 +343,11 @@ class MetadataDatabase {
// Sets |app_ids| to a list of all registered app ids.
void GetRegisteredAppIDs(std::vector<std::string>* app_ids);
+ // Clears dirty flag of trackers that can be cleared without external
+ // interactien.
+ void SweepDirtyTrackers(const std::vector<std::string>& file_ids,
+ const SyncStatusCallback& callback);
+
private:
friend class MetadataDatabaseTest;
struct CreateParam;
@@ -402,6 +407,7 @@ class MetadataDatabase {
const std::string& file_id);
void DetachFromSequence();
+ bool CanClearDirty(const FileTracker& tracker);
scoped_refptr<base::SequencedTaskRunner> worker_task_runner_;
base::FilePath database_path_;

Powered by Google App Engine
This is Rietveld 408576698