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

Unified Diff: media/blink/webmediaplayer_impl.cc

Issue 2141293002: [Cast for ATV] Enable UMP on Cast for ATV (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« build/config/features.gni ('K') | « media/base/media_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webmediaplayer_impl.cc
diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc
index c0cdfcc5c25245dd8da65c0ec0c301947fcd5b88..6098dcacb4719d1a2118285dd17ed0499533f3f6 100644
--- a/media/blink/webmediaplayer_impl.cc
+++ b/media/blink/webmediaplayer_impl.cc
@@ -179,7 +179,6 @@ WebMediaPlayerImpl::WebMediaPlayerImpl(
pending_suspend_resume_cycle_(false),
ended_(false),
should_notify_time_changed_(false),
- fullscreen_(false),
decoder_requires_restart_for_fullscreen_(false),
client_(client),
encrypted_client_(encrypted_client),
@@ -212,6 +211,9 @@ WebMediaPlayerImpl::WebMediaPlayerImpl(
DCHECK(renderer_factory_);
DCHECK(client_);
+ fullscreen_ = base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kForceMediaPlayerStartingInFullscreenMode);
halliwell 2016/07/14 16:37:35 I'm concerned that what we want on ATV is not tech
liberato (no reviews please) 2016/07/14 16:53:36 +1, similar to my comment in PS2 -- we shoudln't o
AndyWu 2016/07/14 19:02:08 Totally agree, what we need is overlay codepath, n
+
if (delegate_)
delegate_id_ = delegate_->AddObserver(this);
« build/config/features.gni ('K') | « media/base/media_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698