summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/dom_ui')
-rw-r--r--chrome/browser/dom_ui/new_tab_ui.cc8
-rw-r--r--chrome/browser/dom_ui/new_tab_ui.h4
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,