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

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

Issue 2015433003: Implement MediaMetadata artwork in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed reviewers' comments Created 4 years, 6 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 dfa52cfb2112afb760c33379abdd1dc26136607c..7b131746ba19f61770ff0ea09bfd2f008b91a9c5 100644
--- a/content/browser/android/web_contents_observer_proxy.cc
+++ b/content/browser/android/web_contents_observer_proxy.cc
@@ -315,6 +315,10 @@ void WebContentsObserverProxy::MediaSessionStateChanged(
JNIEnv* env = AttachCurrentThread();
ScopedJavaLocalRef<jobject> obj(java_observer_);
+
+ // TODO(zqzhang): the metadata is sent though JNI everytime the media session
+ // play/pause state changes. Need to find a way to seprate the state change
+ // and Metadata update. See https://crbug.com/621855.
ScopedJavaLocalRef<jobject> j_metadata =
MediaMetadataAndroid::CreateJavaObject(env, metadata);

Powered by Google App Engine
This is Rietveld 408576698