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

Unified Diff: chrome/browser/chromeos/cros/network_library.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/cros/network_library.cc
diff --git a/chrome/browser/chromeos/cros/network_library.cc b/chrome/browser/chromeos/cros/network_library.cc
index fcc60d89b661dc0cfd98fb1584fa970066e6041e..fc083d392f5909e93a111ff81e08db974d5896aa 100644
--- a/chrome/browser/chromeos/cros/network_library.cc
+++ b/chrome/browser/chromeos/cros/network_library.cc
@@ -377,8 +377,10 @@ void Network::SetValueProperty(const char* prop, const base::Value& value) {
return;
CrosSetNetworkServiceProperty(service_path_, prop, value);
// Ensure NetworkStateHandler properties are up-to-date.
- if (NetworkStateHandler::IsInitialized())
- NetworkStateHandler::Get()->RequestUpdateForNetwork(service_path());
+ if (NetworkHandler::IsInitialized()) {
+ NetworkHandler::Get()->network_state_handler()->RequestUpdateForNetwork(
+ service_path());
+ }
}
void Network::ClearProperty(const char* prop) {
@@ -387,8 +389,10 @@ void Network::ClearProperty(const char* prop) {
return;
CrosClearNetworkServiceProperty(service_path_, prop);
// Ensure NetworkStateHandler properties are up-to-date.
- if (NetworkStateHandler::IsInitialized())
- NetworkStateHandler::Get()->RequestUpdateForNetwork(service_path());
+ if (NetworkHandler::IsInitialized()) {
+ NetworkHandler::Get()->network_state_handler()->RequestUpdateForNetwork(
+ service_path());
+ }
}
void Network::SetStringProperty(
@@ -456,8 +460,10 @@ void Network::AttemptConnection(const base::Closure& closure) {
void Network::set_connecting() {
state_ = STATE_CONNECT_REQUESTED;
// Set the connecting network in NetworkStateHandler for the status area UI.
- if (NetworkStateHandler::IsInitialized())
- NetworkStateHandler::Get()->SetConnectingNetwork(service_path());
+ if (NetworkHandler::IsInitialized()) {
+ NetworkHandler::Get()->network_state_handler()->
+ SetConnectingNetwork(service_path());
+ }
}
void Network::SetProfilePath(const std::string& profile_path) {
« no previous file with comments | « chrome/browser/chromeos/cros/cert_library.cc ('k') | chrome/browser/chromeos/cros/network_library_impl_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698