Commit 2d16be14 authored by Liquan (Max) Gu's avatar Liquan (Max) Gu Committed by Commit Bot

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: default avatarYaron Friedman <yfriedman@chromium.org>
Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#723417}
parent 49a06256
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment