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

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

Issue 2856783002: Autoplay time metric (Closed)
Patch Set: remove MS postfix 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 1ac4e2e811c10afb9afc31d22873a4ae3b3c15c3..eaf54bc1d4938a340a43b0a897a20ade336bd74d 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) {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/media/AutoplayPolicy.h » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698