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

Unified Diff: chrome/browser/autofill/autofill_cc_infobar_delegate.cc

Issue 3127009: Convert infobar APIs to UTF-16. (Closed)
Patch Set: works Created 10 years, 4 months 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/autofill/autofill_cc_infobar_delegate.cc
diff --git a/chrome/browser/autofill/autofill_cc_infobar_delegate.cc b/chrome/browser/autofill/autofill_cc_infobar_delegate.cc
index 89c17ba6d2a66a12b2065f34a5bf44ee40b751fb..149bfb69b99c2e8798faf400ad0340682f9fba31 100644
--- a/chrome/browser/autofill/autofill_cc_infobar_delegate.cc
+++ b/chrome/browser/autofill/autofill_cc_infobar_delegate.cc
@@ -55,8 +55,8 @@ void AutoFillCCInfoBarDelegate::InfoBarClosed() {
ConfirmInfoBarDelegate::InfoBarClosed();
}
-std::wstring AutoFillCCInfoBarDelegate::GetMessageText() const {
- return l10n_util::GetString(IDS_AUTOFILL_CC_INFOBAR_TEXT);
+string16 AutoFillCCInfoBarDelegate::GetMessageText() const {
+ return l10n_util::GetStringUTF16(IDS_AUTOFILL_CC_INFOBAR_TEXT);
}
SkBitmap* AutoFillCCInfoBarDelegate::GetIcon() const {
@@ -68,16 +68,16 @@ int AutoFillCCInfoBarDelegate::GetButtons() const {
return BUTTON_OK | BUTTON_CANCEL;
}
-std::wstring AutoFillCCInfoBarDelegate::GetButtonLabel(
+string16 AutoFillCCInfoBarDelegate::GetButtonLabel(
ConfirmInfoBarDelegate::InfoBarButton button) const {
if (button == BUTTON_OK)
- return l10n_util::GetString(IDS_AUTOFILL_CC_INFOBAR_ACCEPT);
+ return l10n_util::GetStringUTF16(IDS_AUTOFILL_CC_INFOBAR_ACCEPT);
else if (button == BUTTON_CANCEL)
- return l10n_util::GetString(IDS_AUTOFILL_CC_INFOBAR_DENY);
+ return l10n_util::GetStringUTF16(IDS_AUTOFILL_CC_INFOBAR_DENY);
else
NOTREACHED();
- return std::wstring();
+ return string16();
}
bool AutoFillCCInfoBarDelegate::Accept() {
@@ -98,8 +98,8 @@ bool AutoFillCCInfoBarDelegate::Cancel() {
return true;
}
-std::wstring AutoFillCCInfoBarDelegate::GetLinkText() {
- return l10n_util::GetString(IDS_AUTOFILL_CC_LEARN_MORE);
+string16 AutoFillCCInfoBarDelegate::GetLinkText() {
+ return l10n_util::GetStringUTF16(IDS_AUTOFILL_CC_LEARN_MORE);
}
bool AutoFillCCInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) {

Powered by Google App Engine
This is Rietveld 408576698