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

Unified Diff: third_party/WebKit/Source/platform/Crypto.cpp

Issue 2846303002: Replace ASSERT with DCHECK in platform/ (Closed)
Patch Set: rebase Created 3 years, 8 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
Index: third_party/WebKit/Source/platform/Crypto.cpp
diff --git a/third_party/WebKit/Source/platform/Crypto.cpp b/third_party/WebKit/Source/platform/Crypto.cpp
index 98bb411746a95ac6f4269dac4e37f8f7ff066fc1..55a2b639b0b3a4dfa8b6911241c5913e03bb5fff 100644
--- a/third_party/WebKit/Source/platform/Crypto.cpp
+++ b/third_party/WebKit/Source/platform/Crypto.cpp
@@ -36,7 +36,7 @@ bool ComputeDigest(HashAlgorithm algorithm,
unsigned char* result;
unsigned result_size;
- ASSERT(crypto);
+ DCHECK(crypto);
std::unique_ptr<WebCryptoDigestor> digestor =
crypto->CreateDigestor(algorithm_id);
@@ -62,7 +62,7 @@ void FinishDigestor(WebCryptoDigestor* digestor, DigestValue& digest_result) {
if (!digestor->Finish(result, result_size))
return;
- ASSERT(result);
+ DCHECK(result);
digest_result.Append(static_cast<uint8_t*>(result), result_size);
}
« no previous file with comments | « third_party/WebKit/Source/platform/AsyncMethodRunner.h ('k') | third_party/WebKit/Source/platform/DateComponents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698