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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2640023008: Enabling autoplay and fullscreen for downloaded media (Closed)
Patch Set: removed include 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
« no previous file with comments | « chrome/browser/android/tab_android.cc ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 5912d5771b59d834fabdce9579bd1da893d845e1..1aa3a995e3e0c63d1e268d3241e806496f642424 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -2659,13 +2659,16 @@ void ChromeContentBrowserClient::OverrideWebkitPrefs(
web_prefs->data_saver_enabled = GetDataSaverEnabledPref(prefs);
#if defined(OS_ANDROID)
- if (base::FeatureList::IsEnabled(
- features::kAllowAutoplayUnmutedInWebappManifestScope)) {
- content::WebContents* contents =
- content::WebContents::FromRenderViewHost(rvh);
- if (contents) {
- TabAndroid* tab_android = TabAndroid::FromWebContents(contents);
- if (tab_android) {
+ content::WebContents* contents =
+ content::WebContents::FromRenderViewHost(rvh);
+ if (contents) {
+ TabAndroid* tab_android = TabAndroid::FromWebContents(contents);
+ if (tab_android) {
+ web_prefs->embedded_media_experience_enabled =
+ tab_android->ShouldEnableEmbeddedMediaExperience();
+
+ if (base::FeatureList::IsEnabled(
+ features::kAllowAutoplayUnmutedInWebappManifestScope)) {
web_prefs->media_playback_gesture_whitelist_scope =
tab_android->GetWebappManifestScope();
}
« no previous file with comments | « chrome/browser/android/tab_android.cc ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698