Index: net/proxy/dhcp_proxy_script_fetcher_factory.cc |
diff --git a/net/proxy/dhcp_proxy_script_fetcher_factory.cc b/net/proxy/dhcp_proxy_script_fetcher_factory.cc |
index 01ede05b0934b78db1968915e4233b796898a462..ab89118b2cbf28327b1cbb2719256bfd59d6d49c 100644 |
--- a/net/proxy/dhcp_proxy_script_fetcher_factory.cc |
+++ b/net/proxy/dhcp_proxy_script_fetcher_factory.cc |
@@ -18,18 +18,18 @@ DhcpProxyScriptFetcherFactory::DhcpProxyScriptFetcherFactory() |
set_enabled(true); |
} |
-DhcpProxyScriptFetcher* DhcpProxyScriptFetcherFactory::Create( |
+scoped_ptr<DhcpProxyScriptFetcher> DhcpProxyScriptFetcherFactory::Create( |
URLRequestContext* context) { |
if (!feature_enabled_) { |
- return new DoNothingDhcpProxyScriptFetcher(); |
+ return make_scoped_ptr(new DoNothingDhcpProxyScriptFetcher()); |
} else { |
DCHECK(IsSupported()); |
- DhcpProxyScriptFetcher* ret = NULL; |
+ scoped_ptr<DhcpProxyScriptFetcher> ret; |
#if defined(OS_WIN) |
- ret = new DhcpProxyScriptFetcherWin(context); |
+ ret.reset(new DhcpProxyScriptFetcherWin(context)); |
#endif |
DCHECK(ret); |
- return ret; |
+ return ret.Pass(); |
} |
} |