summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/new_tab_ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/dom_ui/new_tab_ui.cc')
-rw-r--r--chrome/browser/dom_ui/new_tab_ui.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/dom_ui/new_tab_ui.cc b/chrome/browser/dom_ui/new_tab_ui.cc
index fae0081..b3e246e 100644
--- a/chrome/browser/dom_ui/new_tab_ui.cc
+++ b/chrome/browser/dom_ui/new_tab_ui.cc
@@ -1551,7 +1551,7 @@ NewTabUI::NewTabUI(TabContents* contents)
}
#ifdef CHROME_PERSONALIZATION
- if (Personalization::IsSyncEnabled(GetProfile())) {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableSync)) {
AddMessageHandler(Personalization::CreateNewTabPageHandler(this));
}
#endif