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

Unified Diff: components/cloud_devices/common/cloud_devices_urls.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
Index: components/cloud_devices/common/cloud_devices_urls.cc
diff --git a/components/cloud_devices/common/cloud_devices_urls.cc b/components/cloud_devices/common/cloud_devices_urls.cc
index 7b4b71135fe1f74c79d84f45ff2ce3a1f7cabb3b..b08cc6f087812623a2baff3e1480eecdc2d40073 100644
--- a/components/cloud_devices/common/cloud_devices_urls.cc
+++ b/components/cloud_devices/common/cloud_devices_urls.cc
@@ -77,9 +77,9 @@ GURL GetCloudPrintAddAccountURL() {
}
bool IsCloudPrintURL(const GURL& url) {
- GURL cloud_print_url = GetCloudPrintURL();
- return url.host() == cloud_print_url.host() &&
- url.scheme() == cloud_print_url.scheme() &&
+ const GURL& cloud_print_url = GetCloudPrintURL();
+ return url.host_piece() == cloud_print_url.host_piece() &&
+ url.scheme_piece() == cloud_print_url.scheme_piece() &&
base::StartsWith(url.path(), cloud_print_url.path(),
base::CompareCase::SENSITIVE);
}
« no previous file with comments | « components/autofill/core/browser/form_structure.cc ('k') | components/history/core/browser/history_match.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698