Chromium Code Reviews

Unified Diff: chrome/browser/prefetch/prefetch_field_trial.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.
Jump to:
View side-by-side diff with in-line comments
Index: chrome/browser/prefetch/prefetch_field_trial.cc
diff --git a/chrome/browser/prefetch/prefetch_field_trial.cc b/chrome/browser/prefetch/prefetch_field_trial.cc
index e51dcb334df7e4b2b82c1436bc1ea757f89b15a1..f984a3a16121a9576ad94e2efeb8f6f87f3d109d 100644
--- a/chrome/browser/prefetch/prefetch_field_trial.cc
+++ b/chrome/browser/prefetch/prefetch_field_trial.cc
@@ -14,7 +14,8 @@ namespace prefetch {
bool DisableForFieldTrial() {
std::string experiment = base::FieldTrialList::FindFullName("Prefetch");
- return base::StartsWithASCII(experiment, "ExperimentDisable", false);
+ return base::StartsWith(experiment, "ExperimentDisable",
+ base::CompareCase::INSENSITIVE_ASCII);
}
} // namespace prefetch

Powered by Google App Engine