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

Issue 1300523004: rtc::Bind: Capture method objects as scoped_refptr if they are ref counted (Closed)

Created:
5 years, 4 months ago by magjed_webrtc
Modified:
5 years, 4 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

rtc::Bind: Capture method objects as scoped_refptr if they are ref counted R=tommi@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/d3de9c548d1121e7c4787a4b81fd66be714abc04

Patch Set 1 #

Patch Set 2 : landable patch #

Total comments: 1

Patch Set 3 : Support any AddRef()/Release() implementation #

Patch Set 4 : Update bind.h.pump #

Total comments: 9

Patch Set 5 : Remove silly comment + address tommi@s comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+396 lines, -20 lines) Patch
M webrtc/base/bind.h View 1 2 3 4 17 chunks +200 lines, -13 lines 0 comments Download
M webrtc/base/bind.h.pump View 1 2 3 4 5 chunks +94 lines, -7 lines 0 comments Download
M webrtc/base/bind_unittest.cc View 1 2 3 4 3 chunks +102 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (14 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1300523004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1300523004/1
5 years, 4 months ago (2015-08-18 17:07:49 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_rel/builds/8891)
5 years, 4 months ago (2015-08-18 17:20:10 UTC) #4
magjed_webrtc
This is the simplest implementation that worked. The failing bots are unrelated to this CL. ...
5 years, 4 months ago (2015-08-18 17:45:55 UTC) #6
tommi
On 2015/08/18 17:45:55, magjed_webrtc wrote: > This is the simplest implementation that worked. The failing ...
5 years, 4 months ago (2015-08-18 19:53:19 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1300523004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1300523004/20001
5 years, 4 months ago (2015-08-19 11:43:00 UTC) #9
magjed_webrtc
I can use webrtc/base/template_util.h for doing the hardcore template magic. Please take a look.
5 years, 4 months ago (2015-08-19 11:52:23 UTC) #10
tommi (sloooow) - chröme
great - one question https://codereview.webrtc.org/1300523004/diff/20001/webrtc/base/bind.h File webrtc/base/bind.h (right): https://codereview.webrtc.org/1300523004/diff/20001/webrtc/base/bind.h#newcode86 webrtc/base/bind.h:86: static const bool value = ...
5 years, 4 months ago (2015-08-19 13:13:32 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
5 years, 4 months ago (2015-08-19 13:43:06 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1300523004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1300523004/40001
5 years, 4 months ago (2015-08-19 20:55:08 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_gn_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_gn_rel/builds/5143) win_rel on ...
5 years, 4 months ago (2015-08-19 20:56:55 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1300523004/70001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1300523004/70001
5 years, 4 months ago (2015-08-20 09:41:02 UTC) #20
magjed_webrtc
PTAL. It's working as you want now, i.e. using rtc::Bind(T, ...) on any type T ...
5 years, 4 months ago (2015-08-20 10:14:53 UTC) #23
tommi
one question, member variable naming, but otherwise looks great. https://codereview.webrtc.org/1300523004/diff/90001/webrtc/base/bind.h File webrtc/base/bind.h (right): https://codereview.webrtc.org/1300523004/diff/90001/webrtc/base/bind.h#newcode3 webrtc/base/bind.h:3: ...
5 years, 4 months ago (2015-08-20 12:35:41 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1300523004/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1300523004/130001
5 years, 4 months ago (2015-08-20 13:05:28 UTC) #27
magjed_webrtc
https://codereview.webrtc.org/1300523004/diff/90001/webrtc/base/bind.h File webrtc/base/bind.h (right): https://codereview.webrtc.org/1300523004/diff/90001/webrtc/base/bind.h#newcode3 webrtc/base/bind.h:3: // DO NOT EDIT BY HAND!!! On 2015/08/20 12:35:41, ...
5 years, 4 months ago (2015-08-20 13:05:34 UTC) #28
tommi
lgtm
5 years, 4 months ago (2015-08-20 13:38:33 UTC) #29
magjed_webrtc
5 years, 4 months ago (2015-08-20 14:04:12 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:130001) manually as
d3de9c548d1121e7c4787a4b81fd66be714abc04 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698