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

Issue 2641783002: Revert of New method StatsObserver::OnCompleteReports, passing ownership. (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/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Revert of New method StatsObserver::OnCompleteReports, passing ownership. (patchset #2 id:20001 of https://codereview.webrtc.org/2584553002/ ) Reason for revert: The new method doesn't work as intended. It can't pass ownership, because the StatsReports is a vector of raw pointers to StatReport objects owned by the StatsCollector. Original issue's description: > New method StatsObserver::OnCompleteReports, passing ownership. > > The new name, OnCompleteReports rather than OnComplete, is needed > because in C++ method lookup, overriding a method hides all otherwise > inherited methods with the same name, even if they have a different > signature. And here, the intention is that each subclass should > override one or the other of the two methods, and inherit the method it > doesn't override. > > This cl is a prerequisite for > https://codereview.webrtc.org/2567143003/, because the Chrome glue > code needs to retain the stats report after the OnComplete method has > returned. > > Currently, Chrome makes a copy of the stats mapping (which breaks when > changing ValuePtr from an rtc::linked_ptr to an std::unique_ptr). After > this cl, Chrome can be fixed to take ownership and no longer needs to > copy anything, unblocking cl 2567143003. > > BUG=webrtc:6424 > > Review-Url: https://codereview.webrtc.org/2584553002 > Cr-Commit-Position: refs/heads/master@{#15708} > Committed: https://chromium.googlesource.com/external/webrtc/+/b36ee8d498be2fa58fde3f3f3d69a74e4d3b817d TBR=solenberg@webrtc.org,magjed@webrtc.org,tkchin@webrtc.org,hbos@webrtc.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=webrtc:6424 Review-Url: https://codereview.webrtc.org/2641783002 Cr-Commit-Position: refs/heads/master@{#16144} Committed: https://chromium.googlesource.com/external/webrtc/+/e8abe3ef1b526dc5e6ed50c0b2bd19bab88baf47

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -19 lines) Patch
M webrtc/api/peerconnection.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/api/peerconnectioninterface.h View 1 chunk +1 line, -8 lines 0 comments Download
M webrtc/api/test/mockpeerconnectionobservers.h View 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/sdk/android/src/jni/peerconnection_jni.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/sdk/objc/Framework/Classes/RTCPeerConnection+Stats.mm View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
nisse-webrtc
Created Revert of New method StatsObserver::OnCompleteReports, passing ownership.
3 years, 11 months ago (2017-01-18 09:20:12 UTC) #1
the sun
lgtm
3 years, 11 months ago (2017-01-18 09:44:36 UTC) #2
hbos
lgtm
3 years, 11 months ago (2017-01-18 09:46:12 UTC) #3
magjed_webrtc
lgtm
3 years, 11 months ago (2017-01-18 11:54:33 UTC) #8
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/2641783002/1
3 years, 11 months ago (2017-01-18 12:58:16 UTC) #10
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 13:00:38 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/external/webrtc/+/e8abe3ef1b526dc5e6ed50c0b...

Powered by Google App Engine
This is Rietveld 408576698