summaryrefslogtreecommitdiffstats
path: root/net/test
diff options
context:
space:
mode:
authorshalev@chromium.org <shalev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-24 21:49:20 +0000
committershalev@chromium.org <shalev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-24 21:49:20 +0000
commit8a26ff60a6831b1c932353b35d8b7181771054ef (patch)
treeeb841261055bedf1f96eb8d5ad3086264eb03e04 /net/test
parenta1f52889a7eb791892e55fe6fd6e8567b6842ca1 (diff)
downloadchromium_src-8a26ff60a6831b1c932353b35d8b7181771054ef.zip
chromium_src-8a26ff60a6831b1c932353b35d8b7181771054ef.tar.gz
chromium_src-8a26ff60a6831b1c932353b35d8b7181771054ef.tar.bz2
Added URLRequestContext::CreateRequest which can be used to create URLRequests
BUG=142945 Review URL: https://chromiumcodereview.appspot.com/10873056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153302 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/test')
-rw-r--r--net/test/spawner_communicator.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/test/spawner_communicator.cc b/net/test/spawner_communicator.cc
index 7b12e24..3a5874a 100644
--- a/net/test/spawner_communicator.cc
+++ b/net/test/spawner_communicator.cc
@@ -169,9 +169,8 @@ void SpawnerCommunicator::SendCommandAndWaitForResultOnIOThread(
// Prepare the URLRequest for sending the command.
DCHECK(!cur_request_.get());
context_.reset(new TestURLRequestContext);
- cur_request_.reset(new URLRequest(GenerateSpawnerCommandURL(command, port_),
- this,
- context_.get()));
+ cur_request_.reset(context_->CreateRequest(
+ GenerateSpawnerCommandURL(command, port_), this));
DCHECK(cur_request_.get());
int current_request_id = ++next_id_;
SpawnerRequestData* data = new SpawnerRequestData(current_request_id,