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

Unified Diff: ios/chrome/browser/experimental_flags.mm

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: ios/chrome/browser/experimental_flags.mm
diff --git a/ios/chrome/browser/experimental_flags.mm b/ios/chrome/browser/experimental_flags.mm
index 79718ebdc5c3c9ea897acf607251a0307b944c6f..a44cfeb5dcd26077c996f7246d0fe2c6e9ac18f7 100644
--- a/ios/chrome/browser/experimental_flags.mm
+++ b/ios/chrome/browser/experimental_flags.mm
@@ -71,7 +71,8 @@ bool IsWKWebViewEnabled() {
}
// Check if the finch experiment is turned on.
- return base::StartsWithASCII(group_name, "Enabled", false);
+ return base::StartsWith(group_name, "Enabled",
+ base::CompareCase::INSENSITIVE_ASCII);
}
size_t MemoryWedgeSizeInMB() {
« no previous file with comments | « ios/chrome/app/safe_mode_util_unittest.cc ('k') | ios/net/clients/crn_forwarding_network_client_factory_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698