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

Unified Diff: chromeos/network/network_profile_handler.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
« no previous file with comments | « chromeos/network/network_profile_handler.h ('k') | chromeos/network/network_sms_handler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/network_profile_handler.cc
diff --git a/chromeos/network/network_profile_handler.cc b/chromeos/network/network_profile_handler.cc
index f4f381e12416034de4414f7bdee8c5ed15cd01de..c8353cc622532a5b74e00e52ff142de5b4a6d1f3 100644
--- a/chromeos/network/network_profile_handler.cc
+++ b/chromeos/network/network_profile_handler.cc
@@ -13,7 +13,6 @@
#include "chromeos/dbus/shill_manager_client.h"
#include "chromeos/dbus/shill_profile_client.h"
#include "chromeos/network/network_profile_observer.h"
-#include "chromeos/network/network_state_handler.h"
#include "dbus/object_path.h"
#include "third_party/cros_system_api/dbus/service_constants.h"
@@ -132,11 +131,6 @@ void NetworkProfileHandler::OnPropertyChanged(const std::string& name,
*it),
base::Bind(&LogProfileRequestError, *it));
}
-
- // When the profile list changes, ServiceCompleteList may also change, so
- // trigger a Manager update to request the updated list.
- if (network_state_handler_)
- network_state_handler_->UpdateManagerProperties();
}
void NetworkProfileHandler::GetProfilePropertiesCallback(
@@ -200,13 +194,10 @@ const NetworkProfile* NetworkProfileHandler::GetDefaultUserProfile() const {
}
NetworkProfileHandler::NetworkProfileHandler()
- : network_state_handler_(NULL),
- weak_ptr_factory_(this) {
+ : weak_ptr_factory_(this) {
}
-void NetworkProfileHandler::Init(NetworkStateHandler* network_state_handler) {
- network_state_handler_ = network_state_handler;
-
+void NetworkProfileHandler::Init() {
DBusThreadManager::Get()->GetShillManagerClient()->
AddPropertyChangedObserver(this);
« no previous file with comments | « chromeos/network/network_profile_handler.h ('k') | chromeos/network/network_sms_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698