Commit 3dd834c0 authored by Alexander Timin's avatar Alexander Timin Committed by Commit Bot

[scheduler] Do not use kInternalIPC in modules/content_index

Remove kInternalIPC task type.
- If it's used to bind associated interface, use
  kInternalNavigationAssociated instead.
- If it's used to bind non-associated interface, use the task source
  mentioned in the spec, kMiscPlatformAPI if it's not speced yet or
  kInternalDefault if it's a non-spec-related task.

R=falken@chromium.org,peter@chromium.org

Change-Id: Id82556a9da16d0d04acdaf4eed7a9604e8796172
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1891290Reviewed-by: default avatarPeter Beverloo <peter@chromium.org>
Reviewed-by: default avatarMatt Falkenhagen <falken@chromium.org>
Commit-Queue: Alexander Timin <altimin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#711675}
parent de21feff
...@@ -39,9 +39,10 @@ ContentIndex* ServiceWorkerRegistrationContentIndex::index( ...@@ -39,9 +39,10 @@ ContentIndex* ServiceWorkerRegistrationContentIndex::index(
ContentIndex* ServiceWorkerRegistrationContentIndex::index() { ContentIndex* ServiceWorkerRegistrationContentIndex::index() {
if (!content_index_) { if (!content_index_) {
ExecutionContext* execution_context = registration_->GetExecutionContext(); ExecutionContext* execution_context = registration_->GetExecutionContext();
// TODO(falken): Consider defining a task source in the spec for this event.
content_index_ = MakeGarbageCollected<ContentIndex>( content_index_ = MakeGarbageCollected<ContentIndex>(
registration_, registration_,
execution_context->GetTaskRunner(TaskType::kInternalIPC)); execution_context->GetTaskRunner(TaskType::kMiscPlatformAPI));
} }
return content_index_.Get(); return content_index_.Get();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment