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

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

Issue 2428873002: Add about_flag for experimenting MediaSession on Desktop (Closed)
Patch Set: fixed cast_shell build 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 | « content/browser/media/session/pepper_playback_observer.h ('k') | media/base/media_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/session/pepper_playback_observer.cc
diff --git a/content/browser/media/session/pepper_playback_observer.cc b/content/browser/media/session/pepper_playback_observer.cc
index 8132f3ea3803e4c22fb3816756ce0f541dcc5d31..c0cc7e75a9be8548f67f9a080ed0098a97658494 100644
--- a/content/browser/media/session/pepper_playback_observer.cc
+++ b/content/browser/media/session/pepper_playback_observer.cc
@@ -46,8 +46,11 @@ void PepperPlaybackObserver::PepperInstanceDeleted(int32_t pp_instance) {
void PepperPlaybackObserver::PepperStartsPlayback(int32_t pp_instance) {
players_played_sound_map_[pp_instance] = true;
- if (!base::FeatureList::IsEnabled(media::kFlashJoinsMediaSession))
+ if (base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ switches::kEnableDefaultMediaSession) !=
+ switches::kEnableDefaultMediaSessionWithFlash) {
return;
+ }
if (players_map_.count(pp_instance))
return;
« no previous file with comments | « content/browser/media/session/pepper_playback_observer.h ('k') | media/base/media_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698