| Index: chromeos/network/network_configuration_handler.cc
|
| diff --git a/chromeos/network/network_configuration_handler.cc b/chromeos/network/network_configuration_handler.cc
|
| index b38fb56be98f975b820159213b38d9b4384f705b..c2a1ef74ec7e1e9007dcf654a68e3f68c4accdd7 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,
|
| @@ -217,4 +195,9 @@ NetworkConfigurationHandler::NetworkConfigurationHandler() {
|
| NetworkConfigurationHandler::~NetworkConfigurationHandler() {
|
| }
|
|
|
| +// static
|
| +NetworkConfigurationHandler* NetworkConfigurationHandler::InitializeForTest() {
|
| + return new NetworkConfigurationHandler();
|
| +}
|
| +
|
| } // namespace chromeos
|
|
|