diff options
author | brettw <brettw@chromium.org> | 2015-07-16 16:57:33 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-16 23:58:34 +0000 |
commit | 955093110ad64d5ec6f5426991efaa4a680b5d6f (patch) | |
tree | 19368cdb8861595640715e1072789959729efc2d /components/cloud_devices | |
parent | 387e05a79c7ae346ba7db36977ddfca7ca6f10a3 (diff) | |
download | chromium_src-955093110ad64d5ec6f5426991efaa4a680b5d6f.zip chromium_src-955093110ad64d5ec6f5426991efaa4a680b5d6f.tar.gz chromium_src-955093110ad64d5ec6f5426991efaa4a680b5d6f.tar.bz2 |
Remove legacy StartsWithASCII function.
This replaces it with base::StartsWith and the appropriate case flag. Since the existing version only ever did case-insensitive tests in ASCII, there should be no behavior change.
BUG=506255
TBR=jam
Review URL: https://codereview.chromium.org/1242023005
Cr-Commit-Position: refs/heads/master@{#339175}
Diffstat (limited to 'components/cloud_devices')
-rw-r--r-- | components/cloud_devices/common/cloud_devices_urls.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/cloud_devices/common/cloud_devices_urls.cc b/components/cloud_devices/common/cloud_devices_urls.cc index beaf705..5a9a15e4 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) { |