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

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

Issue 2860973002: Allow PolicyLoadStatusSample to override reporting method (Closed)
Patch Set: Cleanups and class rename. 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/policy_loader_win.h
diff --git a/components/policy/core/common/policy_loader_win.h b/components/policy/core/common/policy_loader_win.h
index c1195b1b7b022b89fbf0ee8405ad85c1919069d9..2b3b0a1285815d0e0654c8257a0ccf8cca8dd8e7 100644
--- a/components/policy/core/common/policy_loader_win.h
+++ b/components/policy/core/common/policy_loader_win.h
@@ -6,6 +6,7 @@
#define COMPONENTS_POLICY_CORE_COMMON_POLICY_LOADER_WIN_H_
#include <windows.h>
+
#include <userenv.h>
#include <memory>
@@ -27,7 +28,7 @@ class SequencedTaskRunner;
namespace policy {
class AppliedGPOListProvider;
-class PolicyLoadStatusSample;
+class PolicyLoadStatusSampler;
class PolicyMap;
class RegistryDict;
@@ -74,7 +75,7 @@ class POLICY_EXPORT PolicyLoaderWin
// result in |policy|.
bool ReadPRegFile(const base::FilePath& preg_file,
RegistryDict* policy,
- PolicyLoadStatusSample* status);
+ PolicyLoadStatusSampler* status);
// Loads and parses GPO policy in |policy_object_list| for scope |scope|. If
// successful, stores the result in |policy| and returns true. Returns false
@@ -83,14 +84,14 @@ class POLICY_EXPORT PolicyLoaderWin
bool LoadGPOPolicy(PolicyScope scope,
PGROUP_POLICY_OBJECT policy_object_list,
RegistryDict* policy,
- PolicyLoadStatusSample* status);
+ PolicyLoadStatusSampler* status);
// Queries Windows for applied group policy and writes the result to |policy|.
// This is the preferred way to obtain GPO data, there are reports of abuse
// of the registry GPO keys by 3rd-party software.
bool ReadPolicyFromGPO(PolicyScope scope,
RegistryDict* policy,
- PolicyLoadStatusSample* status);
+ PolicyLoadStatusSampler* status);
// Parses Chrome policy from |gpo_dict| for the given |scope| and |level| and
// merges it into |chrome_policy_map|.
« no previous file with comments | « components/policy/core/common/policy_loader_mac.mm ('k') | components/policy/core/common/policy_loader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698