Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc |
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc |
index 0ec6ea7ee2e0a676e401ea06896d1e580381b5d5..576622dd1e1c4b617b2a3bd9aa7176baf59d27b8 100644 |
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc |
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc |
@@ -70,9 +70,10 @@ net::URLRequestContext* |
BasicHTTPURLRequestContextGetter::GetURLRequestContext() { |
if (!url_request_context_) { |
net::URLRequestContextBuilder builder; |
- builder.set_proxy_service(net::ProxyService::CreateDirect()); |
+ builder.set_proxy_service( |
+ make_scoped_ptr(net::ProxyService::CreateDirect())); |
builder.SetSpdyAndQuicEnabled(false, false); |
- url_request_context_.reset(builder.Build()); |
+ url_request_context_ = builder.Build().Pass(); |
} |
return url_request_context_.get(); |