Index: net/test/spawner_communicator.cc |
diff --git a/net/test/spawner_communicator.cc b/net/test/spawner_communicator.cc |
index 8b454f096dc239b7bab379a8eb711ecc79a55f67..65b700a14a2d9b60bd5ea3ffb81f32c742d37131 100644 |
--- a/net/test/spawner_communicator.cc |
+++ b/net/test/spawner_communicator.cc |
@@ -173,8 +173,8 @@ void SpawnerCommunicator::SendCommandAndWaitForResultOnIOThread( |
cur_request_->SetUserData(this, data); |
// Build the URLRequest. |
- scoped_refptr<TestURLRequestContext> context(new TestURLRequestContext()); |
- cur_request_->set_context(context); |
+ context_.reset(new TestURLRequestContext); |
+ cur_request_->set_context(context_.get()); |
if (post_data.empty()) { |
cur_request_->set_method("GET"); |
} else { |
@@ -364,4 +364,3 @@ bool SpawnerCommunicator::StopServer() { |
} |
} // namespace net |
- |