Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: components/autofill/core/browser/autofill_external_delegate.cc

Issue 19044005: Merge 210229 "Hide autofill popup before WebContentsImpl is dest..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1547/src/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698