| Index: remoting/host/policy_watcher.h
|
| diff --git a/remoting/host/policy_watcher.h b/remoting/host/policy_watcher.h
|
| index e3f54f6916bfd80c6a5dbdfc74722198e76472a8..5523b8478969d01b7c5d80c52896d0b5c0459d3f 100644
|
| --- a/remoting/host/policy_watcher.h
|
| +++ b/remoting/host/policy_watcher.h
|
| @@ -78,6 +78,14 @@ class PolicyWatcher : public policy::PolicyService::Observer,
|
| policy::PolicyService* policy_service,
|
| const scoped_refptr<base::SingleThreadTaskRunner>& file_task_runner);
|
|
|
| + // Creates a PolicyWatcher from the given loader instead of loading the policy
|
| + // from the default location.
|
| + //
|
| + // This can be used with FakeAsyncPolicyLoader to test policy handling of
|
| + // other components.
|
| + static std::unique_ptr<PolicyWatcher> CreateFromPolicyLoaderForTesting(
|
| + std::unique_ptr<policy::AsyncPolicyLoader> async_policy_loader);
|
| +
|
| private:
|
| friend class PolicyWatcherTest;
|
|
|
|
|