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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2756553002: Force the video to go fullscreen when setting persistent video (Closed)
Patch Set: addressed nits Created 3 years, 9 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/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index d8bdf2f26bda627ec589ecf4d6eb7989e2938b69..7b067a67bcc8f1359a6c8c8d9724fb0d2ce8b58d 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -5247,12 +5247,13 @@ void WebContentsImpl::DecrementBluetoothConnectedDeviceCount() {
}
}
-void WebContentsImpl::SetHasPersistentVideo(bool value) {
- if (has_persistent_video_ == value)
+void WebContentsImpl::SetHasPersistentVideo(bool has_persistent_video) {
+ if (has_persistent_video_ == has_persistent_video)
return;
- has_persistent_video_ = value;
+ has_persistent_video_ = has_persistent_video;
NotifyPreferencesChanged();
+ media_web_contents_observer()->RequestPersistentVideo(has_persistent_video);
}
#if defined(OS_ANDROID)
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/media/media_player_delegate_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698