Master bug for eliminating this back reference and the SetContentViewCore() hack.
Instead use the appropriate functionality in RenderView/WidgetHost(Delegate), ViewAndroid etc.
Also, RenderWidgetHostViewAndroid should not know about WebContents.
This is sort of a layering violation (even if it's not enforced through DEPS).
Next step I'm planning to do is to transfer the ownership of ViewAndroid from ContentViewCoreImpl to WebContentsViewAndroid, as illustrated in the diagram. https://docs.google.com/document/d/13obX4RB5nbX3w7vwLzYFuo9LvHzCobIPCDNv09vbHxI/edit This will help RWHVA not reference CVCI, and further remove other references to CVC/CVCI. Note that it is the only user of content::ContentViewCoreImplObserver which I believe can be replaced with a simple plumbing from embedder -> WebContents/View -> RWHVA.
Comment 1 by siev...@chromium.org
, Jul 8 2016