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

Unified Diff: chrome/browser/chromeos/policy/device_active_directory_policy_manager.h

Issue 2512733004: Request device policy from authpolicyd (Closed)
Patch Set: Expand AD --> Active Directory Created 4 years, 1 month 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 | chrome/browser/chromeos/policy/device_active_directory_policy_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/policy/device_active_directory_policy_manager.h
diff --git a/chrome/browser/chromeos/policy/device_active_directory_policy_manager.h b/chrome/browser/chromeos/policy/device_active_directory_policy_manager.h
index 8c0d67266e5e6b34fa1f66488d9c65c91eb0ac26..ab3a41b9a5f67fe9ff12d58cbd7fe371b2f0ffbb 100644
--- a/chrome/browser/chromeos/policy/device_active_directory_policy_manager.h
+++ b/chrome/browser/chromeos/policy/device_active_directory_policy_manager.h
@@ -7,6 +7,8 @@
#include <memory>
+#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
#include "components/policy/core/common/cloud/cloud_policy_store.h"
#include "components/policy/core/common/configuration_policy_provider.h"
@@ -15,7 +17,6 @@ namespace policy {
// ConfigurationPolicyProvider for policy from Active Directory. The policy is
// fetched from the Domain Controller by authpolicyd which stores it in session
// manager and from where it is loaded by DeviceActiveDirectoryPolicyManager.
-// TODO(tnagel): Wire RefreshPolicies() through to authpolicyd.
class DeviceActiveDirectoryPolicyManager : public ConfigurationPolicyProvider,
public CloudPolicyStore::Observer {
public:
@@ -39,7 +40,15 @@ class DeviceActiveDirectoryPolicyManager : public ConfigurationPolicyProvider,
// Publishes the policy that's currently cached in the store.
void PublishPolicy();
+ // Callback from authpolicyd.
+ void OnPolicyRefreshed(bool success);
+
std::unique_ptr<CloudPolicyStore> store_;
+
+ // Must be last member.
+ base::WeakPtrFactory<DeviceActiveDirectoryPolicyManager> weak_ptr_factory_;
+
+ DISALLOW_COPY_AND_ASSIGN(DeviceActiveDirectoryPolicyManager);
};
} // namespace policy
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/device_active_directory_policy_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698