diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-13 19:39:58 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-13 19:39:58 +0000 |
commit | e23d3a394aed0b7f353edfeaac2fc2181085c8ff (patch) | |
tree | e5ae26a74ec8fa098aab0e9837ad8d4434ab6b08 /chrome/browser/autofill | |
parent | 997e70b24b8041d402f759587b8ce01c56f55c0b (diff) | |
download | chromium_src-e23d3a394aed0b7f353edfeaac2fc2181085c8ff.zip chromium_src-e23d3a394aed0b7f353edfeaac2fc2181085c8ff.tar.gz chromium_src-e23d3a394aed0b7f353edfeaac2fc2181085c8ff.tar.bz2 |
Convert infobar APIs to UTF-16.
The critical change is the base class in infobar_delegate.h.
The remainder is just adapting all users to that change.
I grepped for all instances of the three base functions whose
types I changed to be more sure that I found all classes that
tried to overload these functions. I sure wish C++ had an
@Override annotation. :~(
TEST=compiles
BUG=23581
Review URL: http://codereview.chromium.org/3127009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56066 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill')
-rw-r--r-- | chrome/browser/autofill/autofill_cc_infobar_delegate.cc | 16 | ||||
-rw-r--r-- | chrome/browser/autofill/autofill_cc_infobar_delegate.h | 6 |
2 files changed, 11 insertions, 11 deletions
diff --git a/chrome/browser/autofill/autofill_cc_infobar_delegate.cc b/chrome/browser/autofill/autofill_cc_infobar_delegate.cc index 7953d86..ec66b91 100644 --- a/chrome/browser/autofill/autofill_cc_infobar_delegate.cc +++ b/chrome/browser/autofill/autofill_cc_infobar_delegate.cc @@ -48,8 +48,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 { @@ -61,16 +61,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() { @@ -91,8 +91,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) { diff --git a/chrome/browser/autofill/autofill_cc_infobar_delegate.h b/chrome/browser/autofill/autofill_cc_infobar_delegate.h index 6a8091e..b2dab99 100644 --- a/chrome/browser/autofill/autofill_cc_infobar_delegate.h +++ b/chrome/browser/autofill/autofill_cc_infobar_delegate.h @@ -25,14 +25,14 @@ class AutoFillCCInfoBarDelegate : public ConfirmInfoBarDelegate { virtual bool ShouldExpire( const NavigationController::LoadCommittedDetails& details) const; virtual void InfoBarClosed(); - virtual std::wstring GetMessageText() const; + virtual string16 GetMessageText() const; virtual SkBitmap* GetIcon() const; virtual int GetButtons() const; - virtual std::wstring GetButtonLabel( + virtual string16 GetButtonLabel( ConfirmInfoBarDelegate::InfoBarButton button) const; virtual bool Accept(); virtual bool Cancel(); - virtual std::wstring GetLinkText(); + virtual string16 GetLinkText(); virtual bool LinkClicked(WindowOpenDisposition disposition); #if defined(OS_WIN) |