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

Unified Diff: media/webm/webm_content_encodings_client.cc

Issue 10826098: Use std::string for decryption key ID in webm parser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 5 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/webm/webm_content_encodings.cc ('k') | media/webm/webm_content_encodings_client_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/webm/webm_content_encodings_client.cc
diff --git a/media/webm/webm_content_encodings_client.cc b/media/webm/webm_content_encodings_client.cc
index a24b4bfa672946cdfbc8a475bbb709b104b391ef..2541e0b84eadd599dbc22350b5c1d87ca74475fe 100644
--- a/media/webm/webm_content_encodings_client.cc
+++ b/media/webm/webm_content_encodings_client.cc
@@ -248,8 +248,7 @@ bool WebMContentEncodingsClient::OnBinary(int id, const uint8* data, int size) {
DCHECK_GT(size, 0);
if (id == kWebMIdContentEncKeyID) {
- if (cur_content_encoding_->encryption_key_id() ||
- cur_content_encoding_->encryption_key_id_size()) {
+ if (!cur_content_encoding_->encryption_key_id().empty()) {
DVLOG(1) << "Unexpected multiple ContentEncKeyID";
return false;
}
« no previous file with comments | « media/webm/webm_content_encodings.cc ('k') | media/webm/webm_content_encodings_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698