[ios] Refine Default Browser Promo trigger
Instead of relying on SceneState order calls, which cannot be guaranteed, a new AppState shouldShowDefaultBrowserPromo property is added to keep track of when a resumption of session is due to a cold start. A new DefaultBrowserSceneAgent class will listen to SceneActivationLevel and check the shouldShowDefaultBrowserPromo property to determine when to show the promo. Also, an iOS14 check is added to IsLikelyInterestedDefaultBrowserUser to ensure that only users on iOS14 see this promo. Bug: 1107489 Change-Id: I71c77a98e20644c620f4c4d3c60cb0b253931cc3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2378710 Commit-Queue: Chris Lu <thegreenfrog@chromium.org> Reviewed-by:Stepan Khapugin <stkhapugin@chromium.org> Reviewed-by:
Rohit Rao <rohitrao@chromium.org> Cr-Commit-Position: refs/heads/master@{#805357}
Showing
Please register or sign in to comment