[iOS] Create AppLauncherBrowserAgent.
Now that the kNonModalDialogs feature is enabled by default, the legacy coordinator-based implementation can be removed. This CL moves this functionality into a BrowserAgent that adds OverlayRequests for app launcher dialogs to the appropriate WebState's queue when an AppLauncherTabHelper attempts to open an external app. Since this functionality no longer requires a coordinator, the tab helper can now be constructed alongside the rest in AttachTabHelpers(). The AppLauncherTabHelperDelegate protocol was converted into a C++ interface to reduce plumbing when hooking the BrowserAgent up to the tab helpers. Additionally, LaunchAppForTabHelper() was updated to return void, as its return value was unused by the tab helper. Bug: 1068418 Change-Id: I01703acc19712b32810d73876d7e58e364711d14 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2140714 Commit-Queue: Kurt Horimoto <kkhorimoto@chromium.org> Reviewed-by:Mark Cogan <marq@chromium.org> Cr-Commit-Position: refs/heads/master@{#757635}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment