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

Unified Diff: net/test/spawner_communicator.cc

Issue 10299002: Stop refcounting URLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initialize to NULL Created 8 years, 7 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 | « net/test/spawner_communicator.h ('k') | net/url_request/url_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
-
« no previous file with comments | « net/test/spawner_communicator.h ('k') | net/url_request/url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698