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

Unified Diff: chrome/browser/metrics/chromeos_metrics_provider.cc

Issue 1233043003: Remove some legacy versions of StartsWith and EndsWith. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: chrome/browser/metrics/chromeos_metrics_provider.cc
diff --git a/chrome/browser/metrics/chromeos_metrics_provider.cc b/chrome/browser/metrics/chromeos_metrics_provider.cc
index 8360369a34092860dcf8cada0cb3e2695a429318..7c65d0b045f68e9ca2ab5a619f458348eb0e3581 100644
--- a/chrome/browser/metrics/chromeos_metrics_provider.cc
+++ b/chrome/browser/metrics/chromeos_metrics_provider.cc
@@ -115,7 +115,7 @@ EnrollmentStatus GetEnrollmentStatus() {
return NON_MANAGED;
std::string domain = connector->GetEnterpriseDomain();
- if (base::EndsWith(domain, kEduDomain, false /* case insensitive */))
+ if (base::EndsWith(domain, kEduDomain, base::CompareCase::INSENSITIVE_ASCII))
return MANAGED_EDU;
return MANAGED_NON_EDU;
« no previous file with comments | « chrome/browser/extensions/updater/local_extension_cache.cc ('k') | chrome/browser/net/pref_proxy_config_tracker_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698