commit | 010ddcfda246975d194964ccf20038ebbdec6084 | [log] [tgz] |
---|---|---|
author | Jinsuk Kim <jinsukkim@chromium.org> | Fri May 25 01:59:45 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri May 25 01:59:45 2018 |
tree | 669f989335385e98ae24db9c455cee7354154d24 | |
parent | b0bc83c3c122649b905ed2f354914a520f344fe2 [diff] |
Android: Delete ContentViewCore.isAlive This CL deletes the API |ContentViewCore.isAlive| and lets the callsites use |WebContents.isDestroyed| (after negation) instead. !CVC.isAlive() and WebContents.isDestroyed() basically serve the same purpose that indicate WebContents (and its associated objecs) are in the destroyed state. Once they return true, no calls should be made on WebContents. WebContents now defines |mIsAlive| for the deleted api to be replaced with !WebContents.isDestroyed(). It is set to false by CVC.destroy() or native WebContentsAndroid dtor, whichever comes first, to indicate that WebContents is on its way to destruction. (WebContents.destroy() also leads to setting it to false by way of WebcontentsAndroid dtor). Bug: 598880 Change-Id: I8aa864e4efdd5c326e62c284bbda5987dc0e60a5 Reviewed-on: https://chromium-review.googlesource.com/1058728 Reviewed-by: Ted Choc <tedchoc@chromium.org> Reviewed-by: Bo <boliu@chromium.org> Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org> Cr-Commit-Position: refs/heads/master@{#561733}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .