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

Unified Diff: chrome/browser/possible_url_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/possible_url_model.cc
diff --git a/chrome/browser/possible_url_model.cc b/chrome/browser/possible_url_model.cc
index c4a8561fa661318465c66829964974931905d5a7..44fccf112308b01679bc11b7dd754966c1c750c2 100644
--- a/chrome/browser/possible_url_model.cc
+++ b/chrome/browser/possible_url_model.cc
@@ -120,10 +120,8 @@ std::wstring PossibleURLModel::GetText(int row, int col_id) {
// TODO(brettw): this should probably pass the GURL up so the URL elider
// can be used at a higher level when we know the width.
- // Force URL to be LTR.
- std::wstring url(UTF16ToWideHack(results_[row].display_url.display_url()));
- base::i18n::GetDisplayStringInLTRDirectionality(&url);
- return url;
+ string16 url = results_[row].display_url.display_url();
+ return UTF16ToWide(base::i18n::GetDisplayStringInLTRDirectionality(url));
}
SkBitmap PossibleURLModel::GetIcon(int row) {

Powered by Google App Engine
This is Rietveld 408576698