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

Unified Diff: chrome/browser/profile_resetter/triggered_profile_resetter_win.cc

Issue 2399903002: Switch TriggeredResets to default to On. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profile_resetter/triggered_profile_resetter_win.cc
diff --git a/chrome/browser/profile_resetter/triggered_profile_resetter_win.cc b/chrome/browser/profile_resetter/triggered_profile_resetter_win.cc
index db5426b655031415900754ae96a3a1b76638bd7b..c52eb7c4885213073d9a5662083e97371cec6d15 100644
--- a/chrome/browser/profile_resetter/triggered_profile_resetter_win.cc
+++ b/chrome/browser/profile_resetter/triggered_profile_resetter_win.cc
@@ -34,11 +34,11 @@ const wchar_t kTriggeredResetTimestamp[] = L"Timestamp";
namespace {
const char kTriggeredResetFieldTrialName[] = "TriggeredResetFieldTrial";
-const char kTriggeredResetOnGroup[] = "On";
+const char kTriggeredResetOffGroup[] = "Off";
-bool IsInTriggeredResetFieldTrial() {
+bool IsDisabledByFieldTrial() {
return base::FieldTrialList::FindFullName(kTriggeredResetFieldTrialName) ==
- kTriggeredResetOnGroup;
+ kTriggeredResetOffGroup;
}
} // namespace
@@ -48,8 +48,7 @@ void TriggeredProfileResetter::Activate() {
// System profiles don't contain user settings and bail out if we're not in
// the field trial.
- if (!profile_ || profile_->IsSystemProfile() ||
- !IsInTriggeredResetFieldTrial()) {
+ if (!profile_ || profile_->IsSystemProfile() || IsDisabledByFieldTrial()) {
UMA_HISTOGRAM_BOOLEAN("Profile.TriggeredReset", false);
return;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698