summaryrefslogtreecommitdiffstats
path: root/net/proxy
diff options
context:
space:
mode:
authorbattre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-14 10:52:45 +0000
committerbattre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-14 10:52:45 +0000
commitf37595062cde15c3229cd68d8cfe9916b98d5fbb (patch)
tree61a44b028f9d0f10b7c98b8da79a95e9ecb8d984 /net/proxy
parentf0d7fe7c2cee6e2d9aadcb8602476e4df05d7da1 (diff)
downloadchromium_src-f37595062cde15c3229cd68d8cfe9916b98d5fbb.zip
chromium_src-f37595062cde15c3229cd68d8cfe9916b98d5fbb.tar.gz
chromium_src-f37595062cde15c3229cd68d8cfe9916b98d5fbb.tar.bz2
Make the URLRequestContext constant
The URLRequestContext is basically a collection of pointers to other data structures. This CL makes sure that these pointers are not easily modified after the construction of the URLRequestContext. BUG=67597 TEST=no Review URL: http://codereview.chromium.org/7322010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92511 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy')
-rw-r--r--net/proxy/proxy_script_fetcher_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/proxy/proxy_script_fetcher_impl.cc b/net/proxy/proxy_script_fetcher_impl.cc
index d0b9d6a..0c4bb6f 100644
--- a/net/proxy/proxy_script_fetcher_impl.cc
+++ b/net/proxy/proxy_script_fetcher_impl.cc
@@ -293,7 +293,7 @@ void ProxyScriptFetcherImpl::FetchCompleted() {
// Hold a reference to the URLRequestContext to prevent re-entrancy from
// ~URLRequestContext.
- scoped_refptr<URLRequestContext> context(cur_request_->context());
+ scoped_refptr<const URLRequestContext> context(cur_request_->context());
ResetCurRequestState();
callback->Run(result_code);