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

Unified Diff: chrome/browser/ui/views/generic_info_view.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/generic_info_view.cc
===================================================================
--- chrome/browser/ui/views/generic_info_view.cc (revision 70562)
+++ chrome/browser/ui/views/generic_info_view.cc (working copy)
@@ -5,8 +5,9 @@
#include "chrome/browser/views/generic_info_view.h"
#include "app/l10n_util.h"
+#include "base/logging.h"
+#include "base/utf_string_conversions.h"
#include "gfx/color_utils.h"
-#include "base/logging.h"
#include "views/grid_layout.h"
#include "views/controls/label.h"
#include "views/controls/textfield/textfield.h"
@@ -24,7 +25,7 @@
}
void GenericInfoView::SetNameByStringId(int row, int name_string_id) {
- SetName(row, l10n_util::GetString(name_string_id));
+ SetName(row, UTF16ToWide(l10n_util::GetStringUTF16(name_string_id)));
}
void GenericInfoView::SetName(int row, const string16& name) {

Powered by Google App Engine
This is Rietveld 408576698