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

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

Issue 2799553002: Provide a std::vector compliant empty() method for WebVector. (Closed)
Patch Set: 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/public/platform/WebCryptoAlgorithmParams.h
diff --git a/third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h b/third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h
index 538272daeb92b449bbbe099daeaf3a9c124a9306..98e09617308bca25099cb0c9e344a4b102396729 100644
--- a/third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h
+++ b/third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h
@@ -188,7 +188,7 @@ class WebCryptoAesGcmParams : public WebCryptoAlgorithmParams {
m_optionalAdditionalData(std::move(additionalData)),
m_hasTagLengthBits(hasTagLengthBits),
m_optionalTagLengthBits(tagLengthBits) {
- DCHECK(hasAdditionalData || m_optionalAdditionalData.isEmpty());
+ DCHECK(hasAdditionalData || m_optionalAdditionalData.empty());
DCHECK(hasTagLengthBits || !tagLengthBits);
}
@@ -270,7 +270,7 @@ class WebCryptoRsaOaepParams : public WebCryptoAlgorithmParams {
public:
WebCryptoRsaOaepParams(bool hasLabel, WebVector<unsigned char> label)
: m_hasLabel(hasLabel), m_optionalLabel(std::move(label)) {
- DCHECK(hasLabel || m_optionalLabel.isEmpty());
+ DCHECK(hasLabel || m_optionalLabel.empty());
}
virtual WebCryptoAlgorithmParamsType type() const {
« no previous file with comments | « third_party/WebKit/Source/web/WebDocument.cpp ('k') | third_party/WebKit/public/platform/WebMediaConstraints.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698