Commit 215900d1 authored by tdresser's avatar tdresser Committed by Commit bot

Clean up hack avoiding infinite loop in unit test.

The hack is no longer needed.

BUG=310172

Review URL: https://codereview.chromium.org/1113643002

Cr-Commit-Position: refs/heads/master@{#327314}
parent 1102e2f1
...@@ -600,9 +600,6 @@ class RemoveOnTouchCancelHandler : public TestEventHandler { ...@@ -600,9 +600,6 @@ class RemoveOnTouchCancelHandler : public TestEventHandler {
TestEventHandler::OnTouchEvent(event); TestEventHandler::OnTouchEvent(event);
if (event->type() == ui::ET_TOUCH_CANCELLED) { if (event->type() == ui::ET_TOUCH_CANCELLED) {
Window* target = static_cast<Window*>(event->target()); Window* target = static_cast<Window*>(event->target());
// This is tiptoeing around crbug.com/310172. If this event handler isn't
// removed, we enter an infinite loop.
target->RemovePreTargetHandler(this);
target->parent()->RemoveChild(target); target->parent()->RemoveChild(target);
} }
} }
......
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