summaryrefslogtreecommitdiffstats
path: root/remoting/host/it2me
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2015-07-16 16:57:33 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-16 23:58:34 +0000
commit955093110ad64d5ec6f5426991efaa4a680b5d6f (patch)
tree19368cdb8861595640715e1072789959729efc2d /remoting/host/it2me
parent387e05a79c7ae346ba7db36977ddfca7ca6f10a3 (diff)
downloadchromium_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 'remoting/host/it2me')
-rw-r--r--remoting/host/it2me/it2me_native_messaging_host.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/remoting/host/it2me/it2me_native_messaging_host.cc b/remoting/host/it2me/it2me_native_messaging_host.cc
index ddd58d3..1bf175e 100644
--- a/remoting/host/it2me/it2me_native_messaging_host.cc
+++ b/remoting/host/it2me/it2me_native_messaging_host.cc
@@ -168,8 +168,8 @@ void It2MeNativeMessagingHost::ProcessConnect(
// the authServiceWithToken field. But auth service part is always expected to
// be set to oauth2.
const char kOAuth2ServicePrefix[] = "oauth2:";
- if (!base::StartsWithASCII(auth_service_with_token, kOAuth2ServicePrefix,
- true)) {
+ if (!base::StartsWith(auth_service_with_token, kOAuth2ServicePrefix,
+ base::CompareCase::SENSITIVE)) {
SendErrorAndExit(response.Pass(), "Invalid 'authServiceWithToken': " +
auth_service_with_token);
return;