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

Unified Diff: content/browser/media/media_web_contents_observer.cc

Issue 1996043002: Split MediaContentType and AudioFocusType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed nits Created 4 years, 4 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 | « content/browser/media/media_web_contents_observer.h ('k') | content/browser/media/session/media_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/media_web_contents_observer.cc
diff --git a/content/browser/media/media_web_contents_observer.cc b/content/browser/media/media_web_contents_observer.cc
index c15de1c0c7e738ee458450a1c75503e5b9ddda7d..a4179a72620d32bc12c9f5c76ff63efaf7171545 100644
--- a/content/browser/media/media_web_contents_observer.cc
+++ b/content/browser/media/media_web_contents_observer.cc
@@ -127,7 +127,7 @@ void MediaWebContentsObserver::OnMediaPlaying(
bool has_video,
bool has_audio,
bool is_remote,
- base::TimeDelta duration) {
+ media::MediaContentType media_content_type) {
// Ignore the videos playing remotely and don't hold the wake lock for the
// screen. TODO(dalecurtis): Is this correct? It means observers will not
// receive play and pause messages.
@@ -157,7 +157,7 @@ void MediaWebContentsObserver::OnMediaPlaying(
}
if (!session_controllers_manager_.RequestPlay(
- id, has_audio, is_remote, duration)) {
+ id, has_audio, is_remote, media_content_type)) {
return;
}
« no previous file with comments | « content/browser/media/media_web_contents_observer.h ('k') | content/browser/media/session/media_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698