| Index: chromeos/network/connection_change_notifier_factory.cc
|
| diff --git a/chromeos/network/connection_change_notifier_factory.cc b/chromeos/network/connection_change_notifier_factory.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6b1b7da13f3852b07ea5cdb61f9c71e6659769c8
|
| --- /dev/null
|
| +++ b/chromeos/network/connection_change_notifier_factory.cc
|
| @@ -0,0 +1,28 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chromeos/network/connection_change_notifier_factory.h"
|
| +
|
| +#include "chromeos/network/connection_change_notifier.h"
|
| +
|
| +namespace chromeos {
|
| +
|
| +namespace {
|
| +
|
| +ConnectionChangeNotifier* g_connection_change_notifier = NULL;
|
| +
|
| +} // namespace
|
| +
|
| +net::NetworkChangeNotifier* ConnectionChangeNotifierFactory::CreateInstance() {
|
| + DCHECK(!g_connection_change_notifier) << "Instance was already created.";
|
| + g_connection_change_notifier = new ConnectionChangeNotifier();
|
| + return g_connection_change_notifier;
|
| +}
|
| +
|
| +// static
|
| +ConnectionChangeNotifier* ConnectionChangeNotifierFactory::GetInstance() {
|
| + return g_connection_change_notifier;
|
| +}
|
| +
|
| +} // namespace chromeos
|
|
|