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

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

Issue 2095643002: Add RTCPeerConnection RAPPOR metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: record metrics only for connected PCs Created 4 years, 6 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 975e84283c6b3c5c4f7bb8b6f633e4566e26a67e..8c89ccc1b4155a11a717848634be020c33486bf5 100644
--- a/third_party/WebKit/Source/core/frame/HostsUsingFeatures.cpp
+++ b/third_party/WebKit/Source/core/frame/HostsUsingFeatures.cpp
@@ -192,6 +192,12 @@ void HostsUsingFeatures::Value::recordETLDPlus1ToRappor(const KURL& url)
Platform::current()->recordRapporURL("PowerfulFeatureUse.ETLDPlus1.GetUserMedia.Insecure", WebURL(url));
if (get(Feature::GetUserMediaSecureHost))
Platform::current()->recordRapporURL("PowerfulFeatureUse.ETLDPlus1.GetUserMedia.Secure", WebURL(url));
+ if (get(Feature::RTCPeerConnectionAudio))
+ Platform::current()->recordRapporURL("RTCPeerConnection.Audio", WebURL(url));
+ if (get(Feature::RTCPeerConnectionVideo))
+ Platform::current()->recordRapporURL("RTCPeerConnection.Video", WebURL(url));
+ if (get(Feature::RTCPeerConnectionDataChannel))
+ Platform::current()->recordRapporURL("RTCPeerConnection.DataChannel", WebURL(url));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698