Index: content/child/webcrypto/crypto_data.h |
diff --git a/content/child/webcrypto/crypto_data.h b/content/child/webcrypto/crypto_data.h |
index 2433dd7ea1c4e34626eb42528056af0af0540801..a025de44bc0205013e1da0de8258189a7b96da24 100644 |
--- a/content/child/webcrypto/crypto_data.h |
+++ b/content/child/webcrypto/crypto_data.h |
@@ -36,6 +36,7 @@ class CONTENT_EXPORT CryptoData { |
const unsigned char* bytes() const { return bytes_; } |
unsigned int byte_length() const { return byte_length_; } |
+ bool is_empty() const { return bytes_ == NULL || byte_length_ == 0; } |
private: |
const unsigned char* const bytes_; |