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

Unified Diff: chrome/browser/sync/sync_prefs.h

Issue 14655009: Client changes for disabled dasher account (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix small things based on feedback Created 7 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
Index: chrome/browser/sync/sync_prefs.h
diff --git a/chrome/browser/sync/sync_prefs.h b/chrome/browser/sync/sync_prefs.h
index e2598664429ed135db6913eb472d5ada5dde28aa..194794131703f9723eb95fd0ca6c5738cbe53e78 100644
--- a/chrome/browser/sync/sync_prefs.h
+++ b/chrome/browser/sync/sync_prefs.h
@@ -56,11 +56,6 @@ class SyncPrefs : NON_EXPORTED_BASE(public base::NonThreadSafe),
static void RegisterUserPrefs(PrefRegistrySyncable* registry);
- // Checks if sync is enabled for the profile that owns |io_data|. This must
- // be invoked on the IO thread, and can be used to check if sync is enabled
- // on that thread.
- static bool IsSyncAccessibleOnIOThread(ProfileIOData* io_data);
-
void AddSyncPrefObserver(SyncPrefObserver* sync_pref_observer);
void RemoveSyncPrefObserver(SyncPrefObserver* sync_pref_observer);
@@ -101,6 +96,15 @@ class SyncPrefs : NON_EXPORTED_BASE(public base::NonThreadSafe),
// This pref is set outside of sync.
bool IsManaged() const;
+ // IsSyncDisabledByAdmin has the same meaning as IsManaged: sync is disabled
+ // for accounts by domain admin. IsSyncDisabledByAdmin is set to true when
+ // sync server returns DISABLED_BY_ADMIN in ClientToServerResponse. This pref
+ // setting caches the value in order to display settings page correctly.
+ // It is not required to initialise sync backend to display state of sync
+ // buttons on settings page.
+ bool IsSyncDisabledByAdmin() const;
+ void SetSyncDisabledByAdmin(bool value);
+
// Use this encryption bootstrap token if we're using an explicit passphrase.
std::string GetEncryptionBootstrapToken() const;
void SetEncryptionBootstrapToken(const std::string& token);

Powered by Google App Engine
This is Rietveld 408576698