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 370a8f02e4aeced484a49090925c117b1ca8e2c3..bc7030de5cd19e1677bba683577a06685fddb16f 100644 |
--- a/components/autofill/core/browser/autofill_manager.cc |
+++ b/components/autofill/core/browser/autofill_manager.cc |
@@ -569,6 +569,11 @@ void AutofillManager::FillOrPreviewForm( |
// user edits an autofilled field (for metrics). |
autofill_field->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. |
+ iter->is_autofilled = true; |
+ |
if (!is_credit_card && !value.empty()) |
client_->DidFillOrPreviewField(value, profile_full_name); |
} |