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 "chrome/browser/policy/policy_loader_win.h" | 5 #include "chrome/browser/policy/policy_loader_win.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include <string.h> | 9 #include <string.h> |
10 | 10 |
11 #include <userenv.h> | 11 #include <userenv.h> |
12 | 12 |
13 // userenv.dll is required for RegisterGPNotification(). | 13 // userenv.dll is required for RegisterGPNotification(). |
14 #pragma comment(lib, "userenv.lib") | 14 #pragma comment(lib, "userenv.lib") |
15 | 15 |
16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
17 #include "base/json/json_reader.h" | 17 #include "base/json/json_reader.h" |
18 #include "base/logging.h" | 18 #include "base/logging.h" |
19 #include "base/memory/scoped_ptr.h" | 19 #include "base/memory/scoped_ptr.h" |
20 #include "base/string16.h" | 20 #include "base/string16.h" |
21 #include "base/strings/string_number_conversions.h" | 21 #include "base/strings/string_number_conversions.h" |
22 #include "base/utf_string_conversions.h" | 22 #include "base/utf_string_conversions.h" |
23 #include "base/values.h" | 23 #include "base/values.h" |
24 #include "base/win/registry.h" | 24 #include "base/win/registry.h" |
25 #include "chrome/browser/policy/policy_bundle.h" | 25 #include "chrome/browser/policy/policy_bundle.h" |
26 #include "chrome/browser/policy/policy_map.h" | 26 #include "chrome/browser/policy/policy_map.h" |
| 27 #include "chrome/browser/policy/policy_namespace.h" |
27 #include "chrome/common/json_schema_constants.h" | 28 #include "chrome/common/json_schema_constants.h" |
28 #include "policy/policy_constants.h" | 29 #include "policy/policy_constants.h" |
29 | 30 |
30 namespace schema = json_schema_constants; | 31 namespace schema = json_schema_constants; |
31 | 32 |
32 using base::win::RegKey; | 33 using base::win::RegKey; |
33 using base::win::RegistryKeyIterator; | 34 using base::win::RegistryKeyIterator; |
34 using base::win::RegistryValueIterator; | 35 using base::win::RegistryValueIterator; |
35 using namespace policy::registry_constants; | 36 using namespace policy::registry_constants; |
36 | 37 |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 | 584 |
584 void PolicyLoaderWin::OnObjectSignaled(HANDLE object) { | 585 void PolicyLoaderWin::OnObjectSignaled(HANDLE object) { |
585 DCHECK(object == user_policy_changed_event_.handle() || | 586 DCHECK(object == user_policy_changed_event_.handle() || |
586 object == machine_policy_changed_event_.handle()) | 587 object == machine_policy_changed_event_.handle()) |
587 << "unexpected object signaled policy reload, obj = " | 588 << "unexpected object signaled policy reload, obj = " |
588 << std::showbase << std::hex << object; | 589 << std::showbase << std::hex << object; |
589 Reload(false); | 590 Reload(false); |
590 } | 591 } |
591 | 592 |
592 } // namespace policy | 593 } // namespace policy |
OLD | NEW |