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

Unified Diff: chromecast/net/network_change_notifier_factory_cast.cc

Issue 518773003: Chromecast: end-to-end browser test based on content::BrowserTest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cast-browser-process
Patch Set: rebase Created 6 years, 3 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
« no previous file with comments | « chromecast/chromecast.gyp ('k') | chromecast/shell/browser/cast_browser_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index 1c41171119f47b60ce8e8a94ae2cc2d07cdf5ffa..c446b1e5768d1244e01452e02fd52c8077fa78d3 100644
--- a/chromecast/net/network_change_notifier_factory_cast.cc
+++ b/chromecast/net/network_change_notifier_factory_cast.cc
@@ -4,28 +4,16 @@
#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();
+ // Caller assumes ownership.
+ return new NetworkChangeNotifierCast();
}
NetworkChangeNotifierFactoryCast::~NetworkChangeNotifierFactoryCast() {
}
-// static
-NetworkChangeNotifierCast* NetworkChangeNotifierFactoryCast::GetInstance() {
- return g_network_change_notifier_cast.Pointer();
-}
-
} // namespace chromecast
« no previous file with comments | « chromecast/chromecast.gyp ('k') | chromecast/shell/browser/cast_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698