summaryrefslogtreecommitdiffstats
path: root/views/controls/image_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/image_view.cc')
-rw-r--r--views/controls/image_view.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/views/controls/image_view.cc b/views/controls/image_view.cc
index 67f9190b..c0dcad3 100644
--- a/views/controls/image_view.cc
+++ b/views/controls/image_view.cc
@@ -155,15 +155,15 @@ ImageView::Alignment ImageView::GetVerticalAlignment() {
return vert_alignment_;
}
-void ImageView::SetTooltipText(const std::wstring& tooltip) {
- tooltip_text_ = WideToUTF16Hack(tooltip);
+void ImageView::SetTooltipText(const string16& tooltip) {
+ tooltip_text_ = tooltip;
}
-std::wstring ImageView::GetTooltipText() {
- return UTF16ToWideHack(tooltip_text_);
+string16 ImageView::GetTooltipText() {
+ return tooltip_text_;
}
-bool ImageView::GetTooltipText(const gfx::Point& p, std::wstring* tooltip) {
+bool ImageView::GetTooltipText(const gfx::Point& p, string16* tooltip) {
if (tooltip_text_.empty())
return false;