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

Unified Diff: components/drive/service/drive_api_service.h

Issue 2907223002: Deprecate NonThreadSafe in components/drive in favor of SequenceChecker. (Closed)
Patch Set: rebase off dependency 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 | « no previous file | components/drive/service/drive_api_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/service/drive_api_service.h
diff --git a/components/drive/service/drive_api_service.h b/components/drive/service/drive_api_service.h
index b83e0b06c49db3d0beec3dba9447da20c82f2a2c..78d8092c2d8204c5a95ea741930b77cb4331e773 100644
--- a/components/drive/service/drive_api_service.h
+++ b/components/drive/service/drive_api_service.h
@@ -14,6 +14,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
+#include "base/sequence_checker.h"
#include "base/threading/thread_checker.h"
#include "components/drive/service/drive_service_interface.h"
#include "google_apis/drive/auth_service_interface.h"
@@ -44,8 +45,7 @@ class URLRequestContextGetter;
namespace drive {
// Builder for batch request returned by |DriveAPIService|.
-class BatchRequestConfigurator : public BatchRequestConfiguratorInterface,
- public base::NonThreadSafe {
+class BatchRequestConfigurator : public BatchRequestConfiguratorInterface {
public:
BatchRequestConfigurator(
const base::WeakPtr<google_apis::drive::BatchUploadRequest>&
@@ -82,6 +82,8 @@ class BatchRequestConfigurator : public BatchRequestConfiguratorInterface,
google_apis::DriveApiUrlGenerator url_generator_;
google_apis::CancelCallback cancel_callback_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(BatchRequestConfigurator);
};
« no previous file with comments | « no previous file | components/drive/service/drive_api_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698