| Index: components/autofill/browser/autocomplete_history_manager.cc
|
| diff --git a/components/autofill/browser/autocomplete_history_manager.cc b/components/autofill/browser/autocomplete_history_manager.cc
|
| index 5d982949f0b15c2c4c22926d35358cec3b572fa9..3a5514501dd6392cc7d0cf309c09165cc4bbb652 100644
|
| --- a/components/autofill/browser/autocomplete_history_manager.cc
|
| +++ b/components/autofill/browser/autocomplete_history_manager.cc
|
| @@ -127,7 +127,7 @@ void AutocompleteHistoryManager::OnFormSubmitted(const FormData& form) {
|
| if (!*autofill_enabled_)
|
| return;
|
|
|
| - if (browser_context_->IsOffTheRecord())
|
| + if (external_delegate_ && external_delegate_->ShouldIgnoreFormData())
|
| return;
|
|
|
| // Don't save data that was submitted through JavaScript.
|
|
|