| Index: content/browser/dom_storage/dom_storage_task_runner.cc
|
| diff --git a/content/browser/dom_storage/dom_storage_task_runner.cc b/content/browser/dom_storage/dom_storage_task_runner.cc
|
| index 738be983203a2146d0b873105597e8a10a15e38a..edfdc722b26075c091b9fb9a106d8a1f745a7327 100644
|
| --- a/content/browser/dom_storage/dom_storage_task_runner.cc
|
| +++ b/content/browser/dom_storage/dom_storage_task_runner.cc
|
| @@ -24,9 +24,9 @@ DOMStorageWorkerPoolTaskRunner::DOMStorageWorkerPoolTaskRunner(
|
|
|
| DOMStorageWorkerPoolTaskRunner::~DOMStorageWorkerPoolTaskRunner() = default;
|
|
|
| -bool DOMStorageWorkerPoolTaskRunner::RunsTasksOnCurrentThread() const {
|
| - // It is valid for an implementation to always return true.
|
| - return true;
|
| +bool DOMStorageWorkerPoolTaskRunner::RunsTasksInCurrentSequence() const {
|
| + return primary_sequence_->RunsTasksOnCurrentThread() ||
|
| + commit_sequence_->RunsTasksOnCurrentThread();
|
| }
|
|
|
| bool DOMStorageWorkerPoolTaskRunner::PostDelayedTask(
|
| @@ -68,8 +68,8 @@ MockDOMStorageTaskRunner::MockDOMStorageTaskRunner(
|
|
|
| MockDOMStorageTaskRunner::~MockDOMStorageTaskRunner() = default;
|
|
|
| -bool MockDOMStorageTaskRunner::RunsTasksOnCurrentThread() const {
|
| - return task_runner_->RunsTasksOnCurrentThread();
|
| +bool MockDOMStorageTaskRunner::RunsTasksInCurrentSequence() const {
|
| + return task_runner_->RunsTasksInCurrentSequence();
|
| }
|
|
|
| bool MockDOMStorageTaskRunner::PostDelayedTask(
|
|
|