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

Unified Diff: chromeos/network/managed_network_configuration_handler_impl.cc

Issue 289383004: Merge FavoriteState into NetworkState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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: chromeos/network/managed_network_configuration_handler_impl.cc
diff --git a/chromeos/network/managed_network_configuration_handler_impl.cc b/chromeos/network/managed_network_configuration_handler_impl.cc
index b7495c4d0b9d9f9fac8130eb64dedb31c42c2d66..9bcf19372eb1ad47cca472d636cf8c4990ab2b56 100644
--- a/chromeos/network/managed_network_configuration_handler_impl.cc
+++ b/chromeos/network/managed_network_configuration_handler_impl.cc
@@ -19,7 +19,6 @@
#include "chromeos/dbus/shill_profile_client.h"
#include "chromeos/dbus/shill_service_client.h"
#include "chromeos/network/device_state.h"
-#include "chromeos/network/favorite_state.h"
#include "chromeos/network/network_configuration_handler.h"
#include "chromeos/network/network_device_handler.h"
#include "chromeos/network/network_event_log.h"
@@ -242,8 +241,8 @@ void ManagedNetworkConfigurationHandlerImpl::SetProperties(
const base::DictionaryValue& user_settings,
const base::Closure& callback,
const network_handler::ErrorCallback& error_callback) const {
- const FavoriteState* state =
- network_state_handler_->GetFavoriteStateFromServicePath(
+ const NetworkState* state =
+ network_state_handler_->GetNetworkStateFromServicePath(
service_path, true /* configured_only */);
if (!state) {
InvokeErrorCallback(service_path, error_callback, kUnknownNetwork);
@@ -507,9 +506,6 @@ void ManagedNetworkConfigurationHandlerImpl::
}
void ManagedNetworkConfigurationHandlerImpl::OnPoliciesApplied() {
- // After all policies were applied, trigger an update of the network lists.
- if (network_state_handler_)
- network_state_handler_->UpdateManagerProperties();
}
const base::DictionaryValue*
« no previous file with comments | « chromeos/network/favorite_state.cc ('k') | chromeos/network/managed_network_configuration_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698