Convert SyncTaskManager::Task to OnceCallback
This CL converts SyncTaskManager::Task and SyncTaskManager::Continuation to OnceCallbacks. Since some of the closures are stored in a priority queue (which doesn't support move-only types), they are wrapped with base::AdaptCallbackForRepeating. There is also an opportunistic deletion of some dead code, and renaming a test callback to something more useful. Bug: 1152272 Change-Id: I39fd928029e215b118f0c09cbaf84780862197cd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2576443 Commit-Queue: Thomas Guilbert <tguilbert@chromium.org> Auto-Submit: Thomas Guilbert <tguilbert@chromium.org> Reviewed-by:Victor Costan <pwnall@chromium.org> Cr-Commit-Position: refs/heads/master@{#835082}
Showing
Please register or sign in to comment