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 04243345da2a3100acb0769fa878a5f81f718be9..900f7475be7bffe7cc4c7a3098db27f53d3fb123 100644 |
--- a/chrome/browser/ui/webui/ntp/new_tab_ui.cc |
+++ b/chrome/browser/ui/webui/ntp/new_tab_ui.cc |
@@ -387,7 +387,8 @@ NewTabUI::NewTabUI(TabContents* contents) |
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)); |