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

Unified Diff: app/gfx/text_elider.cc

Issue 56053: URL's not properly unescaping when displayed (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/bookmarks/bookmark_table_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/gfx/text_elider.cc
===================================================================
--- app/gfx/text_elider.cc (revision 17365)
+++ app/gfx/text_elider.cc (working copy)
@@ -33,7 +33,7 @@
// Get a formatted string and corresponding parsing of the url.
url_parse::Parsed parsed;
std::wstring url_string =
- net::FormatUrl(url, languages, true, true, &parsed, NULL);
+ net::FormatUrl(url, languages, true, UnescapeRule::SPACES, &parsed, NULL);
if (available_pixel_width <= 0)
return url_string;
@@ -329,7 +329,7 @@
string16 host_minus_www = WideToUTF16Hack(net::StripWWW(host));
url_parse::Parsed parsed;
display_url_ = WideToUTF16Hack(net::FormatUrl(url, languages,
- true, true, &parsed, &prefix_end_));
+ true, UnescapeRule::SPACES, &parsed, &prefix_end_));
if (sort_host_.length() > host_minus_www.length()) {
prefix_end_ += sort_host_.length() - host_minus_www.length();
sort_host_.swap(host_minus_www);
« no previous file with comments | « no previous file | chrome/browser/bookmarks/bookmark_table_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698