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

Unified Diff: components/timers/alarm_timer_chromeos.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/sync/engine/fake_sync_manager.cc ('k') | components/update_client/background_downloader_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/timers/alarm_timer_chromeos.cc
diff --git a/components/timers/alarm_timer_chromeos.cc b/components/timers/alarm_timer_chromeos.cc
index 601b411bd7a2daa9bbc10a0c7976f6c48f6b8073..cc550eb50064a7afca9103cf6477c35b6ffe185e 100644
--- a/components/timers/alarm_timer_chromeos.cc
+++ b/components/timers/alarm_timer_chromeos.cc
@@ -26,12 +26,12 @@ AlarmTimer::AlarmTimer(bool retain_user_task, bool is_repeating)
weak_factory_(this) {}
AlarmTimer::~AlarmTimer() {
- DCHECK(origin_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(origin_task_runner_->RunsTasksInCurrentSequence());
Stop();
}
void AlarmTimer::Stop() {
- DCHECK(origin_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(origin_task_runner_->RunsTasksInCurrentSequence());
if (!base::Timer::is_running())
return;
@@ -53,7 +53,7 @@ void AlarmTimer::Stop() {
}
void AlarmTimer::Reset() {
- DCHECK(origin_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(origin_task_runner_->RunsTasksInCurrentSequence());
DCHECK(!base::Timer::user_task().is_null());
if (!CanWakeFromSuspend()) {
@@ -107,7 +107,7 @@ void AlarmTimer::Reset() {
}
void AlarmTimer::OnAlarmFdReadableWithoutBlocking() {
- DCHECK(origin_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(origin_task_runner_->RunsTasksInCurrentSequence());
DCHECK(base::Timer::IsRunning());
// Read from |alarm_fd_| to ack the event.
@@ -119,7 +119,7 @@ void AlarmTimer::OnAlarmFdReadableWithoutBlocking() {
}
void AlarmTimer::OnTimerFired() {
- DCHECK(origin_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(origin_task_runner_->RunsTasksInCurrentSequence());
DCHECK(base::Timer::IsRunning());
DCHECK(pending_task_.get());
« no previous file with comments | « components/sync/engine/fake_sync_manager.cc ('k') | components/update_client/background_downloader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698