vr: Remove use of TabImpl.getActivity
void (Ar|Vr)ContentDialog.show(ChromeActivity -> WindowAndroid) The classes were passed ChromeActivity to get ModalDialogManager. This can be obtained from WindowAndroid too. Replaces TabImpl.getActivity with (ChromeActivity) TabUtils.getActivity. in ArCoreJavaUtils. Its native uses renderer process/frame id to find WebContents, Tab, and then ChromeActivity. Ended up casting the activity for now. Bug: 952703 Change-Id: Ic219cb01e896e8e322a8804be0b78ef497ba078d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2129366Reviewed-by:Michael Thiessen <mthiesse@chromium.org> Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org> Cr-Commit-Position: refs/heads/master@{#755202}
Showing
Please register or sign in to comment