Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Side by Side Diff: components/policy/core/browser/proxy_policy_handler.cc

Issue 2712513004: Use a qualified path for grit-generated headers in components/ (Closed)
Patch Set: more checkdeps Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "components/policy/core/browser/configuration_policy_handler.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 "components/policy/policy_constants.h" 17 #include "components/policy/policy_constants.h"
18 #include "components/prefs/pref_value_map.h" 18 #include "components/prefs/pref_value_map.h"
19 #include "components/proxy_config/proxy_config_dictionary.h" 19 #include "components/proxy_config/proxy_config_dictionary.h"
20 #include "components/proxy_config/proxy_config_pref_names.h" 20 #include "components/proxy_config/proxy_config_pref_names.h"
21 #include "grit/components_strings.h" 21 #include "components/strings/grit/components_strings.h"
22 22
23 namespace { 23 namespace {
24 24
25 // This is used to check whether for a given ProxyMode value, the ProxyPacUrl, 25 // This is used to check whether for a given ProxyMode value, the ProxyPacUrl,
26 // the ProxyBypassList and the ProxyServer policies are allowed to be specified. 26 // the ProxyBypassList and the ProxyServer policies are allowed to be specified.
27 // |error_message_id| is the message id of the localized error message to show 27 // |error_message_id| is the message id of the localized error message to show
28 // when the policies are not specified as allowed. Each value of ProxyMode 28 // when the policies are not specified as allowed. Each value of ProxyMode
29 // has a ProxyModeValidationEntry in the |kProxyModeValidationMap| below. 29 // has a ProxyModeValidationEntry in the |kProxyModeValidationMap| below.
30 struct ProxyModeValidationEntry { 30 struct ProxyModeValidationEntry {
31 const char* mode_value; 31 const char* mode_value;
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 key::kProxyServerMode, 328 key::kProxyServerMode,
329 IDS_POLICY_OUT_OF_RANGE_ERROR, 329 IDS_POLICY_OUT_OF_RANGE_ERROR,
330 base::IntToString(server_mode_value)); 330 base::IntToString(server_mode_value));
331 return false; 331 return false;
332 } 332 }
333 } 333 }
334 return true; 334 return true;
335 } 335 }
336 336
337 } // namespace policy 337 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698