From 30d4c02828d62976a5b02eae3362c21c76c8fdf5 Mon Sep 17 00:00:00 2001 From: "akalin@chromium.org" Date: Thu, 18 Jul 2013 22:58:16 +0000 Subject: [SPDY] Use WeakPtr instead of raw pointers This will let us better track down what is causing SpdySessions to be accessing them after they're destroyed, since we'll have crash reports instead of just the SyzyASAN reports. Also use scoped_ptr when appropriate. BUG=236451 TBR=ajwong@chromium.org, rtenneti@chromium.org, simonjam@chromium.org, wez@chromium.org Review URL: https://codereview.chromium.org/19731002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212466 0039d316-1c4b-4281-b951-d872f2087c98 --- net/proxy/proxy_script_fetcher_impl_unittest.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'net/proxy/proxy_script_fetcher_impl_unittest.cc') diff --git a/net/proxy/proxy_script_fetcher_impl_unittest.cc b/net/proxy/proxy_script_fetcher_impl_unittest.cc index 92a5dc1..8d42514 100644 --- a/net/proxy/proxy_script_fetcher_impl_unittest.cc +++ b/net/proxy/proxy_script_fetcher_impl_unittest.cc @@ -56,7 +56,8 @@ class RequestContext : public URLRequestContext { storage_.set_transport_security_state(new TransportSecurityState); storage_.set_proxy_service(ProxyService::CreateFixed(no_proxy)); storage_.set_ssl_config_service(new SSLConfigServiceDefaults); - storage_.set_http_server_properties(new HttpServerPropertiesImpl); + storage_.set_http_server_properties( + scoped_ptr(new HttpServerPropertiesImpl())); HttpNetworkSession::Params params; params.host_resolver = host_resolver(); -- cgit v1.1