| 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 namespace base { | 10 namespace base { |
| 11 struct Feature; | 11 struct Feature; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace sync_driver { | 14 namespace sync_driver { |
| 15 class SyncService; | 15 class SyncService; |
| 16 } | 16 } |
| 17 | 17 |
| 18 class PrefService; | 18 class PrefService; |
| 19 | 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 kAutofillProfileCleanup; | 24 extern const base::Feature kAutofillProfileCleanup; |
| 24 extern const base::Feature kAutofillCreditCardSigninPromo; | 25 extern const base::Feature kAutofillScanCardholderName; |
| 25 extern const char kCreditCardSigninPromoImpressionLimitParamKey[]; | 26 extern const char kCreditCardSigninPromoImpressionLimitParamKey[]; |
| 26 | 27 |
| 27 // Returns true if autofill should be enabled. See also | 28 // Returns true if autofill should be enabled. See also |
| 28 // IsInAutofillSuggestionsDisabledExperiment below. | 29 // IsInAutofillSuggestionsDisabledExperiment below. |
| 29 bool IsAutofillEnabled(const PrefService* pref_service); | 30 bool IsAutofillEnabled(const PrefService* pref_service); |
| 30 | 31 |
| 31 // Returns true if autofill suggestions are disabled via experiment. The | 32 // Returns true if autofill suggestions are disabled via experiment. The |
| 32 // disabled experiment isn't the same as disabling autofill completely since we | 33 // disabled experiment isn't the same as disabling autofill completely since we |
| 33 // still want to run detection code for metrics purposes. This experiment just | 34 // still want to run detection code for metrics purposes. This experiment just |
| 34 // disables providing suggestions. | 35 // disables providing suggestions. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 55 // 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 |
| 56 // 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 |
| 57 // be a member of a supported domain. | 58 // be a member of a supported domain. |
| 58 bool IsCreditCardUploadEnabled(const PrefService* pref_service, | 59 bool IsCreditCardUploadEnabled(const PrefService* pref_service, |
| 59 const sync_driver::SyncService* sync_service, | 60 const sync_driver::SyncService* sync_service, |
| 60 const std::string& user_email); | 61 const std::string& user_email); |
| 61 | 62 |
| 62 } // namespace autofill | 63 } // namespace autofill |
| 63 | 64 |
| 64 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ | 65 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ |
| OLD | NEW |