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

Unified Diff: webrtc/stats/rtcstats_objects.cc

Issue 2373503002: rtc_stats: Update code to remove chromium style warnings suppression. (Closed)
Patch Set: Updated comment Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/stats/rtcstats_objects.cc
diff --git a/webrtc/stats/rtcstats_objects.cc b/webrtc/stats/rtcstats_objects.cc
index c435908dc461fb3c692898d84bfce4c3d4a8dc35..3069146bd3d408a000429ae61b0f9e94343799a4 100644
--- a/webrtc/stats/rtcstats_objects.cc
+++ b/webrtc/stats/rtcstats_objects.cc
@@ -12,7 +12,9 @@
namespace webrtc {
-const char RTCPeerConnectionStats::kType[] = "peer-connection";
+WEBRTC_RTCSTATS_IMPL(RTCPeerConnectionStats, RTCStats, "peer-connection",
+ &data_channels_opened,
+ &data_channels_closed);
RTCPeerConnectionStats::RTCPeerConnectionStats(
const std::string& id, int64_t timestamp_us)
@@ -26,4 +28,14 @@ RTCPeerConnectionStats::RTCPeerConnectionStats(
data_channels_closed("dataChannelsClosed") {
}
+RTCPeerConnectionStats::RTCPeerConnectionStats(
+ const RTCPeerConnectionStats& other)
+ : RTCStats(other.id(), other.timestamp_us()),
+ data_channels_opened(other.data_channels_opened),
+ data_channels_closed(other.data_channels_closed) {
+}
+
+RTCPeerConnectionStats::~RTCPeerConnectionStats() {
+}
+
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698