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

Unified Diff: content/browser/renderer_host/gesture_event_filter.cc

Issue 11571028: gesture event filter: Add a check to help debug a crash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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: content/browser/renderer_host/gesture_event_filter.cc
diff --git a/content/browser/renderer_host/gesture_event_filter.cc b/content/browser/renderer_host/gesture_event_filter.cc
index 659decc10e48d601ff28e76133363a55f63aa122..afcde6b69c3d37226d6deb2dd83f46a8c72b61a3 100644
--- a/content/browser/renderer_host/gesture_event_filter.cc
+++ b/content/browser/renderer_host/gesture_event_filter.cc
@@ -207,6 +207,7 @@ void GestureEventFilter::Reset() {
}
void GestureEventFilter::ProcessGestureAck(bool processed, int type) {
+ CHECK(!coalesced_gesture_events_.empty());
DCHECK_EQ(coalesced_gesture_events_.front().type, type);
coalesced_gesture_events_.pop_front();
if (type == WebInputEvent::GestureFlingCancel)
« 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