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 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "chromeos/network/onc/onc_signature.h" | 26 #include "chromeos/network/onc/onc_signature.h" |
27 #include "chromeos/network/onc/onc_utils.h" | 27 #include "chromeos/network/onc/onc_utils.h" |
28 #include "chromeos/network/onc/onc_validator.h" | 28 #include "chromeos/network/onc/onc_validator.h" |
29 #include "components/onc/onc_constants.h" | 29 #include "components/onc/onc_constants.h" |
30 #include "components/policy/core/browser/policy_error_map.h" | 30 #include "components/policy/core/browser/policy_error_map.h" |
31 #include "components/policy/core/common/external_data_fetcher.h" | 31 #include "components/policy/core/common/external_data_fetcher.h" |
32 #include "components/policy/core/common/policy_map.h" | 32 #include "components/policy/core/common/policy_map.h" |
33 #include "components/policy/core/common/schema.h" | 33 #include "components/policy/core/common/schema.h" |
34 #include "components/policy/policy_constants.h" | 34 #include "components/policy/policy_constants.h" |
35 #include "components/prefs/pref_value_map.h" | 35 #include "components/prefs/pref_value_map.h" |
| 36 #include "components/strings/grit/components_strings.h" |
36 #include "crypto/sha2.h" | 37 #include "crypto/sha2.h" |
37 #include "grit/components_strings.h" | |
38 #include "url/gurl.h" | 38 #include "url/gurl.h" |
39 | 39 |
40 namespace policy { | 40 namespace policy { |
41 | 41 |
42 namespace { | 42 namespace { |
43 | 43 |
44 const char kSubkeyURL[] = "url"; | 44 const char kSubkeyURL[] = "url"; |
45 const char kSubkeyHash[] = "hash"; | 45 const char kSubkeyHash[] = "hash"; |
46 | 46 |
47 bool GetSubkeyString(const base::DictionaryValue& dict, | 47 bool GetSubkeyString(const base::DictionaryValue& dict, |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 | 479 |
480 value = GetValue(dict, kScreenLockDelayAC); | 480 value = GetValue(dict, kScreenLockDelayAC); |
481 if (value) | 481 if (value) |
482 prefs->SetValue(prefs::kPowerAcScreenLockDelayMs, std::move(value)); | 482 prefs->SetValue(prefs::kPowerAcScreenLockDelayMs, std::move(value)); |
483 value = GetValue(dict, kScreenLockDelayBattery); | 483 value = GetValue(dict, kScreenLockDelayBattery); |
484 if (value) | 484 if (value) |
485 prefs->SetValue(prefs::kPowerBatteryScreenLockDelayMs, std::move(value)); | 485 prefs->SetValue(prefs::kPowerBatteryScreenLockDelayMs, std::move(value)); |
486 } | 486 } |
487 | 487 |
488 } // namespace policy | 488 } // namespace policy |
OLD | NEW |