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

Unified Diff: content/renderer/pepper/content_decryptor_delegate.cc

Issue 2895573002: Reland of Remove ScopedVector from all other codes in media/ (Closed)
Patch Set: Fix the compile fails in build target "jpeg_decode_accelerator_unittest" Created 3 years, 7 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
« no previous file with comments | « chromecast/media/cdm/cast_cdm.cc ('k') | media/base/android/media_drm_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/content_decryptor_delegate.cc
diff --git a/content/renderer/pepper/content_decryptor_delegate.cc b/content/renderer/pepper/content_decryptor_delegate.cc
index 36a102a93a41c84fc9bf7a0acab4b2097541d4dc..bd18fc8280f995b0049460c13ad155db7c23d66d 100644
--- a/content/renderer/pepper/content_decryptor_delegate.cc
+++ b/content/renderer/pepper/content_decryptor_delegate.cc
@@ -10,6 +10,7 @@
#include "base/callback_helpers.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/metrics/histogram_macros.h"
#include "base/numerics/safe_conversions.h"
#include "base/trace_event/trace_event.h"
@@ -809,7 +810,7 @@ void ContentDecryptorDelegate::OnSessionKeysChange(
keys_info.reserve(key_count);
for (uint32_t i = 0; i < key_count; ++i) {
const auto& info = key_information[i];
- keys_info.push_back(new media::CdmKeyInformation(
+ keys_info.push_back(base::MakeUnique<media::CdmKeyInformation>(
info.key_id, info.key_id_size,
PpCdmKeyStatusToCdmKeyInformationKeyStatus(info.key_status),
info.system_code));
« no previous file with comments | « chromecast/media/cdm/cast_cdm.cc ('k') | media/base/android/media_drm_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698