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

Unified Diff: components/history/core/browser/history_match.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/cloud_devices/common/cloud_devices_urls.cc ('k') | components/history/core/browser/url_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/browser/history_match.cc
diff --git a/components/history/core/browser/history_match.cc b/components/history/core/browser/history_match.cc
index 6e252b9c4d25d60286516689dcf9c23b3e6ac1a4..ae9787bc21d1653d0a4aa6933be940342f1ca8a0 100644
--- a/components/history/core/browser/history_match.cc
+++ b/components/history/core/browser/history_match.cc
@@ -32,8 +32,8 @@ bool HistoryMatch::EqualsGURL(const HistoryMatch& h, const GURL& url) {
bool HistoryMatch::IsHostOnly() const {
const GURL& gurl = url_info.url();
DCHECK(gurl.is_valid());
- return (!gurl.has_path() || (gurl.path() == "/")) && !gurl.has_query() &&
- !gurl.has_ref();
+ return (!gurl.has_path() || (gurl.path_piece() == "/")) &&
+ !gurl.has_query() && !gurl.has_ref();
}
} // namespace history
« no previous file with comments | « components/cloud_devices/common/cloud_devices_urls.cc ('k') | components/history/core/browser/url_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698