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

Unified Diff: net/base/network_change_notifier_factory_chromeos.cc

Issue 11469044: Implement new network change notifier that uses NetworkStateHandler (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Move to net/base 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 side-by-side diff with in-line comments
Download patch
Index: net/base/network_change_notifier_factory_chromeos.cc
diff --git a/net/base/network_change_notifier_factory_chromeos.cc b/net/base/network_change_notifier_factory_chromeos.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a321266b3f626dbad9506de5224166274b395276
--- /dev/null
+++ b/net/base/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 "net/base/network_change_notifier_factory_chromeos.h"
+
+#include "net/base/network_change_notifier_chromeos.h"
+
+namespace net {
+
+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

Powered by Google App Engine
This is Rietveld 408576698