summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/policy/device_local_account.cc
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2015-07-15 23:48:05 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-16 06:48:41 +0000
commitedce9a33027cc5f73c4866d70e34f690f6720a56 (patch)
treea8dbfae7b9ebf5a5cac2bb8a02f59b1637ddfa9c /chrome/browser/chromeos/policy/device_local_account.cc
parentfc4f1d1d95a221319f4c275e870e9b7cf2dc5040 (diff)
downloadchromium_src-edce9a33027cc5f73c4866d70e34f690f6720a56.zip
chromium_src-edce9a33027cc5f73c4866d70e34f690f6720a56.tar.gz
chromium_src-edce9a33027cc5f73c4866d70e34f690f6720a56.tar.bz2
Remove some legacy versions of StartsWith and EndsWith.
This just replaces true -> base::CompareCase::SENSITIVE false -> base::CompareCase::INSENSITIVE_ASCII I checked the insensitive cases to make sure they're not doing anything suspicious. The old version is a sometimes-correct Unicode comparison so converting to INSENSTITIVE_ASCII isn't a no-op. However, generally the prefix/suffix checking is done against a hardcoded string so there were very few cases to actually look at. extensions/browser/api/declarative_webrequest/webrequest_condition_attribute.cc has a not-quite search-and-replace change where I changed the type of a class variable. BUG=506255 TBR=jam Review URL: https://codereview.chromium.org/1239493005 Cr-Commit-Position: refs/heads/master@{#338996}
Diffstat (limited to 'chrome/browser/chromeos/policy/device_local_account.cc')
-rw-r--r--chrome/browser/chromeos/policy/device_local_account.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/chromeos/policy/device_local_account.cc b/chrome/browser/chromeos/policy/device_local_account.cc
index 3e85b3c..2657377 100644
--- a/chrome/browser/chromeos/policy/device_local_account.cc
+++ b/chrome/browser/chromeos/policy/device_local_account.cc
@@ -68,7 +68,8 @@ bool IsDeviceLocalAccountUser(const std::string& user_id,
if (user_id == chromeos::login::kGuestUserName)
return false;
const std::string domain = gaia::ExtractDomainName(user_id);
- if (!base::EndsWith(domain, kDeviceLocalAccountDomainSuffix, true))
+ if (!base::EndsWith(domain, kDeviceLocalAccountDomainSuffix,
+ base::CompareCase::SENSITIVE))
return false;
const std::string domain_prefix = domain.substr(