Commit 8af59a58 authored by Reilly Grant's avatar Reilly Grant Committed by Commit Bot

[RAPPOR] Remove unused PowerfulFeatures metrics

These metrics for usage of the device motion and orientation sensor APIs
are unused because these features are no longer available in insecure
contexts.

Bug: 1016906
Change-Id: I86f4d7f5979b307753b0ee6c5a96fb4b1d1af6cc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1904749
Commit-Queue: Reilly Grant <reillyg@chromium.org>
Reviewed-by: default avatarMark Pearson <mpearson@chromium.org>
Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#713973}
parent 7e07c12d
......@@ -129,12 +129,6 @@ void HostsUsingFeatures::Value::Aggregate(HostsUsingFeatures::Value other) {
}
void HostsUsingFeatures::Value::RecordHostToRappor(const String& host) {
if (Get(Feature::kDeviceMotionInsecureHost))
Platform::Current()->RecordRappor(
"PowerfulFeatureUse.Host.DeviceMotion.Insecure", host);
if (Get(Feature::kDeviceOrientationInsecureHost))
Platform::Current()->RecordRappor(
"PowerfulFeatureUse.Host.DeviceOrientation.Insecure", host);
if (Get(Feature::kFullscreenInsecureHost))
Platform::Current()->RecordRappor(
"PowerfulFeatureUse.Host.Fullscreen.Insecure", host);
......
......@@ -30,8 +30,8 @@ class CORE_EXPORT HostsUsingFeatures {
kElementCreateShadowRoot_Unused,
kDocumentRegisterElement_Unused,
kEventPath_Unused,
kDeviceMotionInsecureHost,
kDeviceOrientationInsecureHost,
kDeviceMotionInsecureHost_Unused,
kDeviceOrientationInsecureHost_Unused,
kFullscreenInsecureHost,
kGeolocationInsecureHost,
kGetUserMediaInsecureHost,
......
......@@ -205,23 +205,6 @@ components/rappor/rappor_parameters.h.
</summary>
</rappor-metric>
<rappor-metric name="PowerfulFeatureUse.Host.DeviceMotion.Insecure"
type="ETLD_PLUS_ONE">
<owner>jww@chromium.org</owner>
<summary>
The host of the URL that uses the device motion API from an insecure origin.
</summary>
</rappor-metric>
<rappor-metric name="PowerfulFeatureUse.Host.DeviceOrientation.Insecure"
type="ETLD_PLUS_ONE">
<owner>jww@chromium.org</owner>
<summary>
The host of the URL that uses the device orientation API from an insecure
origin.
</summary>
</rappor-metric>
<rappor-metric name="PowerfulFeatureUse.Host.Fullscreen.Insecure"
type="ETLD_PLUS_ONE">
<owner>jww@chromium.org</owner>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment