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

Unified Diff: content/test/mock_resource_context.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 | « content/test/mock_resource_context.h ('k') | content/test/webrtc_audio_device_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/mock_resource_context.cc
diff --git a/content/test/mock_resource_context.cc b/content/test/mock_resource_context.cc
index ee9a6f1beacc7143fad21cebcebd13be4f180dcd..cd36901da1c02ffee2e1265ae14eb2c21a60d478 100644
--- a/content/test/mock_resource_context.cc
+++ b/content/test/mock_resource_context.cc
@@ -13,10 +13,6 @@ MockResourceContext::MockResourceContext()
: test_request_context_(new TestURLRequestContext) {
}
-MockResourceContext::MockResourceContext(net::URLRequestContext* context)
- : test_request_context_(context) {
-}
-
MockResourceContext::~MockResourceContext() {}
net::HostResolver* MockResourceContext::GetHostResolver() {
@@ -24,7 +20,7 @@ net::HostResolver* MockResourceContext::GetHostResolver() {
}
net::URLRequestContext* MockResourceContext::GetRequestContext() {
- return test_request_context_;
+ return test_request_context_.get();
}
} // namespace content
« no previous file with comments | « content/test/mock_resource_context.h ('k') | content/test/webrtc_audio_device_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698