[Android] Avoid using ContentViewCore when detaching from RWHVAndroid
The shutdown sequence for a given WebContents involves the ContentViewCore detaching itself from WebContentsViewAndroid. This in turn detaches the ContentViewCore from RenderWidgetHostViewAndroid. However, as the state of the ContentViewCore may be inconsistent during shutdown, calls into ContentViewCore during detachment may be unreliable. Avoid such calls by caching the WindowAndroid exposed by ContentViewCore; the window has stronger lifetime guarantees and can safely be used during detachment. BUG=479878,464642 Review URL: https://codereview.chromium.org/1103213003 Cr-Commit-Position: refs/heads/master@{#327401}
Showing
Please register or sign in to comment