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

Side by Side Diff: content/browser/media/session/media_metadata_sanitizer.cc

Issue 2399023002: Make MediaSession available on Desktop (Closed)
Patch Set: merge BrowserMediaSessionManager into MediaSessionServiceImpl, temporarily removing BrowserTests Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/media/media_metadata_sanitizer.h" 5 #include "content/browser/media/session/media_metadata_sanitizer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "content/public/common/media_metadata.h" 10 #include "content/public/common/media_metadata.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 namespace { 14 namespace {
15 15
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 CheckArtworkSanity(artwork) ? artwork : SanitizeArtwork(artwork)); 101 CheckArtworkSanity(artwork) ? artwork : SanitizeArtwork(artwork));
102 102
103 if (sanitized_metadata.artwork.size() == kMaxNumberOfArtworkImages) 103 if (sanitized_metadata.artwork.size() == kMaxNumberOfArtworkImages)
104 break; 104 break;
105 } 105 }
106 106
107 return sanitized_metadata; 107 return sanitized_metadata;
108 } 108 }
109 109
110 } // namespace content 110 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698