| 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 <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "ash/magnifier/magnifier_constants.h" | 9 #include "ash/magnifier/magnifier_constants.h" |
| 10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
| 11 #include "base/json/json_writer.h" | 11 #include "base/json/json_writer.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/prefs/pref_value_map.h" | 13 #include "base/prefs/pref_value_map.h" |
| 14 #include "base/string_util.h" | 14 #include "base/strings/string_util.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "chrome/browser/policy/policy_error_map.h" | 16 #include "chrome/browser/policy/policy_error_map.h" |
| 17 #include "chrome/browser/policy/policy_map.h" | 17 #include "chrome/browser/policy/policy_map.h" |
| 18 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" | 18 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" |
| 19 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
| 20 #include "chromeos/network/onc/onc_constants.h" | 20 #include "chromeos/network/onc/onc_constants.h" |
| 21 #include "chromeos/network/onc/onc_signature.h" | 21 #include "chromeos/network/onc/onc_signature.h" |
| 22 #include "chromeos/network/onc/onc_utils.h" | 22 #include "chromeos/network/onc/onc_utils.h" |
| 23 #include "chromeos/network/onc/onc_validator.h" | 23 #include "chromeos/network/onc/onc_validator.h" |
| 24 #include "grit/generated_resources.h" | 24 #include "grit/generated_resources.h" |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 int value_in_range; | 183 int value_in_range; |
| 184 if (value && EnsureInRange(value, &value_in_range, NULL)) { | 184 if (value && EnsureInRange(value, &value_in_range, NULL)) { |
| 185 prefs->SetValue(prefs::kScreenMagnifierEnabled, | 185 prefs->SetValue(prefs::kScreenMagnifierEnabled, |
| 186 base::Value::CreateBooleanValue(value_in_range != 0)); | 186 base::Value::CreateBooleanValue(value_in_range != 0)); |
| 187 prefs->SetValue(prefs::kScreenMagnifierType, | 187 prefs->SetValue(prefs::kScreenMagnifierType, |
| 188 base::Value::CreateIntegerValue(value_in_range)); | 188 base::Value::CreateIntegerValue(value_in_range)); |
| 189 } | 189 } |
| 190 } | 190 } |
| 191 | 191 |
| 192 } // namespace policy | 192 } // namespace policy |
| OLD | NEW |