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

Unified Diff: media/mojo/services/mojo_cdm_service.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 | « media/mojo/clients/mojo_cdm.cc ('k') | media/remoting/proto_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_cdm_service.cc
diff --git a/media/mojo/services/mojo_cdm_service.cc b/media/mojo/services/mojo_cdm_service.cc
index 4f5d3d426138ae025d6af7c4c35bcf3b22603605..29c3e781b2a23ac0c7bf4a5695a6288db783b2f2 100644
--- a/media/mojo/services/mojo_cdm_service.cc
+++ b/media/mojo/services/mojo_cdm_service.cc
@@ -176,8 +176,8 @@ void MojoCdmService::OnSessionKeysChange(const std::string& session_id,
<< " has_additional_usable_key=" << has_additional_usable_key;
std::vector<mojom::CdmKeyInformationPtr> keys_data;
- for (auto* key : keys_info)
- keys_data.push_back(mojom::CdmKeyInformation::From(*key));
+ for (auto& key : keys_info)
+ keys_data.push_back(mojom::CdmKeyInformation::From(*(key.get())));
client_->OnSessionKeysChange(session_id, has_additional_usable_key,
std::move(keys_data));
}
« no previous file with comments | « media/mojo/clients/mojo_cdm.cc ('k') | media/remoting/proto_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698