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

Unified Diff: chrome/browser/sync_file_system/local/local_file_change_tracker.cc

Issue 410083002: [SyncFS] Add missing LocalFileChangeTracker::UpdateNumChanges call (1.5/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « no previous file | 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/local/local_file_change_tracker.cc
diff --git a/chrome/browser/sync_file_system/local/local_file_change_tracker.cc b/chrome/browser/sync_file_system/local/local_file_change_tracker.cc
index 39890de5a9702fd8fac7f04be41f7e49a549a49b..d112285047c9a8d04a52c0945c4ada2d0363335d 100644
--- a/chrome/browser/sync_file_system/local/local_file_change_tracker.cc
+++ b/chrome/browser/sync_file_system/local/local_file_change_tracker.cc
@@ -225,6 +225,7 @@ void LocalFileChangeTracker::DemoteChangesForURL(
&demoted_changes_, NULL);
change_list.pop_front();
}
+ UpdateNumChanges();
}
void LocalFileChangeTracker::PromoteDemotedChangesForURL(
@@ -256,6 +257,7 @@ bool LocalFileChangeTracker::PromoteDemotedChanges() {
fileapi::FileSystemURL url = demoted_changes_.begin()->first;
PromoteDemotedChangesForURL(url);
}
+ UpdateNumChanges();
return true;
}
@@ -321,6 +323,7 @@ void LocalFileChangeTracker::DropAllChanges() {
changes_.clear();
change_seqs_.clear();
mirror_changes_.clear();
+ UpdateNumChanges();
}
SyncStatusCode LocalFileChangeTracker::MarkDirtyOnDatabase(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698