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

Unified Diff: chrome/browser/ui/webui/ntp/new_tab_ui.cc

Issue 12088040: Add a SigninAllowed policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some bugfixes. 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/ui/webui/ntp/new_tab_ui.cc
diff --git a/chrome/browser/ui/webui/ntp/new_tab_ui.cc b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
index 18e79bce8073ad5ad0c18935bf51287924120955..c5d771493e910b1bdb407a36354b3fb438566094 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_ui.cc
+++ b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
@@ -116,7 +116,8 @@ NewTabUI::NewTabUI(content::WebUI* web_ui)
if (NewTabUI::IsDiscoveryInNTPEnabled())
web_ui->AddMessageHandler(new SuggestionsHandler());
// Android doesn't have a sync promo/username on NTP.
- web_ui->AddMessageHandler(new NewTabPageSyncHandler());
+ if (GetProfile()->IsSigninAllowed())
+ web_ui->AddMessageHandler(new NewTabPageSyncHandler());
// Or apps.
if (ShouldShowApps()) {

Powered by Google App Engine
This is Rietveld 408576698