Index: chrome/browser/captive_portal/captive_portal_detector.cc |
diff --git a/chrome/browser/captive_portal/captive_portal_detector.cc b/chrome/browser/captive_portal/captive_portal_detector.cc |
index e1bb561195db06a7b231c54219d9b5551502412d..26f1a2020ab496d3e9d880b3244f25465577f691 100644 |
--- a/chrome/browser/captive_portal/captive_portal_detector.cc |
+++ b/chrome/browser/captive_portal/captive_portal_detector.cc |
@@ -60,7 +60,7 @@ void CaptivePortalDetector::DetectCaptivePortal( |
net::URLFetcher::GET, |
this)); |
url_fetcher_->SetAutomaticallyRetryOn5xx(false); |
- url_fetcher_->SetRequestContext(request_context_); |
+ url_fetcher_->SetRequestContext(request_context_.get()); |
// Can't safely use net::LOAD_DISABLE_CERT_REVOCATION_CHECKING here, |
// since then the connection may be reused without checking the cert. |