Commit 0479aa4f authored by Jeffrey Kardatzke's avatar Jeffrey Kardatzke Committed by Chromium LUCI CQ

mojo: Remove incorrect DCHECK in MojoDecryptorService

This doesn't align with the media::Decryptor documentation where it
indicates it should return kSuccess and a null buffer if CancelDecrypt
is called.

BUG=None
TEST=Builds

Change-Id: Ib0654014262f61db7875274350d92a7510c065ce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2570127
Commit-Queue: Jeffrey Kardatzke <jkardatzke@google.com>
Commit-Queue: Xiaohan Wang <xhwang@chromium.org>
Auto-Submit: Jeffrey Kardatzke <jkardatzke@google.com>
Reviewed-by: default avatarXiaohan Wang <xhwang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#833137}
parent db055162
...@@ -197,7 +197,6 @@ void MojoDecryptorService::OnDecryptDone(DecryptCallback callback, ...@@ -197,7 +197,6 @@ void MojoDecryptorService::OnDecryptDone(DecryptCallback callback,
DVLOG_IF(3, status == Status::kSuccess) << __func__; DVLOG_IF(3, status == Status::kSuccess) << __func__;
if (!buffer) { if (!buffer) {
DCHECK_NE(status, Status::kSuccess);
std::move(callback).Run(status, nullptr); std::move(callback).Run(status, nullptr);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment