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

Unified Diff: src/gurl.cc

Issue 8974033: Fix the GURL change [compile error, two small changes to make things safe while (Closed) Base URL: http://google-url.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 12 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_unittest.cc » ('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 166)
+++ src/gurl.cc (working copy)
@@ -456,7 +456,7 @@
return false;
// FileSystem URLs have empty parsed_.host, so check this first.
- if (SchemeIsFileSystem())
+ if (SchemeIsFileSystem() && inner_url_)
return inner_url_->DomainIs(lower_ascii_domain, domain_len);
if (!parsed_.host.is_nonempty())
« no previous file with comments | « no previous file | src/url_canon_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698