| Index: chrome/browser/ui/webui/ntp/new_tab_ui.cc
|
| ===================================================================
|
| --- chrome/browser/ui/webui/ntp/new_tab_ui.cc (revision 93571)
|
| +++ chrome/browser/ui/webui/ntp/new_tab_ui.cc (working copy)
|
| @@ -213,7 +213,8 @@
|
|
|
| if (!GetProfile()->IsOffTheRecord()) {
|
| PrefService* pref_service = GetProfile()->GetPrefs();
|
| - AddMessageHandler((new NTPLoginHandler())->Attach(this));
|
| + if (!NewTabSyncSetupHandler::ShouldShowSyncPromo())
|
| + AddMessageHandler((new NTPLoginHandler())->Attach(this));
|
| AddMessageHandler((new ShownSectionsHandler(pref_service))->Attach(this));
|
| AddMessageHandler((new browser_sync::ForeignSessionHandler())->
|
| Attach(this));
|
|
|