forked from chromium/chromium
-
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.
This CL adds SplitOnceCallback, a utility function that allows to get two OnceCallbacks out of one. Invoking any of the two split callbacks will run the originally passed callback. Invoking the remaining callback will result in a no-op. Bug: 1156809 Change-Id: Iebf4542732fb6230af92fa27c4d7c5705933ad6b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2586688 Commit-Queue: Thomas Guilbert <tguilbert@chromium.org> Reviewed-by: danakj <danakj@chromium.org> Cr-Commit-Position: refs/heads/master@{#838267}
- Loading branch information
1 parent
2dbe524
commit 5db5238
Showing
3 changed files
with
115 additions
and
11 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
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