Only launch the preferred app automatically from link navigations.

This CL fixes an issue where the preferred app launched automatically
even when not navigating from a link. Currently whenever we query ARC
apps, the preferred app is always automatically launched. This CL
plumbs a boolean to only automatically launch the preferred app when
the app query is from a link navigation.

BUG=939205,962356

Change-Id: I1784ee02140f043cba9d61a69d23a2aaceb02b34
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1608863
Commit-Queue: Maggie Cai <mxcai@chromium.org>
Reviewed-by: David Jacobo <djacobo@chromium.org>
Reviewed-by: Dominick Ng <dominickn@chromium.org>
Cr-Commit-Position: refs/heads/master@{#658969}
3 files changed