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

Unified Diff: chromeos/network/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: address comments + move back to chromeos/ 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: chromeos/network/network_change_notifier_factory_chromeos.cc
diff --git a/chromeos/network/network_change_notifier_factory_chromeos.cc b/chromeos/network/network_change_notifier_factory_chromeos.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1d73c3e34c0795e12f2b99d3564881ea805fe7c3
--- /dev/null
+++ b/chromeos/network/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 "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

Powered by Google App Engine
This is Rietveld 408576698