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

Unified Diff: chrome/browser/sync/sessions/status_controller.cc

Issue 9305001: sync: Remove the remaining conflict sets code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove failing assertion. Created 8 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
Index: chrome/browser/sync/sessions/status_controller.cc
diff --git a/chrome/browser/sync/sessions/status_controller.cc b/chrome/browser/sync/sessions/status_controller.cc
index ca9903d011a3441ebb88b901736ee8261a57d655..bfd22732e128bedee124fe1e5be99545bca64f3a 100644
--- a/chrome/browser/sync/sessions/status_controller.cc
+++ b/chrome/browser/sync/sessions/status_controller.cc
@@ -233,14 +233,14 @@ bool StatusController::HasConflictingUpdates() const {
return false;
}
-int StatusController::TotalNumBlockingConflictingItems() const {
+int StatusController::TotalNumSimpleConflictingItems() const {
DCHECK(!group_restriction_in_effect_)
- << "TotalNumBlockingConflictingItems applies to all ModelSafeGroups";
+ << "TotalNumSimpleConflictingItems applies to all ModelSafeGroups";
std::map<ModelSafeGroup, PerModelSafeGroupState*>::const_iterator it =
per_model_group_.begin();
int sum = 0;
for (; it != per_model_group_.end(); ++it) {
- sum += it->second->conflict_progress.ConflictingItemsSize();
+ sum += it->second->conflict_progress.SimpleConflictingItemsSize();
}
return sum;
}
@@ -252,8 +252,10 @@ int StatusController::TotalNumConflictingItems() const {
per_model_group_.begin();
int sum = 0;
for (; it != per_model_group_.end(); ++it) {
- sum += it->second->conflict_progress.ConflictingItemsSize();
- sum += it->second->conflict_progress.NonblockingConflictingItemsSize();
+ sum += it->second->conflict_progress.SimpleConflictingItemsSize();
+ sum += it->second->conflict_progress.EncryptionConflictingItemsSize();
+ sum += it->second->conflict_progress.HierarchyConflictingItemsSize();
+ sum += it->second->conflict_progress.ServerConflictingItemsSize();
}
return sum;
}
« no previous file with comments | « chrome/browser/sync/sessions/status_controller.h ('k') | chrome/browser/sync/sessions/status_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698