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

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

Issue 2874413004: [Autofill] Enable Autofill UKM by default. (Closed)
Patch Set: Fixed all but one test 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
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 #include "components/autofill/core/browser/autofill_experiments.h" 5 #include "components/autofill/core/browser/autofill_experiments.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/feature_list.h" 8 #include "base/feature_list.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 14 matching lines...) Expand all
25 namespace autofill { 25 namespace autofill {
26 26
27 const base::Feature kAutofillCreditCardAssist{ 27 const base::Feature kAutofillCreditCardAssist{
28 "AutofillCreditCardAssist", base::FEATURE_DISABLED_BY_DEFAULT}; 28 "AutofillCreditCardAssist", base::FEATURE_DISABLED_BY_DEFAULT};
29 const base::Feature kAutofillScanCardholderName{ 29 const base::Feature kAutofillScanCardholderName{
30 "AutofillScanCardholderName", base::FEATURE_DISABLED_BY_DEFAULT}; 30 "AutofillScanCardholderName", base::FEATURE_DISABLED_BY_DEFAULT};
31 const base::Feature kAutofillCreditCardPopupLayout{ 31 const base::Feature kAutofillCreditCardPopupLayout{
32 "AutofillCreditCardPopupLayout", base::FEATURE_DISABLED_BY_DEFAULT}; 32 "AutofillCreditCardPopupLayout", base::FEATURE_DISABLED_BY_DEFAULT};
33 const base::Feature kAutofillCreditCardLastUsedDateDisplay{ 33 const base::Feature kAutofillCreditCardLastUsedDateDisplay{
34 "AutofillCreditCardLastUsedDateDisplay", base::FEATURE_DISABLED_BY_DEFAULT}; 34 "AutofillCreditCardLastUsedDateDisplay", base::FEATURE_DISABLED_BY_DEFAULT};
35 const base::Feature kAutofillUkmLogging{"AutofillUkmLogging",
36 base::FEATURE_DISABLED_BY_DEFAULT};
37 const base::Feature kAutofillUpstreamRequestCvcIfMissing{ 35 const base::Feature kAutofillUpstreamRequestCvcIfMissing{
38 "AutofillUpstreamRequestCvcIfMissing", base::FEATURE_DISABLED_BY_DEFAULT}; 36 "AutofillUpstreamRequestCvcIfMissing", base::FEATURE_DISABLED_BY_DEFAULT};
39 const base::Feature kAutofillUpstreamUseAutofillProfileComparatorForName{ 37 const base::Feature kAutofillUpstreamUseAutofillProfileComparatorForName{
40 "AutofillUpstreamUseAutofillProfileComparatorForName", 38 "AutofillUpstreamUseAutofillProfileComparatorForName",
41 base::FEATURE_ENABLED_BY_DEFAULT}; 39 base::FEATURE_ENABLED_BY_DEFAULT};
42 const char kCreditCardSigninPromoImpressionLimitParamKey[] = "impression_limit"; 40 const char kCreditCardSigninPromoImpressionLimitParamKey[] = "impression_limit";
43 const char kAutofillCreditCardPopupBackgroundColorKey[] = "background_color"; 41 const char kAutofillCreditCardPopupBackgroundColorKey[] = "background_color";
44 const char kAutofillCreditCardPopupDividerColorKey[] = "dropdown_divider_color"; 42 const char kAutofillCreditCardPopupDividerColorKey[] = "dropdown_divider_color";
45 const char kAutofillCreditCardPopupValueBoldKey[] = "is_value_bold"; 43 const char kAutofillCreditCardPopupValueBoldKey[] = "is_value_bold";
46 const char kAutofillCreditCardPopupIsValueAndLabelInSingleLineKey[] = 44 const char kAutofillCreditCardPopupIsValueAndLabelInSingleLineKey[] =
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 return true; 221 return true;
224 } 222 }
225 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 223 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
226 switches::kDisableOfferUploadCreditCards)) { 224 switches::kDisableOfferUploadCreditCards)) {
227 return false; 225 return false;
228 } 226 }
229 227
230 return !group_name.empty() && group_name != "Disabled"; 228 return !group_name.empty() && group_name != "Disabled";
231 } 229 }
232 230
233 bool IsUkmLoggingEnabled() {
234 return base::FeatureList::IsEnabled(kAutofillUkmLogging);
235 }
236
237 bool IsAutofillUpstreamRequestCvcIfMissingExperimentEnabled() { 231 bool IsAutofillUpstreamRequestCvcIfMissingExperimentEnabled() {
238 #if defined(OS_ANDROID) 232 #if defined(OS_ANDROID)
239 return false; 233 return false;
240 #else 234 #else
241 return base::FeatureList::IsEnabled(kAutofillUpstreamRequestCvcIfMissing); 235 return base::FeatureList::IsEnabled(kAutofillUpstreamRequestCvcIfMissing);
242 #endif 236 #endif
243 } 237 }
244 238
245 } // namespace autofill 239 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698