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

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

Issue 6088008: Remove wstring from l10n_util. Part 7.... (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/reload_button.cc
===================================================================
--- chrome/browser/ui/views/reload_button.cc (revision 70562)
+++ chrome/browser/ui/views/reload_button.cc (working copy)
@@ -5,6 +5,7 @@
#include "chrome/browser/views/reload_button.h"
#include "app/l10n_util.h"
+#include "base/utf_string_conversions.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/views/event_utils.h"
@@ -120,8 +121,9 @@
}
bool ReloadButton::GetTooltipText(const gfx::Point& p, std::wstring* tooltip) {
- tooltip->assign(l10n_util::GetString((visible_mode_ == MODE_RELOAD) ?
- IDS_TOOLTIP_RELOAD : IDS_TOOLTIP_STOP));
+ int text_id = visible_mode_ == MODE_RELOAD ? IDS_TOOLTIP_RELOAD
+ : IDS_TOOLTIP_STOP;
+ tooltip->assign(UTF16ToWide(l10n_util::GetStringUTF16(text_id)));
return true;
}

Powered by Google App Engine
This is Rietveld 408576698