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

Unified Diff: components/sync/engine/attachments/fake_attachment_downloader.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/engine/attachments/fake_attachment_downloader.cc
diff --git a/components/sync/engine/attachments/fake_attachment_downloader.cc b/components/sync/engine/attachments/fake_attachment_downloader.cc
index 66f85fb7baadb19870e41fe9682fef76bf410976..767a58644c39b3cfdcf7291e57c0d620e2ffdd0d 100644
--- a/components/sync/engine/attachments/fake_attachment_downloader.cc
+++ b/components/sync/engine/attachments/fake_attachment_downloader.cc
@@ -18,13 +18,13 @@ namespace syncer {
FakeAttachmentDownloader::FakeAttachmentDownloader() {}
FakeAttachmentDownloader::~FakeAttachmentDownloader() {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
}
void FakeAttachmentDownloader::DownloadAttachment(
const AttachmentId& attachment_id,
const DownloadCallback& callback) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
// This is happy fake downloader, it always successfully downloads empty
// attachment.
scoped_refptr<base::RefCountedMemory> data(new base::RefCountedBytes());

Powered by Google App Engine
This is Rietveld 408576698