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

Unified Diff: sync/sessions/status_controller.h

Issue 9950137: [not for review] sync: Don't use group_restriction from ApplyUpdatesCommand. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 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 | « sync/sessions/session_state.cc ('k') | sync/sessions/status_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/sessions/status_controller.h
diff --git a/sync/sessions/status_controller.h b/sync/sessions/status_controller.h
index c2a3cfc7a52598ef587bd2057b18c91854f51c36..e76605447bf3a37b0f4c708476551221ebed81d9 100644
--- a/sync/sessions/status_controller.h
+++ b/sync/sessions/status_controller.h
@@ -61,15 +61,23 @@ class StatusController {
ConflictProgress* mutable_conflict_progress();
const UpdateProgress* update_progress() const;
UpdateProgress* mutable_update_progress();
+ // TODO(tim): Bug 121521. Remove this unrestricted getter in favor of
+ // something like GetAllGroupsWithUnappliedUpdates.
const ConflictProgress* GetUnrestrictedConflictProgress(
ModelSafeGroup group) const;
ConflictProgress* GetUnrestrictedMutableConflictProgressForTest(
ModelSafeGroup group);
+ // TODO(tim): Bug 121521. Remove this unrestricted getter in favor of
+ // something like GetAllGroupsWithUnappliedUpdates.
const UpdateProgress* GetUnrestrictedUpdateProgress(
ModelSafeGroup group) const;
UpdateProgress* GetUnrestrictedMutableUpdateProgressForTest(
ModelSafeGroup group);
+ // Returns a set of ModelSafeGroups, one for each UpdateProgress that has
+ // unapplied updates.
+ std::set<ModelSafeGroup> GetModelSafeGroupsWithUnappliedUpdates() const;
+
// ClientToServer messages.
const ClientToServerMessage& commit_message() {
return shared_.commit_message;
« no previous file with comments | « sync/sessions/session_state.cc ('k') | sync/sessions/status_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698