diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/crypto/crypto.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/crypto/crypto.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chromium/third_party/blink/renderer/modules/crypto/crypto.cc b/chromium/third_party/blink/renderer/modules/crypto/crypto.cc index 79c9e485d99..7c5bf68feaa 100644 --- a/chromium/third_party/blink/renderer/modules/crypto/crypto.cc +++ b/chromium/third_party/blink/renderer/modules/crypto/crypto.cc @@ -29,9 +29,8 @@ #include "third_party/blink/renderer/modules/crypto/crypto.h" #include "crypto/random.h" -#include "third_party/blink/renderer/bindings/core/v8/exception_state.h" -#include "third_party/blink/renderer/core/dom/exception_code.h" #include "third_party/blink/renderer/core/typed_arrays/dom_array_buffer_view.h" +#include "third_party/blink/renderer/platform/bindings/exception_state.h" namespace blink { @@ -56,7 +55,7 @@ NotShared<DOMArrayBufferView> Crypto::getRandomValues( DCHECK(array); if (!IsIntegerArray(array.View())) { exception_state.ThrowDOMException( - kTypeMismatchError, + DOMExceptionCode::kTypeMismatchError, String::Format("The provided ArrayBufferView is of type '%s', which is " "not an integer array type.", array.View()->TypeName())); @@ -64,7 +63,7 @@ NotShared<DOMArrayBufferView> Crypto::getRandomValues( } if (array.View()->byteLength() > 65536) { exception_state.ThrowDOMException( - kQuotaExceededError, + DOMExceptionCode::kQuotaExceededError, String::Format("The ArrayBufferView's byte length (%u) exceeds the " "number of bytes of entropy available via this API " "(65536).", |