Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(551)

Unified Diff: chrome/browser/component_updater/sw_reporter_installer_win.cc

Issue 385013002: Componentize component_updater: Replace content::BrowserThread usage with task runners (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698