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

Unified Diff: third_party/WebKit/Source/modules/mediastream/UserMediaRequest.cpp

Issue 2057153002: Add GetUserMedia ETLD+1 rappor metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change approach to use per-document instead of per-call stats, update metric names 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/modules/mediastream/UserMediaRequest.cpp
diff --git a/third_party/WebKit/Source/modules/mediastream/UserMediaRequest.cpp b/third_party/WebKit/Source/modules/mediastream/UserMediaRequest.cpp
index f869e7822a0b3ae61093454c11113a0b13b4df51..eb53176f1a2598a244d23e2e64194557e0486dc2 100644
--- a/third_party/WebKit/Source/modules/mediastream/UserMediaRequest.cpp
+++ b/third_party/WebKit/Source/modules/mediastream/UserMediaRequest.cpp
@@ -46,6 +46,7 @@
#include "modules/mediastream/UserMediaController.h"
#include "platform/mediastream/MediaStreamCenter.h"
#include "platform/mediastream/MediaStreamDescriptor.h"
+#include "public/platform/Platform.h"
namespace blink {
@@ -133,6 +134,7 @@ bool UserMediaRequest::isSecureContextUse(String& errorMessage)
UseCounter::count(document->frame(), UseCounter::GetUserMediaSecureOrigin);
UseCounter::countCrossOriginIframe(*document, UseCounter::GetUserMediaSecureOriginIframe);
HostsUsingFeatures::countAnyWorld(*document, HostsUsingFeatures::Feature::GetUserMediaSecureHost);
+ HostsUsingFeatures::countAnyWorld(*document, HostsUsingFeatures::Feature::GetUserMediaSecureETLDPlus1);
return true;
}
@@ -141,6 +143,7 @@ bool UserMediaRequest::isSecureContextUse(String& errorMessage)
Deprecation::countDeprecation(document->frame(), UseCounter::GetUserMediaInsecureOrigin);
Deprecation::countDeprecationCrossOriginIframe(*document, UseCounter::GetUserMediaInsecureOriginIframe);
HostsUsingFeatures::countAnyWorld(*document, HostsUsingFeatures::Feature::GetUserMediaInsecureHost);
+ HostsUsingFeatures::countAnyWorld(*document, HostsUsingFeatures::Feature::GetUserMediaInsecureETLDPlus1);
return false;
}

Powered by Google App Engine
This is Rietveld 408576698