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

Unified Diff: chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc

Issue 13468005: Show only the settings pages for new managed users (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes Created 7 years, 9 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/ui/webui/sync_promo/sync_promo_ui.cc
diff --git a/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc b/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc
index bde0c6c5fe3a8afd0fd613b790f72ab3a04b3ad8..44fd1438c4a318fddffa6045d8a1ba4bd59a4bda 100644
--- a/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc
+++ b/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc
@@ -133,6 +133,10 @@ bool SyncPromoUI::ShouldShowSyncPromo(Profile* profile) {
if (profile->IsOffTheRecord())
return false;
+ // Don't show for managed users.
Dan Beam 2013/04/03 23:39:20 nit: managed profiles
Sergiu 2013/04/04 09:02:55 Done.
+ if (profile->GetPrefs()->GetBoolean(prefs::kProfileIsManaged))
Dan Beam 2013/04/03 23:39:20 do you want to disable the promo based on whether
Dan Beam 2013/04/04 00:01:45 er, if (profile->IsSyncAccessible()) I mean
Dan Beam 2013/04/04 01:12:59 ... and I'm going to go drink more coffee
Sergiu 2013/04/04 09:02:55 It is for managed users (see the referenced bug fo
+ return false;
+
// Display the signin promo if the user is not signed in.
SigninManager* signin = SigninManagerFactory::GetForProfile(
profile->GetOriginalProfile());

Powered by Google App Engine
This is Rietveld 408576698