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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2640143002: Allow autoplay unmuted for WebAPK in the manifest scope (Closed)
Patch Set: addressed mlamouri's comments & cl format 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 b5e27413921750e87bbc68848979bdd9bd50ba35..0accef214750a7f5c5cf6888a7f15ecc8a11a1ea 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -626,6 +626,12 @@ void RenderViewImpl::Initialize(
const base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();
+ if (command_line.HasSwitch(switches::kMediaPlaybackGestureWhitelistScope)) {
+ webview()->settings()->setMediaPlaybackGestureWhitelistScope(
+ blink::WebString::fromASCII(command_line.GetSwitchValueASCII(
+ switches::kMediaPlaybackGestureWhitelistScope)));
+ }
+
if (command_line.HasSwitch(switches::kStatsCollectionController))
stats_collection_observer_.reset(new StatsCollectionObserver(this));

Powered by Google App Engine
This is Rietveld 408576698