summaryrefslogtreecommitdiffstats
path: root/chrome/service
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-18 22:58:16 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-18 22:58:16 +0000
commit30d4c02828d62976a5b02eae3362c21c76c8fdf5 (patch)
tree136b858a0dfb3c4abcc8de091db0e809243dbc19 /chrome/service
parent6f0b138353a9ec881271c9d38ae6c53071496230 (diff)
downloadchromium_src-30d4c02828d62976a5b02eae3362c21c76c8fdf5.zip
chromium_src-30d4c02828d62976a5b02eae3362c21c76c8fdf5.tar.gz
chromium_src-30d4c02828d62976a5b02eae3362c21c76c8fdf5.tar.bz2
[SPDY] Use WeakPtr<HttpServerProperties> 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<HttpServerProperties> 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
Diffstat (limited to 'chrome/service')
-rw-r--r--chrome/service/net/service_url_request_context.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/service/net/service_url_request_context.cc b/chrome/service/net/service_url_request_context.cc
index a316dac..005ae15 100644
--- a/chrome/service/net/service_url_request_context.cc
+++ b/chrome/service/net/service_url_request_context.cc
@@ -116,7 +116,9 @@ ServiceURLRequestContext::ServiceURLRequestContext(
storage_.set_ssl_config_service(new net::SSLConfigServiceDefaults);
storage_.set_http_auth_handler_factory(
net::HttpAuthHandlerFactory::CreateDefault(host_resolver()));
- storage_.set_http_server_properties(new net::HttpServerPropertiesImpl);
+ storage_.set_http_server_properties(
+ scoped_ptr<net::HttpServerProperties>(
+ new net::HttpServerPropertiesImpl()));
storage_.set_transport_security_state(new net::TransportSecurityState);
storage_.set_throttler_manager(new net::URLRequestThrottlerManager);