summaryrefslogtreecommitdiffstats
path: root/chromeos/network/network_change_notifier_factory_chromeos.cc
blob: 1d73c3e34c0795e12f2b99d3564881ea805fe7c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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