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

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

Issue 2711543002: Experiment to add bank name in autofill ui. (Closed)
Patch Set: Experiment to add bank name in autofill ui. Created 3 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
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"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "third_party/skia/include/core/SkColor.h" 12 #include "third_party/skia/include/core/SkColor.h"
13 13
14 class PrefService; 14 class PrefService;
15 15
16 namespace base { 16 namespace base {
17 struct Feature; 17 struct Feature;
18 } 18 }
19 19
20 namespace syncer { 20 namespace syncer {
21 class SyncService; 21 class SyncService;
22 } 22 }
23 23
24 namespace autofill { 24 namespace autofill {
25 25
26 struct Suggestion; 26 struct Suggestion;
27 27
28 extern const base::Feature kAutofillCreditCardAssist; 28 extern const base::Feature kAutofillCreditCardAssist;
29 extern const base::Feature kAutofillScanCardholderName; 29 extern const base::Feature kAutofillScanCardholderName;
30 extern const base::Feature kAutofillCreditCardBankNameDisplay;
30 extern const base::Feature kAutofillCreditCardPopupLayout; 31 extern const base::Feature kAutofillCreditCardPopupLayout;
31 extern const base::Feature kAutofillCreditCardLastUsedDateDisplay; 32 extern const base::Feature kAutofillCreditCardLastUsedDateDisplay;
32 extern const base::Feature kAutofillOfferLocalSaveIfServerCardManuallyEntered; 33 extern const base::Feature kAutofillOfferLocalSaveIfServerCardManuallyEntered;
33 extern const base::Feature kAutofillUpstreamRequestCvcIfMissing; 34 extern const base::Feature kAutofillUpstreamRequestCvcIfMissing;
34 extern const base::Feature kAutofillUpstreamUseAutofillProfileComparator; 35 extern const base::Feature kAutofillUpstreamUseAutofillProfileComparator;
35 extern const base::Feature kAutofillUpstreamUseNotRecentlyUsedAutofillProfile; 36 extern const base::Feature kAutofillUpstreamUseNotRecentlyUsedAutofillProfile;
36 extern const char kCreditCardSigninPromoImpressionLimitParamKey[]; 37 extern const char kCreditCardSigninPromoImpressionLimitParamKey[];
37 extern const char kAutofillCreditCardLastUsedDateShowExpirationDateKey[]; 38 extern const char kAutofillCreditCardLastUsedDateShowExpirationDateKey[];
38 extern const char kAutofillUpstreamMaxMinutesSinceAutofillProfileUseKey[]; 39 extern const char kAutofillUpstreamMaxMinutesSinceAutofillProfileUseKey[];
39 40
(...skipping 26 matching lines...) Expand all
66 // enabled. 67 // enabled.
67 bool IsAutofillCreditCardPopupLayoutExperimentEnabled(); 68 bool IsAutofillCreditCardPopupLayoutExperimentEnabled();
68 69
69 // Returns whether Autofill credit card last used date display experiment is 70 // Returns whether Autofill credit card last used date display experiment is
70 // enabled. 71 // enabled.
71 bool IsAutofillCreditCardLastUsedDateDisplayExperimentEnabled(); 72 bool IsAutofillCreditCardLastUsedDateDisplayExperimentEnabled();
72 73
73 // Returns whether Autofill credit card last used date shows expiration date. 74 // Returns whether Autofill credit card last used date shows expiration date.
74 bool ShowExpirationDateInAutofillCreditCardLastUsedDate(); 75 bool ShowExpirationDateInAutofillCreditCardLastUsedDate();
75 76
77 // Returns whether Autofill credit card bank name display experiment is enabled.
78 bool IsAutofillCreditCardBankNameDisplayExperimentEnabled();
79
76 // Returns the background color for credit card autofill popup, or 80 // Returns the background color for credit card autofill popup, or
77 // |SK_ColorTRANSPARENT| if the new credit card autofill popup layout experiment 81 // |SK_ColorTRANSPARENT| if the new credit card autofill popup layout experiment
78 // is not enabled. 82 // is not enabled.
79 SkColor GetCreditCardPopupBackgroundColor(); 83 SkColor GetCreditCardPopupBackgroundColor();
80 84
81 // Returns the divider color for credit card autofill popup, or 85 // Returns the divider color for credit card autofill popup, or
82 // |SK_ColorTRANSPARENT| if the new credit card autofill popup layout experiment 86 // |SK_ColorTRANSPARENT| if the new credit card autofill popup layout experiment
83 // is not enabled. 87 // is not enabled.
84 SkColor GetCreditCardPopupDividerColor(); 88 SkColor GetCreditCardPopupDividerColor();
85 89
(...skipping 30 matching lines...) Expand all
116 bool IsAutofillUpstreamRequestCvcIfMissingExperimentEnabled(); 120 bool IsAutofillUpstreamRequestCvcIfMissingExperimentEnabled();
117 121
118 // Returns the maximum time that could have elapsed since an address profile's 122 // Returns the maximum time that could have elapsed since an address profile's
119 // most recent use for the adress profile to be included in the candidate set 123 // most recent use for the adress profile to be included in the candidate set
120 // for card upload. Returns 0 if the experiment is not enabled. 124 // for card upload. Returns 0 if the experiment is not enabled.
121 base::TimeDelta GetMaxTimeSinceAutofillProfileUseForCardUpload(); 125 base::TimeDelta GetMaxTimeSinceAutofillProfileUseForCardUpload();
122 126
123 } // namespace autofill 127 } // namespace autofill
124 128
125 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ 129 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/flag_descriptions.cc ('k') | components/autofill/core/browser/autofill_experiments.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698