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

Unified Diff: Source/core/frame/OriginsUsingFeatures.cpp

Issue 1307663003: Update getUserMedia counts to count Promise API and secure origin use (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add actual counting of GetUserMedia.Secure Created 5 years, 4 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 | « Source/core/frame/OriginsUsingFeatures.h ('k') | Source/modules/mediastream/MediaDevices.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/OriginsUsingFeatures.cpp
diff --git a/Source/core/frame/OriginsUsingFeatures.cpp b/Source/core/frame/OriginsUsingFeatures.cpp
index 108e0236a39425a44c1826bd700ff20dcd684d7a..8a45175f3855cd5657587e3c4feef246ada05a20 100644
--- a/Source/core/frame/OriginsUsingFeatures.cpp
+++ b/Source/core/frame/OriginsUsingFeatures.cpp
@@ -155,6 +155,8 @@ void OriginsUsingFeatures::Value::recordOriginToRappor(const String& origin)
Platform::current()->recordRappor("PowerfulFeatureUse.Host.Geolocation.Insecure", origin);
if (get(Feature::GetUserMediaInsecureOrigin))
Platform::current()->recordRappor("PowerfulFeatureUse.Host.GetUserMedia.Insecure", origin);
+ if (get(Feature::GetUserMediaSecureOrigin))
+ Platform::current()->recordRappor("PowerfulFeatureUse.Host.GetUserMedia.Secure", origin);
}
void OriginsUsingFeatures::Value::recordNameToRappor(const String& name)
« no previous file with comments | « Source/core/frame/OriginsUsingFeatures.h ('k') | Source/modules/mediastream/MediaDevices.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698