Use the data from the Media Engagement Index to bypass autoplay policies.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/9470c458579dffdc25b05ed186000706ce70e7ed commit 9470c458579dffdc25b05ed186000706ce70e7ed Author: Becca Hughes <beccahughes@chromium.org> Date: Thu Jul 27 22:51:05 2017 Media Engagement: Allow high MEI sites to bypass autoplay policies. Sites with a high MEI score should bypass autoplay policies. This is behind a feature flag that is separate from collecting the data. BUG= 738454 Change-Id: I6eb64a0ce0b196332d380337f5ed333f903f9784 Reviewed-on: https://chromium-review.googlesource.com/558348 Commit-Queue: Becca Hughes <beccahughes@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Reviewed-by: Mounir Lamouri <mlamouri@chromium.org> Reviewed-by: Jochen Eisinger <jochen@chromium.org> Cr-Commit-Position: refs/heads/master@{#490038} [modify] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/chrome/browser/DEPS [add] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/chrome/browser/media/media_engagement_autoplay_browsertest.cc [modify] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/chrome/browser/media/media_engagement_browsertest.cc [modify] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/chrome/browser/media/media_engagement_contents_observer.cc [modify] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/chrome/browser/media/media_engagement_contents_observer.h [modify] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/chrome/test/BUILD.gn [add] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/chrome/test/data/media/engagement/engagement_autoplay_iframe_test.html [add] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/chrome/test/data/media/engagement/engagement_autoplay_iframe_test_frame.html [add] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/chrome/test/data/media/engagement/engagement_autoplay_test.html [modify] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/content/child/runtime_features.cc [modify] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/content/renderer/render_frame_impl.cc [modify] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/content/renderer/render_frame_impl.h [modify] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/media/base/media_switches.cc [modify] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/media/base/media_switches.h [modify] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/third_party/WebKit/Source/core/dom/Document.h [modify] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/third_party/WebKit/Source/core/frame/WebLocalFrameImpl.cpp [modify] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/third_party/WebKit/Source/core/frame/WebLocalFrameImpl.h [modify] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/third_party/WebKit/Source/core/html/media/AutoplayPolicy.cpp [modify] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5 [modify] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/third_party/WebKit/Source/platform/exported/WebRuntimeFeatures.cpp [modify] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/third_party/WebKit/public/BUILD.gn [modify] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/third_party/WebKit/public/platform/WebRuntimeFeatures.h [add] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/third_party/WebKit/public/platform/media_engagement.mojom [modify] https://crrev.com/9470c458579dffdc25b05ed186000706ce70e7ed/third_party/WebKit/public/web/WebLocalFrame.h
Comment 1 by beccahughes@chromium.org
, Jul 27 2017