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

Unified Diff: components/cloud_devices/common/cloud_devices_urls.cc

Issue 1242023005: Remove legacy StartsWithASCII function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: y Created 5 years, 5 months 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 beaf70511abd76d85906abd61331b2b5230e648c..5a9a15e46b12990af2fb24c3320b7fd546bc34b7 100644
--- a/components/cloud_devices/common/cloud_devices_urls.cc
+++ b/components/cloud_devices/common/cloud_devices_urls.cc
@@ -85,7 +85,8 @@ bool IsCloudPrintURL(const GURL& url) {
GURL cloud_print_url = GetCloudPrintURL();
return url.host() == cloud_print_url.host() &&
url.scheme() == cloud_print_url.scheme() &&
- base::StartsWithASCII(url.path(), cloud_print_url.path(), true);
+ base::StartsWith(url.path(), cloud_print_url.path(),
+ base::CompareCase::SENSITIVE);
}
GURL GetCloudPrintEnableURL(const std::string& proxy_id) {

Powered by Google App Engine
This is Rietveld 408576698