Revert of aura: Fix a crash related to nested event-dispatch. (https://codereview...
commit03436e5648f50f9e4e1f4ad1136e8b428e196094
authordgrogan@chromium.org <dgrogan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 28 Feb 2014 18:44:19 +0000 (28 18:44 +0000)
committerdgrogan@chromium.org <dgrogan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 28 Feb 2014 18:44:19 +0000 (28 18:44 +0000)
tree06a52bee5e03298aaec2266b7c421c2c18d05b70
parentdc0a976b0ad47a78c9d2ed5e3c24db2ce4ca4571
Revert of aura: Fix a crash related to nested event-dispatch. (https://codereview.chromium.org/180973007/)

Reason for revert:
Broke Linux Clang (dbg):

http://build.chromium.org/p/chromium.linux/builders/Linux%20Clang%20%28dbg%29/builds/56926/steps/compile/logs/stdio

../../ui/aura/window_event_dispatcher_unittest.cc:1855:7:error: ignoring return value of function declared with warn_unused_result attribute [-Werror,-Wunused-result]
      target_->GetDispatcher()->OnEventFromSource(&move);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
../../ui/aura/window_event_dispatcher_unittest.cc:1925:3:error: ignoring return value of function declared with warn_unused_result attribute [-Werror,-Wunused-result]
  dispatcher()->OnEventFromSource(&move);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
2 errors generated.
ninja: build stopped: subcommand failed.

Original issue's description:
> aura: Fix a crash related to nested event-dispatch.
>
> If events are being dispatched from a nested message-loop, and the target of the
> outer loop is hidden or moved to another dispatcher during dispatching events in
> the inner loop, then reset the target for the outer loop.
>
> BUG=347012
> R=sky@chromium.org
>
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=254150

TBR=sky@chromium.org,sadrul@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=347012

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254183 0039d316-1c4b-4281-b951-d872f2087c98
ui/aura/window_event_dispatcher.cc
ui/aura/window_event_dispatcher_unittest.cc