Commit fce91634 authored by Sophey Dong's avatar Sophey Dong Committed by Commit Bot

[SharingHub] Exclude first party apps when the tab is null.

Bug: 1133398
Change-Id: Ie8787bd6f5772805a94c972163cd8a4e7735ef03
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2442097Reviewed-by: default avatarKyle Milka <kmilka@chromium.org>
Commit-Queue: Sophey Dong <sophey@chromium.org>
Cr-Commit-Position: refs/heads/master@{#812945}
parent c1000477
......@@ -302,7 +302,8 @@ public class ShareDelegateImpl implements ShareDelegate {
long shareStartTime, boolean sharingHubEnabled) {
if (chromeShareExtras.shareDirectly()) {
ShareHelper.shareWithLastUsedComponent(params);
} else if (sharingHubEnabled && !chromeShareExtras.sharingTabGroup()) {
} else if (sharingHubEnabled && !chromeShareExtras.sharingTabGroup()
&& tabProvider.get() != null) {
// TODO(crbug.com/1085078): Sharing hub is suppressed for tab group sharing.
// Re-enable it when tab group sharing is supported by sharing hub.
ShareSheetCoordinator coordinator = new ShareSheetCoordinator(controller,
......
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