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

Unified Diff: chrome/browser/chrome_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, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chrome_device_client.cc
diff --git a/chrome/browser/chrome_device_client.cc b/chrome/browser/chrome_device_client.cc
new file mode 100644
index 0000000000000000000000000000000000000000..941e7771fbae2ccf7b9d8702f61c4ad238d3ed66
--- /dev/null
+++ b/chrome/browser/chrome_device_client.cc
@@ -0,0 +1,19 @@
+// Copyright 2014 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/chrome_device_client.h"
+
+#include "base/logging.h"
+#include "components/usb_service/usb_service.h"
+#include "content/public/browser/browser_thread.h"
+
+ChromeDeviceClient::ChromeDeviceClient() {}
+
+ChromeDeviceClient::~ChromeDeviceClient() {}
+
+usb_service::UsbService* ChromeDeviceClient::GetUsbService() {
+ return usb_service::UsbService::GetInstance(
+ content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::UI));
+}

Powered by Google App Engine
This is Rietveld 408576698