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

Unified Diff: Source/modules/crypto/CryptoResultImpl.cpp

Issue 606653006: bindings: Adds DOMArrayBuffer, etc. as thin wrappers for ArrayBuffer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 2 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: Source/modules/crypto/CryptoResultImpl.cpp
diff --git a/Source/modules/crypto/CryptoResultImpl.cpp b/Source/modules/crypto/CryptoResultImpl.cpp
index 6ebe4ee5dc8d5b9989f6aef30624c5bedd3e4e9e..0a90d6268e8440ef1b649f1b8d7c531323d5ebf4 100644
--- a/Source/modules/crypto/CryptoResultImpl.cpp
+++ b/Source/modules/crypto/CryptoResultImpl.cpp
@@ -35,6 +35,7 @@
#include "bindings/core/v8/ScriptPromiseResolver.h"
#include "bindings/core/v8/ScriptState.h"
#include "core/dom/ContextLifecycleObserver.h"
+#include "core/dom/DOMArrayBuffer.h"
#include "core/dom/DOMError.h"
#include "core/dom/DOMException.h"
#include "core/dom/ExecutionContext.h"
@@ -43,7 +44,6 @@
#include "public/platform/Platform.h"
#include "public/platform/WebArrayBuffer.h"
#include "public/platform/WebCryptoAlgorithm.h"
-#include "wtf/ArrayBufferView.h"
namespace blink {
@@ -117,7 +117,7 @@ void CryptoResultImpl::completeWithError(WebCryptoErrorType errorType, const Web
void CryptoResultImpl::completeWithBuffer(const WebArrayBuffer& buffer)
{
if (m_resolver)
- m_resolver->resolve(PassRefPtr<ArrayBuffer>(buffer));
+ m_resolver->resolve(DOMArrayBuffer::create(PassRefPtr<ArrayBuffer>(buffer)));
haraken 2014/10/16 05:41:42 PassRefPtr<ArrayBuffer>() won't be needed.
Yuki 2014/10/16 14:21:51 Done.
}
void CryptoResultImpl::completeWithJson(const char* utf8Data, unsigned length)

Powered by Google App Engine
This is Rietveld 408576698