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 "components/policy/core/browser/proxy_policy_handler.h" | 5 #include "components/policy/core/browser/proxy_policy_handler.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/prefs/pref_value_map.h" | |
12 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
13 #include "base/values.h" | 12 #include "base/values.h" |
14 #include "components/policy/core/browser/configuration_policy_handler.h" | 13 #include "components/policy/core/browser/configuration_policy_handler.h" |
15 #include "components/policy/core/browser/policy_error_map.h" | 14 #include "components/policy/core/browser/policy_error_map.h" |
16 #include "components/policy/core/common/policy_map.h" | 15 #include "components/policy/core/common/policy_map.h" |
| 16 #include "components/prefs/pref_value_map.h" |
17 #include "components/proxy_config/proxy_config_dictionary.h" | 17 #include "components/proxy_config/proxy_config_dictionary.h" |
18 #include "components/proxy_config/proxy_config_pref_names.h" | 18 #include "components/proxy_config/proxy_config_pref_names.h" |
19 #include "grit/components_strings.h" | 19 #include "grit/components_strings.h" |
20 #include "policy/policy_constants.h" | 20 #include "policy/policy_constants.h" |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 // This is used to check whether for a given ProxyMode value, the ProxyPacUrl, | 24 // This is used to check whether for a given ProxyMode value, the ProxyPacUrl, |
25 // the ProxyBypassList and the ProxyServer policies are allowed to be specified. | 25 // the ProxyBypassList and the ProxyServer policies are allowed to be specified. |
26 // |error_message_id| is the message id of the localized error message to show | 26 // |error_message_id| is the message id of the localized error message to show |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 key::kProxyServerMode, | 331 key::kProxyServerMode, |
332 IDS_POLICY_OUT_OF_RANGE_ERROR, | 332 IDS_POLICY_OUT_OF_RANGE_ERROR, |
333 base::IntToString(server_mode_value)); | 333 base::IntToString(server_mode_value)); |
334 return false; | 334 return false; |
335 } | 335 } |
336 } | 336 } |
337 return true; | 337 return true; |
338 } | 338 } |
339 | 339 |
340 } // namespace policy | 340 } // namespace policy |
OLD | NEW |