| 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 1546ad5f2b8ad272d56f1c1f3877f337b3444569..c59d1e30c9f245985979ef774f0bdfdab7a6d346 100644
|
| --- a/components/autofill/core/browser/autofill_manager.cc
|
| +++ b/components/autofill/core/browser/autofill_manager.cc
|
| @@ -307,6 +307,12 @@ bool AutofillManager::ShouldShowScanCreditCard(const FormData& form,
|
| return field.value.size() <= kShowScanCreditCardMaxValueLength;
|
| }
|
|
|
| +bool AutofillManager::IsCreditCardPopup(const FormData& form,
|
| + const FormFieldData& field) {
|
| + AutofillField* autofill_field = GetAutofillField(form, field);
|
| + return autofill_field && autofill_field->Type().group() == CREDIT_CARD;
|
| +}
|
| +
|
| bool AutofillManager::ShouldShowCreditCardSigninPromo(
|
| const FormData& form,
|
| const FormFieldData& field) {
|
| @@ -527,8 +533,6 @@ void AutofillManager::OnQueryFormFieldAutofill(int query_id,
|
| if (!IsValidFormData(form) || !IsValidFormFieldData(field))
|
| return;
|
|
|
| - std::vector<Suggestion> suggestions;
|
| -
|
| gfx::RectF transformed_box =
|
| driver_->TransformBoundingBoxToViewportCoordinates(bounding_box);
|
| external_delegate_->OnQuery(query_id, form, field, transformed_box);
|
| @@ -553,6 +557,8 @@ void AutofillManager::OnQueryFormFieldAutofill(int query_id,
|
| }
|
| }
|
|
|
| + std::vector<Suggestion> suggestions;
|
| +
|
| if (is_autofill_possible &&
|
| driver_->RendererIsAvailable() &&
|
| got_autofillable_form) {
|
| @@ -1788,6 +1794,7 @@ std::vector<Suggestion> AutofillManager::GetCreditCardSuggestions(
|
| for (size_t i = 0; i < suggestions.size(); i++) {
|
| suggestions[i].frontend_id =
|
| MakeFrontendID(suggestions[i].backend_id, std::string());
|
| + suggestions[i].is_value_bold = IsCreditCardPopupValueBold();
|
| }
|
| return suggestions;
|
| }
|
|
|