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

Unified Diff: chromeos/network/network_configuration_handler.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: . 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: chromeos/network/network_configuration_handler.cc
diff --git a/chromeos/network/network_configuration_handler.cc b/chromeos/network/network_configuration_handler.cc
index ee950d3cf327e890cbdf930275ca0c2be2cad74d..91de8d3034b758492c62a0a00a89df72b79e981a 100644
--- a/chromeos/network/network_configuration_handler.cc
+++ b/chromeos/network/network_configuration_handler.cc
@@ -25,8 +25,6 @@ namespace {
const char kLogModule[] = "NetworkConfigurationHandler";
-NetworkConfigurationHandler* g_configuration_handler_instance = NULL;
-
// None of these error messages are user-facing: they should only appear in
// logs.
const char kErrorsListTag[] = "errors";
@@ -107,26 +105,6 @@ void IgnoreObjectPathCallback(const base::Closure& callback,
} // namespace
-// static
-void NetworkConfigurationHandler::Initialize() {
- CHECK(!g_configuration_handler_instance);
- g_configuration_handler_instance = new NetworkConfigurationHandler;
-}
-
-// static
-void NetworkConfigurationHandler::Shutdown() {
- CHECK(g_configuration_handler_instance);
- delete g_configuration_handler_instance;
- g_configuration_handler_instance = NULL;
-}
-
-// static
-NetworkConfigurationHandler* NetworkConfigurationHandler::Get() {
- CHECK(g_configuration_handler_instance)
- << "NetworkConfigurationHandler::Get() called before Initialize()";
- return g_configuration_handler_instance;
-}
-
void NetworkConfigurationHandler::GetProperties(
const std::string& service_path,
const network_handler::DictionaryResultCallback& callback,

Powered by Google App Engine
This is Rietveld 408576698