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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2015433003: Implement MediaMetadata artwork in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed tests Created 4 years, 7 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/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index d03217ab7fa239efb8f2ae6428e24dae465a32e0..57312a17790d079b984f59e73e960a4b0e35755e 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -3761,8 +3761,7 @@ void WebContentsImpl::OnMediaSessionStateChanged() {
MediaSession* session = MediaSession::Get(this);
FOR_EACH_OBSERVER(WebContentsObserver, observers_,
MediaSessionStateChanged(session->IsControllable(),
- session->IsSuspended(),
- session->metadata()));
+ session->IsSuspended()));
}
void WebContentsImpl::ResumeMediaSession() {
@@ -3777,6 +3776,12 @@ void WebContentsImpl::StopMediaSession() {
MediaSession::Get(this)->Stop(MediaSession::SuspendType::UI);
}
+void WebContentsImpl::OnMediaMetadataChanged() {
+ MediaSession* session = MediaSession::Get(this);
+ FOR_EACH_OBSERVER(WebContentsObserver, observers_,
+ MediaMetadataChanged(session->metadata()));
+}
+
void WebContentsImpl::OnFirstVisuallyNonEmptyPaint() {
FOR_EACH_OBSERVER(WebContentsObserver, observers_,
DidFirstVisuallyNonEmptyPaint());

Powered by Google App Engine
This is Rietveld 408576698