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

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

Issue 2439483003: Link MediaSessionTabHelper with native MediaSession [CL is going to be split] (Closed)
Patch Set: Super rough, please give some initial feedbacks 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/web_contents_observer_proxy.cc
diff --git a/content/browser/android/web_contents_observer_proxy.cc b/content/browser/android/web_contents_observer_proxy.cc
index ca274f8f0dd116f093012d0da0cf7dacb09234b9..2f1e962f52afb4165759f0ea25974562e3e5df3b 100644
--- a/content/browser/android/web_contents_observer_proxy.cc
+++ b/content/browser/android/web_contents_observer_proxy.cc
@@ -306,30 +306,6 @@ void WebContentsObserverProxy::DidStartNavigationToPendingEntry(
jstring_url);
}
-void WebContentsObserverProxy::MediaSessionStateChanged(bool is_controllable,
- bool is_suspended) {
- JNIEnv* env = AttachCurrentThread();
-
- ScopedJavaLocalRef<jobject> obj(java_observer_);
-
- Java_WebContentsObserverProxy_mediaSessionStateChanged(
- env, obj, is_controllable, is_suspended);
-}
-
-void WebContentsObserverProxy::MediaSessionMetadataChanged(
- const base::Optional<MediaMetadata>& metadata) {
- JNIEnv* env = AttachCurrentThread();
-
- ScopedJavaLocalRef<jobject> obj(java_observer_);
- ScopedJavaLocalRef<jobject> j_metadata;
-
- if (metadata.has_value())
- j_metadata = MediaMetadataAndroid::CreateJavaObject(env, metadata.value());
-
- Java_WebContentsObserverProxy_mediaSessionMetadataChanged(env, obj,
- j_metadata);
-}
-
void WebContentsObserverProxy::SetToBaseURLForDataURLIfNeeded(
std::string* url) {
NavigationEntry* entry =

Powered by Google App Engine
This is Rietveld 408576698