summaryrefslogtreecommitdiffstats
path: root/net/proxy
diff options
context:
space:
mode:
authorbattre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-14 12:34:18 +0000
committerbattre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-14 12:34:18 +0000
commitede9666e3dc07dde4436df9bde8ce8daefdce140 (patch)
tree044dea60297380fac5352c2ac23f8268be7b3152 /net/proxy
parentebabd985fb27cbf50d27a4e0d1565b08f2f167af (diff)
downloadchromium_src-ede9666e3dc07dde4436df9bde8ce8daefdce140.zip
chromium_src-ede9666e3dc07dde4436df9bde8ce8daefdce140.tar.gz
chromium_src-ede9666e3dc07dde4436df9bde8ce8daefdce140.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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=92511 Review URL: http://codereview.chromium.org/7322010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92521 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);