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

Unified Diff: remoting/host/url_request_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 | « remoting/host/url_request_context.h ('k') | webkit/appcache/appcache_update_job_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/url_request_context.cc
diff --git a/remoting/host/url_request_context.cc b/remoting/host/url_request_context.cc
index 901dc092a0dc061fa232096fe4ba240365569f4e..9d12a29714898354bfb627e5d30c88d629f8ab0f 100644
--- a/remoting/host/url_request_context.cc
+++ b/remoting/host/url_request_context.cc
@@ -122,11 +122,11 @@ URLRequestContextGetter::URLRequestContextGetter(
}
net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() {
- if (!url_request_context_) {
- url_request_context_ =
- new URLRequestContext(proxy_config_service_.Pass());
+ if (!url_request_context_.get()) {
+ url_request_context_.reset(
+ new URLRequestContext(proxy_config_service_.Pass()));
}
- return url_request_context_;
+ return url_request_context_.get();
}
scoped_refptr<base::MessageLoopProxy>
« no previous file with comments | « remoting/host/url_request_context.h ('k') | webkit/appcache/appcache_update_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698