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

Unified Diff: components/sync_driver/sync_prefs.h

Issue 266233002: Add BackupRollbackController for starting backup/rollback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « components/sync_driver/pref_names.cc ('k') | components/sync_driver/sync_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/sync_prefs.h
diff --git a/components/sync_driver/sync_prefs.h b/components/sync_driver/sync_prefs.h
index 063c3d361960d63fede52ce069b11ead74a0d1ef..da94c5b6f36b7582f0d6cf9adfaed885c372562a 100644
--- a/components/sync_driver/sync_prefs.h
+++ b/components/sync_driver/sync_prefs.h
@@ -54,6 +54,9 @@ class SyncPrefs : NON_EXPORTED_BASE(public base::NonThreadSafe),
// Does not take ownership of |pref_service|.
explicit SyncPrefs(PrefService* pref_service);
+ // For testing.
+ SyncPrefs();
+
virtual ~SyncPrefs();
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
@@ -124,6 +127,10 @@ class SyncPrefs : NON_EXPORTED_BASE(public base::NonThreadSafe),
// Merges the given set of types with the set of acknowledged types.
void AcknowledgeSyncedTypes(syncer::ModelTypeSet types);
+ // Get/Set number of rollback attempts allowed.
+ virtual int GetRemainingRollbackTries() const;
+ virtual void SetRemainingRollbackTries(int times);
+
// For testing.
void SetManagedForTest(bool is_managed);
« no previous file with comments | « components/sync_driver/pref_names.cc ('k') | components/sync_driver/sync_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698