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

Unified Diff: third_party/WebKit/Source/platform/exported/WebCryptoKeyAlgorithm.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/WebCryptoKeyAlgorithm.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebCryptoKeyAlgorithm.cpp b/third_party/WebKit/Source/platform/exported/WebCryptoKeyAlgorithm.cpp
index bd84539e84ffebc8873808e6f834b641138bfe7e..570ac409122e20165af052151930fe625a6fae70 100644
--- a/third_party/WebKit/Source/platform/exported/WebCryptoKeyAlgorithm.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebCryptoKeyAlgorithm.cpp
@@ -122,26 +122,26 @@ bool WebCryptoKeyAlgorithm::IsNull() const {
}
WebCryptoAlgorithmId WebCryptoKeyAlgorithm::Id() const {
- ASSERT(!IsNull());
+ DCHECK(!IsNull());
return private_->id;
}
WebCryptoKeyAlgorithmParamsType WebCryptoKeyAlgorithm::ParamsType() const {
- ASSERT(!IsNull());
+ DCHECK(!IsNull());
if (!private_->params.get())
return kWebCryptoKeyAlgorithmParamsTypeNone;
return private_->params->GetType();
}
WebCryptoAesKeyAlgorithmParams* WebCryptoKeyAlgorithm::AesParams() const {
- ASSERT(!IsNull());
+ DCHECK(!IsNull());
if (ParamsType() == kWebCryptoKeyAlgorithmParamsTypeAes)
return static_cast<WebCryptoAesKeyAlgorithmParams*>(private_->params.get());
return 0;
}
WebCryptoHmacKeyAlgorithmParams* WebCryptoKeyAlgorithm::HmacParams() const {
- ASSERT(!IsNull());
+ DCHECK(!IsNull());
if (ParamsType() == kWebCryptoKeyAlgorithmParamsTypeHmac)
return static_cast<WebCryptoHmacKeyAlgorithmParams*>(
private_->params.get());
@@ -150,7 +150,7 @@ WebCryptoHmacKeyAlgorithmParams* WebCryptoKeyAlgorithm::HmacParams() const {
WebCryptoRsaHashedKeyAlgorithmParams* WebCryptoKeyAlgorithm::RsaHashedParams()
const {
- ASSERT(!IsNull());
+ DCHECK(!IsNull());
if (ParamsType() == kWebCryptoKeyAlgorithmParamsTypeRsaHashed)
return static_cast<WebCryptoRsaHashedKeyAlgorithmParams*>(
private_->params.get());
@@ -158,7 +158,7 @@ WebCryptoRsaHashedKeyAlgorithmParams* WebCryptoKeyAlgorithm::RsaHashedParams()
}
WebCryptoEcKeyAlgorithmParams* WebCryptoKeyAlgorithm::EcParams() const {
- ASSERT(!IsNull());
+ DCHECK(!IsNull());
if (ParamsType() == kWebCryptoKeyAlgorithmParamsTypeEc)
return static_cast<WebCryptoEcKeyAlgorithmParams*>(private_->params.get());
return 0;
@@ -166,7 +166,7 @@ WebCryptoEcKeyAlgorithmParams* WebCryptoKeyAlgorithm::EcParams() const {
void WebCryptoKeyAlgorithm::WriteToDictionary(
WebCryptoKeyAlgorithmDictionary* dict) const {
- ASSERT(!IsNull());
+ DCHECK(!IsNull());
dict->SetString("name", WebCryptoAlgorithm::LookupAlgorithmInfo(Id())->name);
if (private_->params.get())
private_->params.get()->WriteToDictionary(dict);

Powered by Google App Engine
This is Rietveld 408576698