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

Unified Diff: third_party/WebKit/Source/core/frame/HostsUsingFeatures.cpp

Issue 2681903002: RAPPOR metric for usage of RTCPeerConnection without connecting. (Closed)
Patch Set: Created 3 years, 10 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/core/frame/HostsUsingFeatures.cpp
diff --git a/third_party/WebKit/Source/core/frame/HostsUsingFeatures.cpp b/third_party/WebKit/Source/core/frame/HostsUsingFeatures.cpp
index 09c41648b6081e31a812ec6eebd5543fceb01925..860fc1e47eb11ccfe62d2ffd3fc72392b666f731 100644
--- a/third_party/WebKit/Source/core/frame/HostsUsingFeatures.cpp
+++ b/third_party/WebKit/Source/core/frame/HostsUsingFeatures.cpp
@@ -202,6 +202,13 @@ void HostsUsingFeatures::Value::recordETLDPlus1ToRappor(const KURL& url) {
if (get(Feature::RTCPeerConnectionDataChannel))
Platform::current()->recordRapporURL("RTCPeerConnection.DataChannel",
WebURL(url));
+ if (get(Feature::RTCPeerConnectionUsed) &&
+ !get(Feature::RTCPeerConnectionAudio) &&
+ !get(Feature::RTCPeerConnectionVideo) &&
+ !get(Feature::RTCPeerConnectionDataChannel)) {
+ Platform::current()->recordRapporURL("RTCPeerConnection.Unconnected",
+ WebURL(url));
+ }
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698