| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |