diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/app/generated_resources.grd | 2 | ||||
-rw-r--r-- | chrome/browser/ui/autologin_infobar_delegate.cc | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd index fde8c77..ae7e615 100644 --- a/chrome/app/generated_resources.grd +++ b/chrome/app/generated_resources.grd @@ -8010,7 +8010,7 @@ Keep your key file in a safe place. You will need it to create new versions of y <!-- Auto-login infobar --> <message name="IDS_AUTOLOGIN_INFOBAR_MESSAGE" desc="The string shown in the infobar explaining that they can press one button to auto-login instead of entering their user name and password."> - Sign in to this site using: <ph name="EMAIL_ADDRESS">%ls</ph> + Sign in to this site using: <ph name="EMAIL_ADDRESS">$1</ph> </message> <message name="IDS_AUTOLOGIN_INFOBAR_OK_BUTTON" desc="The string used in the infobar button that the user presses to perform the auto-login."> Sign in diff --git a/chrome/browser/ui/autologin_infobar_delegate.cc b/chrome/browser/ui/autologin_infobar_delegate.cc index 737fcec..1840897 100644 --- a/chrome/browser/ui/autologin_infobar_delegate.cc +++ b/chrome/browser/ui/autologin_infobar_delegate.cc @@ -265,12 +265,8 @@ InfoBarDelegate::Type AutoLoginInfoBarDelegate::GetInfoBarType() const { } string16 AutoLoginInfoBarDelegate::GetMessageText() const { - string16 format = l10n_util::GetStringUTF16(IDS_AUTOLOGIN_INFOBAR_MESSAGE); - std::wstring format_wide = UTF16ToWide(format); - std::wstring account_wide = UTF8ToWide(account_); - std::wstring message = base::StringPrintf(format_wide.c_str(), // NOLINT - account_wide.c_str()); - return WideToUTF16(message); + return l10n_util::GetStringFUTF16(IDS_AUTOLOGIN_INFOBAR_MESSAGE, + UTF8ToUTF16(account_)); } int AutoLoginInfoBarDelegate::GetButtons() const { |