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

Unified Diff: extensions/browser/api/socket/socket_api.cc

Issue 2841623003: Remove base::Value::Get{Buffer,Size} (Closed)
Patch Set: std::vector::assign instead of std::vector::operator= Created 3 years, 8 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
« no previous file with comments | « extensions/browser/api/declarative/declarative_api.cc ('k') | ipc/ipc_message_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « extensions/browser/api/declarative/declarative_api.cc ('k') | ipc/ipc_message_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698