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

Issue 2462573002: Refactor: Move RTCStatsCollector helper functions to anonymous namespace (Closed)

Created:
4 years, 1 month ago by hbos
Modified:
4 years, 1 month ago
Reviewers:
hta-webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Move RTCStatsCollector helper functions to anonymous namespace. Simple refactoring. Moved ProduceCertificateStatsFromSSLCertificateStats_s and ProduceIceCandidateStats_s from member section of RTCStatsCollector to the anonymous namespace of rtcstatscollector.cc. The thread check is removed as a result, which makes sense because the helper function does not know about which thread its input parameter lives on, that is up to the calling place (which has a thread check already). This makes rtcstatscollector.h cleaner, and all ProduceBlahStats functions are starting points of collecting various stats. (Call all of them and you get a complete set of stats.) (Not moving PrepareTransportCertificateStats_s because it is using a private struct of RTCStatsCollector.) BUG=627816 Committed: https://crrev.com/02ba211a9f29c8ab605e9924f2a5f098a9052dbc Cr-Commit-Position: refs/heads/master@{#14818}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Renamed kvp transport_cert_stats_pair #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -61 lines) Patch
M webrtc/api/rtcstatscollector.h View 2 chunks +0 lines, -6 lines 0 comments Download
M webrtc/api/rtcstatscollector.cc View 1 4 chunks +53 lines, -55 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
hbos
Please take a look, hta.
4 years, 1 month ago (2016-10-28 11:20:51 UTC) #5
hta-webrtc
lgtm This is a Good Thing. WRT the one that needs the private member - ...
4 years, 1 month ago (2016-10-28 11:27:33 UTC) #6
hbos
https://codereview.webrtc.org/2462573002/diff/20001/webrtc/api/rtcstatscollector.cc File webrtc/api/rtcstatscollector.cc (right): https://codereview.webrtc.org/2462573002/diff/20001/webrtc/api/rtcstatscollector.cc#newcode273 webrtc/api/rtcstatscollector.cc:273: if (kvp.second.local) { On 2016/10/28 11:27:33, hta-webrtc wrote: > ...
4 years, 1 month ago (2016-10-28 11:41:02 UTC) #7
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/2462573002/40001
4 years, 1 month ago (2016-10-28 11:41:32 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 1 month ago (2016-10-28 12:14:56 UTC) #12
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 12:15:06 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/02ba211a9f29c8ab605e9924f2a5f098a9052dbc
Cr-Commit-Position: refs/heads/master@{#14818}

Powered by Google App Engine
This is Rietveld 408576698