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

Unified Diff: chrome/browser/ui/views/autofill/autofill_popup_view_views.cc

Issue 12302034: Always Close the Autofill UI through the same path (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove old (now incorrect) test 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/ui/views/autofill/autofill_popup_view_views.cc
diff --git a/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc b/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc
index 3bb70068153c721cdcbfd7caad2853e41bf30e77..db4584c0b2c8711212f17f2f7a438b2cf7522c31 100644
--- a/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc
@@ -36,8 +36,6 @@ AutofillPopupViewViews::AutofillPopupViewViews(
AutofillPopupViewViews::~AutofillPopupViewViews() {
if (observing_widget_)
observing_widget_->RemoveObserver(this);
-
- controller_->ViewDestroyed();
}
void AutofillPopupViewViews::Hide() {
@@ -106,7 +104,7 @@ void AutofillPopupViewViews::OnMouseReleased(const ui::MouseEvent& event) {
void AutofillPopupViewViews::OnWidgetBoundsChanged(
views::Widget* widget,
const gfx::Rect& new_bounds) {
- Hide();
+ controller_->Hide();
}
void AutofillPopupViewViews::Show() {

Powered by Google App Engine
This is Rietveld 408576698