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

Unified Diff: components/history/core/browser/url_utils.cc

Issue 2478573004: Convert GURL::{host,path} to GURL::{host_piece,path_piece} for ==. (Closed)
Patch Set: rebase to #431874 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 | « components/history/core/browser/history_match.cc ('k') | components/ntp_tiles/most_visited_sites.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/browser/url_utils.cc
diff --git a/components/history/core/browser/url_utils.cc b/components/history/core/browser/url_utils.cc
index 522af9b9689de999c1548d971abd660314b59078..307c89419bd927f433cdcfa4f80a9cbbb0c0daac 100644
--- a/components/history/core/browser/url_utils.cc
+++ b/components/history/core/browser/url_utils.cc
@@ -46,8 +46,8 @@ bool CanonicalURLStringCompare(const std::string& s1, const std::string& s2) {
}
bool HaveSameSchemeHostAndPort(const GURL&url1, const GURL& url2) {
- return url1.scheme() == url2.scheme() && url1.host() == url2.host() &&
- url1.port() == url2.port();
+ return url1.scheme_piece() == url2.scheme_piece() &&
+ url1.host_piece() == url2.host_piece() && url1.port() == url2.port();
}
bool IsPathPrefix(const std::string& p1, const std::string& p2) {
« no previous file with comments | « components/history/core/browser/history_match.cc ('k') | components/ntp_tiles/most_visited_sites.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698