| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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 "components/policy/core/common/policy_loader_win.h" | 5 #include "components/policy/core/common/policy_loader_win.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <ntdsapi.h> // For Ds[Un]Bind | 8 #include <ntdsapi.h> // For Ds[Un]Bind |
| 9 #include <rpc.h> // For struct GUID | 9 #include <rpc.h> // For struct GUID |
| 10 #include <shlwapi.h> // For PathIsUNC() | 10 #include <shlwapi.h> // For PathIsUNC() |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "base/strings/string_util.h" | 32 #include "base/strings/string_util.h" |
| 33 #include "base/values.h" | 33 #include "base/values.h" |
| 34 #include "base/win/win_util.h" | 34 #include "base/win/win_util.h" |
| 35 #include "base/win/windows_version.h" | 35 #include "base/win/windows_version.h" |
| 36 #include "components/json_schema/json_schema_constants.h" | 36 #include "components/json_schema/json_schema_constants.h" |
| 37 #include "components/policy/core/common/policy_bundle.h" | 37 #include "components/policy/core/common/policy_bundle.h" |
| 38 #include "components/policy/core/common/policy_load_status.h" | 38 #include "components/policy/core/common/policy_load_status.h" |
| 39 #include "components/policy/core/common/policy_map.h" | 39 #include "components/policy/core/common/policy_map.h" |
| 40 #include "components/policy/core/common/policy_namespace.h" | 40 #include "components/policy/core/common/policy_namespace.h" |
| 41 #include "components/policy/core/common/policy_types.h" | 41 #include "components/policy/core/common/policy_types.h" |
| 42 #include "components/policy/core/common/preg_parser_win.h" | 42 #include "components/policy/core/common/preg_parser.h" |
| 43 #include "components/policy/core/common/registry_dict_win.h" | 43 #include "components/policy/core/common/registry_dict.h" |
| 44 #include "components/policy/core/common/schema.h" | 44 #include "components/policy/core/common/schema.h" |
| 45 #include "components/policy/policy_constants.h" | 45 #include "components/policy/policy_constants.h" |
| 46 | 46 |
| 47 namespace schema = json_schema_constants; | 47 namespace schema = json_schema_constants; |
| 48 | 48 |
| 49 namespace policy { | 49 namespace policy { |
| 50 | 50 |
| 51 namespace { | 51 namespace { |
| 52 | 52 |
| 53 const char kKeyMandatory[] = "policy"; | 53 const char kKeyMandatory[] = "policy"; |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 | 612 |
| 613 void PolicyLoaderWin::OnObjectSignaled(HANDLE object) { | 613 void PolicyLoaderWin::OnObjectSignaled(HANDLE object) { |
| 614 DCHECK(object == user_policy_changed_event_.handle() || | 614 DCHECK(object == user_policy_changed_event_.handle() || |
| 615 object == machine_policy_changed_event_.handle()) | 615 object == machine_policy_changed_event_.handle()) |
| 616 << "unexpected object signaled policy reload, obj = " | 616 << "unexpected object signaled policy reload, obj = " |
| 617 << std::showbase << std::hex << object; | 617 << std::showbase << std::hex << object; |
| 618 Reload(false); | 618 Reload(false); |
| 619 } | 619 } |
| 620 | 620 |
| 621 } // namespace policy | 621 } // namespace policy |
| OLD | NEW |