| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/host/policy_hack/policy_watcher.h" | 5 #include "remoting/host/policy_hack/policy_watcher.h" |
| 6 | 6 |
| 7 #include <CoreFoundation/CoreFoundation.h> | 7 #include <CoreFoundation/CoreFoundation.h> |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/mac/foundation_util.h" | 10 #include "base/mac/foundation_util.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // Set policy. Policy must be set (even if it is empty) so that the | 80 // Set policy. Policy must be set (even if it is empty) so that the |
| 81 // default policy is picked up the first time reload is called. | 81 // default policy is picked up the first time reload is called. |
| 82 UpdatePolicies(&policy); | 82 UpdatePolicies(&policy); |
| 83 | 83 |
| 84 // Reschedule task. | 84 // Reschedule task. |
| 85 ScheduleFallbackReloadTask(); | 85 ScheduleFallbackReloadTask(); |
| 86 } | 86 } |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 PolicyWatcher* PolicyWatcher::Create( | 89 PolicyWatcher* PolicyWatcher::Create( |
| 90 scoped_refptr<base::SingleThreadTaskRunner> task_runner) { | 90 ChromotingHostContext* context, |
| 91 scoped_refptr<base::SingleThreadTaskRunner> task_runner) { |
| 91 return new PolicyWatcherMac(task_runner); | 92 return new PolicyWatcherMac(task_runner); |
| 92 } | 93 } |
| 93 | 94 |
| 94 } // namespace policy_hack | 95 } // namespace policy_hack |
| 95 } // namespace remoting | 96 } // namespace remoting |
| OLD | NEW |