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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp

Issue 2856783002: Autoplay time metric (Closed)
Patch Set: comments addressed Created 3 years, 7 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 ae052f1145fda99129cf8ee7b929dbc64a9aae32..bfabd845c398a6dffcec598735b4342d9786288b 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(GetLoadType());
// 9 - Run the appropriate steps...
switch (mode) {

Powered by Google App Engine
This is Rietveld 408576698