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

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp

Issue 2476323002: RAPPOR metric for usage of RTCPeerConnection without connecting. (Closed)
Patch Set: Updated XML config file Created 3 years, 11 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: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
index a4fdecda6ddac91c6808ebf1aa3a4c37ea64afd5..a1e119cee1f56f0f145dc5cbb65b85bb5b586444 100644
--- a/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
@@ -1422,6 +1422,9 @@ void RTCPeerConnection::closeInternal() {
changeIceConnectionState(ICEConnectionStateClosed);
changeIceGatheringState(ICEGatheringStateComplete);
changeSignalingState(SignalingStateClosed);
+ Document* document = toDocument(getExecutionContext());
+ HostsUsingFeatures::countAnyWorld(
+ *document, HostsUsingFeatures::Feature::RTCPeerConnectionUsed);
}
void RTCPeerConnection::scheduleDispatchEvent(Event* event) {

Powered by Google App Engine
This is Rietveld 408576698