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

Side by Side Diff: chrome/browser/chromeos/net/proxy_config_handler.cc

Issue 1221033002: Add proxy_config component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update copyrights Created 5 years, 5 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/chromeos/net/proxy_config_handler.h" 5 #include "chrome/browser/chromeos/net/proxy_config_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/prefs/pref_registry_simple.h" 10 #include "base/prefs/pref_registry_simple.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/chromeos/net/onc_utils.h" 12 #include "chrome/browser/chromeos/net/onc_utils.h"
13 #include "chrome/browser/prefs/proxy_config_dictionary.h"
14 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
15 #include "chromeos/dbus/dbus_thread_manager.h" 14 #include "chromeos/dbus/dbus_thread_manager.h"
16 #include "chromeos/dbus/shill_service_client.h" 15 #include "chromeos/dbus/shill_service_client.h"
17 #include "chromeos/network/network_handler_callbacks.h" 16 #include "chromeos/network/network_handler_callbacks.h"
18 #include "chromeos/network/network_profile.h" 17 #include "chromeos/network/network_profile.h"
19 #include "chromeos/network/network_profile_handler.h" 18 #include "chromeos/network/network_profile_handler.h"
20 #include "chromeos/network/network_state.h" 19 #include "chromeos/network/network_state.h"
21 #include "chromeos/network/network_state_handler.h" 20 #include "chromeos/network/network_state_handler.h"
22 #include "components/pref_registry/pref_registry_syncable.h" 21 #include "components/pref_registry/pref_registry_syncable.h"
22 #include "components/proxy_config/proxy_config_dictionary.h"
23 #include "dbus/object_path.h" 23 #include "dbus/object_path.h"
24 #include "third_party/cros_system_api/dbus/service_constants.h" 24 #include "third_party/cros_system_api/dbus/service_constants.h"
25 25
26 namespace chromeos { 26 namespace chromeos {
27 27
28 namespace { 28 namespace {
29 29
30 void NotifyNetworkStateHandler(const std::string& service_path) { 30 void NotifyNetworkStateHandler(const std::string& service_path) {
31 if (NetworkHandler::IsInitialized()) { 31 if (NetworkHandler::IsInitialized()) {
32 NetworkHandler::Get()->network_state_handler()->RequestUpdateForNetwork( 32 NetworkHandler::Get()->network_state_handler()->RequestUpdateForNetwork(
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 132 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
133 registry->RegisterBooleanPref(prefs::kUseSharedProxies, false); 133 registry->RegisterBooleanPref(prefs::kUseSharedProxies, false);
134 134
135 registry->RegisterListPref(prefs::kOpenNetworkConfiguration); 135 registry->RegisterListPref(prefs::kOpenNetworkConfiguration);
136 } 136 }
137 137
138 } // namespace proxy_config 138 } // namespace proxy_config
139 139
140 } // namespace chromeos 140 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/net/onc_utils.cc ('k') | chrome/browser/chromeos/proxy_config_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698