| OLD | NEW |
| (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 |
| 7 #include "chrome/browser/local_discovery/service_discovery_client_impl.h" |
| 8 |
| 9 namespace local_discovery { |
| 10 static ServiceDiscoveryClient* g_instance = NULL; |
| 11 |
| 12 Service::Service() { |
| 13 } |
| 14 |
| 15 Service::~Service() { |
| 16 } |
| 17 |
| 18 ServiceDiscoveryClient* ServiceDiscoveryClient::GetInstance() { |
| 19 return g_instance ? g_instance : ServiceDiscoveryClientImpl::GetInstance(); |
| 20 } |
| 21 |
| 22 void ServiceDiscoveryClient::SetInstance(ServiceDiscoveryClient* instance) { |
| 23 g_instance = instance; |
| 24 } |
| 25 |
| 26 } // namespace local_discovery |
| OLD | NEW |