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

Unified Diff: ash/wm/root_window_event_filter.cc

Issue 9452018: ash: Fix reversed logic, fixing a crash in debug mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/root_window_event_filter.cc
diff --git a/ash/wm/root_window_event_filter.cc b/ash/wm/root_window_event_filter.cc
index 1be0a8ac765e0a47151ef383d557bb7467606a7d..9d0d98973e57f47610013428d9da63d2a2796fa3 100644
--- a/ash/wm/root_window_event_filter.cc
+++ b/ash/wm/root_window_event_filter.cc
@@ -63,7 +63,7 @@ void RootWindowEventFilter::LockCursor() {
void RootWindowEventFilter::UnlockCursor() {
cursor_lock_count_--;
- DCHECK_GE(0, cursor_lock_count_);
+ DCHECK_GE(cursor_lock_count_, 0);
if (cursor_lock_count_ == 0) {
if (did_cursor_change_) {
did_cursor_change_ = false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698