OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/chromeos/policy/login_profile_policy_provider.h" | 5 #include "chrome/browser/chromeos/policy/login_profile_policy_provider.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chromeos/dbus/power_policy_controller.h" | 14 #include "chromeos/dbus/power_policy_controller.h" |
15 #include "components/policy/core/browser/policy_error_map.h" | 15 #include "components/policy/core/browser/policy_error_map.h" |
16 #include "components/policy/core/common/external_data_fetcher.h" | 16 #include "components/policy/core/common/external_data_fetcher.h" |
17 #include "components/policy/core/common/policy_bundle.h" | 17 #include "components/policy/core/common/policy_bundle.h" |
18 #include "components/policy/core/common/policy_map.h" | 18 #include "components/policy/core/common/policy_map.h" |
19 #include "components/policy/core/common/policy_types.h" | 19 #include "components/policy/core/common/policy_types.h" |
20 #include "policy/policy_constants.h" | 20 #include "components/policy/policy_constants.h" |
21 | 21 |
22 namespace policy { | 22 namespace policy { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 const char kLidCloseAction[] = "LidCloseAction"; | 26 const char kLidCloseAction[] = "LidCloseAction"; |
27 const char kUserActivityScreenDimDelayScale[] = | 27 const char kUserActivityScreenDimDelayScale[] = |
28 "UserActivityScreenDimDelayScale"; | 28 "UserActivityScreenDimDelayScale"; |
29 | 29 |
30 const char kActionSuspend[] = "Suspend"; | 30 const char kActionSuspend[] = "Suspend"; |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 ApplyValueAsMandatoryPolicy(policy_value.get(), | 193 ApplyValueAsMandatoryPolicy(policy_value.get(), |
194 key::kPowerManagementIdleSettings, | 194 key::kPowerManagementIdleSettings, |
195 &user_policy_map); | 195 &user_policy_map); |
196 } | 196 } |
197 } | 197 } |
198 | 198 |
199 UpdatePolicy(std::move(bundle)); | 199 UpdatePolicy(std::move(bundle)); |
200 } | 200 } |
201 | 201 |
202 } // namespace policy | 202 } // namespace policy |
OLD | NEW |