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

Unified Diff: components/safe_browsing_db/v4_database.cc

Issue 2889683003: Rename TaskRunner::RunsTasksOnCurrentThread() in //components (Closed)
Patch Set: rebase Created 3 years, 6 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 | « components/policy/core/common/policy_loader_ios.mm ('k') | components/safe_browsing_db/v4_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/v4_database.cc
diff --git a/components/safe_browsing_db/v4_database.cc b/components/safe_browsing_db/v4_database.cc
index 48eaabe0ca2bf115fdcc468d4aab994cd014aa25..fc23c9b68d2d49320568a3b5f88cd600cd7ad26b 100644
--- a/components/safe_browsing_db/v4_database.cc
+++ b/components/safe_browsing_db/v4_database.cc
@@ -79,7 +79,7 @@ void V4Database::CreateOnTaskRunner(
const scoped_refptr<base::SingleThreadTaskRunner>& callback_task_runner,
NewDatabaseReadyCallback new_db_callback,
const TimeTicks create_start_time) {
- DCHECK(db_task_runner->RunsTasksOnCurrentThread());
+ DCHECK(db_task_runner->RunsTasksInCurrentSequence());
if (!g_store_factory.Get())
g_store_factory.Get() = base::MakeUnique<V4StoreFactory>();
@@ -133,7 +133,7 @@ V4Database::V4Database(
db_task_runner_(db_task_runner),
pending_store_updates_(0),
weak_factory_on_io_(this) {
- DCHECK(db_task_runner->RunsTasksOnCurrentThread());
+ DCHECK(db_task_runner->RunsTasksInCurrentSequence());
}
// static
@@ -147,7 +147,7 @@ void V4Database::Destroy(std::unique_ptr<V4Database> v4_database) {
}
V4Database::~V4Database() {
- DCHECK(db_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(db_task_runner_->RunsTasksInCurrentSequence());
}
void V4Database::ApplyUpdate(
« no previous file with comments | « components/policy/core/common/policy_loader_ios.mm ('k') | components/safe_browsing_db/v4_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698