Improve checking of exception during handling java exception

We may encounter OOM java exception during handling a java exception,
especially when the java exception itself is an OOM exception.

Let CheckException handle any exception raised during exception
handling.

Bug: 808342
Change-Id: Idd7ef29aada297ed88f844d7cd9b450d2c161ba7
Reviewed-on: https://chromium-review.googlesource.com/907184
Reviewed-by: Richard Coles <torne@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#535843}

CrOS-Libchrome-Original-Commit: ab2f36669450a1ff0a009206bbcc9063e8b456e2
1 file changed
tree: d71c4344ea5a292b3a160dc309edc6e997c4871d
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/