OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "device/common/device_client.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 |
| 9 namespace device { |
| 10 |
| 11 namespace { |
| 12 |
| 13 DeviceClient* g_instance = NULL; |
| 14 |
| 15 } // namespace |
| 16 |
| 17 DeviceClient::DeviceClient() { g_instance = this; } |
| 18 |
| 19 DeviceClient::~DeviceClient() { g_instance = NULL; } |
| 20 |
| 21 /* static */ DeviceClient* DeviceClient::Get() { |
| 22 DCHECK(g_instance); |
| 23 return g_instance; |
| 24 } |
| 25 |
| 26 usb_service::UsbService* DeviceClient::GetUsbService() { |
| 27 // This should never be called by clients which do not support the USB API. |
| 28 NOTIMPLEMENTED(); |
| 29 return NULL; |
| 30 } |
| 31 |
| 32 } // namespace device |
OLD | NEW |