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 #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/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "components/autofill/core/common/autofill_pref_names.h" | 13 #include "components/autofill/core/common/autofill_pref_names.h" |
14 #include "components/autofill/core/common/autofill_switches.h" | 14 #include "components/autofill/core/common/autofill_switches.h" |
15 #include "components/prefs/pref_service.h" | 15 #include "components/prefs/pref_service.h" |
16 #include "components/sync_driver/sync_service.h" | 16 #include "components/sync/driver/sync_service.h" |
17 #include "components/variations/variations_associated_data.h" | 17 #include "components/variations/variations_associated_data.h" |
18 #include "google_apis/gaia/gaia_auth_util.h" | 18 #include "google_apis/gaia/gaia_auth_util.h" |
19 | 19 |
20 namespace autofill { | 20 namespace autofill { |
21 | 21 |
22 const base::Feature kAutofillCreditCardAssist{ | 22 const base::Feature kAutofillCreditCardAssist{ |
23 "AutofillCreditCardAssist", base::FEATURE_DISABLED_BY_DEFAULT}; | 23 "AutofillCreditCardAssist", base::FEATURE_DISABLED_BY_DEFAULT}; |
24 const base::Feature kAutofillProfileCleanup{"AutofillProfileCleanup", | 24 const base::Feature kAutofillProfileCleanup{"AutofillProfileCleanup", |
25 base::FEATURE_DISABLED_BY_DEFAULT}; | 25 base::FEATURE_DISABLED_BY_DEFAULT}; |
26 const base::Feature kAutofillCreditCardSigninPromo{ | 26 const base::Feature kAutofillCreditCardSigninPromo{ |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 } | 133 } |
134 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 134 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
135 switches::kDisableOfferUploadCreditCards)) { | 135 switches::kDisableOfferUploadCreditCards)) { |
136 return false; | 136 return false; |
137 } | 137 } |
138 | 138 |
139 return !group_name.empty() && group_name != "Disabled"; | 139 return !group_name.empty() && group_name != "Disabled"; |
140 } | 140 } |
141 | 141 |
142 } // namespace autofill | 142 } // namespace autofill |
OLD | NEW |