Index: components/policy/core/common/policy_service_impl.h |
diff --git a/components/policy/core/common/policy_service_impl.h b/components/policy/core/common/policy_service_impl.h |
index e74141a6bd9b766443d8b991268c9f5b10ca4a96..f90d377e4893897fbc79264e69d3a9d1164d45ca 100644 |
--- a/components/policy/core/common/policy_service_impl.h |
+++ b/components/policy/core/common/policy_service_impl.h |
@@ -14,6 +14,7 @@ |
#include "base/callback.h" |
#include "base/memory/weak_ptr.h" |
#include "base/observer_list.h" |
+#include "base/threading/thread_checker.h" |
#include "components/policy/core/common/configuration_policy_provider.h" |
#include "components/policy/core/common/policy_bundle.h" |
#include "components/policy/core/common/policy_service.h" |
@@ -94,6 +95,9 @@ class POLICY_EXPORT PolicyServiceImpl |
// processing previous policy updates. |
base::WeakPtrFactory<PolicyServiceImpl> update_task_ptr_factory_; |
+ // Used to verify thread-safe usage (mostly wrt observers_). |
+ base::ThreadChecker thread_checker_; |
+ |
DISALLOW_COPY_AND_ASSIGN(PolicyServiceImpl); |
}; |