Remove InstalledWebappBridge::ShouldDelegateLocationPermission
This CL makes the DecidePermission check if it is possible to get a InstalledWebappGeolocationContext instead of checking the InstalledWebappBridge::ShouldDelegateLocationPermission GetInstalledWebappGeolocationContext() returns nullptr when either not running in TWA mode or should not delegate geolocation to it. It's mostly the same logic as the one in InstalledWebappBridge, except checking the current customtabsactivity instead of the LastTrackedFocusedTwaCustomTabActivity. so it's better using this one. Bug: 1106391 Change-Id: If66b10b44d71d30358088c00245c315be5c15829 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2303049Reviewed-by:Dominick Ng <dominickn@chromium.org> Reviewed-by:
Peter Conn <peconn@chromium.org> Commit-Queue: Ella Ge <eirage@chromium.org> Cr-Commit-Position: refs/heads/master@{#789393}
Showing
Please register or sign in to comment