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

Unified Diff: media/crypto/aes_decryptor.cc

Issue 16297002: Update media/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 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/base/video_util_unittest.cc ('k') | media/crypto/aes_decryptor_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/crypto/aes_decryptor.cc
diff --git a/media/crypto/aes_decryptor.cc b/media/crypto/aes_decryptor.cc
index 6402ef0fb2bf30fb43af91bab1eea49b1acdb6cc..65b736a72fce4290e723453c4bfbed05011d080b 100644
--- a/media/crypto/aes_decryptor.cc
+++ b/media/crypto/aes_decryptor.cc
@@ -253,8 +253,8 @@ void AesDecryptor::Decrypt(StreamType stream_type,
}
crypto::SymmetricKey* decryption_key = key->decryption_key();
- decrypted = DecryptData(*encrypted, decryption_key);
- if (!decrypted) {
+ decrypted = DecryptData(*encrypted.get(), decryption_key);
+ if (!decrypted.get()) {
DVLOG(1) << "Decryption failed.";
decrypt_cb.Run(kError, NULL);
return;
« no previous file with comments | « media/base/video_util_unittest.cc ('k') | media/crypto/aes_decryptor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698