| 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 8bceedd686b0bc8d9a61a4f6bee5dcdac12f4ca8..8876f0048cacbe07f4fce942bc55b0bbab1c7a46 100644
|
| --- a/components/autofill/core/browser/autofill_manager.cc
|
| +++ b/components/autofill/core/browser/autofill_manager.cc
|
| @@ -580,6 +580,11 @@ void AutofillManager::FillOrPreviewForm(
|
| // user edits an autofilled field (for metrics).
|
| form_structure->field(i)->is_autofilled = true;
|
|
|
| + // Mark the field as autofilled when a non-empty value is assigned to
|
| + // it. This allows the renderer to distinguish autofilled fields from
|
| + // fields with non-empty values, such as select-one fields.
|
| + result.fields[i].is_autofilled = true;
|
| +
|
| if (should_notify)
|
| manager_delegate_->DidFillOrPreviewField(value, profile_full_name);
|
| }
|
|
|