Commit c655bcf2 authored by Wez's avatar Wez Committed by Commit Bot

Do not tolerate null TaskRunner in IndexedDBBackingStore.

Allowances were added in thread checks, but these are no longer
required since the fake for this class now grabs the calling-thread's
TaskRunner.

Bug: 838386
Change-Id: I27bc5bc192067ac5fc6c1636108dad30e92190f0
Reviewed-on: https://chromium-review.googlesource.com/1056252
Commit-Queue: Daniel Murphy <dmurph@chromium.org>
Reviewed-by: default avatarDaniel Murphy <dmurph@chromium.org>
Cr-Commit-Position: refs/heads/master@{#558171}
parent 369074b5
......@@ -586,13 +586,11 @@ IndexedDBBackingStore::IndexedDBBackingStore(
comparator_(std::move(comparator)),
active_blob_registry_(this),
committing_transaction_count_(0) {
// TODO(838386): Make IndexedDBBackingStore an interface, so that we can
// check that |task_runner| is non-null here without breaking tests.
DCHECK(!task_runner_ || task_runner_->RunsTasksInCurrentSequence());
DCHECK(task_runner_->RunsTasksInCurrentSequence());
}
IndexedDBBackingStore::~IndexedDBBackingStore() {
DCHECK(!task_runner_ || task_runner_->RunsTasksInCurrentSequence());
DCHECK(task_runner_->RunsTasksInCurrentSequence());
if (!blob_path_.empty() && !child_process_ids_granted_.empty()) {
ChildProcessSecurityPolicyImpl* policy =
ChildProcessSecurityPolicyImpl::GetInstance();
......
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