| Index: components/dom_distiller/core/distiller_url_fetcher.cc
|
| diff --git a/components/dom_distiller/core/distiller_url_fetcher.cc b/components/dom_distiller/core/distiller_url_fetcher.cc
|
| index 8c1998da80473056016d1fe5f920273ef95f32d4..f60efd7d68c817fe42cb791c2bd86d06ce83160b 100644
|
| --- a/components/dom_distiller/core/distiller_url_fetcher.cc
|
| +++ b/components/dom_distiller/core/distiller_url_fetcher.cc
|
| @@ -39,14 +39,14 @@ void DistillerURLFetcher::FetchURL(const std::string& url,
|
| // Don't allow a fetch if one is pending.
|
| DCHECK(!url_fetcher_ || !url_fetcher_->GetStatus().is_io_pending());
|
| callback_ = callback;
|
| - url_fetcher_.reset(CreateURLFetcher(context_getter_, url));
|
| + url_fetcher_ = CreateURLFetcher(context_getter_, url);
|
| url_fetcher_->Start();
|
| }
|
|
|
| -URLFetcher* DistillerURLFetcher::CreateURLFetcher(
|
| +scoped_ptr<URLFetcher> DistillerURLFetcher::CreateURLFetcher(
|
| net::URLRequestContextGetter* context_getter,
|
| const std::string& url) {
|
| - net::URLFetcher* fetcher =
|
| + scoped_ptr<net::URLFetcher> fetcher =
|
| URLFetcher::Create(GURL(url), URLFetcher::GET, this);
|
| fetcher->SetRequestContext(context_getter);
|
| static const int kMaxRetries = 5;
|
|
|