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

Unified Diff: src/gurl.cc

Issue 114050: url_canon: New CanonicalizeHostVerbose() function. (Closed) Base URL: http://google-url.googlecode.com/svn/trunk/
Patch Set: Address brettw's comments Created 11 years, 6 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 | src/url_canon.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gurl.cc
===================================================================
--- src/gurl.cc (revision 106)
+++ src/gurl.cc (working copy)
@@ -364,9 +364,10 @@
return false;
url_canon::RawCanonOutputT<char, 128> ignored_output;
- url_parse::Component ignored_component;
- return url_canon::CanonicalizeIPAddress(spec_.c_str(), parsed_.host,
- &ignored_output, &ignored_component);
+ url_canon::CanonHostInfo host_info;
+ url_canon::CanonicalizeIPAddress(spec_.c_str(), parsed_.host,
+ &ignored_output, &host_info);
+ return host_info.IsIPAddress();
}
#ifdef WIN32
« no previous file with comments | « no previous file | src/url_canon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698