Index: storage/browser/blob/blob_data_handle.cc |
diff --git a/storage/browser/blob/blob_data_handle.cc b/storage/browser/blob/blob_data_handle.cc |
index 8d29cca76f383d8c9ccc65f603a721292111ad43..0ba7b360f2a960d297e0141c8483bd78f0d10a79 100644 |
--- a/storage/browser/blob/blob_data_handle.cc |
+++ b/storage/browser/blob/blob_data_handle.cc |
@@ -102,13 +102,13 @@ BlobDataHandle::BlobDataHandle(const std::string& uuid, |
size, |
context)) { |
DCHECK(io_task_runner_.get()); |
- DCHECK(io_task_runner_->RunsTasksOnCurrentThread()); |
+ DCHECK(io_task_runner_->RunsTasksInCurrentSequence()); |
} |
BlobDataHandle::BlobDataHandle(const BlobDataHandle& other) = default; |
BlobDataHandle::~BlobDataHandle() { |
- if (!io_task_runner_->RunsTasksOnCurrentThread()) { |
+ if (!io_task_runner_->RunsTasksInCurrentSequence()) { |
BlobDataHandleShared* raw = shared_.get(); |
raw->AddRef(); |
shared_ = nullptr; |
@@ -120,14 +120,14 @@ BlobDataHandle& BlobDataHandle::operator=( |
const BlobDataHandle& other) = default; |
bool BlobDataHandle::IsBeingBuilt() const { |
- DCHECK(io_task_runner_->RunsTasksOnCurrentThread()); |
+ DCHECK(io_task_runner_->RunsTasksInCurrentSequence()); |
if (!shared_->context_) |
return false; |
return BlobStatusIsPending(GetBlobStatus()); |
} |
bool BlobDataHandle::IsBroken() const { |
- DCHECK(io_task_runner_->RunsTasksOnCurrentThread()); |
+ DCHECK(io_task_runner_->RunsTasksInCurrentSequence()); |
if (!shared_->context_) |
return true; |
return BlobStatusIsError(GetBlobStatus()); |
@@ -138,7 +138,7 @@ BlobStatus BlobDataHandle::GetBlobStatus() const { |
} |
void BlobDataHandle::RunOnConstructionComplete(const BlobStatusCallback& done) { |
- DCHECK(io_task_runner_->RunsTasksOnCurrentThread()); |
+ DCHECK(io_task_runner_->RunsTasksInCurrentSequence()); |
if (!shared_->context_.get()) { |
done.Run(BlobStatus::ERR_INVALID_CONSTRUCTION_ARGUMENTS); |
return; |
@@ -147,7 +147,7 @@ void BlobDataHandle::RunOnConstructionComplete(const BlobStatusCallback& done) { |
} |
std::unique_ptr<BlobDataSnapshot> BlobDataHandle::CreateSnapshot() const { |
- DCHECK(io_task_runner_->RunsTasksOnCurrentThread()); |
+ DCHECK(io_task_runner_->RunsTasksInCurrentSequence()); |
if (!shared_->context_.get()) |
return nullptr; |
return shared_->context_->CreateSnapshot(shared_->uuid_); |