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

Side by Side Diff: components/autofill/core/browser/autofill_experiments.h

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 unified diff | Download patch
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_experiments.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace base {
11 struct Feature;
12 }
13
10 namespace sync_driver { 14 namespace sync_driver {
11 class SyncService; 15 class SyncService;
12 } 16 }
13 17
14 class PrefService; 18 class PrefService;
15 19
16 namespace autofill { 20 namespace autofill {
17 21
22 extern const base::Feature kAutofillProfileCleanup;
23
18 // Returns true if autofill should be enabled. See also 24 // Returns true if autofill should be enabled. See also
19 // IsInAutofillSuggestionsDisabledExperiment below. 25 // IsInAutofillSuggestionsDisabledExperiment below.
20 bool IsAutofillEnabled(const PrefService* pref_service); 26 bool IsAutofillEnabled(const PrefService* pref_service);
21 27
22 // Returns true if autofill suggestions are disabled via experiment. The 28 // Returns true if autofill suggestions are disabled via experiment. The
23 // disabled experiment isn't the same as disabling autofill completely since we 29 // disabled experiment isn't the same as disabling autofill completely since we
24 // still want to run detection code for metrics purposes. This experiment just 30 // still want to run detection code for metrics purposes. This experiment just
25 // disables providing suggestions. 31 // disables providing suggestions.
26 bool IsInAutofillSuggestionsDisabledExperiment(); 32 bool IsInAutofillSuggestionsDisabledExperiment();
27 33
34 // Returns whether the Autofill profile cleanup feature is enabled.
35 bool IsAutofillProfileCleanupEnabled();
36
28 // Returns true if the user should be offered to locally store unmasked cards. 37 // Returns true if the user should be offered to locally store unmasked cards.
29 // This controls whether the option is presented at all rather than the default 38 // This controls whether the option is presented at all rather than the default
30 // response of the option. 39 // response of the option.
31 bool OfferStoreUnmaskedCards(); 40 bool OfferStoreUnmaskedCards();
32 41
33 // Returns true if uploading credit cards to Wallet servers is enabled. This 42 // Returns true if uploading credit cards to Wallet servers is enabled. This
34 // requires the appropriate flags and user settings to be true and the user to 43 // requires the appropriate flags and user settings to be true and the user to
35 // be a member of a supported domain. 44 // be a member of a supported domain.
36 bool IsCreditCardUploadEnabled(const PrefService* pref_service, 45 bool IsCreditCardUploadEnabled(const PrefService* pref_service,
37 const sync_driver::SyncService* sync_service, 46 const sync_driver::SyncService* sync_service,
38 const std::string& user_email); 47 const std::string& user_email);
39 48
40 } // namespace autofill 49 } // namespace autofill
41 50
42 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ 51 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_
OLDNEW
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_experiments.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698