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

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

Issue 8637006: [Sync] Make syncer commands avoid posting tasks on threads with no work to do (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head, fix windows compile Created 9 years 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/sessions/status_controller.h ('k') | chrome/browser/sync/sessions/sync_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 26f5c62055d820a0555dee1cb8bd929ac58d9371..4b82aa827d67d10592d186f328aa611663d0a3f2 100644
--- a/chrome/browser/sync/sessions/status_controller.cc
+++ b/chrome/browser/sync/sessions/status_controller.cc
@@ -62,6 +62,12 @@ const ConflictProgress* StatusController::GetUnrestrictedConflictProgress(
return state ? &state->conflict_progress : NULL;
}
+ConflictProgress*
+ StatusController::GetUnrestrictedMutableConflictProgressForTest(
+ ModelSafeGroup group) {
+ return &GetOrCreateModelSafeGroupState(false, group)->conflict_progress;
+}
+
const UpdateProgress* StatusController::GetUnrestrictedUpdateProgress(
ModelSafeGroup group) const {
const PerModelSafeGroupState* state =
@@ -69,6 +75,12 @@ const UpdateProgress* StatusController::GetUnrestrictedUpdateProgress(
return state ? &state->update_progress : NULL;
}
+UpdateProgress*
+ StatusController::GetUnrestrictedMutableUpdateProgressForTest(
+ ModelSafeGroup group) {
+ return &GetOrCreateModelSafeGroupState(false, group)->update_progress;
+}
+
const PerModelSafeGroupState* StatusController::GetModelSafeGroupState(
bool restrict, ModelSafeGroup group) const {
DCHECK_EQ(restrict, group_restriction_in_effect_);
« no previous file with comments | « chrome/browser/sync/sessions/status_controller.h ('k') | chrome/browser/sync/sessions/sync_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698