forked from chromium/chromium
-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refer to Delegate via weak pointers.
In order to facilitate it, moved all references to the weak pointers to a singleton task runner `FileUploadJob::Manager::GetInstance()->sequenced_task_runner()` Deletion of Delegate is also done there by calling `DeleteSoon`. Additionally, modified FileUploadDelegate to use `ActionContext` and its subclasses with `base::Unretained(this)` instead of weak pointers, since it can only be destruct via call to `Complete` method, and so all asynchronous callbacks are safe to be called like this. Bug: b:264399295 Change-Id: I5a55afeab428766bd8a93f224b713f7f8d9d3dd5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4374314 Reviewed-by: Vignesh Shenvi <vshenvi@google.com> Commit-Queue: Leonid Baraz <lbaraz@chromium.org> Cr-Commit-Position: refs/heads/main@{#1123906}
- Loading branch information
Leonid Baraz
authored and
Chromium LUCI CQ
committed
Mar 29, 2023
1 parent
d3d3378
commit 629cd9a
Showing
8 changed files
with
269 additions
and
189 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.