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

Unified Diff: content/child/service_worker/service_worker_provider_context.cc

Issue 2873333004: Rename TaskRunner::RunsTasksOnCurrentThread() in //content (Closed)
Patch Set: 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 | « content/child/fileapi/webfilewriter_impl.cc ('k') | content/child/web_database_observer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/service_worker/service_worker_provider_context.cc
diff --git a/content/child/service_worker/service_worker_provider_context.cc b/content/child/service_worker/service_worker_provider_context.cc
index bdb318db1bd3b94a1a370277ec1009e7a78cbaae..9203346e432be89602563a830493b4000e7581bb 100644
--- a/content/child/service_worker/service_worker_provider_context.cc
+++ b/content/child/service_worker/service_worker_provider_context.cc
@@ -175,21 +175,21 @@ void ServiceWorkerProviderContext::OnAssociateRegistration(
std::unique_ptr<ServiceWorkerHandleReference> installing,
std::unique_ptr<ServiceWorkerHandleReference> waiting,
std::unique_ptr<ServiceWorkerHandleReference> active) {
- DCHECK(main_thread_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(main_thread_task_runner_->RunsTasksInCurrentSequence());
delegate_->AssociateRegistration(std::move(registration),
std::move(installing), std::move(waiting),
std::move(active));
}
void ServiceWorkerProviderContext::OnDisassociateRegistration() {
- DCHECK(main_thread_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(main_thread_task_runner_->RunsTasksInCurrentSequence());
delegate_->DisassociateRegistration();
}
void ServiceWorkerProviderContext::OnSetControllerServiceWorker(
std::unique_ptr<ServiceWorkerHandleReference> controller,
const std::set<uint32_t>& used_features) {
- DCHECK(main_thread_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(main_thread_task_runner_->RunsTasksInCurrentSequence());
delegate_->SetController(std::move(controller));
used_features_ = used_features;
}
@@ -197,7 +197,7 @@ void ServiceWorkerProviderContext::OnSetControllerServiceWorker(
void ServiceWorkerProviderContext::GetAssociatedRegistration(
ServiceWorkerRegistrationObjectInfo* info,
ServiceWorkerVersionAttributes* attrs) {
- DCHECK(!main_thread_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(!main_thread_task_runner_->RunsTasksInCurrentSequence());
delegate_->GetAssociatedRegistration(info, attrs);
}
@@ -206,12 +206,12 @@ bool ServiceWorkerProviderContext::HasAssociatedRegistration() {
}
ServiceWorkerHandleReference* ServiceWorkerProviderContext::controller() {
- DCHECK(main_thread_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(main_thread_task_runner_->RunsTasksInCurrentSequence());
return delegate_->controller();
}
void ServiceWorkerProviderContext::DestructOnMainThread() const {
- if (!main_thread_task_runner_->RunsTasksOnCurrentThread() &&
+ if (!main_thread_task_runner_->RunsTasksInCurrentSequence() &&
main_thread_task_runner_->DeleteSoon(FROM_HERE, this)) {
return;
}
« no previous file with comments | « content/child/fileapi/webfilewriter_impl.cc ('k') | content/child/web_database_observer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698