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

Side by Side Diff: device/core/device_client.cc

Issue 2417043002: Move device/core files to device/base directory. (Closed)
Patch Set: Fix ChromeOS build Created 4 years, 2 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 | « device/core/device_client.h ('k') | device/core/device_core_export.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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/core/device_client.h"
6
7 #include "base/logging.h"
8
9 namespace device {
10
11 namespace {
12
13 DeviceClient* g_instance;
14
15 } // namespace
16
17 DeviceClient::DeviceClient() {
18 g_instance = this;
19 }
20
21 DeviceClient::~DeviceClient() {
22 g_instance = nullptr;
23 }
24
25 /* static */
26 DeviceClient* DeviceClient::Get() {
27 DCHECK(g_instance);
28 return g_instance;
29 }
30
31 UsbService* DeviceClient::GetUsbService() {
32 // This should never be called by clients which do not support the USB API.
33 NOTREACHED();
34 return nullptr;
35 }
36
37 HidService* DeviceClient::GetHidService() {
38 // This should never be called by clients which do not support the HID API.
39 NOTREACHED();
40 return nullptr;
41 }
42
43 } // namespace device
OLDNEW
« no previous file with comments | « device/core/device_client.h ('k') | device/core/device_core_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698