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

Unified Diff: storage/browser/blob/blob_data_handle.cc

Issue 2890143004: Rename TaskRunner::RunsTasksOnCurrentThread() in //storage (Closed)
Patch Set: for Requirements 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 | « no previous file | storage/browser/database/database_quota_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_);
« no previous file with comments | « no previous file | storage/browser/database/database_quota_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698