summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/autocomplete
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-07 23:44:12 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-07 23:44:12 +0000
commit19b4dbf7f2fd0e5db31accb599c97c042a043b07 (patch)
treed4a6e110acd52b38f9fcef1ec84eca188ea7c01f /chrome/browser/views/autocomplete
parent93027af7b72518f78c34ada454884eb022dcf656 (diff)
downloadchromium_src-19b4dbf7f2fd0e5db31accb599c97c042a043b07.zip
chromium_src-19b4dbf7f2fd0e5db31accb599c97c042a043b07.tar.gz
chromium_src-19b4dbf7f2fd0e5db31accb599c97c042a043b07.tar.bz2
Add another sanity check, this time that the popup's "open state" (HWND) matches its result count (views).
BUG=20511 TEST=none Review URL: http://codereview.chromium.org/271013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28348 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/autocomplete')
-rw-r--r--chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc b/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc
index ea1908e..474f45e 100644
--- a/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc
+++ b/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc
@@ -619,7 +619,9 @@ gfx::Rect AutocompletePopupContentsView::GetPopupBounds() const {
// AutocompletePopupContentsView, AutocompletePopupView overrides:
bool AutocompletePopupContentsView::IsOpen() const {
- return popup_->IsOpen();
+ const bool is_open = popup_->IsOpen();
+ CHECK(!!GetChildViewCount() == is_open);
+ return is_open;
}
void AutocompletePopupContentsView::InvalidateLine(size_t line) {