Index: tools/metrics/histograms/histograms.xml |
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml |
index 32d7f49e15fde49dffc09dca41d4e4bc6231d5f1..47b052145d3c44d3c2900368665b1ac61e44e3a2 100644 |
--- a/tools/metrics/histograms/histograms.xml |
+++ b/tools/metrics/histograms/histograms.xml |
@@ -45593,6 +45593,52 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries. |
</summary> |
</histogram> |
+<histogram name="Permissions.AutoBlocker.EmbargoReason" |
+ enum="PermissionEmbargoReason"> |
+ <owner>dominickn@chromium.org</owner> |
+ <owner>kcarattini@chromium.org</owner> |
+ <summary> |
+ Tracks the reason that an (origin, permission) pair has been placed under |
+ embargo (blocked from making requests for that permission for a period of |
+ time). |
+ </summary> |
+</histogram> |
+ |
+<histogram name="Permissions.AutoBlocker.RepeatedEmbargo" |
+ enum="PermissionEmbargoReason"> |
+ <owner>dominickn@chromium.org</owner> |
+ <owner>kcarattini@chromium.org</owner> |
+ <summary> |
+ Records occurences of permission requests being placed under embargo after |
+ the embargo period has ended. This can occur on the next permission request |
+ after the embargo period has ended, if the origin is still blacklisted, or |
+ another dismissal is recorded. This only tracks when the embargo is |
+ reinstated for the same type of permission. |
+ </summary> |
+</histogram> |
+ |
+<histogram name="Permissions.AutoBlocker.SafeBrowsingResponse" |
+ enum="SafeBrowsingResponse"> |
+ <owner>dominickn@chromium.org</owner> |
+ <owner>kcarattini@chromium.org</owner> |
+ <summary> |
+ Tracks the response (if received) from Safe Browsing when the API blacklist |
+ is queried for an (origin, permission) pair. The response could be that the |
+ origin was blacklisted, not blacklisted, or Safe Browsing timed out before a |
+ response was received. |
+ </summary> |
+</histogram> |
+ |
+<histogram name="Permissions.AutoBlocker.SafeBrowsingResponseTime" units="ms"> |
+ <owner>dominickn@chromium.org</owner> |
+ <owner>kcarattini@chromium.org</owner> |
+ <summary> |
+ Records the elapsed time between the client sending a request to Safe |
+ Browsing and receiving a result, or the maximum wait time is exceeded and |
+ Safe Browsing is deemed to have timed out. |
+ </summary> |
+</histogram> |
+ |
<histogram name="Permissions.Prompt.Accepted" enum="PermissionRequestType"> |
<owner>dominickn@chromium.org</owner> |
<owner>kcarattini@chromium.org</owner> |
@@ -101227,6 +101273,12 @@ value. |
<int value="4" label="REVOKED"/> |
</enum> |
+<enum name="PermissionEmbargoReason" type="int"> |
+ <int value="0" label="REPEATED_DISMISSALS"/> |
+ <int value="1" label="PERMISSIONS_BLACKLISTING"/> |
+ <int value="2" label="NOT_EMBARGOED"/> |
+</enum> |
+ |
<enum name="PermissionRequestType" type="int"> |
<int value="0" label="PERMISSION_BUBBLE_UNKNOWN"/> |
<int value="1" label="PERMISSION_BUBBLE_MULTIPLE"/> |
@@ -103845,6 +103897,12 @@ value. |
<int value="4" label="NO_STATE_ERROR"/> |
</enum> |
+<enum name="SafeBrowsingResponse" type="int"> |
+ <int value="0" label="NOT_BLACKLISTED"/> |
+ <int value="1" label="TIMEOUT"/> |
+ <int value="2" label="BLACKLISTED"/> |
+</enum> |
+ |
<enum name="SafeBrowsingV4ApplyUpdateResult" type="int"> |
<int value="0" label="APPLY_UPDATE_SUCCESS"/> |
<int value="1" label="UNEXPECTED_APPLY_UPDATE_FAILURE"/> |