Link capturing: Add new default link capturing behavior for ARC apps
This CL changes the behavior (behind a flag) of ARC apps so that they do
not capture links clicked in the browser by default. This works by
ignoring certain link capturing updates from the ARC side, deliberately
allowing the ARC-side preference and the Ash-side preference to diverge.
Any changes made to the preference on either side will still take effect
and will put the two settings back in sync.
Change-Id: I7d525cfdad721c15747c3ff920f9564f11eec510
Bug: 1269526
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3291111
Commit-Queue: Tim Sergeant <tsergeant@chromium.org>
Auto-Submit: Tim Sergeant <tsergeant@chromium.org>
Reviewed-by: Yuichiro Hanada <yhanada@chromium.org>
Reviewed-by: Dominick Ng <dominickn@chromium.org>
Reviewed-by: Maggie Cai <mxcai@chromium.org>
Cr-Commit-Position: refs/heads/main@{#945159}
NOKEYCHECK=True
GitOrigin-RevId: b9a2bc20db97a2b55c6862a8e074057ddbe3abe1
diff --git a/intent_helper.mojom b/intent_helper.mojom
index d482248..7e821ad 100644
--- a/intent_helper.mojom
+++ b/intent_helper.mojom
@@ -254,6 +254,18 @@
array<IntentFilter>? filters;
};
+// The source of a change in the supported links setting.
+[Extensible]
+enum SupportedLinkChangeSource {
+ kUnknown,
+ // The ARC system made a change to the supported links setting without direct
+ // user input (e.g. a new app was installed).
+ kArcSystem,
+ // The update to the supported links setting was the result of a user
+ // action/choice.
+ kUserPreference,
+};
+
// Interface to interact with a custom tab.
// Close the interface pointer to close the custom tab.
// Next method ID: 1
@@ -344,7 +356,8 @@
// supported links.
[MinVersion=47] OnSupportedLinksChanged@20(
array<SupportedLinks> added_packages,
- array<SupportedLinks> removed_packages);
+ array<SupportedLinks> removed_packages,
+ [MinVersion=48] SupportedLinkChangeSource source);
// Called when a new entry has been added to the MediaStore.Downloads
// collection of downloaded items with the specified metadata.