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

Unified Diff: content/browser/media/session/media_session.cc

Issue 2428353005: Tuning WebRTC audio focus type (Closed)
Patch Set: fixed nits Created 4 years, 2 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 | « no previous file | content/renderer/media/webmediaplayer_ms.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/session/media_session.cc
diff --git a/content/browser/media/session/media_session.cc b/content/browser/media/session/media_session.cc
index eedfcd1da8f63e2a3996c708d45a8c843e72e11a..ea25caad4df7d8adeb230f46523aa00d64e6c3d1 100644
--- a/content/browser/media/session/media_session.cc
+++ b/content/browser/media/session/media_session.cc
@@ -81,6 +81,8 @@ void MediaSession::SetMetadata(const base::Optional<MediaMetadata>& metadata) {
bool MediaSession::AddPlayer(MediaSessionPlayerObserver* observer,
int player_id,
media::MediaContentType media_content_type) {
+ if (media_content_type == media::MediaContentType::Uncontrollable)
+ return true;
if (media_content_type == media::MediaContentType::Pepper)
return AddPepperPlayer(observer, player_id);
« no previous file with comments | « no previous file | content/renderer/media/webmediaplayer_ms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698