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/net/proxy_policy_handler.h" | 5 #include "chrome/browser/net/proxy_policy_handler.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/prefs/pref_value_map.h" | 8 #include "base/prefs/pref_value_map.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/browser/policy/configuration_policy_handler.h" | |
12 #include "chrome/browser/prefs/proxy_config_dictionary.h" | 11 #include "chrome/browser/prefs/proxy_config_dictionary.h" |
13 #include "chrome/browser/prefs/proxy_prefs.h" | 12 #include "chrome/browser/prefs/proxy_prefs.h" |
14 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
| 14 #include "components/policy/core/browser/configuration_policy_handler.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/policy_map.h" | 16 #include "components/policy/core/common/policy_map.h" |
17 #include "grit/component_strings.h" | 17 #include "grit/component_strings.h" |
18 #include "policy/policy_constants.h" | 18 #include "policy/policy_constants.h" |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 // This is used to check whether for a given ProxyMode value, the ProxyPacUrl, | 22 // This is used to check whether for a given ProxyMode value, the ProxyPacUrl, |
23 // the ProxyBypassList and the ProxyServer policies are allowed to be specified. | 23 // the ProxyBypassList and the ProxyServer policies are allowed to be specified. |
24 // |error_message_id| is the message id of the localized error message to show | 24 // |error_message_id| is the message id of the localized error message to show |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 key::kProxyServerMode, | 324 key::kProxyServerMode, |
325 IDS_POLICY_OUT_OF_RANGE_ERROR, | 325 IDS_POLICY_OUT_OF_RANGE_ERROR, |
326 base::IntToString(server_mode_value)); | 326 base::IntToString(server_mode_value)); |
327 return false; | 327 return false; |
328 } | 328 } |
329 } | 329 } |
330 return true; | 330 return true; |
331 } | 331 } |
332 | 332 |
333 } // namespace policy | 333 } // namespace policy |
OLD | NEW |