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

Unified Diff: chrome/browser/chromeos/system/ash_system_tray_delegate.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: Rebase + elim LoginState dependency 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/system/ash_system_tray_delegate.cc
diff --git a/chrome/browser/chromeos/system/ash_system_tray_delegate.cc b/chrome/browser/chromeos/system/ash_system_tray_delegate.cc
index de1d8247133760adc4c35137aefbb51d5ad5d267..f0c2d50f60f0f0842be524f06d57bab74b836436 100644
--- a/chrome/browser/chromeos/system/ash_system_tray_delegate.cc
+++ b/chrome/browser/chromeos/system/ash_system_tray_delegate.cc
@@ -479,7 +479,8 @@ class SystemTrayDelegate : public ash::SystemTrayDelegate,
std::string page = chrome::kInternetOptionsSubPage;
const chromeos::NetworkState* network = service_path.empty() ? NULL :
- chromeos::NetworkStateHandler::Get()->GetNetworkState(service_path);
+ NetworkHandler::Get()->network_state_handler()->GetNetworkState(
+ service_path);
if (network) {
std::string name(network->name());
if (name.empty() && network->type() == flimflam::kTypeEthernet)
@@ -741,7 +742,8 @@ class SystemTrayDelegate : public ash::SystemTrayDelegate,
virtual void ConfigureNetwork(const std::string& network_id) OVERRIDE {
const chromeos::NetworkState* network = network_id.empty() ? NULL :
- chromeos::NetworkStateHandler::Get()->GetNetworkState(network_id);
+ NetworkHandler::Get()->network_state_handler()->GetNetworkState(
+ network_id);
if (!network) {
LOG(ERROR) << "ConfigureNetwork: Network not found: " << network_id;
return;

Powered by Google App Engine
This is Rietveld 408576698