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

Unified Diff: components/policy/core/common/policy_service_impl.h

Issue 830193002: Using PolicyServiceWatcher instead of PolicyWatcherLinux/Win/Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed building for Chrome OS. Created 5 years, 12 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/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);
};

Powered by Google App Engine
This is Rietveld 408576698