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

Unified Diff: third_party/WebKit/Source/modules/geolocation/Geolocation.cpp

Issue 1578263006: Add metrics for usage of permission features from iframes in blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
diff --git a/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp b/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
index c39dc507b8c19f4eeb750d32de7af56ef3954e96..29fc6138ddd8d7ddd06d6faaf45698dcc0d56af2 100644
--- a/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
+++ b/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
@@ -157,8 +157,10 @@ void Geolocation::recordOriginTypeAccess() const
String insecureOriginMsg;
if (document->isSecureContext(insecureOriginMsg)) {
UseCounter::count(document, UseCounter::GeolocationSecureOrigin);
+ UseCounter::countCrossOriginIframe(*document, UseCounter::GeolocationSecureOriginIframe);
} else {
UseCounter::countDeprecation(document, UseCounter::GeolocationInsecureOrigin);
+ UseCounter::countCrossOriginIframe(*document, UseCounter::GeolocationInsecureOriginIframe);
OriginsUsingFeatures::countAnyWorld(*document, OriginsUsingFeatures::Feature::GeolocationInsecureOrigin);
}
}

Powered by Google App Engine
This is Rietveld 408576698