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

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: adding sanitize check for artwork 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..7676e11118bb8710c8346edbb78571d999adcdbf 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.
palmer 2016/06/20 21:34:20 It's a good idea to attach a crbug link to all TOD
Zhiqiang Zhang (Slow) 2016/06/21 11:08:42 Done.
ScopedJavaLocalRef<jobject> j_metadata =
MediaMetadataAndroid::CreateJavaObject(env, metadata);

Powered by Google App Engine
This is Rietveld 408576698