forked from AlohaBrowser/aloha-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DownloadWarningHaTS] Add helper class for delayed "ignore" surveys
This adds a helper class that manages the delayed surveys that are shown after a download warning is ignored for some amount of time while the user is otherwise still actively using Chrome. Managing the lifetimes of the callbacks is the bulk of the work it does. It observes each DownloadItem for which it schedules a task, and if that item is deleted or becomes ineligible for the HaTS surveys, it cancels the task. The delayed survey tasks can also be canceled explicitly by the client, e.g. when the user interacts with the download. This is required for showing surveys after the user ignores a download bubble warning for 5 minutes, implemented in the next CL. Bug: 327457604 Change-Id: Iab1cbba431fd7408c645060853467a0296dcd5de Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5526430 Reviewed-by: Daniel Rubery <[email protected]> Commit-Queue: Lily Chen <[email protected]> Cr-Commit-Position: refs/heads/main@{#1300221}
- Loading branch information
Showing
3 changed files
with
408 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.