Index: chrome/browser/autocomplete/autocomplete_edit_view_mac.mm |
=================================================================== |
--- chrome/browser/autocomplete/autocomplete_edit_view_mac.mm (revision 62138) |
+++ chrome/browser/autocomplete/autocomplete_edit_view_mac.mm (working copy) |
@@ -429,6 +429,9 @@ |
} |
void AutocompleteEditViewMac::ClosePopup() { |
+ if (popup_view_->GetModel()->IsOpen()) |
+ controller_->OnAutocompleteWillClosePopup(); |
+ |
popup_view_->GetModel()->StopAutocomplete(); |
} |
@@ -762,6 +765,7 @@ |
void AutocompleteEditViewMac::OnKillFocus() { |
// Tell the model to reset itself. |
+ controller_->OnAutocompleteLosingFocus(NULL); |
model_->OnKillFocus(); |
controller_->OnKillFocus(); |
} |