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

Unified Diff: chrome/browser/ui/webui/ntp/ntp_resource_cache.cc

Issue 2506713002: Avoid parsing the webstore base url so much. (Closed)
Patch Set: fix chromeos Created 4 years, 1 month 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
Index: chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
diff --git a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
index e9f9d45e970fd3f2a1eb026b849ade3999bf1c8e..f38042cbaf4bdb6b29b3f8905b6d26de7a2f7c41 100644
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
@@ -444,9 +444,10 @@ void NTPResourceCache::CreateNewTabHTML() {
load_time_data.SetString("learnMore",
l10n_util::GetStringUTF16(IDS_LEARN_MORE));
const std::string& app_locale = g_browser_process->GetApplicationLocale();
- load_time_data.SetString("webStoreLink",
- google_util::AppendGoogleLocaleParam(
- GURL(extension_urls::GetWebstoreLaunchURL()), app_locale).spec());
+ load_time_data.SetString(
+ "webStoreLink", google_util::AppendGoogleLocaleParam(
+ extension_urls::GetWebstoreLaunchURL(), app_locale)
+ .spec());
load_time_data.SetString("appInstallHintText",
l10n_util::GetStringUTF16(IDS_NEW_TAB_APP_INSTALL_HINT_LABEL));
load_time_data.SetString("learn_more",

Powered by Google App Engine
This is Rietveld 408576698