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

Unified Diff: content/browser/android/browser_jni_registrar.cc

Issue 2444833004: Decouple MediaSession/MediaSessionObserver from WebContents in Java[OBSOLETE, go to the combined CL] (Closed)
Patch Set: 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
Index: content/browser/android/browser_jni_registrar.cc
diff --git a/content/browser/android/browser_jni_registrar.cc b/content/browser/android/browser_jni_registrar.cc
index 32dfc1042175dd3e5a5f4dd80846f148929c582e..c4eeed79da9dabe33428b06f9bc62639decb57ea 100644
--- a/content/browser/android/browser_jni_registrar.cc
+++ b/content/browser/android/browser_jni_registrar.cc
@@ -25,6 +25,7 @@
#include "content/browser/device_sensors/sensor_manager_android.h"
#include "content/browser/frame_host/navigation_controller_android.h"
#include "content/browser/media/session/audio_focus_delegate_android.h"
+#include "content/browser/media/session/media_session_android.h"
#include "content/browser/memory/memory_monitor_android.h"
#include "content/browser/renderer_host/ime_adapter_android.h"
#include "content/browser/speech/speech_recognizer_impl_android.h"
@@ -54,6 +55,8 @@ base::android::RegistrationMethod kContentRegisteredMethods[] = {
content::InterstitialPageDelegateAndroid::
RegisterInterstitialPageDelegateAndroid},
{"LoadUrlParams", content::RegisterLoadUrlParams},
+ {"MediaSession", content::RegisterMediaSessionNatives},
+ {"MediaSessionImpl", content::MediaSessionAndroid::Register},
{"NavigationControllerAndroid",
content::NavigationControllerAndroid::Register},
{"RegisterImeAdapter", content::RegisterImeAdapter},

Powered by Google App Engine
This is Rietveld 408576698