summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authormirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-23 19:02:31 +0000
committermirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-23 19:02:31 +0000
commit3143a59a5484675fedc1ca7f43e0180ea77efb0a (patch)
tree84a2f083b49b13d7efe2803c3d06d3a364efc4f8 /chrome
parent4426701e986b2345eb4741e02d7380374cb6f756 (diff)
downloadchromium_src-3143a59a5484675fedc1ca7f43e0180ea77efb0a.zip
chromium_src-3143a59a5484675fedc1ca7f43e0180ea77efb0a.tar.gz
chromium_src-3143a59a5484675fedc1ca7f43e0180ea77efb0a.tar.bz2
Add locale as a parameter to the extension link.
BUG= 28433 TEST= click on puzzle piece and promo line "extension" links; chrome UI language should be included as a parameter in the link. Review URL: http://codereview.chromium.org/434002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32820 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/dom_ui/ntp_resource_cache.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/dom_ui/ntp_resource_cache.cc b/chrome/browser/dom_ui/ntp_resource_cache.cc
index 5e56dde..42a2683 100644
--- a/chrome/browser/dom_ui/ntp_resource_cache.cc
+++ b/chrome/browser/dom_ui/ntp_resource_cache.cc
@@ -344,12 +344,13 @@ void NTPResourceCache::CreateNewTabHTML() {
l10n_util::GetString(IDS_NEW_TAB_SHOW_HIDE_BOOKMARK_SYNC));
localized_strings.SetString(L"promonew",
l10n_util::GetString(IDS_NTP_PROMOTION_NEW));
+ std::wstring extensionLink = ASCIIToWide(
+ google_util::AppendGoogleLocaleParam(
+ GURL(extension_urls::kGalleryBrowsePrefix)).spec());
localized_strings.SetString(L"promomessage",
l10n_util::GetStringF(IDS_NTP_PROMO_MESSAGE,
- l10n_util::GetString(IDS_PRODUCT_NAME),
- ASCIIToWide(extension_urls::kGalleryBrowsePrefix)));
- localized_strings.SetString(L"extensionslink",
- ASCIIToWide(extension_urls::kGalleryBrowsePrefix));
+ l10n_util::GetString(IDS_PRODUCT_NAME), extensionLink));
+ localized_strings.SetString(L"extensionslink", extensionLink);
// Don't initiate the sync related message passing with the page if the sync
// code is not present.