Commit aed82239 authored by Avi Drissman's avatar Avi Drissman Committed by Commit Bot

Add a bug link to AdaptCallbackForRepeating().

BUG=730593

Change-Id: I99aba6a46ed01fe3ec3579ee1f6180670f2e6778
Reviewed-on: https://chromium-review.googlesource.com/969109Reviewed-by: default avatarTaiju Tsuiki <tzik@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#544345}
parent 1ac27c4a
......@@ -61,6 +61,10 @@ class AdaptCallbackForRepeatingHelper final {
// Wraps the given OnceCallback into a RepeatingCallback that relays its
// invocation to the original OnceCallback on the first invocation. The
// following invocations are just ignored.
//
// Note that this deliberately subverts the Once/Repeating paradigm of Callbacks
// but helps ease the migration from old-style Callbacks. Avoid if possible; use
// if necessary for migration. TODO(tzik): Remove it. https://crbug.com/730593
template <typename... Args>
RepeatingCallback<void(Args...)> AdaptCallbackForRepeating(
OnceCallback<void(Args...)> callback) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment