| Index: components/autofill/core/browser/autofill_external_delegate.cc
|
| ===================================================================
|
| --- components/autofill/core/browser/autofill_external_delegate.cc (revision 211372)
|
| +++ components/autofill/core/browser/autofill_external_delegate.cc (working copy)
|
| @@ -182,8 +182,11 @@
|
|
|
| void AutofillExternalDelegate::OnPopupHidden(
|
| content::KeyboardListener* listener) {
|
| - if (registered_keyboard_listener_with_ == web_contents_->GetRenderViewHost())
|
| + if ((!web_contents_->IsBeingDestroyed()) &&
|
| + (registered_keyboard_listener_with_ ==
|
| + web_contents_->GetRenderViewHost())) {
|
| web_contents_->GetRenderViewHost()->RemoveKeyboardListener(listener);
|
| + }
|
|
|
| registered_keyboard_listener_with_ = NULL;
|
| }
|
|
|