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

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

Issue 2888633002: Revert of [Autofill] Enable Autofill UKM by default. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_experiments.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 kAutofillCreditCardPopupLayout; 30 extern const base::Feature kAutofillCreditCardPopupLayout;
31 extern const base::Feature kAutofillCreditCardLastUsedDateDisplay; 31 extern const base::Feature kAutofillCreditCardLastUsedDateDisplay;
32 extern const base::Feature kAutofillUkmLogging;
32 extern const base::Feature kAutofillUpstreamRequestCvcIfMissing; 33 extern const base::Feature kAutofillUpstreamRequestCvcIfMissing;
33 extern const base::Feature kAutofillUpstreamUseAutofillProfileComparatorForName; 34 extern const base::Feature kAutofillUpstreamUseAutofillProfileComparatorForName;
34 extern const base::Feature kAutofillUpstreamUseNotRecentlyUsedAutofillProfile; 35 extern const base::Feature kAutofillUpstreamUseNotRecentlyUsedAutofillProfile;
35 extern const char kCreditCardSigninPromoImpressionLimitParamKey[]; 36 extern const char kCreditCardSigninPromoImpressionLimitParamKey[];
36 extern const char kAutofillCreditCardLastUsedDateShowExpirationDateKey[]; 37 extern const char kAutofillCreditCardLastUsedDateShowExpirationDateKey[];
37 extern const char kAutofillUpstreamMaxMinutesSinceAutofillProfileUseKey[]; 38 extern const char kAutofillUpstreamMaxMinutesSinceAutofillProfileUseKey[];
38 39
39 // Returns true if autofill should be enabled. See also 40 // Returns true if autofill should be enabled. See also
40 // IsInAutofillSuggestionsDisabledExperiment below. 41 // IsInAutofillSuggestionsDisabledExperiment below.
41 bool IsAutofillEnabled(const PrefService* pref_service); 42 bool IsAutofillEnabled(const PrefService* pref_service);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 98
98 // Modifies the suggestion value and label if the new credit card autofill popup 99 // Modifies the suggestion value and label if the new credit card autofill popup
99 // experiment is enabled to tweak the display of the value and label. 100 // experiment is enabled to tweak the display of the value and label.
100 void ModifyAutofillCreditCardSuggestion(struct Suggestion* suggestion); 101 void ModifyAutofillCreditCardSuggestion(struct Suggestion* suggestion);
101 102
102 // Returns the margin for the icon, label and between icon and label. Returns 0 103 // Returns the margin for the icon, label and between icon and label. Returns 0
103 // if the margin isn't configured in an experiment to tweak autofill popup 104 // if the margin isn't configured in an experiment to tweak autofill popup
104 // layout. 105 // layout.
105 unsigned int GetPopupMargin(); 106 unsigned int GetPopupMargin();
106 107
108 // Returns whether the feature to log UKMs is enabled.
109 bool IsUkmLoggingEnabled();
110
107 // Returns whether the experiment is enabled where Chrome Upstream requests CVC 111 // Returns whether the experiment is enabled where Chrome Upstream requests CVC
108 // in the offer to save bubble if it was not detected during the checkout flow. 112 // in the offer to save bubble if it was not detected during the checkout flow.
109 bool IsAutofillUpstreamRequestCvcIfMissingExperimentEnabled(); 113 bool IsAutofillUpstreamRequestCvcIfMissingExperimentEnabled();
110 114
111 // Returns the maximum time that could have elapsed since an address profile's 115 // Returns the maximum time that could have elapsed since an address profile's
112 // most recent use for the adress profile to be included in the candidate set 116 // most recent use for the adress profile to be included in the candidate set
113 // for card upload. Returns 0 if the experiment is not enabled. 117 // for card upload. Returns 0 if the experiment is not enabled.
114 base::TimeDelta GetMaxTimeSinceAutofillProfileUseForCardUpload(); 118 base::TimeDelta GetMaxTimeSinceAutofillProfileUseForCardUpload();
115 119
116 } // namespace autofill 120 } // namespace autofill
117 121
118 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ 122 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_
OLDNEW
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_experiments.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698