Index: chrome/browser/component_updater/chrome_component_updater_configurator.cc |
diff --git a/chrome/browser/component_updater/chrome_component_updater_configurator.cc b/chrome/browser/component_updater/chrome_component_updater_configurator.cc |
index 5b6cebf6ffa277aa40279b9e2b1ab9250421a33a..eb0d7830daa6ae7eba44d13489f310cd92bc524c 100644 |
--- a/chrome/browser/component_updater/chrome_component_updater_configurator.cc |
+++ b/chrome/browser/component_updater/chrome_component_updater_configurator.cc |
@@ -123,12 +123,16 @@ |
return configurator_impl_.UseBackgroundDownloader(); |
} |
+// Returns a task runner to run blocking tasks. The task runner continues to run |
+// after the browser shuts down, until the OS terminates the process. This |
+// imposes certain requirements for the code using the task runner, such as |
+// not accessing any global browser state while the code is running. |
scoped_refptr<base::SequencedTaskRunner> |
ChromeConfigurator::GetSequencedTaskRunner() const { |
return content::BrowserThread::GetBlockingPool() |
->GetSequencedTaskRunnerWithShutdownBehavior( |
content::BrowserThread::GetBlockingPool()->GetSequenceToken(), |
- base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); |
+ base::SequencedWorkerPool::CONTINUE_ON_SHUTDOWN); |
} |
} // namespace |