Index: components/policy/core/common/cloud/external_policy_data_fetcher.cc |
diff --git a/components/policy/core/common/cloud/external_policy_data_fetcher.cc b/components/policy/core/common/cloud/external_policy_data_fetcher.cc |
index b8403b86ea25889e4703e6a9ad88d54b6de05ad0..7dd4988af79849e654f1c8c1c5b607f3d8d5cddb 100644 |
--- a/components/policy/core/common/cloud/external_policy_data_fetcher.cc |
+++ b/components/policy/core/common/cloud/external_policy_data_fetcher.cc |
@@ -170,8 +170,9 @@ scoped_ptr<ExternalPolicyDataFetcher> |
void ExternalPolicyDataFetcherBackend::StartJob( |
ExternalPolicyDataFetcher::Job* job) { |
DCHECK(io_task_runner_->RunsTasksOnCurrentThread()); |
- net::URLFetcher* fetcher = net::URLFetcher::Create( |
- ++last_fetch_id_, job->url, net::URLFetcher::GET, this); |
+ net::URLFetcher* fetcher = |
+ net::URLFetcher::Create(++last_fetch_id_, job->url, net::URLFetcher::GET, |
+ this).release(); |
fetcher->SetRequestContext(request_context_.get()); |
fetcher->SetLoadFlags(net::LOAD_BYPASS_CACHE | net::LOAD_DISABLE_CACHE | |
net::LOAD_DO_NOT_SAVE_COOKIES | |