Index: extensions/browser/api/socket/socket_api.cc |
diff --git a/extensions/browser/api/socket/socket_api.cc b/extensions/browser/api/socket/socket_api.cc |
index 8a84f467b8579010b886a1b0a256df17605ed083..bb3d438f4fde2f2183ba88365c8d7ab7ba95d84e 100644 |
--- a/extensions/browser/api/socket/socket_api.cc |
+++ b/extensions/browser/api/socket/socket_api.cc |
@@ -539,8 +539,8 @@ bool SocketWriteFunction::Prepare() { |
base::Value* data = NULL; |
EXTENSION_FUNCTION_VALIDATE(args_->GetBinary(1, &data)); |
- io_buffer_size_ = data->GetSize(); |
- io_buffer_ = new net::WrappedIOBuffer(data->GetBuffer()); |
+ io_buffer_size_ = data->GetBlob().size(); |
+ io_buffer_ = new net::WrappedIOBuffer(data->GetBlob().data()); |
return true; |
} |
@@ -627,8 +627,8 @@ bool SocketSendToFunction::Prepare() { |
} |
port_ = static_cast<uint16_t>(port); |
- io_buffer_size_ = data->GetSize(); |
- io_buffer_ = new net::WrappedIOBuffer(data->GetBuffer()); |
+ io_buffer_size_ = data->GetBlob().size(); |
+ io_buffer_ = new net::WrappedIOBuffer(data->GetBlob().data()); |
return true; |
} |