| Index: components/autofill/core/browser/autofill_experiments.cc
|
| diff --git a/components/autofill/core/browser/autofill_experiments.cc b/components/autofill/core/browser/autofill_experiments.cc
|
| index 5d22b24a6845031cf460fed9f00b6a6899a6c306..8f5c3bf6e8d725130699d4d5e1f4840d27c51e7a 100644
|
| --- a/components/autofill/core/browser/autofill_experiments.cc
|
| +++ b/components/autofill/core/browser/autofill_experiments.cc
|
| @@ -13,6 +13,7 @@
|
| #include "components/autofill/core/common/autofill_pref_names.h"
|
| #include "components/autofill/core/common/autofill_switches.h"
|
| #include "components/prefs/pref_service.h"
|
| +#include "components/security_state/switches.h"
|
| #include "components/sync/driver/sync_service.h"
|
| #include "components/variations/variations_associated_data.h"
|
| #include "google_apis/gaia/gaia_auth_util.h"
|
| @@ -141,4 +142,12 @@ bool IsCreditCardUploadEnabled(const PrefService* pref_service,
|
| return !group_name.empty() && group_name != "Disabled";
|
| }
|
|
|
| +bool IsCreditCardAutofillHttpWarningEnabled() {
|
| + std::string choice =
|
| + base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
|
| + security_state::switches::kMarkHttpAs);
|
| + return choice == security_state::switches::
|
| + kMarkHttpWithPasswordsOrCcWithChipAndFormWarning;
|
| +}
|
| +
|
| } // namespace autofill
|
|
|