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

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

Issue 58313002: Removed the PolicyDefinitionList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-10-use-registry
Patch Set: rebase Created 7 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
Index: chrome/browser/policy/policy_statistics_collector.h
diff --git a/chrome/browser/policy/policy_statistics_collector.h b/chrome/browser/policy/policy_statistics_collector.h
index 326d7d9010b40c63df3c1b44d7e2dbff291e41d7..e0444ccfe01325e45647e8ba72d66f1b7de4b36d 100644
--- a/chrome/browser/policy/policy_statistics_collector.h
+++ b/chrome/browser/policy/policy_statistics_collector.h
@@ -9,6 +9,8 @@
#include "base/cancelable_callback.h"
#include "base/memory/ref_counted.h"
#include "base/time/time.h"
+#include "components/policy/core/common/policy_details.h"
+#include "components/policy/core/common/schema.h"
class PrefService;
class PrefRegistrySimple;
@@ -29,7 +31,9 @@ class PolicyStatisticsCollector {
// Neither |policy_service| nor |prefs| can be NULL and must stay valid
// throughout the lifetime of PolicyStatisticsCollector.
- PolicyStatisticsCollector(PolicyService* policy_service,
+ PolicyStatisticsCollector(const GetChromePolicyDetailsCallback& get_details,
+ const Schema& chrome_schema,
+ PolicyService* policy_service,
PrefService* prefs,
const scoped_refptr<base::TaskRunner>& task_runner);
virtual ~PolicyStatisticsCollector();
@@ -47,6 +51,8 @@ class PolicyStatisticsCollector {
void CollectStatistics();
void ScheduleUpdate(base::TimeDelta delay);
+ GetChromePolicyDetailsCallback get_details_;
+ Schema chrome_schema_;
PolicyService* policy_service_;
PrefService* prefs_;
« no previous file with comments | « chrome/browser/policy/policy_prefs_browsertest.cc ('k') | chrome/browser/policy/policy_statistics_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698