OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/profile_policy_connector.h" | 5 #include "chrome/browser/policy/profile_policy_connector.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
12 #include "chrome/browser/policy/browser_policy_connector.h" | 12 #include "chrome/browser/policy/browser_policy_connector.h" |
13 #include "chrome/browser/policy/cloud/cloud_policy_manager.h" | |
14 #include "chrome/browser/policy/policy_service_impl.h" | |
15 #include "chrome/browser/policy/policy_transformations.h" | 13 #include "chrome/browser/policy/policy_transformations.h" |
| 14 #include "components/policy/core/common/cloud/cloud_policy_manager.h" |
16 #include "components/policy/core/common/configuration_policy_provider.h" | 15 #include "components/policy/core/common/configuration_policy_provider.h" |
17 #include "components/policy/core/common/forwarding_policy_provider.h" | 16 #include "components/policy/core/common/forwarding_policy_provider.h" |
| 17 #include "components/policy/core/common/policy_service_impl.h" |
18 | 18 |
19 #if defined(OS_CHROMEOS) | 19 #if defined(OS_CHROMEOS) |
20 #include "chrome/browser/chromeos/login/user.h" | 20 #include "chrome/browser/chromeos/login/user.h" |
21 #include "chrome/browser/chromeos/login/user_manager.h" | 21 #include "chrome/browser/chromeos/login/user_manager.h" |
22 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" | 22 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" |
23 #include "chrome/browser/chromeos/policy/device_local_account_policy_provider.h" | 23 #include "chrome/browser/chromeos/policy/device_local_account_policy_provider.h" |
24 #include "chrome/browser/chromeos/policy/login_profile_policy_provider.h" | 24 #include "chrome/browser/chromeos/policy/login_profile_policy_provider.h" |
25 #endif | 25 #endif |
26 | 26 |
27 namespace policy { | 27 namespace policy { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 connector->GetDeviceLocalAccountPolicyService(); | 126 connector->GetDeviceLocalAccountPolicyService(); |
127 if (!device_local_account_policy_service) | 127 if (!device_local_account_policy_service) |
128 return; | 128 return; |
129 special_user_policy_provider_.reset(new DeviceLocalAccountPolicyProvider( | 129 special_user_policy_provider_.reset(new DeviceLocalAccountPolicyProvider( |
130 username, device_local_account_policy_service)); | 130 username, device_local_account_policy_service)); |
131 special_user_policy_provider_->Init(schema_registry); | 131 special_user_policy_provider_->Init(schema_registry); |
132 } | 132 } |
133 #endif | 133 #endif |
134 | 134 |
135 } // namespace policy | 135 } // namespace policy |
OLD | NEW |