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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « chromecast/chromecast.gyp ('k') | chromecast/shell/browser/cast_browser_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromecast/net/network_change_notifier_factory_cast.h" 5 #include "chromecast/net/network_change_notifier_factory_cast.h"
6 6
7 #include "base/lazy_instance.h"
8 #include "chromecast/net/network_change_notifier_cast.h" 7 #include "chromecast/net/network_change_notifier_cast.h"
9 8
10 namespace chromecast { 9 namespace chromecast {
11 10
12 namespace {
13
14 base::LazyInstance<NetworkChangeNotifierCast> g_network_change_notifier_cast =
15 LAZY_INSTANCE_INITIALIZER;
16
17 } // namespace
18
19 net::NetworkChangeNotifier* NetworkChangeNotifierFactoryCast::CreateInstance() { 11 net::NetworkChangeNotifier* NetworkChangeNotifierFactoryCast::CreateInstance() {
20 return g_network_change_notifier_cast.Pointer(); 12 // Caller assumes ownership.
13 return new NetworkChangeNotifierCast();
21 } 14 }
22 15
23 NetworkChangeNotifierFactoryCast::~NetworkChangeNotifierFactoryCast() { 16 NetworkChangeNotifierFactoryCast::~NetworkChangeNotifierFactoryCast() {
24 } 17 }
25 18
26 // static
27 NetworkChangeNotifierCast* NetworkChangeNotifierFactoryCast::GetInstance() {
28 return g_network_change_notifier_cast.Pointer();
29 }
30
31 } // namespace chromecast 19 } // namespace chromecast
OLDNEW
« 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