Do not trigger action mode actions after being destroyed.
commit9d19f85316095d9fac5ecf0a507b2270f1d04e90
authortedchoc <tedchoc@chromium.org>
Fri, 4 Sep 2015 01:03:12 +0000 (3 18:03 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 4 Sep 2015 01:04:34 +0000 (4 01:04 +0000)
treeb7e97c24cc73cc9526d4c3e41138d2c3958294c4
parentcc7f5f8c51b68a0e4197b26a05d86776ad576bb6
Do not trigger action mode actions after being destroyed.

After calling destroy on the action mode, you can still click on the
view as it is being torn down.  This can cause you to call methods
on a defunct CVC in certain cases causing a crash.

To work around this, track if destroy has been called and stop calling
our handler in that case.

BUG=525365

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

Cr-Commit-Position: refs/heads/master@{#347298}
content/public/android/java/src/org/chromium/content/browser/WebActionModeCallback.java