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

Unified Diff: ui/base/text/text_elider.cc

Issue 6898026: Eliminate wstring from base/utf_offset_string_conversions.h, net/base/escape.h, and net/base/net_... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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
« net/base/net_util_unittest.cc ('K') | « net/base/sdch_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/text/text_elider.cc
===================================================================
--- ui/base/text/text_elider.cc (revision 82762)
+++ ui/base/text/text_elider.cc (working copy)
@@ -391,10 +391,8 @@
SortedDisplayURL::SortedDisplayURL(const GURL& url,
const std::string& languages) {
- std::wstring host;
- net::AppendFormattedHost(url, UTF8ToWide(languages), &host, NULL, NULL);
- sort_host_ = WideToUTF16Hack(host);
- string16 host_minus_www = net::StripWWW(WideToUTF16Hack(host));
+ net::AppendFormattedHost(url, languages, &sort_host_);
+ string16 host_minus_www = net::StripWWW(sort_host_);
url_parse::Parsed parsed;
display_url_ = net::FormatUrl(url, languages,
net::kFormatUrlOmitAll, UnescapeRule::SPACES, &parsed, &prefix_end_,
« net/base/net_util_unittest.cc ('K') | « net/base/sdch_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698