| 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()) {
|
|
|