PageInfoController: remove strong ref mContext
Issue: in PageInfoController, holding mContext is dangerous, because WebContents' reparenting could cause mContext and mWindowAndroid to be mismatched. Change: Remove mContext as a member of PageInfoController. Instead, get context from mWindowAndroid when needed. Bug: 999196 Change-Id: I373a1babdcb321b7d135f9eb22544e0b61fa675d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1960485Reviewed-by:Yaron Friedman <yfriedman@chromium.org> Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Cr-Commit-Position: refs/heads/master@{#723417}
Showing
Please register or sign in to comment