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

Unified Diff: components/sync/syncable/directory_backing_store.cc

Issue 2915453002: Deprecate NonThreadSafe in components/sync in favor of SequenceChecker. (Closed)
Patch Set: fix comment 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: components/sync/syncable/directory_backing_store.cc
diff --git a/components/sync/syncable/directory_backing_store.cc b/components/sync/syncable/directory_backing_store.cc
index 3714cd903886c2cae998ce8b341eac822ffa4e94..677ffc51ea9060c3568870187fe0eaa0b6111738 100644
--- a/components/sync/syncable/directory_backing_store.cc
+++ b/components/sync/syncable/directory_backing_store.cc
@@ -283,6 +283,7 @@ DirectoryBackingStore::DirectoryBackingStore(const string& dir_name,
}
DirectoryBackingStore::~DirectoryBackingStore() {
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
}
bool DirectoryBackingStore::DeleteEntries(EntryTable from,
@@ -316,7 +317,7 @@ bool DirectoryBackingStore::DeleteEntries(EntryTable from,
bool DirectoryBackingStore::SaveChanges(
const Directory::SaveChangesSnapshot& snapshot) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
DCHECK(db_->is_open());
// Back out early if there is nothing to write.
@@ -1804,7 +1805,7 @@ void DirectoryBackingStore::ResetAndCreateConnection() {
void DirectoryBackingStore::SetCatastrophicErrorHandler(
const base::Closure& catastrophic_error_handler) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
DCHECK(!catastrophic_error_handler.is_null());
catastrophic_error_handler_ = catastrophic_error_handler;
sql::Connection::ErrorCallback error_callback =
« no previous file with comments | « components/sync/syncable/directory_backing_store.h ('k') | components/sync/syncable/on_disk_directory_backing_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698