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

Unified Diff: chrome/common/chrome_content_client.cc

Issue 1907263003: media: Set MediaClientAndroid in the GPU process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: chrome/common/chrome_content_client.cc
diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
index 9854e9261278c37f957c650756f96adb80958ee6..c02f6fa64d802a0b0285dd4fdaa6dfa109bb8e45 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -77,6 +77,10 @@
#include "chrome/common/widevine_cdm_constants.h"
#endif
+#if defined(OS_ANDROID)
+#include "chrome/common/chrome_media_client_android.h"
+#endif
+
namespace {
#if defined(ENABLE_PLUGINS)
@@ -647,3 +651,9 @@ bool ChromeContentClient::IsSupplementarySiteIsolationModeEnabled() {
base::StringPiece ChromeContentClient::GetOriginTrialPublicKey() {
return origin_trial_key_manager_.GetPublicKey();
}
+
+#if defined(OS_ANDROID)
+media::MediaClientAndroid* ChromeContentClient::GetMediaClientAndroid() {
+ return new ChromeMediaClientAndroid();
+}
+#endif // OS_ANDROID

Powered by Google App Engine
This is Rietveld 408576698