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

Unified Diff: url/gurl.cc

Issue 2485253002: Remove unnecessary calls to GURL() (Closed)
Patch Set: Assert that StringPiece must always be canonicalized. Fix some constants. Created 4 years, 1 month 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 | « ios/chrome/browser/history/history_utils.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/gurl.cc
diff --git a/url/gurl.cc b/url/gurl.cc
index 98a0300216c2ea95e95791075077db4579cc00cb..bdd35227b0dadbd36024a12aa5f51799c189ec06 100644
--- a/url/gurl.cc
+++ b/url/gurl.cc
@@ -512,6 +512,7 @@ bool operator!=(const GURL& x, const GURL& y) {
}
bool operator==(const GURL& x, const base::StringPiece& spec) {
+ DCHECK_EQ(GURL(spec).possibly_invalid_spec(), spec);
return x.possibly_invalid_spec() == spec;
}
« no previous file with comments | « ios/chrome/browser/history/history_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698