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

Unified Diff: components/policy/core/common/cloud/component_cloud_policy_service.h

Issue 2915493002: Replace deprecated base::NonThreadSafe in components/policy 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
Index: components/policy/core/common/cloud/component_cloud_policy_service.h
diff --git a/components/policy/core/common/cloud/component_cloud_policy_service.h b/components/policy/core/common/cloud/component_cloud_policy_service.h
index 15f04e8041fb8a03e5fd15705be3d54b35ae12e9..a9d1149539ced55592a7c0366a753b33315b206f 100644
--- a/components/policy/core/common/cloud/component_cloud_policy_service.h
+++ b/components/policy/core/common/cloud/component_cloud_policy_service.h
@@ -12,7 +12,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "build/build_config.h"
#include "components/policy/core/common/cloud/cloud_policy_client.h"
#include "components/policy/core/common/cloud/cloud_policy_core.h"
@@ -52,8 +52,7 @@ class POLICY_EXPORT ComponentCloudPolicyService
: public CloudPolicyClient::Observer,
public CloudPolicyCore::Observer,
public CloudPolicyStore::Observer,
- public SchemaRegistry::Observer,
- public base::NonThreadSafe {
+ public SchemaRegistry::Observer {
public:
class POLICY_EXPORT Delegate {
public:
@@ -188,6 +187,8 @@ class POLICY_EXPORT ComponentCloudPolicyService
// Whether policies are being served.
bool policy_installed_ = false;
+ SEQUENCE_CHECKER(sequence_checker_);
+
// Must be the last member.
base::WeakPtrFactory<ComponentCloudPolicyService> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698