| Index: net/test/spawner_communicator.cc
|
| diff --git a/net/test/spawner_communicator.cc b/net/test/spawner_communicator.cc
|
| index c94a4c205efa774c6b85d25a88300cbceaddd550..2b7e7fb255b2860457b782ea70793dd320b4ce64 100644
|
| --- a/net/test/spawner_communicator.cc
|
| +++ b/net/test/spawner_communicator.cc
|
| @@ -14,7 +14,8 @@
|
| #include "build/build_config.h"
|
| #include "googleurl/src/gurl.h"
|
| #include "net/base/net_util.h"
|
| -#include "net/base/upload_data.h"
|
| +#include "net/base/upload_bytes_element_reader.h"
|
| +#include "net/base/upload_data_stream.h"
|
| #include "net/http/http_response_headers.h"
|
| #include "net/url_request/url_request_test_util.h"
|
|
|
| @@ -184,9 +185,10 @@ void SpawnerCommunicator::SendCommandAndWaitForResultOnIOThread(
|
| cur_request_->set_method("GET");
|
| } else {
|
| cur_request_->set_method("POST");
|
| - scoped_refptr<UploadData> upload_data(new UploadData());
|
| - upload_data->AppendBytes(post_data.c_str(), post_data.size());
|
| - cur_request_->set_upload(upload_data);
|
| + scoped_ptr<UploadElementReader> reader(
|
| + UploadOwnedBytesElementReader::CreateWithString(post_data));
|
| + cur_request_->set_upload(make_scoped_ptr(
|
| + UploadDataStream::CreateWithReader(reader.Pass(), 0)));
|
| net::HttpRequestHeaders headers;
|
| headers.SetHeader(net::HttpRequestHeaders::kContentType,
|
| "application/json");
|
|
|