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

Unified Diff: chrome/browser/profiles/profile.cc

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/profiles/profile.cc
diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc
index a0e6f6773fdb9a9fd3c1707f84692ccc307ec212..d31ebb86d080fa506ce138700f1c3621daaf7b29 100644
--- a/chrome/browser/profiles/profile.cc
+++ b/chrome/browser/profiles/profile.cc
@@ -151,7 +151,8 @@ bool Profile::IsNewProfile() {
bool Profile::IsSyncAccessible() {
browser_sync::SyncPrefs prefs(GetPrefs());
- return ProfileSyncService::IsSyncEnabled() && !prefs.IsManaged();
+ return ProfileSyncService::IsSyncEnabled() && !prefs.IsManaged() &&
+ !prefs.IsSyncDisabledByAdmin();
Andrew T Wilson (Slow) 2013/05/14 12:34:01 Agreed with Tim that it's too bad that we have so
}
void Profile::MaybeSendDestroyedNotification() {
« no previous file with comments | « no previous file | chrome/browser/resources/options/browser_options.js » ('j') | chrome/browser/sync/profile_sync_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698