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

Unified Diff: components/sync/engine_impl/attachments/attachment_downloader_impl.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_impl/attachments/attachment_downloader_impl.h
diff --git a/components/sync/engine_impl/attachments/attachment_downloader_impl.h b/components/sync/engine_impl/attachments/attachment_downloader_impl.h
index 2a4cef8a65f0fba0095b8f5b4d0eab382bb0baf1..56b2f6f8a614bb33c8baeb1a6435e176a750367d 100644
--- a/components/sync/engine_impl/attachments/attachment_downloader_impl.h
+++ b/components/sync/engine_impl/attachments/attachment_downloader_impl.h
@@ -14,7 +14,7 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "components/sync/base/model_type.h"
#include "components/sync/engine/attachments/attachment_downloader.h"
#include "google_apis/gaia/oauth2_token_service_request.h"
@@ -31,8 +31,7 @@ namespace syncer {
// An implementation of AttachmentDownloader.
class AttachmentDownloaderImpl : public AttachmentDownloader,
public OAuth2TokenService::Consumer,
- public net::URLFetcherDelegate,
- public base::NonThreadSafe {
+ public net::URLFetcherDelegate {
public:
// |sync_service_url| is the URL of the sync service.
//
@@ -122,6 +121,8 @@ class AttachmentDownloaderImpl : public AttachmentDownloader,
ModelType model_type_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(AttachmentDownloaderImpl);
};

Powered by Google App Engine
This is Rietveld 408576698