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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2640143002: Allow autoplay unmuted for WebAPK in the manifest scope (Closed)
Patch Set: fixed Android build and layout tests Created 3 years, 10 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: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index f3b38e87349573ba4ab264c280652036fdf0f701..d19296656b129838bf9a07b4efff0cfd8275684e 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -595,6 +595,12 @@ void RenderViewImpl::Initialize(
const base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();
+#if defined(OS_ANDROID)
+ webview()->settings()->setMediaPlaybackGestureWhitelistScope(
+ blink::WebString::fromASCII(command_line.GetSwitchValueASCII(
+ switches::kMediaPlaybackGestureWhitelistScope)));
+#endif
mlamouri (slow - plz ping) 2017/02/10 14:28:45 Instead of having `#if defined`, could we do: ```
Zhiqiang Zhang (Slow) 2017/02/10 14:47:10 Done.
+
if (command_line.HasSwitch(switches::kStatsCollectionController))
stats_collection_observer_.reset(new StatsCollectionObserver(this));

Powered by Google App Engine
This is Rietveld 408576698