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

Unified Diff: chrome/browser/search_engines/template_url_table_model.cc

Issue 3108027: Convert GetDisplayStringInLTRDirectionality from wstring to string16. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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/search_engines/template_url_table_model.cc
diff --git a/chrome/browser/search_engines/template_url_table_model.cc b/chrome/browser/search_engines/template_url_table_model.cc
index 1192db07138cb0005e720aab2acae82a5a9e3d02..dede39956b74fa392aa8442347e3b6c121a5151a 100644
--- a/chrome/browser/search_engines/template_url_table_model.cc
+++ b/chrome/browser/search_engines/template_url_table_model.cc
@@ -191,9 +191,9 @@ std::wstring TemplateURLTableModel::GetText(int row, int col_id) {
case IDS_SEARCH_ENGINES_EDITOR_KEYWORD_COLUMN: {
// Keyword should be domain name. Force it to have LTR directionality.
- std::wstring keyword(url.keyword());
- base::i18n::GetDisplayStringInLTRDirectionality(&keyword);
- return keyword;
+ string16 keyword = WideToUTF16(url.keyword());
+ keyword = base::i18n::GetDisplayStringInLTRDirectionality(keyword);
+ return UTF16ToWide(keyword);
}
default:

Powered by Google App Engine
This is Rietveld 408576698