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

Unified Diff: content/browser/indexed_db/indexed_db_active_blob_registry.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_active_blob_registry.cc
diff --git a/content/browser/indexed_db/indexed_db_active_blob_registry.cc b/content/browser/indexed_db/indexed_db_active_blob_registry.cc
index ea2bde2acf9b94471fca1f9ca4b2a1ac9aca9e5a..a5ea89d9e0594e15ba95464e7b2b1581786bc511 100644
--- a/content/browser/indexed_db/indexed_db_active_blob_registry.cc
+++ b/content/browser/indexed_db/indexed_db_active_blob_registry.cc
@@ -23,7 +23,7 @@ IndexedDBActiveBlobRegistry::~IndexedDBActiveBlobRegistry() {
void IndexedDBActiveBlobRegistry::AddBlobRef(int64_t database_id,
int64_t blob_key) {
DCHECK(backing_store_);
- DCHECK(backing_store_->task_runner()->RunsTasksOnCurrentThread());
+ DCHECK(backing_store_->task_runner()->RunsTasksInCurrentSequence());
DCHECK(KeyPrefix::IsValidDatabaseId(database_id));
DCHECK(DatabaseMetaDataKey::IsValidBlobKey(blob_key));
DCHECK(!base::ContainsKey(deleted_dbs_, database_id));
@@ -45,7 +45,7 @@ void IndexedDBActiveBlobRegistry::AddBlobRef(int64_t database_id,
void IndexedDBActiveBlobRegistry::ReleaseBlobRef(int64_t database_id,
int64_t blob_key) {
DCHECK(backing_store_);
- DCHECK(backing_store_->task_runner()->RunsTasksOnCurrentThread());
+ DCHECK(backing_store_->task_runner()->RunsTasksInCurrentSequence());
DCHECK(KeyPrefix::IsValidDatabaseId(database_id));
DCHECK(DatabaseMetaDataKey::IsValidBlobKey(blob_key));
const auto& db_pair = use_tracker_.find(database_id);
@@ -85,7 +85,7 @@ void IndexedDBActiveBlobRegistry::ReleaseBlobRef(int64_t database_id,
bool IndexedDBActiveBlobRegistry::MarkDeletedCheckIfUsed(int64_t database_id,
int64_t blob_key) {
DCHECK(backing_store_);
- DCHECK(backing_store_->task_runner()->RunsTasksOnCurrentThread());
+ DCHECK(backing_store_->task_runner()->RunsTasksInCurrentSequence());
DCHECK(KeyPrefix::IsValidDatabaseId(database_id));
const auto& db_pair = use_tracker_.find(database_id);
if (db_pair == use_tracker_.end())
« no previous file with comments | « content/browser/fileapi/browser_file_system_helper.cc ('k') | content/browser/indexed_db/indexed_db_backing_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698