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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h

Issue 2909973002: Deprecate NonThreadSafe in components/data_reduction_proxy in favor of SequenceChecker. (Closed)
Patch Set: 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/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h
index 077f0d20a1c3d2cf4364f7b314deb69777592677..040605e25ec21a3badd4abc87531b50454a102f9 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h
@@ -16,7 +16,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h"
#include "components/data_reduction_proxy/core/browser/db_data_owner.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate.h"
@@ -47,8 +47,7 @@ class DataUseGroup;
// Contains and initializes all Data Reduction Proxy objects that have a
// lifetime based on the UI thread.
class DataReductionProxyService
- : public base::NonThreadSafe,
- public DataReductionProxyEventStorageDelegate {
+ : public DataReductionProxyEventStorageDelegate {
public:
// The caller must ensure that |settings|, |prefs|, |request_context|, and
// |io_task_runner| remain alive for the lifetime of the
@@ -204,6 +203,8 @@ class DataReductionProxyService
bool initialized_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
base::WeakPtrFactory<DataReductionProxyService> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(DataReductionProxyService);
« no previous file with comments | « no previous file | components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698