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

Unified Diff: chrome/browser/sync_file_system/drive_backend/sync_engine.cc

Issue 187203004: [SyncFS] Improve debug logs of MetadataDatabaseIndex (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_backend/sync_engine.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/sync_engine.cc b/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
index 7a682b01156953e783e1d558b74f18c572cffdfb..f70644d223519893e94881991f58d7b13786b446 100644
--- a/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
+++ b/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
@@ -300,8 +300,14 @@ void SyncEngine::DownloadRemoteVersion(
}
void SyncEngine::PromoteDemotedChanges() {
- if (metadata_database_)
+ if (metadata_database_ && metadata_database_->HasLowPriorityDirtyTracker()) {
metadata_database_->PromoteLowerPriorityTrackersToNormal();
+ FOR_EACH_OBSERVER(
+ Observer,
+ service_observers_,
+ OnRemoteChangeQueueUpdated(
+ metadata_database_->CountDirtyTracker()));
+ }
}
void SyncEngine::ApplyLocalChange(
« no previous file with comments | « chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698