Index: chrome/browser/component_updater/sw_reporter_installer_win.cc |
diff --git a/chrome/browser/component_updater/sw_reporter_installer_win.cc b/chrome/browser/component_updater/sw_reporter_installer_win.cc |
index 578a70c0f7caea2b3ad8ade843af7f64330e3e70..8df0eca0d8d1facc9e055d0c0743b1b784cae9a6 100644 |
--- a/chrome/browser/component_updater/sw_reporter_installer_win.cc |
+++ b/chrome/browser/component_updater/sw_reporter_installer_win.cc |
@@ -22,6 +22,7 @@ |
#include "base/process/kill.h" |
#include "base/process/launch.h" |
#include "base/task_runner_util.h" |
+#include "base/threading/sequenced_worker_pool.h" |
#include "base/threading/worker_pool.h" |
#include "base/win/registry.h" |
#include "chrome/browser/browser_process.h" |
@@ -192,8 +193,12 @@ void RegisterComponent(ComponentUpdateService* cus, PrefService* prefs) { |
scoped_ptr<ComponentInstallerTraits> traits( |
new SwReporterInstallerTraits(prefs)); |
// |cus| will take ownership of |installer| during installer->Register(cus). |
- DefaultComponentInstaller* installer = |
- new DefaultComponentInstaller(traits.Pass()); |
+ DefaultComponentInstaller* installer = new DefaultComponentInstaller( |
+ traits.Pass(), |
+ content::BrowserThread::GetBlockingPool() |
+ ->GetSequencedTaskRunnerWithShutdownBehavior( |
+ content::BrowserThread::GetBlockingPool()->GetSequenceToken(), |
+ base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)); |
installer->Register(cus); |
} |