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

Unified Diff: services/device/time_zone_monitor/time_zone_monitor_linux.cc

Issue 2891853003: Rename TaskRunner::RunsTasksOnCurrentThread() in //device, //services (Closed)
Patch Set: fixed build error Created 3 years, 7 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 | « device/wake_lock/wake_lock_service_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/device/time_zone_monitor/time_zone_monitor_linux.cc
diff --git a/services/device/time_zone_monitor/time_zone_monitor_linux.cc b/services/device/time_zone_monitor/time_zone_monitor_linux.cc
index 22ab258bf5dc9c9baef235205b7cac7e78bdc087..fe580fe486a14a5a4b00d7917daa99131cc1d210 100644
--- a/services/device/time_zone_monitor/time_zone_monitor_linux.cc
+++ b/services/device/time_zone_monitor/time_zone_monitor_linux.cc
@@ -59,14 +59,14 @@ class TimeZoneMonitorLinuxImpl
main_task_runner_(base::ThreadTaskRunnerHandle::Get()),
file_task_runner_(file_task_runner),
owner_(owner) {
- DCHECK(main_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(main_task_runner_->RunsTasksInCurrentSequence());
file_task_runner_->PostTask(
FROM_HERE,
base::Bind(&TimeZoneMonitorLinuxImpl::StartWatchingOnFileThread, this));
}
void StopWatching() {
- DCHECK(main_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(main_task_runner_->RunsTasksInCurrentSequence());
owner_ = NULL;
file_task_runner_->PostTask(
FROM_HERE,
@@ -80,7 +80,7 @@ class TimeZoneMonitorLinuxImpl
void StartWatchingOnFileThread() {
base::ThreadRestrictions::AssertIOAllowed();
- DCHECK(file_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(file_task_runner_->RunsTasksInCurrentSequence());
// There is no true standard for where time zone information is actually
// stored. glibc uses /etc/localtime, uClibc uses /etc/TZ, and some older
@@ -102,12 +102,12 @@ class TimeZoneMonitorLinuxImpl
}
void StopWatchingOnFileThread() {
- DCHECK(file_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(file_task_runner_->RunsTasksInCurrentSequence());
file_path_watchers_.clear();
}
void OnTimeZoneFileChanged(const base::FilePath& path, bool error) {
- DCHECK(file_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(file_task_runner_->RunsTasksInCurrentSequence());
main_task_runner_->PostTask(
FROM_HERE,
base::Bind(&TimeZoneMonitorLinuxImpl::OnTimeZoneFileChangedOnUIThread,
@@ -115,7 +115,7 @@ class TimeZoneMonitorLinuxImpl
}
void OnTimeZoneFileChangedOnUIThread() {
- DCHECK(main_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(main_task_runner_->RunsTasksInCurrentSequence());
if (owner_) {
owner_->NotifyClientsFromImpl();
}
« no previous file with comments | « device/wake_lock/wake_lock_service_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698