Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1639)

Issue 2874003002: Update media::BindToCurrentLoop to support base::OnceCallback (Closed)

Created:
3 years, 7 months ago by tzik
Modified:
3 years, 7 months ago
Reviewers:
xhwang, Max Morin
CC:
chromium-reviews, feature-media-reviews_chromium.org, Max Morin
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

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/+/73c8ac7b44f40f19d829a04c069425613eebe34e

Patch Set 1 #

Patch Set 2 : +test #

Patch Set 3 : . #

Patch Set 4 : mod comments #

Total comments: 4

Patch Set 5 : +comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -106 lines) Patch
M media/base/bind_to_current_loop.h View 1 2 3 4 2 chunks +60 lines, -36 lines 0 comments Download
M media/base/bind_to_current_loop_unittest.cc View 1 2 5 chunks +221 lines, -70 lines 0 comments Download

Messages

Total messages: 33 (20 generated)
Max Morin
I like this CL. The BindToCurrentLoop function still needs to be copied though, right?
3 years, 7 months ago (2017-05-10 13:24:33 UTC) #3
tzik
On 2017/05/10 13:24:33, Max Morin wrote: > I like this CL. The BindToCurrentLoop function still ...
3 years, 7 months ago (2017-05-11 07:32:58 UTC) #14
tzik
PTAL
3 years, 7 months ago (2017-05-11 07:33:05 UTC) #15
Max Morin
Awesome, thanks for fixing this. LGTM.
3 years, 7 months ago (2017-05-11 07:45:08 UTC) #16
xhwang
lgtm % nits https://codereview.chromium.org/2874003002/diff/60001/media/base/bind_to_current_loop.h File media/base/bind_to_current_loop.h (right): https://codereview.chromium.org/2874003002/diff/60001/media/base/bind_to_current_loop.h#newcode23 media/base/bind_to_current_loop.h:23: // media::BindToCurrentLoop(base::Bind(&MyClass::MyMethod, this))); nit: Also add ...
3 years, 7 months ago (2017-05-11 18:29:03 UTC) #17
tzik
https://codereview.chromium.org/2874003002/diff/60001/media/base/bind_to_current_loop.h File media/base/bind_to_current_loop.h (right): https://codereview.chromium.org/2874003002/diff/60001/media/base/bind_to_current_loop.h#newcode23 media/base/bind_to_current_loop.h:23: // media::BindToCurrentLoop(base::Bind(&MyClass::MyMethod, this))); On 2017/05/11 18:29:02, xhwang wrote: > ...
3 years, 7 months ago (2017-05-12 04:05:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2874003002/80001
3 years, 7 months ago (2017-05-12 04:06:32 UTC) #21
commit-bot: I haz the power
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_chromeos_ozone_rel_ng/builds/382716)
3 years, 7 months ago (2017-05-12 05:16:49 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2874003002/80001
3 years, 7 months ago (2017-05-12 07:29:02 UTC) #25
commit-bot: I haz the power
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_chromeos_ozone_rel_ng/builds/382903)
3 years, 7 months ago (2017-05-12 08:32:51 UTC) #27
Max Morin
I'll retry since the bot seems healthier now.
3 years, 7 months ago (2017-05-12 12:10:50 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2874003002/80001
3 years, 7 months ago (2017-05-12 12:11:15 UTC) #30
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 12:37:23 UTC) #33
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/73c8ac7b44f40f19d829a04c0694...

Powered by Google App Engine
This is Rietveld 408576698