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

Unified Diff: third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h

Issue 1851293002: Remove BLINK_ASSERT() and BLINK_ASSERT_NOT_REACHED() macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check the |callbacks| for nullptr and use explicit delete. Created 4 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
« no previous file with comments | « third_party/WebKit/public/platform/WebCommon.h ('k') | third_party/WebKit/public/platform/WebFileSystem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h
diff --git a/third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h b/third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h
index f57eedf27a683917a18b7325a0172ce383826e82..335a8306bc95fdeb8f345838ec273ce64d8036fd 100644
--- a/third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h
+++ b/third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h
@@ -35,6 +35,7 @@
#include "WebCryptoAlgorithm.h"
#include "WebCryptoKey.h"
#include "WebVector.h"
+#include "base/logging.h"
namespace blink {
@@ -77,7 +78,7 @@ public:
explicit WebCryptoAlgorithmParamsWithHash(const WebCryptoAlgorithm& hash)
: m_hash(hash)
{
- BLINK_ASSERT(!hash.isNull());
+ DCHECK(!hash.isNull());
}
const WebCryptoAlgorithm& hash() const { return m_hash; }
@@ -135,7 +136,7 @@ public:
, m_hasLengthBits(hasLengthBits)
, m_optionalLengthBits(lengthBits)
{
- BLINK_ASSERT(hasLengthBits || !lengthBits);
+ DCHECK(hasLengthBits || !lengthBits);
}
virtual WebCryptoAlgorithmParamsType type() const { return WebCryptoAlgorithmParamsTypeHmacImportParams; }
@@ -156,7 +157,7 @@ public:
, m_hasLengthBits(hasLengthBits)
, m_optionalLengthBits(lengthBits)
{
- BLINK_ASSERT(hasLengthBits || !lengthBits);
+ DCHECK(hasLengthBits || !lengthBits);
}
virtual WebCryptoAlgorithmParamsType type() const { return WebCryptoAlgorithmParamsTypeHmacKeyGenParams; }
@@ -179,8 +180,8 @@ public:
, m_hasTagLengthBits(hasTagLengthBits)
, m_optionalTagLengthBits(tagLengthBits)
{
- BLINK_ASSERT(hasAdditionalData || !additionalDataSize);
- BLINK_ASSERT(hasTagLengthBits || !tagLengthBits);
+ DCHECK(hasAdditionalData || !additionalDataSize);
+ DCHECK(hasTagLengthBits || !tagLengthBits);
}
virtual WebCryptoAlgorithmParamsType type() const { return WebCryptoAlgorithmParamsTypeAesGcmParams; }
@@ -218,7 +219,7 @@ public:
, m_publicExponent(publicExponent, publicExponentSize)
, m_hash(hash)
{
- BLINK_ASSERT(!hash.isNull());
+ DCHECK(!hash.isNull());
}
virtual WebCryptoAlgorithmParamsType type() const { return WebCryptoAlgorithmParamsTypeRsaHashedKeyGenParams; }
@@ -255,7 +256,7 @@ public:
: m_hasLabel(hasLabel)
, m_optionalLabel(label, labelSize)
{
- BLINK_ASSERT(hasLabel || !labelSize);
+ DCHECK(hasLabel || !labelSize);
}
virtual WebCryptoAlgorithmParamsType type() const { return WebCryptoAlgorithmParamsTypeRsaOaepParams; }
« no previous file with comments | « third_party/WebKit/public/platform/WebCommon.h ('k') | third_party/WebKit/public/platform/WebFileSystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698