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

Unified Diff: chrome/browser/google/google_brand.cc

Issue 1220963005: Update base::StartsWith calls to new form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@starts_with
Patch Set: Created 5 years, 6 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/google/google_brand.cc
diff --git a/chrome/browser/google/google_brand.cc b/chrome/browser/google/google_brand.cc
index 894efb5e96bb3da998e09bc40b41b38070a490e7..516918dd45a8fc0daeab891e22adbea69387ced8 100644
--- a/chrome/browser/google/google_brand.cc
+++ b/chrome/browser/google/google_brand.cc
@@ -103,9 +103,9 @@ bool IsOrganic(const std::string& brand) {
if (found != end)
return true;
- return base::StartsWithASCII(brand, "EUB", true) ||
- base::StartsWithASCII(brand, "EUC", true) ||
- base::StartsWithASCII(brand, "GGR", true);
+ return base::StartsWith(brand, "EUB", base::CompareCase::SENSITIVE) ||
+ base::StartsWith(brand, "EUC", base::CompareCase::SENSITIVE) ||
+ base::StartsWith(brand, "GGR", base::CompareCase::SENSITIVE);
}
bool IsOrganicFirstRun(const std::string& brand) {
@@ -117,8 +117,8 @@ bool IsOrganicFirstRun(const std::string& brand) {
}
#endif
- return base::StartsWithASCII(brand, "GG", true) ||
- base::StartsWithASCII(brand, "EU", true);
+ return base::StartsWith(brand, "GG", base::CompareCase::SENSITIVE) ||
+ base::StartsWith(brand, "EU", base::CompareCase::SENSITIVE);
}
bool IsInternetCafeBrandCode(const std::string& brand) {

Powered by Google App Engine
This is Rietveld 408576698