| 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/chromeos/policy/configuration_policy_handler_chromeos.h
" | 5 #include "chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h
" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/json/json_reader.h" | 13 #include "base/json/json_reader.h" |
| 14 #include "base/json/json_writer.h" | 14 #include "base/json/json_writer.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/prefs/pref_value_map.h" | |
| 18 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
| 19 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
| 20 #include "base/values.h" | 19 #include "base/values.h" |
| 21 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" | 20 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" |
| 22 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
| 23 #include "chromeos/dbus/power_policy_controller.h" | 22 #include "chromeos/dbus/power_policy_controller.h" |
| 24 #include "chromeos/network/onc/onc_signature.h" | 23 #include "chromeos/network/onc/onc_signature.h" |
| 25 #include "chromeos/network/onc/onc_utils.h" | 24 #include "chromeos/network/onc/onc_utils.h" |
| 26 #include "chromeos/network/onc/onc_validator.h" | 25 #include "chromeos/network/onc/onc_validator.h" |
| 27 #include "components/onc/onc_constants.h" | 26 #include "components/onc/onc_constants.h" |
| 28 #include "components/policy/core/browser/policy_error_map.h" | 27 #include "components/policy/core/browser/policy_error_map.h" |
| 29 #include "components/policy/core/common/external_data_fetcher.h" | 28 #include "components/policy/core/common/external_data_fetcher.h" |
| 30 #include "components/policy/core/common/policy_map.h" | 29 #include "components/policy/core/common/policy_map.h" |
| 31 #include "components/policy/core/common/schema.h" | 30 #include "components/policy/core/common/schema.h" |
| 31 #include "components/prefs/pref_value_map.h" |
| 32 #include "crypto/sha2.h" | 32 #include "crypto/sha2.h" |
| 33 #include "grit/components_strings.h" | 33 #include "grit/components_strings.h" |
| 34 #include "policy/policy_constants.h" | 34 #include "policy/policy_constants.h" |
| 35 #include "ui/chromeos/accessibility_types.h" | 35 #include "ui/chromeos/accessibility_types.h" |
| 36 #include "url/gurl.h" | 36 #include "url/gurl.h" |
| 37 | 37 |
| 38 namespace policy { | 38 namespace policy { |
| 39 | 39 |
| 40 namespace { | 40 namespace { |
| 41 | 41 |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 | 474 |
| 475 value = GetValue(dict, kScreenLockDelayAC); | 475 value = GetValue(dict, kScreenLockDelayAC); |
| 476 if (value) | 476 if (value) |
| 477 prefs->SetValue(prefs::kPowerAcScreenLockDelayMs, std::move(value)); | 477 prefs->SetValue(prefs::kPowerAcScreenLockDelayMs, std::move(value)); |
| 478 value = GetValue(dict, kScreenLockDelayBattery); | 478 value = GetValue(dict, kScreenLockDelayBattery); |
| 479 if (value) | 479 if (value) |
| 480 prefs->SetValue(prefs::kPowerBatteryScreenLockDelayMs, std::move(value)); | 480 prefs->SetValue(prefs::kPowerBatteryScreenLockDelayMs, std::move(value)); |
| 481 } | 481 } |
| 482 | 482 |
| 483 } // namespace policy | 483 } // namespace policy |
| OLD | NEW |