Index: content/child/v8_value_converter_impl.cc |
diff --git a/content/child/v8_value_converter_impl.cc b/content/child/v8_value_converter_impl.cc |
index ad5f6dd9792a995a05649df497b3bd972fc5b11a..89b3fc79c78abffc275a636ba54c14a6a8160d30 100644 |
--- a/content/child/v8_value_converter_impl.cc |
+++ b/content/child/v8_value_converter_impl.cc |
@@ -342,8 +342,9 @@ v8::Local<v8::Value> V8ValueConverterImpl::ToArrayBuffer( |
const base::Value* value) const { |
DCHECK(creation_context->CreationContext() == isolate->GetCurrentContext()); |
v8::Local<v8::ArrayBuffer> buffer = |
- v8::ArrayBuffer::New(isolate, value->GetSize()); |
- memcpy(buffer->GetContents().Data(), value->GetBuffer(), value->GetSize()); |
+ v8::ArrayBuffer::New(isolate, value->GetBlob().size()); |
+ memcpy(buffer->GetContents().Data(), value->GetBlob().data(), |
+ value->GetBlob().size()); |
return buffer; |
} |