summaryrefslogtreecommitdiffstats
path: root/ios/chrome/browser/safe_browsing/safe_browsing_service.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ios/chrome/browser/safe_browsing/safe_browsing_service.cc')
-rw-r--r--ios/chrome/browser/safe_browsing/safe_browsing_service.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/ios/chrome/browser/safe_browsing/safe_browsing_service.cc b/ios/chrome/browser/safe_browsing/safe_browsing_service.cc
index 3724492..e2bbe92 100644
--- a/ios/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/ios/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -342,9 +342,10 @@ void SafeBrowsingService::StopOnIOThread(bool shutdown) {
void SafeBrowsingService::Start() {
DCHECK_CURRENTLY_ON(web::WebThread::UI);
- web::WebThread::PostTask(web::WebThread::IO, FROM_HERE,
- base::Bind(&SafeBrowsingService::StartOnIOThread,
- this, url_request_context_getter_));
+ web::WebThread::PostTask(
+ web::WebThread::IO, FROM_HERE,
+ base::Bind(&SafeBrowsingService::StartOnIOThread, this,
+ base::RetainedRef(url_request_context_getter_)));
}
void SafeBrowsingService::Stop(bool shutdown) {