| 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 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // response of the option. | 60 // response of the option. |
| 61 bool OfferStoreUnmaskedCards(); | 61 bool OfferStoreUnmaskedCards(); |
| 62 | 62 |
| 63 // Returns true if uploading credit cards to Wallet servers is enabled. This | 63 // Returns true if uploading credit cards to Wallet servers is enabled. This |
| 64 // requires the appropriate flags and user settings to be true and the user to | 64 // requires the appropriate flags and user settings to be true and the user to |
| 65 // be a member of a supported domain. | 65 // be a member of a supported domain. |
| 66 bool IsCreditCardUploadEnabled(const PrefService* pref_service, | 66 bool IsCreditCardUploadEnabled(const PrefService* pref_service, |
| 67 const syncer::SyncService* sync_service, | 67 const syncer::SyncService* sync_service, |
| 68 const std::string& user_email); | 68 const std::string& user_email); |
| 69 | 69 |
| 70 // Returns true if the http warning switch is on, which will display a warning | |
| 71 // in the autofill dropdown when credit card fields are on an HTTP page. | |
| 72 bool IsCreditCardAutofillHttpWarningEnabled(); | |
| 73 | |
| 74 // Returns whether the new Autofill credit card popup layout experiment is | 70 // Returns whether the new Autofill credit card popup layout experiment is |
| 75 // enabled. | 71 // enabled. |
| 76 bool IsAutofillCreditCardPopupLayoutExperimentEnabled(); | 72 bool IsAutofillCreditCardPopupLayoutExperimentEnabled(); |
| 77 | 73 |
| 78 // Returns the background color for credit card autofill popup, or | 74 // Returns the background color for credit card autofill popup, or |
| 79 // |SK_ColorTRANSPARENT| if the new credit card autofill popup layout experiment | 75 // |SK_ColorTRANSPARENT| if the new credit card autofill popup layout experiment |
| 80 // is not enabled. | 76 // is not enabled. |
| 81 SkColor GetCreditCardPopupBackgroundColor(); | 77 SkColor GetCreditCardPopupBackgroundColor(); |
| 82 | 78 |
| 83 // Returns the divider color for credit card autofill popup, or | 79 // Returns the divider color for credit card autofill popup, or |
| (...skipping 14 matching lines...) Expand all Loading... |
| 98 // before the credit card value or any other suggestion text. | 94 // before the credit card value or any other suggestion text. |
| 99 bool IsIconInCreditCardPopupAtStart(); | 95 bool IsIconInCreditCardPopupAtStart(); |
| 100 | 96 |
| 101 // Modifies the suggestion value and label if the new credit card autofill popup | 97 // Modifies the suggestion value and label if the new credit card autofill popup |
| 102 // experiment is enabled to tweak the display of the value and label. | 98 // experiment is enabled to tweak the display of the value and label. |
| 103 void ModifyAutofillCreditCardSuggestion(struct Suggestion* suggestion); | 99 void ModifyAutofillCreditCardSuggestion(struct Suggestion* suggestion); |
| 104 | 100 |
| 105 } // namespace autofill | 101 } // namespace autofill |
| 106 | 102 |
| 107 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ | 103 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ |
| OLD | NEW |