| Index: components/update_client/background_downloader_win.cc
|
| diff --git a/components/update_client/background_downloader_win.cc b/components/update_client/background_downloader_win.cc
|
| index 5a0d089589712187787ee13292565d8abf76c493..ec33aa177c3d0204d1923a22defe9e77d898fcf1 100644
|
| --- a/components/update_client/background_downloader_win.cc
|
| +++ b/components/update_client/background_downloader_win.cc
|
| @@ -459,7 +459,7 @@ void BackgroundDownloader::DoStartDownload(const GURL& url) {
|
|
|
| // Called one time when this class is asked to do a download.
|
| void BackgroundDownloader::BeginDownload(const GURL& url) {
|
| - DCHECK(task_runner()->RunsTasksOnCurrentThread());
|
| + DCHECK(task_runner()->RunsTasksInCurrentSequence());
|
|
|
| download_start_time_ = base::TimeTicks::Now();
|
| job_stuck_begin_time_ = download_start_time_;
|
| @@ -505,7 +505,7 @@ HRESULT BackgroundDownloader::BeginDownloadHelper(const GURL& url) {
|
|
|
| // Called any time the timer fires.
|
| void BackgroundDownloader::OnDownloading() {
|
| - DCHECK(task_runner()->RunsTasksOnCurrentThread());
|
| + DCHECK(task_runner()->RunsTasksInCurrentSequence());
|
|
|
| HRESULT hr = UpdateInterfacePointers();
|
| if (FAILED(hr)) {
|
| @@ -570,7 +570,7 @@ void BackgroundDownloader::OnDownloading() {
|
| // Completes the BITS download, picks up the file path of the response, and
|
| // notifies the CrxDownloader. The function should be called only once.
|
| void BackgroundDownloader::EndDownload(HRESULT error) {
|
| - DCHECK(task_runner()->RunsTasksOnCurrentThread());
|
| + DCHECK(task_runner()->RunsTasksInCurrentSequence());
|
|
|
| DCHECK(!TimerIsRunning());
|
|
|
| @@ -714,7 +714,7 @@ bool BackgroundDownloader::OnStateTransferring() {
|
| // install a job observer but continues on if an observer can't be set up.
|
| HRESULT BackgroundDownloader::QueueBitsJob(const GURL& url,
|
| IBackgroundCopyJob** job) {
|
| - DCHECK(task_runner()->RunsTasksOnCurrentThread());
|
| + DCHECK(task_runner()->RunsTasksInCurrentSequence());
|
|
|
| ScopedComPtr<IBackgroundCopyJob> p;
|
| HRESULT hr = CreateOrOpenJob(url, p.GetAddressOf());
|
| @@ -835,7 +835,7 @@ HRESULT BackgroundDownloader::CompleteJob() {
|
| }
|
|
|
| HRESULT BackgroundDownloader::UpdateInterfacePointers() {
|
| - DCHECK(task_runner()->RunsTasksOnCurrentThread());
|
| + DCHECK(task_runner()->RunsTasksInCurrentSequence());
|
|
|
| ScopedComPtr<IGlobalInterfaceTable> git;
|
| HRESULT hr = GetGit(&git);
|
| @@ -862,7 +862,7 @@ void BackgroundDownloader::ResetInterfacePointers() {
|
| }
|
|
|
| HRESULT BackgroundDownloader::ClearGit() {
|
| - DCHECK(task_runner()->RunsTasksOnCurrentThread());
|
| + DCHECK(task_runner()->RunsTasksInCurrentSequence());
|
|
|
| ResetInterfacePointers();
|
|
|
|
|