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

Unified Diff: chromecast/net/network_change_notifier_factory_cast.cc

Issue 223143003: Initial checkin of chromecast content embedder (cast_shell) and related build scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Additional presubmit clean-up. Created 6 years, 5 months 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: chromecast/net/network_change_notifier_factory_cast.cc
diff --git a/chromecast/net/network_change_notifier_factory_cast.cc b/chromecast/net/network_change_notifier_factory_cast.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1c41171119f47b60ce8e8a94ae2cc2d07cdf5ffa
--- /dev/null
+++ b/chromecast/net/network_change_notifier_factory_cast.cc
@@ -0,0 +1,31 @@
+// Copyright 2014 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 "chromecast/net/network_change_notifier_factory_cast.h"
+
+#include "base/lazy_instance.h"
+#include "chromecast/net/network_change_notifier_cast.h"
+
+namespace chromecast {
+
+namespace {
+
+base::LazyInstance<NetworkChangeNotifierCast> g_network_change_notifier_cast =
+ LAZY_INSTANCE_INITIALIZER;
+
+} // namespace
+
+net::NetworkChangeNotifier* NetworkChangeNotifierFactoryCast::CreateInstance() {
+ return g_network_change_notifier_cast.Pointer();
+}
+
+NetworkChangeNotifierFactoryCast::~NetworkChangeNotifierFactoryCast() {
+}
+
+// static
+NetworkChangeNotifierCast* NetworkChangeNotifierFactoryCast::GetInstance() {
+ return g_network_change_notifier_cast.Pointer();
+}
+
+} // namespace chromecast

Powered by Google App Engine
This is Rietveld 408576698