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

Issue 2641793002: Reland of Delete rtc::linked_ptr. (Closed)

Created:
3 years, 11 months ago by nisse-webrtc
Modified:
3 years, 11 months ago
CC:
webrtc-reviews_webrtc.org, the sun, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Reland of Delete rtc::linked_ptr. (patchset #1 id:1 of https://codereview.webrtc.org/2579753002/ ) Only use, in statstypes.h, replaced by rtc::scoped_refptr. Reason for revert: Intend to switch from unique_ptr to scoped_refptr, and then reland. Original issue's description: > Revert of Delete rtc::linked_ptr. Only use, in statstypes.h, replaced bu std::unique_ptr. (patchset #1 id:1 of https://codereview.webrtc.org/2581663002/ ) > > Reason for revert: > This change broke Chrome too. It's stats processing wants to make a copy of webrtc's stats mapping, which is no longer possible with std::unique_ptr. > > Original issue's description: > > Reland of Delete rtc::linked_ptr. Only use, in statstypes.h, replaced bu std::unique_ptr. (patchset #1 id:1 of https://codereview.webrtc.org/2576673002/ ) > > > > Reason for revert: > > Downstream project fixed to not make copies while iterating over the stats mapping. > > > > Original issue's description: > > > Revert of Delete rtc::linked_ptr. Only use, in statstypes.h, replaced bu std::unique_ptr. (patchset #1 id:1 of https://codereview.webrtc.org/2567143003/ ) > > > > > > Reason for revert: > > > The change from rtc::linked_ptr to std::unique_ptr broke a downstream project. > > > > > > Original issue's description: > > > > Delete rtc::linked_ptr. Only use, in statstypes.h, replaced with std::unique_ptr. > > > > > > > > BUG=webrtc:6424 > > > > > > > > Committed: https://crrev.com/36f74e55792cae19db8b222c29aa38d6e0eb1225 > > > > Cr-Commit-Position: refs/heads/master@{#15588} > > > > > > TBR=solenberg@webrtc.org,pthatcher@webrtc.org,hta@webrtc.org > > > # Skipping CQ checks because original CL landed less than 1 days ago. > > > NOPRESUBMIT=true > > > NOTREECHECKS=true > > > NOTRY=true > > > BUG=webrtc:6424 > > > > > > Committed: https://crrev.com/8afbc8cba65d99bb7a0feece8fb3055b144106b1 > > > Cr-Commit-Position: refs/heads/master@{#15589} > > > > TBR=solenberg@webrtc.org,pthatcher@webrtc.org,hta@webrtc.org > > # Not skipping CQ checks because original CL landed more than 1 days ago. > > BUG=webrtc:6424 > > > > Committed: https://crrev.com/06035cf53abad80b0525f286a3b81e388cc7ee00 > > Cr-Commit-Position: refs/heads/master@{#15627} > > TBR=solenberg@webrtc.org,pthatcher@webrtc.org,hta@webrtc.org > # Skipping CQ checks because original CL landed less than 1 days ago. > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > BUG=webrtc:6424 > > Committed: https://crrev.com/6a58f33450a46370039cd82537612040a91165b3 > Cr-Commit-Position: refs/heads/master@{#15629} TBR=solenberg@webrtc.org,pthatcher@webrtc.org,hta@webrtc.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=webrtc:6424 Review-Url: https://codereview.webrtc.org/2641793002 Cr-Commit-Position: refs/heads/master@{#16148} Committed: https://chromium.googlesource.com/external/webrtc/+/6da303db1d25a980b1b835d2b6936ca2e5eddc06

Patch Set 1 #

Patch Set 2 : Rebased. #

Patch Set 3 : Use scoped_refptr for ValuePtr, and a non-threadsafe ref count. #

Total comments: 1

Patch Set 4 : Initialize ref count properly. Add comment on threading requirements. #

Total comments: 2

Patch Set 5 : Add a ThreadChecker to StatsReport::Value. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -133 lines) Patch
M webrtc/api/statstypes.h View 1 2 3 4 4 chunks +20 lines, -5 lines 2 comments Download
M webrtc/base/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/base/cryptstring.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
D webrtc/base/linked_ptr.h View 1 chunk +0 lines, -125 lines 0 comments Download

Messages

Total messages: 23 (12 generated)
nisse-webrtc
Created Reland of Delete rtc::linked_ptr. Only use, in statstypes.h, replaced bu std::unique_ptr.
3 years, 11 months ago (2017-01-18 09:21:45 UTC) #1
the sun
lgtm
3 years, 11 months ago (2017-01-18 10:00:55 UTC) #2
nisse-webrtc
I think I've found the problem. https://codereview.webrtc.org/2641793002/diff/150001/webrtc/api/statstypes.h File webrtc/api/statstypes.h (right): https://codereview.webrtc.org/2641793002/diff/150001/webrtc/api/statstypes.h#newcode316 webrtc/api/statstypes.h:316: mutable int ref_count_; ...
3 years, 11 months ago (2017-01-18 10:54:01 UTC) #4
tommi
https://codereview.webrtc.org/2641793002/diff/170001/webrtc/api/statstypes.h File webrtc/api/statstypes.h (right): https://codereview.webrtc.org/2641793002/diff/170001/webrtc/api/statstypes.h#newcode269 webrtc/api/statstypes.h:269: // the Values mapping) must occur on webrtc's signalling ...
3 years, 11 months ago (2017-01-18 11:59:22 UTC) #8
nisse-webrtc
https://codereview.webrtc.org/2641793002/diff/170001/webrtc/api/statstypes.h File webrtc/api/statstypes.h (right): https://codereview.webrtc.org/2641793002/diff/170001/webrtc/api/statstypes.h#newcode269 webrtc/api/statstypes.h:269: // the Values mapping) must occur on webrtc's signalling ...
3 years, 11 months ago (2017-01-18 12:16:32 UTC) #9
tommi
On 2017/01/18 12:16:32, nisse-webrtc wrote: > https://codereview.webrtc.org/2641793002/diff/170001/webrtc/api/statstypes.h > File webrtc/api/statstypes.h (right): > > https://codereview.webrtc.org/2641793002/diff/170001/webrtc/api/statstypes.h#newcode269 > ...
3 years, 11 months ago (2017-01-18 12:18:49 UTC) #10
nisse-webrtc
On 2017/01/18 12:18:49, tommi (webrtc) wrote: > On 2017/01/18 12:16:32, nisse-webrtc wrote: > > https://codereview.webrtc.org/2641793002/diff/170001/webrtc/api/statstypes.h ...
3 years, 11 months ago (2017-01-18 12:33:21 UTC) #11
tommi
lgtm https://codereview.webrtc.org/2641793002/diff/190001/webrtc/api/statstypes.h File webrtc/api/statstypes.h (right): https://codereview.webrtc.org/2641793002/diff/190001/webrtc/api/statstypes.h#newcode322 webrtc/api/statstypes.h:322: rtc::ThreadChecker thread_checker_; just fyi, SequenceChecker is also an ...
3 years, 11 months ago (2017-01-18 12:48:20 UTC) #12
nisse-webrtc
https://codereview.webrtc.org/2641793002/diff/190001/webrtc/api/statstypes.h File webrtc/api/statstypes.h (right): https://codereview.webrtc.org/2641793002/diff/190001/webrtc/api/statstypes.h#newcode322 webrtc/api/statstypes.h:322: rtc::ThreadChecker thread_checker_; On 2017/01/18 12:48:20, tommi (webrtc) wrote: > ...
3 years, 11 months ago (2017-01-18 12:56:22 UTC) #13
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/2641793002/190001
3 years, 11 months ago (2017-01-18 14:08:39 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 14:10:58 UTC) #23
Message was sent while issue was closed.
Committed patchset #5 (id:190001) as
https://chromium.googlesource.com/external/webrtc/+/6da303db1d25a980b1b835d2b...

Powered by Google App Engine
This is Rietveld 408576698