Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Unified Diff: ui/views/touchui/touch_selection_menu_runner_views.cc

Issue 1213193003: Remove DCHECK_IMPLIES and CHECK_IMPLIES (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/touchui/touch_selection_menu_runner_views.cc
diff --git a/ui/views/touchui/touch_selection_menu_runner_views.cc b/ui/views/touchui/touch_selection_menu_runner_views.cc
index 6f44e526957c84f4f8ac1b2e7d82f29eb5755926..cea34b805b66510d33200a844994480011b2bdea 100644
--- a/ui/views/touchui/touch_selection_menu_runner_views.cc
+++ b/ui/views/touchui/touch_selection_menu_runner_views.cc
@@ -195,7 +195,7 @@ void TouchSelectionMenuRunnerViews::Menu::OnPaint(gfx::Canvas* canvas) {
}
void TouchSelectionMenuRunnerViews::Menu::WindowClosing() {
- DCHECK_IMPLIES(owner_, owner_->menu_ == this);
+ DCHECK(!owner_ || (owner_->menu_ == this));
BubbleDelegateView::WindowClosing();
if (owner_)
owner_->menu_ = nullptr;

Powered by Google App Engine
This is Rietveld 408576698