Chromium Code Reviews| Index: chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc |
| diff --git a/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc b/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc |
| index 10cf6882f4c57f48b7df489ec541312001e3b863..bf104f26523436520b0a121abe16b41ed077b56d 100644 |
| --- a/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc |
| +++ b/chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc |
| @@ -364,6 +364,13 @@ void AutocompletePopupContentsView::UpdatePopupAppearance() { |
| popup_->SetContentsView(this); |
| popup_->MoveAbove( |
| GetRelativeWindowForPopup(omnibox_view_->GetNativeView())); |
| + if (!popup_.get()) { |
| + // For some IMEs GetRelativeWindowForPopup triggers the omnibox to lose |
| + // focus, thereby closing (and destroying) the popup. |
| + // TODO: this won't be needed once we close the omnibox on input window |
|
Peter Kasting
2011/09/12 18:36:52
? We explicitly wanted to avoid closing the omnibo
|
| + // showing. |
| + return; |
| + } |
| popup_->Show(); |
| } else { |
| // Animate the popup shrinking, but don't animate growing larger since that |