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

Unified Diff: third_party/WebKit/Source/modules/mediasession/MediaMetadata.cpp

Issue 2367393002: Migrating MediaSession messages to mojo (Closed)
Patch Set: rebase onto new mojo types Created 4 years, 3 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: third_party/WebKit/Source/modules/mediasession/MediaMetadata.cpp
diff --git a/third_party/WebKit/Source/modules/mediasession/MediaMetadata.cpp b/third_party/WebKit/Source/modules/mediasession/MediaMetadata.cpp
index ed473290ea14a863062d9e324356b9b4d0e6e2f6..68290497c562751aa7032e7214b84911466843f4 100644
--- a/third_party/WebKit/Source/modules/mediasession/MediaMetadata.cpp
+++ b/third_party/WebKit/Source/modules/mediasession/MediaMetadata.cpp
@@ -45,20 +45,6 @@ const HeapVector<Member<MediaArtwork>>& MediaMetadata::artwork() const
return m_artwork;
}
-MediaMetadata::operator WebMediaMetadata() const
-{
- WebMediaMetadata webMetadata;
- webMetadata.title = m_title;
- webMetadata.artist = m_artist;
- webMetadata.album = m_album;
- WebVector<WebMediaArtwork> webArtwork(m_artwork.size());
- for (size_t i = 0; i < m_artwork.size(); ++i) {
- webArtwork[i] = *m_artwork[i]->data();
- }
- webMetadata.artwork.swap(webArtwork);
- return webMetadata;
-}
-
DEFINE_TRACE(MediaMetadata)
{
visitor->trace(m_artwork);

Powered by Google App Engine
This is Rietveld 408576698