diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-05-15 10:20:33 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-05-15 10:28:57 +0000 |
commit | d17ea114e5ef69ad5d5d7413280a13e6428098aa (patch) | |
tree | 2c01a75df69f30d27b1432467cfe7c1467a498da /chromium/base/callback_helpers.h | |
parent | 8c5c43c7b138c9b4b0bf56d946e61d3bbc111bec (diff) | |
download | qtwebengine-chromium-d17ea114e5ef69ad5d5d7413280a13e6428098aa.tar.gz |
BASELINE: Update Chromium to 67.0.3396.47
Change-Id: Idcb1341782e417561a2473eeecc82642dafda5b7
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'chromium/base/callback_helpers.h')
-rw-r--r-- | chromium/base/callback_helpers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chromium/base/callback_helpers.h b/chromium/base/callback_helpers.h index 2a9f7f433f2..0e360c008ad 100644 --- a/chromium/base/callback_helpers.h +++ b/chromium/base/callback_helpers.h @@ -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) { |