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

Unified Diff: components/autofill/core/browser/autofill_experiments.cc

Issue 2060223004: [Autofill] Put Autofill Profile Cleanup behing a feature flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ios fix Created 4 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: components/autofill/core/browser/autofill_experiments.cc
diff --git a/components/autofill/core/browser/autofill_experiments.cc b/components/autofill/core/browser/autofill_experiments.cc
index 232f1cefdbeb662718bd2532a5013cbcb3814cef..364b8c622c964b5ba049f5ba67fb37856764e333 100644
--- a/components/autofill/core/browser/autofill_experiments.cc
+++ b/components/autofill/core/browser/autofill_experiments.cc
@@ -5,6 +5,7 @@
#include "components/autofill/core/browser/autofill_experiments.h"
#include "base/command_line.h"
+#include "base/feature_list.h"
#include "base/metrics/field_trial.h"
#include "base/strings/string_util.h"
#include "build/build_config.h"
@@ -16,6 +17,9 @@
namespace autofill {
+const base::Feature kAutofillProfileCleanup{"AutofillProfileCleanup",
+ base::FEATURE_DISABLED_BY_DEFAULT};
+
bool IsAutofillEnabled(const PrefService* pref_service) {
return pref_service->GetBoolean(prefs::kAutofillEnabled);
}
@@ -26,6 +30,10 @@ bool IsInAutofillSuggestionsDisabledExperiment() {
return group_name == "Disabled";
}
+bool IsAutofillProfileCleanupEnabled() {
+ return base::FeatureList::IsEnabled(kAutofillProfileCleanup);
+}
+
bool OfferStoreUnmaskedCards() {
#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
// The checkbox can be forced on with a flag, but by default we don't store
« no previous file with comments | « components/autofill/core/browser/autofill_experiments.h ('k') | components/autofill/core/browser/autofill_merge_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698