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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.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/HTMLMediaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
index 8449fc05c0cc2b33f78ff0cfcb5ab7cbaaf2a2a9..b8d7da09e1990841c6f40ea6704b76824d2795d9 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -1028,6 +1028,7 @@ void HTMLMediaElement::SelectMediaResource() {
// 8 - Queue a task to fire a simple event named loadstart at the media
// element.
ScheduleEvent(EventTypeNames::loadstart);
+ autoplay_policy_->OnLoadStarted();
// 9 - Run the appropriate steps...
switch (mode) {

Powered by Google App Engine
This is Rietveld 408576698