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

Unified Diff: chrome/browser/ui/views/infobars/infobars.cc

Issue 6192007: Remove wstring from views. Part 3: Switch accessibility strings to string16.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/ui/views/infobars/infobars.cc
===================================================================
--- chrome/browser/ui/views/infobars/infobars.cc (revision 71358)
+++ chrome/browser/ui/views/infobars/infobars.cc (working copy)
@@ -97,12 +97,12 @@
switch (delegate->GetInfoBarType()) {
case InfoBarDelegate::WARNING_TYPE:
- SetAccessibleName(UTF16ToWide(
- l10n_util::GetStringUTF16(IDS_ACCNAME_INFOBAR_WARNING)));
+ SetAccessibleName(
+ l10n_util::GetStringUTF16(IDS_ACCNAME_INFOBAR_WARNING));
break;
case InfoBarDelegate::PAGE_ACTION_TYPE:
- SetAccessibleName(UTF16ToWide(
- l10n_util::GetStringUTF16(IDS_ACCNAME_INFOBAR_PAGE_ACTION)));
+ SetAccessibleName(
+ l10n_util::GetStringUTF16(IDS_ACCNAME_INFOBAR_PAGE_ACTION));
break;
default:
NOTREACHED();
@@ -117,7 +117,7 @@
close_button_->SetImage(views::CustomButton::BS_PUSHED,
rb.GetBitmapNamed(IDR_CLOSE_BAR_P));
close_button_->SetAccessibleName(
- UTF16ToWide(l10n_util::GetStringUTF16(IDS_ACCNAME_CLOSE)));
+ l10n_util::GetStringUTF16(IDS_ACCNAME_CLOSE));
AddChildView(close_button_);
animation_.reset(new ui::SlideAnimation(this));
@@ -472,10 +472,10 @@
initialized_(false) {
ok_button_ = InfoBarTextButton::Create(this,
delegate->GetButtonLabel(ConfirmInfoBarDelegate::BUTTON_OK));
- ok_button_->SetAccessibleName(ok_button_->text());
+ ok_button_->SetAccessibleName(WideToUTF16Hack(ok_button_->text()));
cancel_button_ = InfoBarTextButton::Create(this,
delegate->GetButtonLabel(ConfirmInfoBarDelegate::BUTTON_CANCEL));
- cancel_button_->SetAccessibleName(cancel_button_->text());
+ cancel_button_->SetAccessibleName(WideToUTF16Hack(cancel_button_->text()));
// Set up the link.
link_ = new views::Link;
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_container.cc ('k') | chrome/browser/ui/views/location_bar/location_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698