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

Side by Side Diff: chrome/browser/local_discovery/service_discovery_client.cc

Issue 16272006: In-browser DNS-based service discovery system (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mdns_implementation
Patch Set: Created 7 years, 6 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
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/local_discovery/service_discovery_client.h"
6 #include "chrome/browser/local_discovery/service_discovery_client_impl.h"
7
8 namespace local_discovery {
9 static ServiceDiscoveryClient* g_instance = NULL;
10
11 ServiceDiscoveryClient* ServiceDiscoveryClient::GetInstance() {
12 if (!g_instance) {
13 g_instance = new ServiceDiscoveryClientImpl();
Vitaly Buka (NO REVIEWS) 2013/06/15 00:22:30 maybe return g_instance ? g_instance : Singleton<S
14 }
15
16 return g_instance;
17 }
18
19 void ServiceDiscoveryClient::SetInstance(ServiceDiscoveryClient* instance) {
20 g_instance = instance;
21 }
22
23 } // namespace local_discovery
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698