summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-24 19:34:37 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-24 19:34:37 +0000
commitdc3423a9ecbac07f5ab9bb177098f0f559a59907 (patch)
treef4dcc8fa1e22f1dfcd2d63fb17686fc242a9910a /views
parent28efc58634459b8fc65ee1a5cb00a4351e7179b9 (diff)
downloadchromium_src-dc3423a9ecbac07f5ab9bb177098f0f559a59907.zip
chromium_src-dc3423a9ecbac07f5ab9bb177098f0f559a59907.tar.gz
chromium_src-dc3423a9ecbac07f5ab9bb177098f0f559a59907.tar.bz2
Removes debugging code as cause of crash was found. I'm TBRing as this
just converts some CHECKs to DCHECKs. BUG=62872 TEST=none TBR=ben@chromium.org Review URL: http://codereview.chromium.org/6360015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72367 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/controls/menu/menu_controller.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/controls/menu/menu_controller.cc b/views/controls/menu/menu_controller.cc
index dbc31a4..af4c276 100644
--- a/views/controls/menu/menu_controller.cc
+++ b/views/controls/menu/menu_controller.cc
@@ -745,7 +745,7 @@ void MenuController::SetSelection(MenuItemView* menu_item,
if (menu_item && menu_item->GetDelegate())
menu_item->GetDelegate()->SelectionChanged(menu_item);
- CHECK(menu_item || (selection_types & SELECTION_EXIT) != 0);
+ DCHECK(menu_item || (selection_types & SELECTION_EXIT) != 0);
pending_state_.item = menu_item;
pending_state_.submenu_open = (selection_types & SELECTION_OPEN_SUBMENU) != 0;
@@ -1668,7 +1668,7 @@ void MenuController::RepostEvent(SubmenuView* source,
// We some times get an event after closing all the menus. Ignore it.
// Make sure the menu is in fact not visible. If the menu is visible, then
// we're in a bad state where we think the menu isn't visibile but it is.
- CHECK(!source->GetWidget()->IsVisible());
+ DCHECK(!source->GetWidget()->IsVisible());
return;
}