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

Unified Diff: components/autofill/core/browser/autofill_experiments.cc

Issue 2588133002: Make form-not-secure controllable as its own separate Finch feature (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
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 28fdc27bff258eef2287595c7c983c2ddb3651ce..4f3ddd2d7e3ab6f2b957231a8151202287f7947c 100644
--- a/components/autofill/core/browser/autofill_experiments.cc
+++ b/components/autofill/core/browser/autofill_experiments.cc
@@ -16,7 +16,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/core/switches.h"
+#include "components/security_state/core/security_state.h"
#include "components/sync/driver/sync_service.h"
#include "components/variations/variations_associated_data.h"
#include "google_apis/gaia/gaia_auth_util.h"
@@ -229,11 +229,7 @@ bool IsCreditCardUploadEnabled(const PrefService* pref_service,
}
bool IsCreditCardAutofillHttpWarningEnabled() {
Mathieu 2016/12/19 20:15:49 I think it's fine to remove this function and call
estark 2016/12/19 20:49:45 Done.
- std::string choice =
- base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
- security_state::switches::kMarkHttpAs);
- return choice == security_state::switches::
- kMarkHttpWithPasswordsOrCcWithChipAndFormWarning;
+ return security_state::IsHttpWarningInFormEnabled();
}
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698