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

Unified Diff: chrome/browser/custom_home_pages_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/custom_home_pages_table_model.cc
diff --git a/chrome/browser/custom_home_pages_table_model.cc b/chrome/browser/custom_home_pages_table_model.cc
index e8f6b1bea4a36b66662f0c808b84fcace9f88627..32cb7802ea1489d50ad7fcaf157042cf105dee3e 100644
--- a/chrome/browser/custom_home_pages_table_model.cc
+++ b/chrome/browser/custom_home_pages_table_model.cc
@@ -209,7 +209,7 @@ CustomHomePagesTableModel::Entry*
std::wstring CustomHomePagesTableModel::FormattedURL(int row) const {
std::wstring languages =
UTF8ToWide(profile_->GetPrefs()->GetString(prefs::kAcceptLanguages));
- std::wstring url(net::FormatUrl(entries_[row].url, languages));
- base::i18n::GetDisplayStringInLTRDirectionality(&url);
- return url;
+ string16 url = WideToUTF16(net::FormatUrl(entries_[row].url, languages));
+ url = base::i18n::GetDisplayStringInLTRDirectionality(url);
+ return UTF16ToWide(url);
}

Powered by Google App Engine
This is Rietveld 408576698