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

Unified Diff: chrome/browser/signin/signin_ui_util.cc

Issue 12088040: Add a SigninAllowed policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add tests and link UpdateLogin to kSigninAllowed pref. Created 7 years, 10 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/signin/signin_ui_util.cc
diff --git a/chrome/browser/signin/signin_ui_util.cc b/chrome/browser/signin/signin_ui_util.cc
index 61bd7306057c6fed97fbada9f8b148c6cae19f6c..20374e283caafd0220fd9e6b70585fb47f0244d5 100644
--- a/chrome/browser/signin/signin_ui_util.cc
+++ b/chrome/browser/signin/signin_ui_util.cc
@@ -54,8 +54,9 @@ string16 GetSigninMenuLabel(Profile* profile) {
return error->MenuItemLabel();
// No errors, so just display the signed in user, if any.
- ProfileSyncService* service = profile->IsSyncAccessible() ?
- ProfileSyncServiceFactory::GetForProfile(profile) : NULL;
+ ProfileSyncService* service =
+ profile->IsSyncAccessible() ?
Andrew T Wilson (Slow) 2013/02/07 10:08:11 This formatting change is fine, but you might want
Adrian Kuegel 2013/02/07 11:09:21 I should have checked that I reformat it the same
+ ProfileSyncServiceFactory::GetForProfile(profile) : NULL;
// Even if the user is signed in, don't display the "signed in as..."
// label if we're still setting up sync.

Powered by Google App Engine
This is Rietveld 408576698