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

Unified Diff: components/sync/syncable/on_disk_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
« no previous file with comments | « components/sync/syncable/directory_backing_store.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/syncable/on_disk_directory_backing_store.cc
diff --git a/components/sync/syncable/on_disk_directory_backing_store.cc b/components/sync/syncable/on_disk_directory_backing_store.cc
index ba2e5d89ac2f04c909be458090c55e3408c7597b..63575bec0b83cd248b3cde3f72e2ddb8f59a31f6 100644
--- a/components/sync/syncable/on_disk_directory_backing_store.cc
+++ b/components/sync/syncable/on_disk_directory_backing_store.cc
@@ -35,7 +35,7 @@ DirOpenResult OnDiskDirectoryBackingStore::TryLoad(
JournalIndex* delete_journals,
MetahandleSet* metahandles_to_purge,
Directory::KernelLoadInfo* kernel_load_info) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
if (!IsOpen()) {
if (!Open(backing_file_path_))
@@ -62,7 +62,7 @@ DirOpenResult OnDiskDirectoryBackingStore::Load(
JournalIndex* delete_journals,
MetahandleSet* metahandles_to_purge,
Directory::KernelLoadInfo* kernel_load_info) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
DirOpenResult result = TryLoad(handles_map, delete_journals,
metahandles_to_purge, kernel_load_info);
if (result == OPENED) {
@@ -108,7 +108,7 @@ void OnDiskDirectoryBackingStore::ReportFirstTryOpenFailure() {
}
const base::FilePath& OnDiskDirectoryBackingStore::backing_file_path() const {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
return backing_file_path_;
}
« no previous file with comments | « components/sync/syncable/directory_backing_store.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698