| 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..8b88834730589399670292bcd416ac2c6fd63678 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.
|
| @@ -40,6 +48,12 @@ class POLICY_EXPORT PolicyLoaderMac : public AsyncPolicyLoader {
|
| scoped_ptr<PolicyBundle> Load() override;
|
| base::Time LastModificationTime() override;
|
|
|
| +#if defined(OS_MACOSX) && !defined(OS_IOS)
|
| + // Gets the path to the preferences (.plist) file associated with the given
|
| + // |bundle_id|.
|
| + static base::FilePath GetManagedPolicyPath(CFStringRef bundle_id);
|
| +#endif
|
| +
|
| private:
|
| // Callback for the FilePathWatcher.
|
| void OnFileUpdated(const base::FilePath& path, bool error);
|
| @@ -66,6 +80,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);
|
| };
|
|
|
|
|