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

Unified Diff: device/wake_lock/wake_lock_service_impl.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/usb/usb_device_handle_impl.cc ('k') | services/device/time_zone_monitor/time_zone_monitor_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/wake_lock/wake_lock_service_impl.cc
diff --git a/device/wake_lock/wake_lock_service_impl.cc b/device/wake_lock/wake_lock_service_impl.cc
index 0be02edd61c70ae33a8c02240e552a8748df403c..a5065b6ba90b173f8b25c3b4e088a61349cc411a 100644
--- a/device/wake_lock/wake_lock_service_impl.cc
+++ b/device/wake_lock/wake_lock_service_impl.cc
@@ -76,7 +76,7 @@ void WakeLockServiceImpl::AddClient(mojom::WakeLockServiceRequest request) {
}
void WakeLockServiceImpl::RequestWakeLock() {
- DCHECK(main_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(main_task_runner_->RunsTasksInCurrentSequence());
DCHECK(binding_set_.dispatch_context());
// Uses the Context to get the outstanding status of current binding.
@@ -91,7 +91,7 @@ void WakeLockServiceImpl::RequestWakeLock() {
}
void WakeLockServiceImpl::CancelWakeLock() {
- DCHECK(main_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(main_task_runner_->RunsTasksInCurrentSequence());
DCHECK(binding_set_.dispatch_context());
if (!(*binding_set_.dispatch_context()))
« no previous file with comments | « device/usb/usb_device_handle_impl.cc ('k') | services/device/time_zone_monitor/time_zone_monitor_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698