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 9 namespace chromeos { 10 11 namespace { 12 13 NetworkChangeNotifierChromeos* g_network_change_notifier_chromeos = NULL; 14 15 } // namespace 16 17 net::NetworkChangeNotifier* 18 NetworkChangeNotifierFactoryChromeos::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 25 NetworkChangeNotifierChromeos* 26 NetworkChangeNotifierFactoryChromeos::GetInstance() { 27 return g_network_change_notifier_chromeos; 28 } 29 30 } // namespace chromeos 31