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

Unified Diff: remoting/host/remoting_me2me_host.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: remoting/host/remoting_me2me_host.cc
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
index 0970feb498774b86c39b76798a583f34fbe837e9..7658bd0442e3f56df90f2cc2810b2a52747fcb1e 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -1134,7 +1134,8 @@ void HostProcess::ApplyUsernamePolicy() {
std::string username = GetUsername();
bool shutdown =
username.empty() ||
- !base::StartsWithASCII(host_owner_, username + std::string("@"), false);
+ !base::StartsWith(host_owner_, username + std::string("@"),
+ base::CompareCase::INSENSITIVE_ASCII);
#if defined(OS_MACOSX)
// On Mac, we run as root at the login screen, so the username won't match.
« no previous file with comments | « remoting/host/it2me/it2me_native_messaging_host.cc ('k') | remoting/protocol/me2me_host_authenticator_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698