URLRequestContextStorage::set_http_server_properties takes a scoped_ptr in Chrome 30

See http://src.chromium.org/viewvc/chrome?view=revision&revision=212466.
This commit is contained in:
Adam Roben 2013-10-07 16:21:01 -04:00
parent d1623535e8
commit 4d6ee2c416

View file

@ -87,7 +87,8 @@ net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext()
storage_->set_ssl_config_service(new net::SSLConfigServiceDefaults);
storage_->set_http_auth_handler_factory(
net::HttpAuthHandlerFactory::CreateDefault(host_resolver.get()));
storage_->set_http_server_properties(new net::HttpServerPropertiesImpl);
scoped_ptr<net::HttpServerProperties> server_properties(new net::HttpServerPropertiesImpl);
storage_->set_http_server_properties(server_properties.Pass());
base::FilePath cache_path = base_path_.Append(FILE_PATH_LITERAL("Cache"));
net::HttpCache::DefaultBackend* main_backend =