Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1641)

Unified Diff: chrome/browser/dom_ui/new_tab_ui.cc

Issue 147247: Remove null link from "welcome to tips" default suggestion. Also make some h... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/dom_ui/tips_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/new_tab_ui.cc
===================================================================
--- chrome/browser/dom_ui/new_tab_ui.cc (revision 19737)
+++ chrome/browser/dom_ui/new_tab_ui.cc (working copy)
@@ -297,6 +297,10 @@
l10n_util::GetString(IDS_NEW_TAB_WEB_RESOURCE_CACHE));
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));
+ localized_strings.SetString(L"defaulttipstitle",
+ l10n_util::GetString(IDS_NEW_TAB_DEFAULT_TIPS_TITLE));
localized_strings.SetString(L"downloads",
l10n_util::GetString(IDS_NEW_TAB_DOWNLOADS));
localized_strings.SetString(L"viewfullhistory",
@@ -1490,6 +1494,7 @@
return command_line->HasSwitch(switches::kOldNewTabPage);
}
+// static
bool NewTabUI::EnableWebResources() {
const CommandLine* command_line = CommandLine::ForCurrentProcess();
return command_line->HasSwitch(switches::kWebResources);
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/dom_ui/tips_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698