| Index: remoting/host/url_request_context.cc
|
| diff --git a/remoting/host/url_request_context.cc b/remoting/host/url_request_context.cc
|
| index 901dc092a0dc061fa232096fe4ba240365569f4e..9d12a29714898354bfb627e5d30c88d629f8ab0f 100644
|
| --- a/remoting/host/url_request_context.cc
|
| +++ b/remoting/host/url_request_context.cc
|
| @@ -122,11 +122,11 @@ URLRequestContextGetter::URLRequestContextGetter(
|
| }
|
|
|
| net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() {
|
| - if (!url_request_context_) {
|
| - url_request_context_ =
|
| - new URLRequestContext(proxy_config_service_.Pass());
|
| + if (!url_request_context_.get()) {
|
| + url_request_context_.reset(
|
| + new URLRequestContext(proxy_config_service_.Pass()));
|
| }
|
| - return url_request_context_;
|
| + return url_request_context_.get();
|
| }
|
|
|
| scoped_refptr<base::MessageLoopProxy>
|
|
|