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

Unified Diff: chrome/browser/chromeos/network_login_observer.cc

Issue 14729017: Add NetworkHandler to own network handlers in src/chromeos/network (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chromeos_unittests Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/network_login_observer.cc
diff --git a/chrome/browser/chromeos/network_login_observer.cc b/chrome/browser/chromeos/network_login_observer.cc
index 71c22fdd926dc484cd3057f57446852b4c4dd2ad..d7e9662f5ffc3c8aed74f0d8f0c92dc8c3cbab1d 100644
--- a/chrome/browser/chromeos/network_login_observer.cc
+++ b/chrome/browser/chromeos/network_login_observer.cc
@@ -13,16 +13,16 @@
namespace chromeos {
NetworkLoginObserver::NetworkLoginObserver() {
- // CertLoader does not get initialized in many unit tests even though
+ // NetworkHandler does not get initialized in many unit tests even though
// NetworkLibrary which owns this class does. TODO(stevenjb): Eliminate
// this class along with NetworkLibrary, crbug.com/154852.
- if (CertLoader::IsInitialized())
- CertLoader::Get()->AddObserver(this);
+ if (NetworkHandler::IsInitialized())
+ NetworkHandler::Get()->cert_loader()->AddObserver(this);
}
NetworkLoginObserver::~NetworkLoginObserver() {
- if (CertLoader::IsInitialized())
- CertLoader::Get()->RemoveObserver(this);
+ if (NetworkHandler::IsInitialized())
+ NetworkHandler::Get()->cert_loader()->RemoveObserver(this);
}
void NetworkLoginObserver::OnNetworkManagerChanged(NetworkLibrary* cros) {
@@ -93,7 +93,7 @@ void NetworkLoginObserver::OnCertificatesLoaded(
bool initial_load) {
if (initial_load) {
// Once certificates have loaded, connect to the "best" available network.
- NetworkStateHandler::Get()->ConnectToBestWifiNetwork();
+ NetworkHandler::Get()->network_state_handler()->ConnectToBestWifiNetwork();
}
}

Powered by Google App Engine
This is Rietveld 408576698