| Index: chrome/browser/local_discovery/service_discovery_client.cc
|
| diff --git a/chrome/browser/local_discovery/service_discovery_client.cc b/chrome/browser/local_discovery/service_discovery_client.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ea86a951e7ce0978f3a9abd5c108d200a941f385
|
| --- /dev/null
|
| +++ b/chrome/browser/local_discovery/service_discovery_client.cc
|
| @@ -0,0 +1,26 @@
|
| +// Copyright (c) 2013 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 "chrome/browser/local_discovery/service_discovery_client.h"
|
| +
|
| +#include "chrome/browser/local_discovery/service_discovery_client_impl.h"
|
| +
|
| +namespace local_discovery {
|
| +static ServiceDiscoveryClient* g_instance = NULL;
|
| +
|
| +Service::Service() {
|
| +}
|
| +
|
| +Service::~Service() {
|
| +}
|
| +
|
| +ServiceDiscoveryClient* ServiceDiscoveryClient::GetInstance() {
|
| + return g_instance ? g_instance : ServiceDiscoveryClientImpl::GetInstance();
|
| +}
|
| +
|
| +void ServiceDiscoveryClient::SetInstance(ServiceDiscoveryClient* instance) {
|
| + g_instance = instance;
|
| +}
|
| +
|
| +} // namespace local_discovery
|
|
|