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

Unified Diff: content/browser/media/android/browser_media_player_manager.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 | « no previous file | content/browser/media/android/media_web_contents_observer_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/android/browser_media_player_manager.cc
diff --git a/content/browser/media/android/browser_media_player_manager.cc b/content/browser/media/android/browser_media_player_manager.cc
index a7d21cb16def403a5a8c04034bd928240839304f..23ea2146590d965876c8eb4e3710118e70cd5985 100644
--- a/content/browser/media/android/browser_media_player_manager.cc
+++ b/content/browser/media/android/browser_media_player_manager.cc
@@ -32,6 +32,7 @@
#include "media/base/android/media_player_bridge.h"
#include "media/base/android/media_source_player.h"
#include "media/base/android/media_url_interceptor.h"
+#include "media/base/media_content_type.h"
#if !defined(USE_AURA)
#include "content/browser/android/content_view_core_impl.h"
@@ -442,7 +443,8 @@ bool BrowserMediaPlayerManager::RequestPlay(int player_id,
return MediaWebContentsObserverAndroid::FromWebContents(web_contents_)
->RequestPlay(render_frame_host_,
player_id_to_delegate_id_map_[player_id], has_audio,
- IsPlayingRemotely(player_id), duration);
+ IsPlayingRemotely(player_id),
+ media::DurationToMediaContentType(duration));
}
#if defined(VIDEO_HOLE)
« no previous file with comments | « no previous file | content/browser/media/android/media_web_contents_observer_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698