diff options
Diffstat (limited to 'chrome/browser/autofill/autofill_manager.cc')
-rw-r--r-- | chrome/browser/autofill/autofill_manager.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/autofill/autofill_manager.cc b/chrome/browser/autofill/autofill_manager.cc index aeeca26..73b1446 100644 --- a/chrome/browser/autofill/autofill_manager.cc +++ b/chrome/browser/autofill/autofill_manager.cc @@ -779,6 +779,11 @@ void AutofillManager::OnRequestAutocomplete(const FormData& form) { } void AutofillManager::ReturnAutocompleteData(const FormStructure* result) { + // web_contents() will be NULL when the interactive autocomplete is closed due + // to a tab or browser window closing. + if (!web_contents()) + return; + RenderViewHost* host = web_contents()->GetRenderViewHost(); if (!host) return; |