summaryrefslogtreecommitdiffstats
path: root/chrome/browser/first_run_win.cc
diff options
context:
space:
mode:
authorcpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-19 18:08:39 +0000
committercpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-19 18:08:39 +0000
commitc62da25837d8976f587d2048b82aef41e71d9bb2 (patch)
tree9902ca08aabeb92789d772f1687a8b758813ec9f /chrome/browser/first_run_win.cc
parentbaf5fd6e2f6ed7232ce99a2b2c15411f36cf5d90 (diff)
downloadchromium_src-c62da25837d8976f587d2048b82aef41e71d9bb2.zip
chromium_src-c62da25837d8976f587d2048b82aef41e71d9bb2.tar.gz
chromium_src-c62da25837d8976f587d2048b82aef41e71d9bb2.tar.bz2
New headline for the inactive toast dialog
- features extensions for US only installs. BUG=32474 TEST= see bug for details Review URL: http://codereview.chromium.org/553010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36529 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/first_run_win.cc')
-rw-r--r--chrome/browser/first_run_win.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/first_run_win.cc b/chrome/browser/first_run_win.cc
index 14a8195..9e48300 100644
--- a/chrome/browser/first_run_win.cc
+++ b/chrome/browser/first_run_win.cc
@@ -776,7 +776,12 @@ class TryChromeDialog : public views::ButtonListener,
// First row views.
layout->StartRow(0, 0);
layout->AddView(icon);
- const std::wstring heading = l10n_util::GetString(IDS_TRY_TOAST_HEADING);
+ // The heading has two flavors of text, the alt one features extensions but
+ // we only use it in the US until some international issues are fixed.
+ const std::string app_locale = g_browser_process->GetApplicationLocale();
+ const std::wstring heading = (app_locale == "en-US") ?
+ l10n_util::GetString(IDS_TRY_TOAST_ALT_HEADING) :
+ l10n_util::GetString(IDS_TRY_TOAST_HEADING);
views::Label* label =
new views::Label(heading);
label->SetFont(rb.GetFont(ResourceBundle::MediumBoldFont));
@@ -784,6 +789,7 @@ class TryChromeDialog : public views::ButtonListener,
label->SizeToFit(200);
label->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
layout->AddView(label);
+ // The close button is custom.
views::ImageButton* close_button = new views::ImageButton(this);
close_button->SetImage(views::CustomButton::BS_NORMAL,
rb.GetBitmapNamed(IDR_CLOSE_BAR));