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

Unified Diff: chrome/browser/autofill/autofill_external_delegate.cc

Issue 12223106: Properly Remove Autofill Keyboard Listener. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 10 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
Index: chrome/browser/autofill/autofill_external_delegate.cc
diff --git a/chrome/browser/autofill/autofill_external_delegate.cc b/chrome/browser/autofill/autofill_external_delegate.cc
index 1bc339d51f0588471dff640281d1a76654b9a9bd..39d99a1f4ef64b82be55907a45d5f1640ae34064 100644
--- a/chrome/browser/autofill/autofill_external_delegate.cc
+++ b/chrome/browser/autofill/autofill_external_delegate.cc
@@ -279,8 +279,9 @@ void AutofillExternalDelegate::ClearPreviewedForm() {
void AutofillExternalDelegate::HideAutofillPopup() {
if (controller_) {
- controller_->Hide();
OnPopupHidden(controller_.get());
+ // Hide deletes the controller so all other actions must be done before it.
+ controller_->Hide();
}
}

Powered by Google App Engine
This is Rietveld 408576698