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

Unified Diff: chromeos/network/network_handler.cc

Issue 12669004: Fix NetworkSmsHandler to observe Manager and improve API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 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_handler.h ('k') | chromeos/network/network_sms_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/network_handler.cc
diff --git a/chromeos/network/network_handler.cc b/chromeos/network/network_handler.cc
index 272a1de915750d4d9d82726b255e803164131fdd..fc6896b16f3ad8c0f35ade3d489c59c573e99285 100644
--- a/chromeos/network/network_handler.cc
+++ b/chromeos/network/network_handler.cc
@@ -13,6 +13,7 @@
#include "chromeos/network/network_event_log.h"
#include "chromeos/network/network_profile_handler.h"
#include "chromeos/network/network_profile_observer.h"
+#include "chromeos/network/network_sms_handler.h"
#include "chromeos/network/network_state_handler.h"
#include "chromeos/network/network_state_handler_observer.h"
@@ -32,6 +33,7 @@ NetworkHandler::NetworkHandler() {
managed_network_configuration_handler_.reset(
new ManagedNetworkConfigurationHandler());
network_connection_handler_.reset(new NetworkConnectionHandler());
+ network_sms_handler_.reset(new NetworkSmsHandler());
geolocation_handler_.reset(new GeolocationHandler());
}
@@ -49,6 +51,7 @@ void NetworkHandler::Init() {
network_configuration_handler_.get());
network_connection_handler_->Init(network_state_handler_.get(),
network_configuration_handler_.get());
+ network_sms_handler_->Init();
geolocation_handler_->Init();
}
@@ -103,6 +106,10 @@ NetworkConnectionHandler* NetworkHandler::network_connection_handler() {
return network_connection_handler_.get();
}
+NetworkSmsHandler* NetworkHandler::network_sms_handler() {
+ return network_sms_handler_.get();
+}
+
GeolocationHandler* NetworkHandler::geolocation_handler() {
return geolocation_handler_.get();
}
« no previous file with comments | « chromeos/network/network_handler.h ('k') | chromeos/network/network_sms_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698