| 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 e43e85b26d8268c3f1c56f4bc09cb35c5e81517b..04650708eb405ab020c84a21e309541af5932329 100644
|
| --- a/components/autofill/core/browser/autofill_manager.cc
|
| +++ b/components/autofill/core/browser/autofill_manager.cc
|
| @@ -515,11 +515,15 @@ void AutofillManager::OnQueryFormFieldAutofill(int query_id,
|
| GetProfileSuggestions(*form_structure, field, *autofill_field);
|
| }
|
| if (!suggestions.empty()) {
|
| + bool is_context_secure =
|
| + client_->IsContextSecure(form_structure->source_url());
|
| + if (is_filling_credit_card)
|
| + AutofillMetrics::LogIsQueriedCreditCardFormSecure(is_context_secure);
|
| +
|
| // Don't provide credit card suggestions for non-secure pages, but do
|
| // provide them for secure pages with passive mixed content (see impl. of
|
| // IsContextSecure).
|
| - if (is_filling_credit_card &&
|
| - !client_->IsContextSecure(form_structure->source_url())) {
|
| + if (is_filling_credit_card && !is_context_secure) {
|
| Suggestion warning_suggestion(l10n_util::GetStringUTF16(
|
| IDS_AUTOFILL_WARNING_INSECURE_CONNECTION));
|
| warning_suggestion.frontend_id = POPUP_ITEM_ID_WARNING_MESSAGE;
|
|
|