From 4d6ee2c4167548943095646e2b2ab1f6949baff7 Mon Sep 17 00:00:00 2001 From: Adam Roben Date: Mon, 7 Oct 2013 16:21:01 -0400 Subject: [PATCH] URLRequestContextStorage::set_http_server_properties takes a scoped_ptr in Chrome 30 See http://src.chromium.org/viewvc/chrome?view=revision&revision=212466. --- brightray/browser/url_request_context_getter.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brightray/browser/url_request_context_getter.cc b/brightray/browser/url_request_context_getter.cc index 4595cf8c713..4fe6d3f1b94 100644 --- a/brightray/browser/url_request_context_getter.cc +++ b/brightray/browser/url_request_context_getter.cc @@ -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 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 =