Moves initialization of exception handler registration
commit03c235bfc0ff5db46f82463fa471bc8ad5236053
authorsky <sky@chromium.org>
Fri, 28 Aug 2015 21:46:44 +0000 (28 14:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 28 Aug 2015 21:47:26 +0000 (28 21:47 +0000)
treeadab35f9f4758e9e341de50dd36656f70c2af854
parent16bae7e7a2e32db59d6e782925e8b9d713aba62d
Moves initialization of exception handler registration

Registering exception handlers is per-process, not per thread. The old
code was doing the registration per mojo-app, which is per
thread. This is problematic for a couple of reasons, but primarily
because an app may be unloaded, which results in the system having an
exception handler pointing to a now invalid location.

The fix is to move registration to the place where we launch
applications, which happens only once per process.

BUG=526245
TEST=none
R=yzshen1@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#346240}
mojo/application/public/cpp/lib/application_runner.cc
mojo/runner/android/main.cc
mojo/runner/desktop/main.cc