diff options
Diffstat (limited to 'content/browser/plugin_service_impl.cc')
-rw-r--r-- | content/browser/plugin_service_impl.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/content/browser/plugin_service_impl.cc b/content/browser/plugin_service_impl.cc index d8a5909..a5cb577 100644 --- a/content/browser/plugin_service_impl.cc +++ b/content/browser/plugin_service_impl.cc @@ -603,7 +603,8 @@ void PluginServiceImpl::GetPlugins(const GetPluginsCallback& callback) { ->PostSequencedWorkerTaskWithShutdownBehavior( plugin_list_token_, FROM_HERE, base::Bind(&PluginServiceImpl::GetPluginsInternal, - base::Unretained(this), target_task_runner, callback), + base::Unretained(this), + base::RetainedRef(target_task_runner), callback), base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); return; } @@ -611,7 +612,8 @@ void PluginServiceImpl::GetPlugins(const GetPluginsCallback& callback) { BrowserThread::PostTask( BrowserThread::IO, FROM_HERE, base::Bind(&PluginServiceImpl::GetPluginsOnIOThread, - base::Unretained(this), target_task_runner, callback)); + base::Unretained(this), base::RetainedRef(target_task_runner), + callback)); #else NOTREACHED(); #endif @@ -642,7 +644,7 @@ void PluginServiceImpl::GetPluginsOnIOThread( plugin_loader_ = new PluginLoaderPosix; plugin_loader_->GetPlugins(base::Bind( - &ForwardCallback, make_scoped_refptr(target_task_runner), callback)); + &ForwardCallback, base::RetainedRef(target_task_runner), callback)); } #endif |