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

Unified Diff: content/public/common/media_metadata.cc

Issue 2015433003: Implement MediaMetadata artwork in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed dcheng's comments Created 4 years, 5 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/public/common/media_metadata.cc
diff --git a/content/public/common/media_metadata.cc b/content/public/common/media_metadata.cc
index dc3824c25b0cdc82b515387caec50f9ea356f6b7..32b353a599318fa5fd98cf89a62ab53625368fc2 100644
--- a/content/public/common/media_metadata.cc
+++ b/content/public/common/media_metadata.cc
@@ -4,16 +4,20 @@
#include "content/public/common/media_metadata.h"
-namespace content {
+#include <algorithm>
+#include <iterator>
-const size_t MediaMetadata::kMaxIPCStringLength = 4 * 1024;
+namespace content {
MediaMetadata::MediaMetadata() = default;
MediaMetadata::~MediaMetadata() = default;
+MediaMetadata::MediaMetadata(const MediaMetadata& other) = default;
+
bool MediaMetadata::operator==(const MediaMetadata& other) const {
- return title == other.title && artist == other.artist && album == other.album;
+ return title == other.title && artist == other.artist &&
+ album == other.album && artwork == other.artwork;
}
bool MediaMetadata::operator!=(const MediaMetadata& other) const {

Powered by Google App Engine
This is Rietveld 408576698