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

Unified Diff: third_party/WebKit/Source/platform/exported/WebCryptoResult.cpp

Issue 2811463002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/exported (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/exported/WebCryptoResult.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebCryptoResult.cpp b/third_party/WebKit/Source/platform/exported/WebCryptoResult.cpp
index fe818b750be32bbd3797c954652031ae975f7997..2d402aff185b8c1277bd494a71eac76a5d54112b 100644
--- a/third_party/WebKit/Source/platform/exported/WebCryptoResult.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebCryptoResult.cpp
@@ -62,7 +62,7 @@ void WebCryptoResult::CompleteWithBoolean(bool b) {
}
void WebCryptoResult::CompleteWithKey(const WebCryptoKey& key) {
- ASSERT(!key.IsNull());
+ DCHECK(!key.IsNull());
if (!Cancelled())
impl_->CompleteWithKey(key);
Reset();
@@ -70,8 +70,8 @@ void WebCryptoResult::CompleteWithKey(const WebCryptoKey& key) {
void WebCryptoResult::CompleteWithKeyPair(const WebCryptoKey& public_key,
const WebCryptoKey& private_key) {
- ASSERT(!public_key.IsNull());
- ASSERT(!private_key.IsNull());
+ DCHECK(!public_key.IsNull());
+ DCHECK(!private_key.IsNull());
if (!Cancelled())
impl_->CompleteWithKeyPair(public_key, private_key);
Reset();
@@ -84,8 +84,8 @@ bool WebCryptoResult::Cancelled() const {
WebCryptoResult::WebCryptoResult(CryptoResult* impl,
PassRefPtr<CryptoResultCancel> cancel)
: impl_(impl), cancel_(cancel) {
- ASSERT(impl_.Get());
- ASSERT(cancel_.Get());
+ DCHECK(impl_.Get());
+ DCHECK(cancel_.Get());
}
void WebCryptoResult::Reset() {

Powered by Google App Engine
This is Rietveld 408576698