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

Unified Diff: chrome/browser/profile_resetter/automatic_profile_resetter.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/profile_resetter/automatic_profile_resetter.cc
diff --git a/chrome/browser/profile_resetter/automatic_profile_resetter.cc b/chrome/browser/profile_resetter/automatic_profile_resetter.cc
index f932946afebb851d49239a4394e0ed39a308eac9..e6c886d1e4c76f2e4098a95a0b106b182c2baa35 100644
--- a/chrome/browser/profile_resetter/automatic_profile_resetter.cc
+++ b/chrome/browser/profile_resetter/automatic_profile_resetter.cc
@@ -85,16 +85,17 @@ const uint32 kCombinedStatusMaskMaximumValue =
// Returns whether or not a dry-run shall be performed.
bool ShouldPerformDryRun() {
- return base::StartsWithASCII(
+ return base::StartsWith(
base::FieldTrialList::FindFullName(kAutomaticProfileResetStudyName),
- kAutomaticProfileResetStudyDryRunGroupName, true);
+ kAutomaticProfileResetStudyDryRunGroupName, base::CompareCase::SENSITIVE);
}
// Returns whether or not a live-run shall be performed.
bool ShouldPerformLiveRun() {
- return base::StartsWithASCII(
+ return base::StartsWith(
base::FieldTrialList::FindFullName(kAutomaticProfileResetStudyName),
- kAutomaticProfileResetStudyEnabledGroupName, true);
+ kAutomaticProfileResetStudyEnabledGroupName,
+ base::CompareCase::SENSITIVE);
}
// If the currently active experiment group prescribes a |program| and

Powered by Google App Engine
This is Rietveld 408576698