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

Unified Diff: chromecast/media/base/decrypt_context_impl_clearkey.cc

Issue 2934893003: Deleted redundant SymmetricKey::GetRawKey(). (Closed)
Patch Set: Rebased to fix conflict with ToT. Created 3 years, 6 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 | « chrome/browser/signin/local_auth.cc ('k') | chromeos/login/auth/key.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/base/decrypt_context_impl_clearkey.cc
diff --git a/chromecast/media/base/decrypt_context_impl_clearkey.cc b/chromecast/media/base/decrypt_context_impl_clearkey.cc
index e3c8cc737c364b23944f508127d3c91ca17c05a0..29c9b24a6d97f0970b636f1d42bc52a59359b45b 100644
--- a/chromecast/media/base/decrypt_context_impl_clearkey.cc
+++ b/chromecast/media/base/decrypt_context_impl_clearkey.cc
@@ -51,11 +51,7 @@ bool DecryptContextImplClearKey::DoDecrypt(CastDecoderBuffer* buffer,
output += data_offset;
// Get the key.
- std::string raw_key;
- if (!key_->GetRawKey(&raw_key)) {
- LOG(ERROR) << "Failed to get the underlying AES key";
- return false;
- }
+ const std::string& raw_key = key_->key();
DCHECK_EQ(static_cast<int>(raw_key.length()), AES_BLOCK_SIZE);
const uint8_t* key_u8 = reinterpret_cast<const uint8_t*>(raw_key.data());
AES_KEY aes_key;
« no previous file with comments | « chrome/browser/signin/local_auth.cc ('k') | chromeos/login/auth/key.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698