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

Unified Diff: third_party/WebKit/Source/core/html/AutoplayUmaHelper.h

Issue 2111673004: When autoplay of muted videos is disabled, record the reason why. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
Index: third_party/WebKit/Source/core/html/AutoplayUmaHelper.h
diff --git a/third_party/WebKit/Source/core/html/AutoplayUmaHelper.h b/third_party/WebKit/Source/core/html/AutoplayUmaHelper.h
index edfca0b8d490f2fa15796a60997b9947d360f61d..cb991a4de50009a222e3464eb077533e01fc4d26 100644
--- a/third_party/WebKit/Source/core/html/AutoplayUmaHelper.h
+++ b/third_party/WebKit/Source/core/html/AutoplayUmaHelper.h
@@ -27,6 +27,15 @@ enum class AutoplayUnmuteActionStatus {
NumberOfStatus = 2,
};
+// These values are used for histograms. Do not reorder.
+enum AutoplayBlockedReason {
+ AutoplayBlockedReasonDataSaver = 0,
+ AutoplayBlockedReasonSetting = 1,
+ AutoplayBlockedReasonDataSaverAndSetting = 2,
+ // Keey at the end.
+ AutoplayBlockedReasonMax = 3
+};
+
class Document;
class ElementVisibilityObserver;
class HTMLMediaElement;

Powered by Google App Engine
This is Rietveld 408576698