OLD | NEW |
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 class PrefService; |
| 11 |
10 namespace base { | 12 namespace base { |
11 struct Feature; | 13 struct Feature; |
12 } | 14 } |
13 | 15 |
14 namespace sync_driver { | 16 namespace syncer { |
15 class SyncService; | 17 class SyncService; |
16 } | 18 } |
17 | 19 |
18 class PrefService; | |
19 | |
20 namespace autofill { | 20 namespace autofill { |
21 | 21 |
22 extern const base::Feature kAutofillCreditCardAssist; | 22 extern const base::Feature kAutofillCreditCardAssist; |
23 extern const base::Feature kAutofillCreditCardSigninPromo; | 23 extern const base::Feature kAutofillCreditCardSigninPromo; |
24 extern const base::Feature kAutofillProfileCleanup; | 24 extern const base::Feature kAutofillProfileCleanup; |
25 extern const base::Feature kAutofillScanCardholderName; | 25 extern const base::Feature kAutofillScanCardholderName; |
26 extern const char kCreditCardSigninPromoImpressionLimitParamKey[]; | 26 extern const char kCreditCardSigninPromoImpressionLimitParamKey[]; |
27 | 27 |
28 // Returns true if autofill should be enabled. See also | 28 // Returns true if autofill should be enabled. See also |
29 // IsInAutofillSuggestionsDisabledExperiment below. | 29 // IsInAutofillSuggestionsDisabledExperiment below. |
(...skipping 20 matching lines...) Expand all Loading... |
50 | 50 |
51 // Returns true if the user should be offered to locally store unmasked cards. | 51 // Returns true if the user should be offered to locally store unmasked cards. |
52 // This controls whether the option is presented at all rather than the default | 52 // This controls whether the option is presented at all rather than the default |
53 // response of the option. | 53 // response of the option. |
54 bool OfferStoreUnmaskedCards(); | 54 bool OfferStoreUnmaskedCards(); |
55 | 55 |
56 // Returns true if uploading credit cards to Wallet servers is enabled. This | 56 // Returns true if uploading credit cards to Wallet servers is enabled. This |
57 // requires the appropriate flags and user settings to be true and the user to | 57 // requires the appropriate flags and user settings to be true and the user to |
58 // be a member of a supported domain. | 58 // be a member of a supported domain. |
59 bool IsCreditCardUploadEnabled(const PrefService* pref_service, | 59 bool IsCreditCardUploadEnabled(const PrefService* pref_service, |
60 const sync_driver::SyncService* sync_service, | 60 const syncer::SyncService* sync_service, |
61 const std::string& user_email); | 61 const std::string& user_email); |
62 | 62 |
63 } // namespace autofill | 63 } // namespace autofill |
64 | 64 |
65 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ | 65 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ |
OLD | NEW |