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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/network_state_informer.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/webui/chromeos/login/network_state_informer.h" 5 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
11 #include "chrome/browser/chrome_notification_types.h" 11 #include "chrome/browser/chrome_notification_types.h"
12 #include "chrome/browser/chromeos/login/screens/network_error.h" 12 #include "chrome/browser/chromeos/login/screens/network_error.h"
13 #include "chrome/browser/chromeos/net/proxy_config_handler.h" 13 #include "chrome/browser/chromeos/net/proxy_config_handler.h"
14 #include "chrome/browser/prefs/proxy_config_dictionary.h"
15 #include "chrome/browser/prefs/proxy_prefs.h"
16 #include "chromeos/network/network_state.h" 14 #include "chromeos/network/network_state.h"
17 #include "chromeos/network/network_state_handler.h" 15 #include "chromeos/network/network_state_handler.h"
16 #include "components/proxy_config/proxy_config_dictionary.h"
17 #include "components/proxy_config/proxy_prefs.h"
18 #include "net/proxy/proxy_config.h" 18 #include "net/proxy/proxy_config.h"
19 #include "third_party/cros_system_api/dbus/service_constants.h" 19 #include "third_party/cros_system_api/dbus/service_constants.h"
20 20
21 namespace chromeos { 21 namespace chromeos {
22 22
23 namespace { 23 namespace {
24 24
25 const char kNetworkStateOffline[] = "offline"; 25 const char kNetworkStateOffline[] = "offline";
26 const char kNetworkStateOnline[] = "online"; 26 const char kNetworkStateOnline[] = "online";
27 const char kNetworkStateCaptivePortal[] = "behind captive portal"; 27 const char kNetworkStateCaptivePortal[] = "behind captive portal";
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 SendStateToObservers(NetworkError::ERROR_REASON_UPDATE); 202 SendStateToObservers(NetworkError::ERROR_REASON_UPDATE);
203 } 203 }
204 204
205 void NetworkStateInformer::SendStateToObservers( 205 void NetworkStateInformer::SendStateToObservers(
206 NetworkError::ErrorReason reason) { 206 NetworkError::ErrorReason reason) {
207 FOR_EACH_OBSERVER(NetworkStateInformerObserver, observers_, 207 FOR_EACH_OBSERVER(NetworkStateInformerObserver, observers_,
208 UpdateState(reason)); 208 UpdateState(reason));
209 } 209 }
210 210
211 } // namespace chromeos 211 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.cc ('k') | chrome/browser/ui/webui/options/preferences_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698