diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-23 19:02:31 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-23 19:02:31 +0000 |
commit | 3143a59a5484675fedc1ca7f43e0180ea77efb0a (patch) | |
tree | 84a2f083b49b13d7efe2803c3d06d3a364efc4f8 /chrome | |
parent | 4426701e986b2345eb4741e02d7380374cb6f756 (diff) | |
download | chromium_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.cc | 9 |
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. |