1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "chromeos/network/network_change_notifier_factory_chromeos.h"
6
7#include "chromeos/network/network_change_notifier_chromeos.h"
8
9namespace chromeos {
10
11namespace {
12
13NetworkChangeNotifierChromeos* g_network_change_notifier_chromeos = NULL;
14
15}  // namespace
16
17net::NetworkChangeNotifier*
18NetworkChangeNotifierFactoryChromeos::CreateInstance() {
19  DCHECK(!g_network_change_notifier_chromeos);
20  g_network_change_notifier_chromeos = new NetworkChangeNotifierChromeos();
21  return g_network_change_notifier_chromeos;
22}
23
24// static
25NetworkChangeNotifierChromeos*
26NetworkChangeNotifierFactoryChromeos::GetInstance() {
27  return g_network_change_notifier_chromeos;
28}
29
30}  // namespace chromeos
31