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

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

Issue 2607043002: [Autofill] Credit Card Autofill Last Used Date Experiment (Closed)
Patch Set: Show expiration date if keyboard accessory is enabled Created 3 years, 11 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
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 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 11 matching lines...) Expand all
22 22
23 namespace autofill { 23 namespace autofill {
24 24
25 struct Suggestion; 25 struct Suggestion;
26 26
27 extern const base::Feature kAutofillCreditCardAssist; 27 extern const base::Feature kAutofillCreditCardAssist;
28 extern const base::Feature kAutofillCreditCardSigninPromo; 28 extern const base::Feature kAutofillCreditCardSigninPromo;
29 extern const base::Feature kAutofillProfileCleanup; 29 extern const base::Feature kAutofillProfileCleanup;
30 extern const base::Feature kAutofillScanCardholderName; 30 extern const base::Feature kAutofillScanCardholderName;
31 extern const base::Feature kAutofillCreditCardPopupLayout; 31 extern const base::Feature kAutofillCreditCardPopupLayout;
32 extern const base::Feature kAutofillCreditCardLastUsedDateDisplay;
32 extern const char kCreditCardSigninPromoImpressionLimitParamKey[]; 33 extern const char kCreditCardSigninPromoImpressionLimitParamKey[];
33 extern const char kAutofillCreditCardPopupSettingsSuggestionValueKey[]; 34 extern const char kAutofillCreditCardPopupSettingsSuggestionValueKey[];
34 35
35 // Returns true if autofill should be enabled. See also 36 // Returns true if autofill should be enabled. See also
36 // IsInAutofillSuggestionsDisabledExperiment below. 37 // IsInAutofillSuggestionsDisabledExperiment below.
37 bool IsAutofillEnabled(const PrefService* pref_service); 38 bool IsAutofillEnabled(const PrefService* pref_service);
38 39
39 // Returns true if autofill suggestions are disabled via experiment. The 40 // Returns true if autofill suggestions are disabled via experiment. The
40 // disabled experiment isn't the same as disabling autofill completely since we 41 // disabled experiment isn't the same as disabling autofill completely since we
41 // still want to run detection code for metrics purposes. This experiment just 42 // still want to run detection code for metrics purposes. This experiment just
(...skipping 22 matching lines...) Expand all
64 // requires the appropriate flags and user settings to be true and the user to 65 // requires the appropriate flags and user settings to be true and the user to
65 // be a member of a supported domain. 66 // be a member of a supported domain.
66 bool IsCreditCardUploadEnabled(const PrefService* pref_service, 67 bool IsCreditCardUploadEnabled(const PrefService* pref_service,
67 const syncer::SyncService* sync_service, 68 const syncer::SyncService* sync_service,
68 const std::string& user_email); 69 const std::string& user_email);
69 70
70 // Returns whether the new Autofill credit card popup layout experiment is 71 // Returns whether the new Autofill credit card popup layout experiment is
71 // enabled. 72 // enabled.
72 bool IsAutofillCreditCardPopupLayoutExperimentEnabled(); 73 bool IsAutofillCreditCardPopupLayoutExperimentEnabled();
73 74
75 // Returns whether Autofill credit card last used date display experiment is
76 // enabled.
77 bool IsAutofillCreditCardLastUsedDateDisplayExperimentEnabled();
csashi 2017/01/03 20:54:06 Would DisplayLastUsedDateInsteadOfExpDate (or some
jiahuiguo 2017/01/18 00:13:44 Synced with Alex, we want to show the expiration d
78
74 // Returns the background color for credit card autofill popup, or 79 // Returns the background color for credit card autofill popup, or
75 // |SK_ColorTRANSPARENT| if the new credit card autofill popup layout experiment 80 // |SK_ColorTRANSPARENT| if the new credit card autofill popup layout experiment
76 // is not enabled. 81 // is not enabled.
77 SkColor GetCreditCardPopupBackgroundColor(); 82 SkColor GetCreditCardPopupBackgroundColor();
78 83
79 // Returns the divider color for credit card autofill popup, or 84 // Returns the divider color for credit card autofill popup, or
80 // |SK_ColorTRANSPARENT| if the new credit card autofill popup layout experiment 85 // |SK_ColorTRANSPARENT| if the new credit card autofill popup layout experiment
81 // is not enabled. 86 // is not enabled.
82 SkColor GetCreditCardPopupDividerColor(); 87 SkColor GetCreditCardPopupDividerColor();
83 88
(...skipping 10 matching lines...) Expand all
94 // before the credit card value or any other suggestion text. 99 // before the credit card value or any other suggestion text.
95 bool IsIconInCreditCardPopupAtStart(); 100 bool IsIconInCreditCardPopupAtStart();
96 101
97 // Modifies the suggestion value and label if the new credit card autofill popup 102 // Modifies the suggestion value and label if the new credit card autofill popup
98 // experiment is enabled to tweak the display of the value and label. 103 // experiment is enabled to tweak the display of the value and label.
99 void ModifyAutofillCreditCardSuggestion(struct Suggestion* suggestion); 104 void ModifyAutofillCreditCardSuggestion(struct Suggestion* suggestion);
100 105
101 } // namespace autofill 106 } // namespace autofill
102 107
103 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ 108 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698