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

Unified Diff: components/update_client/background_downloader_win.cc

Issue 2889683003: Rename TaskRunner::RunsTasksOnCurrentThread() in //components (Closed)
Patch Set: rebase Created 3 years, 6 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
« no previous file with comments | « components/timers/alarm_timer_chromeos.cc ('k') | components/update_client/component.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dcbcd6461d985712832c27a6867ab9a828ead2f4..a04923bb537d8ebebac9085aba44967eeb7d802a 100644
--- a/components/update_client/background_downloader_win.cc
+++ b/components/update_client/background_downloader_win.cc
@@ -457,7 +457,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_;
@@ -503,7 +503,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)) {
@@ -568,7 +568,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());
const base::TimeTicks download_end_time(base::TimeTicks::Now());
const base::TimeDelta download_time =
@@ -709,7 +709,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());
@@ -830,7 +830,7 @@ HRESULT BackgroundDownloader::CompleteJob() {
}
HRESULT BackgroundDownloader::UpdateInterfacePointers() {
- DCHECK(task_runner()->RunsTasksOnCurrentThread());
+ DCHECK(task_runner()->RunsTasksInCurrentSequence());
ScopedComPtr<IGlobalInterfaceTable> git;
HRESULT hr = GetGit(&git);
@@ -857,7 +857,7 @@ void BackgroundDownloader::ResetInterfacePointers() {
}
HRESULT BackgroundDownloader::ClearGit() {
- DCHECK(task_runner()->RunsTasksOnCurrentThread());
+ DCHECK(task_runner()->RunsTasksInCurrentSequence());
ResetInterfacePointers();
« no previous file with comments | « components/timers/alarm_timer_chromeos.cc ('k') | components/update_client/component.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698