Commit dc3423a9 authored by sky@chromium.org's avatar sky@chromium.org

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
parent 28efc586
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment