|
|
DescriptionUpdate media::BindToCurrentLoop to support base::OnceCallback
After this CL, media::BindToCurrentLoop can take OnceCallback in addition
to RepeatingCallback, and then it returns the same type of callback object,
that relays its invocation to the target thread.
BUG=714018
Review-Url: https://codereview.chromium.org/2874003002
Cr-Commit-Position: refs/heads/master@{#471285}
Committed: https://chromium.googlesource.com/chromium/src/+/73c8ac7b44f40f19d829a04c069425613eebe34e
Patch Set 1 #Patch Set 2 : +test #Patch Set 3 : . #Patch Set 4 : mod comments #
Total comments: 4
Patch Set 5 : +comment #Messages
Total messages: 33 (20 generated)
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
I like this CL. The BindToCurrentLoop function still needs to be copied though, right?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by tzik@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== OnceCallback support of BindToCurrentLoop ========== to ========== Update media::BindToCurrentLoop to support base::OnceCallback 123456789012345678901234567890123456789012345678901234567890123456789012 After this CL, media::BindToCurrentLoop can take OnceCallback in addition to RepeatingCallback, and then it returns the same type of callback object, that relays its invocation to the target thread. ==========
Description was changed from ========== Update media::BindToCurrentLoop to support base::OnceCallback 123456789012345678901234567890123456789012345678901234567890123456789012 After this CL, media::BindToCurrentLoop can take OnceCallback in addition to RepeatingCallback, and then it returns the same type of callback object, that relays its invocation to the target thread. ========== to ========== Update media::BindToCurrentLoop to support base::OnceCallback After this CL, media::BindToCurrentLoop can take OnceCallback in addition to RepeatingCallback, and then it returns the same type of callback object, that relays its invocation to the target thread. ==========
tzik@chromium.org changed reviewers: + maxmorin@chromium.org, xhwang@chromium.org
Description was changed from ========== Update media::BindToCurrentLoop to support base::OnceCallback After this CL, media::BindToCurrentLoop can take OnceCallback in addition to RepeatingCallback, and then it returns the same type of callback object, that relays its invocation to the target thread. ========== to ========== Update media::BindToCurrentLoop to support base::OnceCallback After this CL, media::BindToCurrentLoop can take OnceCallback in addition to RepeatingCallback, and then it returns the same type of callback object, that relays its invocation to the target thread. BUG=714018 ==========
On 2017/05/10 13:24:33, Max Morin wrote: > I like this CL. The BindToCurrentLoop function still needs to be copied though, > right? Right, I added it.
PTAL
Awesome, thanks for fixing this. LGTM.
lgtm % nits https://codereview.chromium.org/2874003002/diff/60001/media/base/bind_to_curr... File media/base/bind_to_current_loop.h (right): https://codereview.chromium.org/2874003002/diff/60001/media/base/bind_to_curr... media/base/bind_to_current_loop.h:23: // media::BindToCurrentLoop(base::Bind(&MyClass::MyMethod, this))); nit: Also add an example using BindOnce? https://codereview.chromium.org/2874003002/diff/60001/media/base/bind_to_curr... media/base/bind_to_current_loop.h:96: FROM_HERE, base::ThreadTaskRunnerHandle::Get(), std::move(cb))); Do we still need the old TODO here? // TODO(tzik): Propagate FROM_HERE from the caller.
https://codereview.chromium.org/2874003002/diff/60001/media/base/bind_to_curr... File media/base/bind_to_current_loop.h (right): https://codereview.chromium.org/2874003002/diff/60001/media/base/bind_to_curr... media/base/bind_to_current_loop.h:23: // media::BindToCurrentLoop(base::Bind(&MyClass::MyMethod, this))); On 2017/05/11 18:29:02, xhwang wrote: > nit: Also add an example using BindOnce? Done. https://codereview.chromium.org/2874003002/diff/60001/media/base/bind_to_curr... media/base/bind_to_current_loop.h:96: FROM_HERE, base::ThreadTaskRunnerHandle::Get(), std::move(cb))); On 2017/05/11 18:29:02, xhwang wrote: > Do we still need the old TODO here? > > // TODO(tzik): Propagate FROM_HERE from the caller. Done.
The CQ bit was checked by tzik@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from xhwang@chromium.org, maxmorin@chromium.org Link to the patchset: https://codereview.chromium.org/2874003002/#ps80001 (title: "+comment")
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by tzik@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
I'll retry since the bot seems healthier now.
The CQ bit was checked by maxmorin@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 80001, "attempt_start_ts": 1494591056645550, "parent_rev": "2a32710d5f0e31cf648120a9724d5c8b0d8e5a88", "commit_rev": "73c8ac7b44f40f19d829a04c069425613eebe34e"}
Message was sent while issue was closed.
Description was changed from ========== Update media::BindToCurrentLoop to support base::OnceCallback After this CL, media::BindToCurrentLoop can take OnceCallback in addition to RepeatingCallback, and then it returns the same type of callback object, that relays its invocation to the target thread. BUG=714018 ========== to ========== Update media::BindToCurrentLoop to support base::OnceCallback After this CL, media::BindToCurrentLoop can take OnceCallback in addition to RepeatingCallback, and then it returns the same type of callback object, that relays its invocation to the target thread. BUG=714018 Review-Url: https://codereview.chromium.org/2874003002 Cr-Commit-Position: refs/heads/master@{#471285} Committed: https://chromium.googlesource.com/chromium/src/+/73c8ac7b44f40f19d829a04c0694... ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/73c8ac7b44f40f19d829a04c0694... |