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

Unified Diff: chrome/browser/policy/policy_loader_win.h

Issue 14294008: Add UMA histograms for policy loading. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit Created 7 years, 8 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
« no previous file with comments | « chrome/browser/policy/policy_loader_mac.cc ('k') | chrome/browser/policy/policy_loader_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/policy_loader_win.h
diff --git a/chrome/browser/policy/policy_loader_win.h b/chrome/browser/policy/policy_loader_win.h
index 096e4200025ee13484bbbfd8b3470773b323f79f..a71ae0c9ff483f2675017387ea170c63c06ff116 100644
--- a/chrome/browser/policy/policy_loader_win.h
+++ b/chrome/browser/policy/policy_loader_win.h
@@ -23,6 +23,7 @@ class FilePath;
namespace policy {
class AppliedGPOListProvider;
+class PolicyLoadStatusSample;
class PolicyMap;
struct PolicyDefinitionList;
@@ -63,7 +64,8 @@ class PolicyLoaderWin : public AsyncPolicyLoader,
// Reads Chrome Policy from a PReg file at the given path and stores the
// result in |policy|.
bool ReadPRegFile(const base::FilePath& preg_file,
- base::DictionaryValue* policy);
+ base::DictionaryValue* policy,
+ PolicyLoadStatusSample *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
@@ -71,12 +73,15 @@ class PolicyLoaderWin : public AsyncPolicyLoader,
// back to reading the registry.
bool LoadGPOPolicy(PolicyScope scope,
PGROUP_POLICY_OBJECT policy_object_list,
- base::DictionaryValue* policy);
+ base::DictionaryValue* policy,
+ PolicyLoadStatusSample *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, base::DictionaryValue* policy);
+ bool ReadPolicyFromGPO(PolicyScope scope,
+ base::DictionaryValue* policy,
+ PolicyLoadStatusSample *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 | « chrome/browser/policy/policy_loader_mac.cc ('k') | chrome/browser/policy/policy_loader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698