| 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();
|
| }
|
|
|