summaryrefslogtreecommitdiffstats
path: root/views/controls/button/text_button.cc
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-22 18:15:25 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-22 18:15:25 +0000
commit36f1e277205d0bc6621866b1242ea7ee00166d4a (patch)
tree9d9fa8d67e2c2a4d5be66a99a04aa45d6fa9b58a /views/controls/button/text_button.cc
parent27a64faaaa8a1d23826794a5763d34cac5fbf9fe (diff)
downloadchromium_src-36f1e277205d0bc6621866b1242ea7ee00166d4a.zip
chromium_src-36f1e277205d0bc6621866b1242ea7ee00166d4a.tar.gz
chromium_src-36f1e277205d0bc6621866b1242ea7ee00166d4a.tar.bz2
Convert SizeStringInt from taking a wstring to a string16.
BUG=23581 Review URL: http://codereview.chromium.org/5158006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66973 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/button/text_button.cc')
-rw-r--r--views/controls/button/text_button.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/controls/button/text_button.cc b/views/controls/button/text_button.cc
index 578be80..1df698a 100644
--- a/views/controls/button/text_button.cc
+++ b/views/controls/button/text_button.cc
@@ -9,6 +9,7 @@
#include "app/throb_animation.h"
#include "app/resource_bundle.h"
#include "base/logging.h"
+#include "base/utf_string_conversions.h"
#include "gfx/canvas_skia.h"
#include "views/controls/button/button.h"
#include "views/event.h"
@@ -402,7 +403,7 @@ void TextButton::UpdateColor() {
void TextButton::UpdateTextSize() {
int width = 0, height = 0;
gfx::CanvasSkia::SizeStringInt(
- text_, font_, &width, &height,
+ WideToUTF16Hack(text_), font_, &width, &height,
gfx::Canvas::NO_ELLIPSIS | PrefixTypeToCanvasType(prefix_type_));
// Add 2 extra pixels to width and height when text halo is used.