summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui
diff options
context:
space:
mode:
authorarv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-25 06:54:43 +0000
committerarv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-25 06:54:43 +0000
commit1cf38fa7f9493a4e84a42e05abfc812e19220fea (patch)
treecf767a1a8bc0bd49b35529fa2c2cc7f75900e141 /chrome/browser/dom_ui
parentfc23ec8dd5f9359914ba6ab1b8bd00c494f547c9 (diff)
downloadchromium_src-1cf38fa7f9493a4e84a42e05abfc812e19220fea.zip
chromium_src-1cf38fa7f9493a4e84a42e05abfc812e19220fea.tar.gz
chromium_src-1cf38fa7f9493a4e84a42e05abfc812e19220fea.tar.bz2
Disable the tips service by default.
Update the UI to not say tips or recommendations. BUG=None TEST=Starting chrome should not show any tips byt default Review URL: http://codereview.chromium.org/160138 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21615 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui')
-rw-r--r--chrome/browser/dom_ui/new_tab_ui.cc16
-rw-r--r--chrome/browser/dom_ui/new_tab_ui.h2
2 files changed, 9 insertions, 9 deletions
diff --git a/chrome/browser/dom_ui/new_tab_ui.cc b/chrome/browser/dom_ui/new_tab_ui.cc
index 50f5ec0..deb9683 100644
--- a/chrome/browser/dom_ui/new_tab_ui.cc
+++ b/chrome/browser/dom_ui/new_tab_ui.cc
@@ -312,9 +312,9 @@ void NewTabHTMLSource::StartDataRequest(const std::string& path,
localized_strings.SetString(L"recentactivities",
l10n_util::GetString(IDS_NEW_TAB_RECENT_ACTIVITIES));
localized_strings.SetString(L"tipsandsuggestions",
- l10n_util::GetString(IDS_NEW_TAB_TIPS));
+ l10n_util::GetString(IDS_NEW_TAB_EVEN_MORE_TITLE));
localized_strings.SetString(L"defaulttipstitle",
- l10n_util::GetString(IDS_NEW_TAB_DEFAULT_TIPS_TITLE));
+ l10n_util::GetString(IDS_NEW_TAB_EVEN_MORE_CONTENT));
localized_strings.SetString(L"downloads",
l10n_util::GetString(IDS_NEW_TAB_DOWNLOADS));
localized_strings.SetString(L"viewfullhistory",
@@ -334,9 +334,9 @@ void NewTabHTMLSource::StartDataRequest(const std::string& path,
localized_strings.SetString(L"hiderecent",
l10n_util::GetString(IDS_NEW_TAB_HIDE_RECENT));
localized_strings.SetString(L"showtips",
- l10n_util::GetString(IDS_NEW_TAB_SHOW_TIPS));
+ l10n_util::GetString(IDS_NEW_TAB_SHOW_EVEN_MORE));
localized_strings.SetString(L"hidetips",
- l10n_util::GetString(IDS_NEW_TAB_HIDE_TIPS));
+ l10n_util::GetString(IDS_NEW_TAB_HIDE_EVEN_MORE));
localized_strings.SetString(L"thumbnailremovednotification",
l10n_util::GetString(IDS_NEW_TAB_THUMBNAIL_REMOVED_NOTIFICATION));
localized_strings.SetString(L"undothumbnailremove",
@@ -1526,7 +1526,7 @@ NewTabUI::NewTabUI(TabContents* contents)
AddMessageHandler((new MostVisitedHandler())->Attach(this));
AddMessageHandler((new RecentlyClosedTabsHandler())->Attach(this));
AddMessageHandler((new MetricsHandler())->Attach(this));
- if (!WebResourcesDisabled())
+ if (WebResourcesEnabled())
AddMessageHandler((new TipsHandler())->Attach(this));
if (UseOldNewTabPage()) {
@@ -1584,7 +1584,7 @@ void NewTabUI::Observe(NotificationType type,
void NewTabUI::RegisterUserPrefs(PrefService* prefs) {
MostVisitedHandler::RegisterUserPrefs(prefs);
ShownSectionsHandler::RegisterUserPrefs(prefs);
- if (!NewTabUI::WebResourcesDisabled())
+ if (NewTabUI::WebResourcesEnabled())
TipsHandler::RegisterUserPrefs(prefs);
}
@@ -1595,7 +1595,7 @@ bool NewTabUI::UseOldNewTabPage() {
}
// static
-bool NewTabUI::WebResourcesDisabled() {
+bool NewTabUI::WebResourcesEnabled() {
const CommandLine* command_line = CommandLine::ForCurrentProcess();
- return command_line->HasSwitch(switches::kDisableWebResources);
+ return command_line->HasSwitch(switches::kEnableWebResources);
}
diff --git a/chrome/browser/dom_ui/new_tab_ui.h b/chrome/browser/dom_ui/new_tab_ui.h
index 4149a46..fde0fe2 100644
--- a/chrome/browser/dom_ui/new_tab_ui.h
+++ b/chrome/browser/dom_ui/new_tab_ui.h
@@ -29,7 +29,7 @@ class NewTabUI : public DOMUI,
static bool UseOldNewTabPage();
// Whether we should disable the web resources backend service
- static bool WebResourcesDisabled();
+ static bool WebResourcesEnabled();
private:
void Observe(NotificationType type,