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

Issue 2689233003: Relanding: Use std::unique_ptr instead of rtc::scoped_refptr in AsyncInvoker. (Closed)

Created:
3 years, 10 months ago by Taylor Brandstetter
Modified:
3 years, 10 months ago
Reviewers:
pthatcher1
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Relanding: Use std::unique_ptr instead of rtc::scoped_refptr in AsyncInvoker. The AsyncClosures only ever have one thing referencing them, so they should be using std::unique_ptr to manage ownership. Maybe this code was written before std::unique_ptr was available. Originally reverted because it made a change to ScopedMessageData that wasn't backwards compatible, and applications using the rtc::Thread infrastructure may be using it. BUG=None NOTRY=True Review-Url: https://codereview.webrtc.org/2689233003 Cr-Commit-Position: refs/heads/master@{#16684} Committed: https://chromium.googlesource.com/external/webrtc/+/a8bc1a1f63ca8b899526b5af0203264f8f281772

Patch Set 1 #

Patch Set 2 : Fixing memory leak (forgot delete statement) #

Patch Set 3 : Making changes to ScopedMessageData backwards compatible #

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -34 lines) Patch
M webrtc/base/asyncinvoker.h View 6 chunks +17 lines, -15 lines 0 comments Download
M webrtc/base/asyncinvoker.cc View 1 2 3 chunks +8 lines, -11 lines 0 comments Download
M webrtc/base/asyncinvoker-inl.h View 2 chunks +3 lines, -7 lines 0 comments Download
M webrtc/base/messagequeue.h View 1 2 3 2 chunks +13 lines, -1 line 0 comments Download

Messages

Total messages: 34 (20 generated)
Taylor Brandstetter
Something I noticed while working on the other CL that made me scratch my head.
3 years, 10 months ago (2017-02-14 04:19:59 UTC) #2
Taylor Brandstetter
Ping
3 years, 10 months ago (2017-02-16 01:57:42 UTC) #3
pthatcher1
lgtm
3 years, 10 months ago (2017-02-17 18:04:47 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2689233003/1
3 years, 10 months ago (2017-02-17 18:39:27 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: linux_memcheck on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_memcheck/builds/5349)
3 years, 10 months ago (2017-02-17 19:28:00 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2689233003/20001
3 years, 10 months ago (2017-02-17 21:56:13 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: ios32_sim_ios9_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios32_sim_ios9_dbg/builds/1562)
3 years, 10 months ago (2017-02-17 22:09:56 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2689233003/20001
3 years, 10 months ago (2017-02-17 22:48:27 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/external/webrtc/+/a5a472927bb209a053b2648d1f0b006f4c8c30ac
3 years, 10 months ago (2017-02-17 23:19:24 UTC) #19
Taylor Brandstetter
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.webrtc.org/2703613006/ by deadbeef@webrtc.org. ...
3 years, 10 months ago (2017-02-17 23:56:53 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2689233003/60001
3 years, 10 months ago (2017-02-18 00:09:53 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_ubsan on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_ubsan/builds/9737)
3 years, 10 months ago (2017-02-18 01:36:02 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.webrtc.org/2689233003/60001
3 years, 10 months ago (2017-02-18 02:03:40 UTC) #31
commit-bot: I haz the power
3 years, 10 months ago (2017-02-18 02:06:31 UTC) #34
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/external/webrtc/+/a8bc1a1f63ca8b899526b5af0...

Powered by Google App Engine
This is Rietveld 408576698