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 // Most of this code is copied from various classes in | 5 // Most of this code is copied from various classes in |
6 // src/chrome/browser/policy. In particular, look at | 6 // src/chrome/browser/policy. In particular, look at |
7 // | 7 // |
8 // configuration_policy_provider_delegate_win.{h,cc} | 8 // configuration_policy_provider_delegate_win.{h,cc} |
9 // configuration_policy_loader_win.{h,cc} | 9 // configuration_policy_loader_win.{h,cc} |
10 // | 10 // |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 } | 209 } |
210 | 210 |
211 base::WaitableEvent user_policy_changed_event_; | 211 base::WaitableEvent user_policy_changed_event_; |
212 base::WaitableEvent machine_policy_changed_event_; | 212 base::WaitableEvent machine_policy_changed_event_; |
213 base::win::ObjectWatcher user_policy_watcher_; | 213 base::win::ObjectWatcher user_policy_watcher_; |
214 base::win::ObjectWatcher machine_policy_watcher_; | 214 base::win::ObjectWatcher machine_policy_watcher_; |
215 bool user_policy_watcher_failed_; | 215 bool user_policy_watcher_failed_; |
216 bool machine_policy_watcher_failed_; | 216 bool machine_policy_watcher_failed_; |
217 }; | 217 }; |
218 | 218 |
219 PolicyWatcher* PolicyWatcher::Create( | 219 scoped_ptr<PolicyWatcher> PolicyWatcher::Create( |
| 220 policy::PolicyService* policy_service, |
220 scoped_refptr<base::SingleThreadTaskRunner> task_runner) { | 221 scoped_refptr<base::SingleThreadTaskRunner> task_runner) { |
221 return new PolicyWatcherWin(task_runner); | 222 return make_scoped_ptr(new PolicyWatcherWin(task_runner)); |
222 } | 223 } |
223 | 224 |
224 } // namespace policy_hack | 225 } // namespace policy_hack |
225 } // namespace remoting | 226 } // namespace remoting |
OLD | NEW |