| Index: components/captive_portal/captive_portal_detector.cc
|
| diff --git a/components/captive_portal/captive_portal_detector.cc b/components/captive_portal/captive_portal_detector.cc
|
| index b7b8668e5fa639615e6450d8520aef9a7d0d8ae9..ceeffe6b728c004d8e2fe50054de01d83bb80b7e 100644
|
| --- a/components/captive_portal/captive_portal_detector.cc
|
| +++ b/components/captive_portal/captive_portal_detector.cc
|
| @@ -34,10 +34,7 @@ void CaptivePortalDetector::DetectCaptivePortal(
|
| detection_callback_ = detection_callback;
|
|
|
| // The first 0 means this can use a TestURLFetcherFactory in unit tests.
|
| - url_fetcher_.reset(net::URLFetcher::Create(0,
|
| - url,
|
| - net::URLFetcher::GET,
|
| - this));
|
| + url_fetcher_ = net::URLFetcher::Create(0, url, net::URLFetcher::GET, this);
|
| url_fetcher_->SetAutomaticallyRetryOn5xx(false);
|
| url_fetcher_->SetRequestContext(request_context_.get());
|
|
|
|
|