diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-12 02:59:07 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-12 02:59:07 +0000 |
commit | 0c274c201e057cb69cd8614ff8e5820182a1a73c (patch) | |
tree | 8ed92a591fbdde160bd5c13405becdee7e78365e /chrome/browser/dom_ui | |
parent | 16b6b41d73f6b1116d3e600e6226764e99615760 (diff) | |
download | chromium_src-0c274c201e057cb69cd8614ff8e5820182a1a73c.zip chromium_src-0c274c201e057cb69cd8614ff8e5820182a1a73c.tar.gz chromium_src-0c274c201e057cb69cd8614ff8e5820182a1a73c.tar.bz2 |
Turn backend tip service on by default.
BUG= none.
TEST= New NTP should come up with a default title in Tips and Suggestions box, then be loaded with actual data from popgadget.
Review URL: http://codereview.chromium.org/149255
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20466 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui')
-rw-r--r-- | chrome/browser/dom_ui/new_tab_ui.cc | 8 | ||||
-rw-r--r-- | chrome/browser/dom_ui/new_tab_ui.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/dom_ui/new_tab_ui.cc b/chrome/browser/dom_ui/new_tab_ui.cc index 2f6d724..8525e08 100644 --- a/chrome/browser/dom_ui/new_tab_ui.cc +++ b/chrome/browser/dom_ui/new_tab_ui.cc @@ -1426,7 +1426,7 @@ NewTabUI::NewTabUI(TabContents* contents) AddMessageHandler((new MostVisitedHandler())->Attach(this)); AddMessageHandler((new RecentlyClosedTabsHandler())->Attach(this)); AddMessageHandler((new MetricsHandler())->Attach(this)); - if (EnableWebResources()) + if (!WebResourcesDisabled()) AddMessageHandler((new TipsHandler())->Attach(this)); if (UseOldNewTabPage()) { @@ -1484,7 +1484,7 @@ void NewTabUI::Observe(NotificationType type, void NewTabUI::RegisterUserPrefs(PrefService* prefs) { MostVisitedHandler::RegisterUserPrefs(prefs); ShownSectionsHandler::RegisterUserPrefs(prefs); - if (NewTabUI::EnableWebResources()) + if (!NewTabUI::WebResourcesDisabled()) TipsHandler::RegisterUserPrefs(prefs); } @@ -1495,7 +1495,7 @@ bool NewTabUI::UseOldNewTabPage() { } // static -bool NewTabUI::EnableWebResources() { +bool NewTabUI::WebResourcesDisabled() { const CommandLine* command_line = CommandLine::ForCurrentProcess(); - return command_line->HasSwitch(switches::kWebResources); + return command_line->HasSwitch(switches::kDisableWebResources); } diff --git a/chrome/browser/dom_ui/new_tab_ui.h b/chrome/browser/dom_ui/new_tab_ui.h index b387115..4149a46 100644 --- a/chrome/browser/dom_ui/new_tab_ui.h +++ b/chrome/browser/dom_ui/new_tab_ui.h @@ -28,8 +28,8 @@ class NewTabUI : public DOMUI, // Whether we should use the old new tab page. static bool UseOldNewTabPage(); - // Whether we should enable the web resources backend service - static bool EnableWebResources(); + // Whether we should disable the web resources backend service + static bool WebResourcesDisabled(); private: void Observe(NotificationType type, |