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

Unified Diff: views/controls/tabbed_pane/tabbed_pane.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: views/controls/tabbed_pane/tabbed_pane.cc
===================================================================
--- views/controls/tabbed_pane/tabbed_pane.cc (revision 71043)
+++ views/controls/tabbed_pane/tabbed_pane.cc (working copy)
@@ -6,6 +6,8 @@
#include "app/keyboard_codes.h"
#include "base/logging.h"
+// TODO(avi): remove when not needed
+#include "base/utf_string_conversions.h"
#include "views/controls/native/native_view_host.h"
#include "views/controls/tabbed_pane/native_tabbed_pane_wrapper.h"
@@ -36,7 +38,7 @@
bool select_if_first_tab) {
native_tabbed_pane_->AddTabAtIndex(index, title, contents,
select_if_first_tab);
- contents->SetAccessibleName(title);
+ contents->SetAccessibleName(WideToUTF16Hack(title));
PreferredSizeChanged();
}

Powered by Google App Engine
This is Rietveld 408576698