summaryrefslogtreecommitdiffstats
path: root/views/controls/button/menu_button.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-12 23:40:40 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-12 23:40:40 +0000
commit1abede9a1dcf4cdbb27c95d247f41733d21ba208 (patch)
tree42ec2f654e839ff7ea954e3d3dc8c2536c95c68b /views/controls/button/menu_button.cc
parent959abf3b1fdbf58974eebe7e42490c2c3ff3e504 (diff)
downloadchromium_src-1abede9a1dcf4cdbb27c95d247f41733d21ba208.zip
chromium_src-1abede9a1dcf4cdbb27c95d247f41733d21ba208.tar.gz
chromium_src-1abede9a1dcf4cdbb27c95d247f41733d21ba208.tar.bz2
views: Change MenuButton API to string16.
BUG=68267 R=sky@chromium.org Review URL: http://codereview.chromium.org/8245013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105196 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/button/menu_button.cc')
-rw-r--r--views/controls/button/menu_button.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/controls/button/menu_button.cc b/views/controls/button/menu_button.cc
index b8d0410..4a9e74c 100644
--- a/views/controls/button/menu_button.cc
+++ b/views/controls/button/menu_button.cc
@@ -46,10 +46,10 @@ const char MenuButton::kViewClassName[] = "views/MenuButton";
////////////////////////////////////////////////////////////////////////////////
MenuButton::MenuButton(ButtonListener* listener,
- const std::wstring& text,
+ const string16& text,
ViewMenuDelegate* menu_delegate,
bool show_menu_marker)
- : TextButton(listener, text),
+ : TextButton(listener, UTF16ToWideHack(text)),
menu_visible_(false),
menu_offset_(kDefaultMenuOffsetX, kDefaultMenuOffsetY),
menu_delegate_(menu_delegate),