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

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

Issue 2476323002: RAPPOR metric for usage of RTCPeerConnection without connecting. (Closed)
Patch Set: Updated comment 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
« no previous file with comments | « third_party/WebKit/Source/core/frame/HostsUsingFeatures.cpp ('k') | tools/metrics/rappor/rappor.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « third_party/WebKit/Source/core/frame/HostsUsingFeatures.cpp ('k') | tools/metrics/rappor/rappor.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698