PageInfoController: signatures changed from Tab to WebContents
Why: Currently, PageInfo shows the page-info dialog for Tab only. Since we would like the dialog works for WebContents in general. We want to refactor PageInfoController to depend on WebContents rather than Tab. This patch is part of the effort. Change: * getOfflinePage() depends on Tab -> WebContents * isShowingTrustedOfflinePage() depends on Tab -> WebContents * TabImpl.getProfile() -> Profile.fromWebContents() * Activity -> ChromeActivity, because ConnectionInfoPopup.show() depends on ChromeActivity. Bug: 999196 Change-Id: Idb432edbbdb839d1b3cae2bfced6a4343861e7d7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1960565Reviewed-by:Yaron Friedman <yfriedman@chromium.org> Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Cr-Commit-Position: refs/heads/master@{#723536}
Showing
Please register or sign in to comment