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

Unified Diff: media/base/android/media_drm_bridge.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 | « content/renderer/pepper/content_decryptor_delegate.cc ('k') | media/base/content_decryption_module.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_drm_bridge.cc
diff --git a/media/base/android/media_drm_bridge.cc b/media/base/android/media_drm_bridge.cc
index 3a4517e434908263cae7a9a3e6719f906bb3006e..066ec2c9259e77882ee9f3af55b955d9436986cb 100644
--- a/media/base/android/media_drm_bridge.cc
+++ b/media/base/android/media_drm_bridge.cc
@@ -18,6 +18,7 @@
#include "base/location.h"
#include "base/logging.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
@@ -740,7 +741,8 @@ void MediaDrmBridge::OnSessionKeysChange(
<< base::HexEncode(&key_id[0], key_id.size()) << ", "
<< key_status;
- cdm_keys_info.push_back(new CdmKeyInformation(key_id, key_status, 0));
+ cdm_keys_info.push_back(
+ base::MakeUnique<CdmKeyInformation>(key_id, key_status, 0));
}
task_runner_->PostTask(
« no previous file with comments | « content/renderer/pepper/content_decryptor_delegate.cc ('k') | media/base/content_decryption_module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698