Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Side by Side Diff: chromeos/network/connection_change_notifier_factory.cc

Issue 11469044: Implement new network change notifier that uses NetworkStateHandler (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: . Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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/connection_change_notifier_factory.h"
6
7 #include "chromeos/network/connection_change_notifier.h"
8
9 namespace chromeos {
10
11 namespace {
12
13 ConnectionChangeNotifier* g_connection_change_notifier = NULL;
14
15 } // namespace
16
17 net::NetworkChangeNotifier* ConnectionChangeNotifierFactory::CreateInstance() {
18 DCHECK(!g_connection_change_notifier) << "Instance was already created.";
19 g_connection_change_notifier = new ConnectionChangeNotifier();
20 return g_connection_change_notifier;
21 }
22
23 // static
24 ConnectionChangeNotifier* ConnectionChangeNotifierFactory::GetInstance() {
25 return g_connection_change_notifier;
26 }
27
28 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698