Index: net/proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc |
diff --git a/net/proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc b/net/proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc |
index 9c66d11703222f93957efa683652a7903e1b5c8b..0c612eb2ab3183a060be3786c6091847791f1e28 100644 |
--- a/net/proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc |
+++ b/net/proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc |
@@ -150,7 +150,7 @@ class FetcherClient { |
} |
TestCompletionCallback callback_; |
- scoped_refptr<URLRequestContext> url_request_context_; |
+ scoped_ptr<URLRequestContext> url_request_context_; |
scoped_ptr<MockDhcpProxyScriptAdapterFetcher> fetcher_; |
string16 pac_text_; |
}; |
@@ -278,11 +278,10 @@ TEST(DhcpProxyScriptAdapterFetcher, MockDhcpRealFetch) { |
GURL configured_url = test_server.GetURL("files/downloadable.pac"); |
FetcherClient client; |
- scoped_refptr<URLRequestContext> url_request_context( |
- new TestURLRequestContext()); |
+ TestURLRequestContext url_request_context; |
client.fetcher_.reset( |
new MockDhcpRealFetchProxyScriptAdapterFetcher( |
- url_request_context.get())); |
+ &url_request_context)); |
client.fetcher_->configured_url_ = configured_url.spec(); |
client.RunTest(); |
client.WaitForResult(OK); |