| OLD | NEW |
| 1 // Copyright (c) 2011 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 "chrome/browser/policy/configuration_policy_provider_win.h" | 5 #include "chrome/browser/policy/configuration_policy_provider_win.h" |
| 6 | 6 |
| 7 #include "chrome/browser/policy/configuration_policy_loader_win.h" | 7 #include "chrome/browser/policy/configuration_policy_loader_win.h" |
| 8 #include "chrome/browser/policy/configuration_policy_provider_delegate_win.h" | 8 #include "chrome/browser/policy/configuration_policy_provider_delegate_win.h" |
| 9 | 9 |
| 10 namespace policy { | 10 namespace policy { |
| 11 | 11 |
| 12 namespace { | 12 namespace { |
| 13 | 13 |
| 14 // Period at which to run the reload task in case the group policy change | 14 // Period at which to run the reload task in case the group policy change |
| 15 // watchers fail. | 15 // watchers fail. |
| 16 const int kReloadIntervalMinutes = 15; | 16 const int kReloadIntervalMinutes = 15; |
| 17 | 17 |
| 18 } // namespace | 18 } // namespace |
| 19 | 19 |
| 20 ConfigurationPolicyProviderWin::ConfigurationPolicyProviderWin( | 20 ConfigurationPolicyProviderWin::ConfigurationPolicyProviderWin( |
| 21 const PolicyDefinitionList* policy_list, | 21 const PolicyDefinitionList* policy_list, |
| 22 const string16& registry_key) | 22 const string16& registry_key, |
| 23 PolicyLevel level) |
| 23 : AsynchronousPolicyProvider( | 24 : AsynchronousPolicyProvider( |
| 24 policy_list, | 25 policy_list, |
| 26 level, |
| 27 POLICY_SCOPE_USER, |
| 25 new ConfigurationPolicyLoaderWin( | 28 new ConfigurationPolicyLoaderWin( |
| 26 new ConfigurationPolicyProviderDelegateWin(policy_list, | 29 new ConfigurationPolicyProviderDelegateWin(policy_list, |
| 27 registry_key), | 30 registry_key), |
| 28 kReloadIntervalMinutes)) {} | 31 kReloadIntervalMinutes)) {} |
| 29 | 32 |
| 30 } // namespace policy | 33 } // namespace policy |
| OLD | NEW |