Chromecast: adds Android switches for media playback. Since Cast disables all user interaction, gesture requirement/infobar are not useful. The other flags are for protected content playback. R=xhwang@chromium.org,byungchul@chromium.org BUG=400876 Review URL: https://codereview.chromium.org/597813002 Cr-Commit-Position: refs/heads/master@{#297113}
diff --git a/chromecast/shell/browser/DEPS b/chromecast/shell/browser/DEPS index 1c35d9c..78e621df 100644 --- a/chromecast/shell/browser/DEPS +++ b/chromecast/shell/browser/DEPS
@@ -1,3 +1,4 @@ include_rules = [ "+content/public/browser", + "+media/base", ]
diff --git a/chromecast/shell/browser/cast_browser_main_parts.cc b/chromecast/shell/browser/cast_browser_main_parts.cc index ea05ec8..6d1a96ba 100644 --- a/chromecast/shell/browser/cast_browser_main_parts.cc +++ b/chromecast/shell/browser/cast_browser_main_parts.cc
@@ -19,6 +19,7 @@ #include "chromecast/shell/browser/webui/webui_cast.h" #include "content/public/browser/browser_thread.h" #include "content/public/common/content_switches.h" +#include "media/base/media_switches.h" #if defined(OS_ANDROID) #include "net/android/network_change_notifier_factory_android.h" @@ -35,6 +36,12 @@ }; DefaultCommandLineSwitch g_default_switches[] = { +#if defined(OS_ANDROID) + { switches::kMediaDrmEnableNonCompositing, ""}, + { switches::kEnableOverlayFullscreenVideo, ""}, + { switches::kDisableInfobarForProtectedMediaIdentifier, ""}, + { switches::kDisableGestureRequirementForMediaPlayback, ""}, +#endif { switches::kDisableApplicationCache, "" }, { switches::kDisablePlugins, "" }, // Always enable HTMLMediaElement logs.