Index: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc |
diff --git a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc |
index 8cd09120f4eddc40823b69536ea7d926551f7c94..e39e5c6989d4a60803a4cf1830fa6382373f8a6b 100644 |
--- a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc |
+++ b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc |
@@ -224,8 +224,8 @@ bool IsSigninScreenError(ErrorScreen::ErrorState error_state) { |
// Returns network name by service path. |
std::string GetNetworkName(const std::string& service_path) { |
- const NetworkState* network = |
- NetworkStateHandler::Get()->GetNetworkState(service_path); |
+ const NetworkState* network = NetworkHandler::Get()->network_state_handler()-> |
+ GetNetworkState(service_path); |
if (!network) |
return std::string(); |
return network->name(); |
@@ -233,8 +233,8 @@ std::string GetNetworkName(const std::string& service_path) { |
// Returns network unique id by service path. |
std::string GetNetworkUniqueId(const std::string& service_path) { |
- const NetworkState* network = |
- NetworkStateHandler::Get()->GetNetworkState(service_path); |
+ const NetworkState* network = NetworkHandler::Get()->network_state_handler()-> |
+ GetNetworkState(service_path); |
if (!network) |
return std::string(); |
return network->guid(); |
@@ -244,8 +244,8 @@ std::string GetNetworkUniqueId(const std::string& service_path) { |
NetworkPortalDetector::CaptivePortalState GetCaptivePortalState( |
const std::string& service_path) { |
NetworkPortalDetector* detector = NetworkPortalDetector::GetInstance(); |
- const NetworkState* network = |
- NetworkStateHandler::Get()->GetNetworkState(service_path); |
+ const NetworkState* network = NetworkHandler::Get()->network_state_handler()-> |
+ GetNetworkState(service_path); |
if (!detector || !network) |
return NetworkPortalDetector::CaptivePortalState(); |
return detector->GetCaptivePortalState(network); |
@@ -276,8 +276,8 @@ void RecordDiscrepancyWithShill( |
// network is online but NetworkPortalDetector claims that it's behind |
// portal) for the network identified by |service_path|. |
void RecordNetworkPortalDetectorStats(const std::string& service_path) { |
- const NetworkState* network = |
- NetworkStateHandler::Get()->GetNetworkState(service_path); |
+ const NetworkState* network = NetworkHandler::Get()->network_state_handler()-> |
+ GetNetworkState(service_path); |
if (!network) |
return; |
NetworkPortalDetector::CaptivePortalState state = |