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

Unified Diff: content/browser/indexed_db/indexed_db_backing_store.cc

Issue 2873333004: Rename TaskRunner::RunsTasksOnCurrentThread() in //content (Closed)
Patch Set: 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
Index: content/browser/indexed_db/indexed_db_backing_store.cc
diff --git a/content/browser/indexed_db/indexed_db_backing_store.cc b/content/browser/indexed_db/indexed_db_backing_store.cc
index fe068ab02fb0431b182612d2e93d150395fe5663..77116628d629827532382a237634a1ef30e4fc36 100644
--- a/content/browser/indexed_db/indexed_db_backing_store.cc
+++ b/content/browser/indexed_db/indexed_db_backing_store.cc
@@ -2612,7 +2612,7 @@ class LocalWriteClosure : public FileWriterDelegate::DelegateWriteCallback,
// If necessary, update the timestamps on the file as a final
// step before reporting success.
void UpdateTimeStamp() {
- DCHECK(task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(task_runner_->RunsTasksInCurrentSequence());
if (!base::TouchFile(file_path_, last_modified_, last_modified_)) {
// TODO(ericu): Complain quietly; timestamp's probably not vital.
}
@@ -2621,7 +2621,7 @@ class LocalWriteClosure : public FileWriterDelegate::DelegateWriteCallback,
// Create an empty file.
void CreateEmptyFile() {
- DCHECK(task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(task_runner_->RunsTasksInCurrentSequence());
base::File file(file_path_,
base::File::FLAG_CREATE_ALWAYS | base::File::FLAG_WRITE);
bool success = file.created();
@@ -4153,7 +4153,7 @@ Status IndexedDBBackingStore::Transaction::CommitPhaseOne(
scoped_refptr<BlobWriteCallback> callback) {
IDB_TRACE("IndexedDBBackingStore::Transaction::CommitPhaseOne");
DCHECK(transaction_.get());
- DCHECK(backing_store_->task_runner()->RunsTasksOnCurrentThread());
+ DCHECK(backing_store_->task_runner()->RunsTasksInCurrentSequence());
Status s;
« no previous file with comments | « content/browser/indexed_db/indexed_db_active_blob_registry.cc ('k') | content/browser/indexed_db/indexed_db_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698