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()); |