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

Unified Diff: components/history/core/browser/top_sites_backend.cc

Issue 2960373002: Rename TaskRunner::RunsTasksOnCurrentThread() in //service, //components (Closed)
Patch Set: 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 | « no previous file | services/resource_coordinator/tracing/recorder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/browser/top_sites_backend.cc
diff --git a/components/history/core/browser/top_sites_backend.cc b/components/history/core/browser/top_sites_backend.cc
index 7b0437e047fd710193230f7107fb0d239ea4e053..f343d5b3e3a8ad9209c7ce4aefbb6cd901a8e4b4 100644
--- a/components/history/core/browser/top_sites_backend.cc
+++ b/components/history/core/browser/top_sites_backend.cc
@@ -86,7 +86,7 @@ TopSitesBackend::~TopSitesBackend() {
}
void TopSitesBackend::InitDBOnDBThread(const base::FilePath& path) {
- DCHECK(db_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(db_task_runner_->RunsTasksInCurrentSequence());
if (!db_->Init(path)) {
LOG(ERROR) << "Failed to initialize database.";
db_.reset();
@@ -94,13 +94,13 @@ void TopSitesBackend::InitDBOnDBThread(const base::FilePath& path) {
}
void TopSitesBackend::ShutdownDBOnDBThread() {
- DCHECK(db_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(db_task_runner_->RunsTasksInCurrentSequence());
db_.reset();
}
void TopSitesBackend::GetMostVisitedThumbnailsOnDBThread(
scoped_refptr<MostVisitedThumbnails> thumbnails) {
- DCHECK(db_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(db_task_runner_->RunsTasksInCurrentSequence());
if (db_) {
db_->GetPageThumbnails(&(thumbnails->most_visited),
@@ -142,7 +142,7 @@ void TopSitesBackend::SetPageThumbnailOnDBThread(const MostVisitedURL& url,
}
void TopSitesBackend::ResetDatabaseOnDBThread(const base::FilePath& file_path) {
- DCHECK(db_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(db_task_runner_->RunsTasksInCurrentSequence());
db_.reset(NULL);
sql::Connection::Delete(db_path_);
db_.reset(new TopSitesDatabase());
« no previous file with comments | « no previous file | services/resource_coordinator/tracing/recorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698