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

Unified Diff: components/ntp_tiles/most_visited_sites.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/url_utils.cc ('k') | components/omnibox/browser/history_url_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_tiles/most_visited_sites.cc
diff --git a/components/ntp_tiles/most_visited_sites.cc b/components/ntp_tiles/most_visited_sites.cc
index fab0384830af66c9f4734e5eaff4f07c9ae6be3a..e78b0e01b380ebd801ca8e02cffa04a62c688b9a 100644
--- a/components/ntp_tiles/most_visited_sites.cc
+++ b/components/ntp_tiles/most_visited_sites.cc
@@ -76,7 +76,8 @@ bool NeedPopularSites(const PrefService* prefs, int num_tiles) {
}
bool AreURLsEquivalent(const GURL& url1, const GURL& url2) {
- return url1.host() == url2.host() && url1.path() == url2.path();
+ return url1.host_piece() == url2.host_piece() &&
+ url1.path_piece() == url2.path_piece();
}
} // namespace
« no previous file with comments | « components/history/core/browser/url_utils.cc ('k') | components/omnibox/browser/history_url_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698