| Index: chromeos/network/network_change_notifier_factory_chromeos.cc
|
| diff --git a/chromeos/network/network_change_notifier_factory_chromeos.cc b/chromeos/network/network_change_notifier_factory_chromeos.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1d73c3e34c0795e12f2b99d3564881ea805fe7c3
|
| --- /dev/null
|
| +++ b/chromeos/network/network_change_notifier_factory_chromeos.cc
|
| @@ -0,0 +1,30 @@
|
| +// 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/network_change_notifier_factory_chromeos.h"
|
| +
|
| +#include "chromeos/network/network_change_notifier_chromeos.h"
|
| +
|
| +namespace chromeos {
|
| +
|
| +namespace {
|
| +
|
| +NetworkChangeNotifierChromeos* g_network_change_notifier_chromeos = NULL;
|
| +
|
| +} // namespace
|
| +
|
| +net::NetworkChangeNotifier*
|
| +NetworkChangeNotifierFactoryChromeos::CreateInstance() {
|
| + DCHECK(!g_network_change_notifier_chromeos);
|
| + g_network_change_notifier_chromeos = new NetworkChangeNotifierChromeos();
|
| + return g_network_change_notifier_chromeos;
|
| +}
|
| +
|
| +// static
|
| +NetworkChangeNotifierChromeos*
|
| +NetworkChangeNotifierFactoryChromeos::GetInstance() {
|
| + return g_network_change_notifier_chromeos;
|
| +}
|
| +
|
| +} // namespace chromeos
|
|
|