| Index: chrome/browser/ui/webui/help/version_updater_win.cc
|
| diff --git a/chrome/browser/ui/webui/help/version_updater_win.cc b/chrome/browser/ui/webui/help/version_updater_win.cc
|
| index e0eb626dc437512ab61e19ceeaa435f2aabc6e8c..2613161e6f492e620f004f6243ffbf00ce296463 100644
|
| --- a/chrome/browser/ui/webui/help/version_updater_win.cc
|
| +++ b/chrome/browser/ui/webui/help/version_updater_win.cc
|
| @@ -39,7 +39,7 @@ void VersionUpdaterWin::CheckForUpdate(const StatusCallback& callback,
|
| (base::win::OSInfo::GetInstance()->service_pack().major == 0) &&
|
| !base::win::UserAccountControlIsEnabled())) {
|
| callback_.Run(CHECKING, 0, base::string16());
|
| - BeginUpdateCheckOnFileThread(false /* !install_update_if_possible */);
|
| + BeginUpdateCheckInBlockingPool(false /* !install_update_if_possible */);
|
| }
|
| }
|
|
|
| @@ -66,7 +66,7 @@ void VersionUpdaterWin::OnUpdateCheckComplete(
|
| } else {
|
| // Notify the caller that the update is now beginning and initiate it.
|
| status = UPDATING;
|
| - BeginUpdateCheckOnFileThread(true /* install_update_if_possible */);
|
| + BeginUpdateCheckInBlockingPool(true /* install_update_if_possible */);
|
| }
|
| callback_.Run(status, 0, base::string16());
|
| }
|
| @@ -113,10 +113,13 @@ void VersionUpdaterWin::OnError(GoogleUpdateErrorCode error_code,
|
| callback_.Run(status, 0, message);
|
| }
|
|
|
| -void VersionUpdaterWin::BeginUpdateCheckOnFileThread(
|
| +void VersionUpdaterWin::BeginUpdateCheckInBlockingPool(
|
| bool install_update_if_possible) {
|
| - BeginUpdateCheck(content::BrowserThread::GetTaskRunnerForThread(
|
| - content::BrowserThread::FILE),
|
| + base::SequencedWorkerPool* blocking_pool =
|
| + content::BrowserThread::GetBlockingPool();
|
| + BeginUpdateCheck(blocking_pool->GetSequencedTaskRunnerWithShutdownBehavior(
|
| + blocking_pool->GetSequenceToken(),
|
| + base::SequencedWorkerPool::CONTINUE_ON_SHUTDOWN),
|
| g_browser_process->GetApplicationLocale(),
|
| install_update_if_possible, owner_widget_,
|
| weak_factory_.GetWeakPtr());
|
|
|