Commit ae2d9461 authored by David Bienvenu's avatar David Bienvenu Committed by Commit Bot

Don't add Open with <app> menu item if app not locally installed

Bug: 1107492
Change-Id: I7d6dc6d866e2d90f81ced9403b3c52d2ee3d54ad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2349688
Commit-Queue: David Bienvenu <davidbienvenu@chromium.org>
Reviewed-by: default avatarAlan Cutter <alancutter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#799268}
parent 4b7c4182
...@@ -65,7 +65,7 @@ base::Optional<AppId> GetWebAppForActiveTab(Browser* browser) { ...@@ -65,7 +65,7 @@ base::Optional<AppId> GetWebAppForActiveTab(Browser* browser) {
if (!web_contents) if (!web_contents)
return base::nullopt; return base::nullopt;
return provider->registrar().FindAppWithUrlInScope( return provider->registrar().FindInstalledAppWithUrlInScope(
web_contents->GetMainFrame()->GetLastCommittedURL()); web_contents->GetMainFrame()->GetLastCommittedURL());
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment