Skip to content
Commit e4b0231a authored by Sylvain Defresne's avatar Sylvain Defresne Committed by Chromium LUCI CQ
Browse files

[ios] Set startupHadExternalIntent when called from Shortcuts app

When the app is started via Shortcuts app (or similar intents), it
is invoked with UISceneConnectionOptions.userActivities which is a
non-empty container.

Update scene:willConntectToSession:options: to correctly set the
-startupHadExternalIntent property to YES in that case.

This mirror the logic in -[SceneController handleExternalIntents]
making it sure that workflow that changes when an external intent
is processed is in sync with said intent processing.

    Also use a local variable to store `self.sceneState` to avoid
    repeatedly accessing it through the property (which can cause
    refcount churn when using ARC).

Bug: 40769058
Change-Id: Idd577476156ecb5058898263a4b5ec514010491d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5425053


Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: default avatarMark Cogan <marq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1283799}
parent 3117e2ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment