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

Unified Diff: third_party/WebKit/Source/platform/exported/WebCryptoKey.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/WebCryptoKey.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebCryptoKey.cpp b/third_party/WebKit/Source/platform/exported/WebCryptoKey.cpp
index 3f5591cc786ee4bb040663571ff7a7767f9d683e..4ecca3333f246fdd20816ce3cffabe71a9c140be 100644
--- a/third_party/WebKit/Source/platform/exported/WebCryptoKey.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebCryptoKey.cpp
@@ -51,7 +51,7 @@ class WebCryptoKeyPrivate : public ThreadSafeRefCounted<WebCryptoKeyPrivate> {
extractable(extractable),
algorithm(algorithm),
usages(usages) {
- ASSERT(!algorithm.IsNull());
+ DCHECK(!algorithm.IsNull());
}
const std::unique_ptr<WebCryptoKeyHandle> handle;
@@ -77,27 +77,27 @@ WebCryptoKey WebCryptoKey::CreateNull() {
}
WebCryptoKeyHandle* WebCryptoKey::Handle() const {
- ASSERT(!IsNull());
+ DCHECK(!IsNull());
return private_->handle.get();
}
WebCryptoKeyType WebCryptoKey::GetType() const {
- ASSERT(!IsNull());
+ DCHECK(!IsNull());
return private_->type;
}
bool WebCryptoKey::Extractable() const {
- ASSERT(!IsNull());
+ DCHECK(!IsNull());
return private_->extractable;
}
const WebCryptoKeyAlgorithm& WebCryptoKey::Algorithm() const {
- ASSERT(!IsNull());
+ DCHECK(!IsNull());
return private_->algorithm;
}
WebCryptoKeyUsageMask WebCryptoKey::Usages() const {
- ASSERT(!IsNull());
+ DCHECK(!IsNull());
return private_->usages;
}

Powered by Google App Engine
This is Rietveld 408576698