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

Unified Diff: components/sync/engine/attachments/on_disk_attachment_store.h

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/engine/attachments/on_disk_attachment_store.h
diff --git a/components/sync/engine/attachments/on_disk_attachment_store.h b/components/sync/engine/attachments/on_disk_attachment_store.h
index 9e2512f3071196731b08f9837cecf4db380c346e..af63ecf0f42691166602d603ab3aa4ad384590cd 100644
--- a/components/sync/engine/attachments/on_disk_attachment_store.h
+++ b/components/sync/engine/attachments/on_disk_attachment_store.h
@@ -11,7 +11,7 @@
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "components/sync/engine/attachments/attachment_store_backend.h"
#include "components/sync/model/attachments/attachment.h"
#include "components/sync/model/attachments/attachment_id.h"
@@ -33,8 +33,7 @@ namespace syncer {
// On-disk implementation of AttachmentStore. Stores attachments in leveldb
// database in |path| directory.
-class OnDiskAttachmentStore : public AttachmentStoreBackend,
- public base::NonThreadSafe {
+class OnDiskAttachmentStore : public AttachmentStoreBackend {
public:
// Constructs attachment store.
OnDiskAttachmentStore(
@@ -99,6 +98,8 @@ class OnDiskAttachmentStore : public AttachmentStoreBackend,
const base::FilePath path_;
std::unique_ptr<leveldb::DB> db_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(OnDiskAttachmentStore);
};

Powered by Google App Engine
This is Rietveld 408576698