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

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

Issue 2588133002: Make form-not-secure controllable as its own separate Finch feature (Closed)
Patch Set: elawrence, mathp comments; update histograms.xml 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_manager.cc
diff --git a/components/autofill/core/browser/autofill_manager.cc b/components/autofill/core/browser/autofill_manager.cc
index 6d12bb9117f517546454780af3b47b91d0ccdb67..89fd0e50ee552ccb7ed47df7a620563dc3340f28 100644
--- a/components/autofill/core/browser/autofill_manager.cc
+++ b/components/autofill/core/browser/autofill_manager.cc
@@ -62,6 +62,7 @@
#include "components/prefs/pref_service.h"
#include "components/rappor/public/rappor_utils.h"
#include "components/rappor/rappor_service_impl.h"
+#include "components/security_state/core/security_state.h"
#include "google_apis/gaia/identity_provider.h"
#include "grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
@@ -599,7 +600,7 @@ void AutofillManager::OnQueryFormFieldAutofill(int query_id,
// On top of the explanation message, first show a "Payment not secure"
// message.
- if (IsCreditCardAutofillHttpWarningEnabled()) {
+ if (security_state::IsHttpWarningInFormEnabled()) {
#if !defined(OS_ANDROID)
suggestions.insert(suggestions.begin(), Suggestion());
suggestions.front().frontend_id = POPUP_ITEM_ID_SEPARATOR;

Powered by Google App Engine
This is Rietveld 408576698