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

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

Issue 507503002: Remove BrowserThread dependency from usb_service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do the same to chrome/browser/BUILD.gn. Created 6 years, 3 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 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() {
18 DCHECK(!g_instance);
19 g_instance = this;
20 }
21
22 DeviceClient::~DeviceClient() { g_instance = NULL; }
Ken Rockot(use gerrit already) 2014/08/28 21:47:03 I think it's preferable to use newlines when there
Reilly Grant (use Gerrit) 2014/08/28 22:16:13 Done.
23
24 /* static */ DeviceClient* DeviceClient::Get() {
Ken Rockot(use gerrit already) 2014/08/28 21:47:03 // static
Reilly Grant (use Gerrit) 2014/08/28 22:16:13 Done.
25 DCHECK(g_instance);
26 return g_instance;
27 }
28
29 usb_service::UsbService* DeviceClient::GetUsbService() {
30 // This should never be called by clients which do not support the USB API.
31 NOTREACHED();
32 return NULL;
33 }
34
35 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698