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

Unified Diff: third_party/WebKit/Source/core/html/media/AutoplayPolicy.cpp

Issue 2856783002: Autoplay time metric (Closed)
Patch Set: added OnLoadStarted() Created 3 years, 8 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/media/AutoplayPolicy.cpp
diff --git a/third_party/WebKit/Source/core/html/media/AutoplayPolicy.cpp b/third_party/WebKit/Source/core/html/media/AutoplayPolicy.cpp
index 6af9d77174907bb7433482daf1c92cbfdaace089..48ea40015dc06b96dd197ea0565ede18dac9d331 100644
--- a/third_party/WebKit/Source/core/html/media/AutoplayPolicy.cpp
+++ b/third_party/WebKit/Source/core/html/media/AutoplayPolicy.cpp
@@ -292,6 +292,10 @@ bool AutoplayPolicy::ShouldAutoplay() {
return element_->can_autoplay_ && element_->paused_ && element_->Autoplay();
}
+void AutoplayPolicy::OnLoadStarted() {
+ autoplay_uma_helper_->OnLoadStarted();
+}
+
DEFINE_TRACE(AutoplayPolicy) {
visitor->Trace(element_);
visitor->Trace(autoplay_visibility_observer_);

Powered by Google App Engine
This is Rietveld 408576698