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

Unified Diff: net/test/spawner_communicator.cc

Issue 10873056: Added URLRequestContext::CreateRequest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
Index: net/test/spawner_communicator.cc
diff --git a/net/test/spawner_communicator.cc b/net/test/spawner_communicator.cc
index 7b12e24217eb8a7a11a5401ce57ecdd577700040..3d327787ba83fb917aec0df2251e573083c2bf29 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(
erikwright (departed) 2012/08/24 08:02:55 probably want context_->, not '.'
shalev 2012/08/24 15:36:40 Done.
+ GenerateSpawnerCommandURL(command, port_), this));
DCHECK(cur_request_.get());
int current_request_id = ++next_id_;
SpawnerRequestData* data = new SpawnerRequestData(current_request_id,

Powered by Google App Engine
This is Rietveld 408576698