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

Unified Diff: components/policy/core/common/policy_loader_mac.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_loader_mac.h
diff --git a/components/policy/core/common/policy_loader_mac.h b/components/policy/core/common/policy_loader_mac.h
index b7471e80f09cbbb1f31dfcffc53fa6021579340f..4a51544ee9a123a6f798720d3a72d9db42c12de4 100644
--- a/components/policy/core/common/policy_loader_mac.h
+++ b/components/policy/core/common/policy_loader_mac.h
@@ -33,6 +33,14 @@ class POLICY_EXPORT PolicyLoaderMac : public AsyncPolicyLoader {
PolicyLoaderMac(scoped_refptr<base::SequencedTaskRunner> task_runner,
const base::FilePath& managed_policy_path,
MacPreferences* preferences);
+
+ // |application_id| will be passed into Mac's Preference Utilities API
+ // instead of the default value of kCFPreferencesCurrentApplication.
+ PolicyLoaderMac(scoped_refptr<base::SequencedTaskRunner> task_runner,
+ const base::FilePath& managed_policy_path,
+ MacPreferences* preferences,
+ CFStringRef application_id);
+
~PolicyLoaderMac() override;
// AsyncPolicyLoader implementation.
@@ -66,6 +74,9 @@ class POLICY_EXPORT PolicyLoaderMac : public AsyncPolicyLoader {
// Watches for events on the |managed_policy_path_|.
base::FilePathWatcher watcher_;
+ // Application ID to pass into Mac's Preference Utilities API.
+ CFStringRef application_id_;
+
DISALLOW_COPY_AND_ASSIGN(PolicyLoaderMac);
};

Powered by Google App Engine
This is Rietveld 408576698