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

Unified Diff: remoting/host/it2me/it2me_host.cc

Issue 1239493005: Remove some legacy versions of StartsWith and EndsWith. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 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/it2me/it2me_host.cc
diff --git a/remoting/host/it2me/it2me_host.cc b/remoting/host/it2me/it2me_host.cc
index 49cca624e1ba4b0137b824cc388e6e079d375ba7..fe9e8c6176a0d4f00188e1bcca28ad17984ad8b4 100644
--- a/remoting/host/it2me/it2me_host.cc
+++ b/remoting/host/it2me/it2me_host.cc
@@ -197,7 +197,8 @@ void It2MeHost::FinishConnect() {
// Check the host domain policy.
if (!required_host_domain_.empty() &&
!base::EndsWith(xmpp_server_config_.username,
- std::string("@") + required_host_domain_, false)) {
+ std::string("@") + required_host_domain_,
+ base::CompareCase::INSENSITIVE_ASCII)) {
SetState(kInvalidDomainError, "");
return;
}

Powered by Google App Engine
This is Rietveld 408576698