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

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

Issue 1384463002: Componentize proxy_policy_handler from chrome/browser/net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and updated Created 5 years, 2 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 "chrome/browser/net/proxy_policy_handler.h" 5 #include "components/policy/core/browser/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/common/pref_names.h"
12 #include "components/policy/core/browser/configuration_policy_handler.h" 11 #include "components/policy/core/browser/configuration_policy_handler.h"
13 #include "components/policy/core/browser/policy_error_map.h" 12 #include "components/policy/core/browser/policy_error_map.h"
14 #include "components/policy/core/common/policy_map.h" 13 #include "components/policy/core/common/policy_map.h"
15 #include "components/proxy_config/proxy_config_dictionary.h" 14 #include "components/proxy_config/proxy_config_dictionary.h"
16 #include "components/proxy_config/proxy_config_pref_names.h" 15 #include "components/proxy_config/proxy_config_pref_names.h"
17 #include "grit/components_strings.h" 16 #include "grit/components_strings.h"
18 #include "policy/policy_constants.h" 17 #include "policy/policy_constants.h"
19 18
20 namespace { 19 namespace {
21 20
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 key::kProxyServerMode, 328 key::kProxyServerMode,
330 IDS_POLICY_OUT_OF_RANGE_ERROR, 329 IDS_POLICY_OUT_OF_RANGE_ERROR,
331 base::IntToString(server_mode_value)); 330 base::IntToString(server_mode_value));
332 return false; 331 return false;
333 } 332 }
334 } 333 }
335 return true; 334 return true;
336 } 335 }
337 336
338 } // namespace policy 337 } // namespace policy
OLDNEW
« no previous file with comments | « components/policy/core/browser/proxy_policy_handler.h ('k') | components/policy/core/browser/proxy_policy_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698