Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1384)

Side by Side Diff: chrome/browser/policy/configuration_policy_provider_win.cc

Issue 9111022: Removed ConfigurationPolicyType and extended PolicyMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed builds, rebased Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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,
Mattias Nissler (ping if slow) 2012/01/17 09:52:45 HKLM should be POLICY_SCOPE_MACHINE
Joao da Silva 2012/01/17 13:09:29 Yes, that is planned for a subsequent CL. It requi
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698