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

Unified Diff: chrome/browser/chrome_device_client.cc

Issue 1183443002: Reland: Introduce the devices Mojo app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn check... Created 5 years, 6 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
« no previous file with comments | « chrome/browser/chrome_device_client.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_device_client.cc
diff --git a/chrome/browser/chrome_device_client.cc b/chrome/browser/chrome_device_client.cc
index d0a31a6be55cca62a82fe3e69328eb80177506a0..835a4c3a57782af555671849cdb89ca5fc3e9abd 100644
--- a/chrome/browser/chrome_device_client.cc
+++ b/chrome/browser/chrome_device_client.cc
@@ -5,34 +5,12 @@
#include "chrome/browser/chrome_device_client.h"
#include "base/logging.h"
-#include "base/macros.h"
#include "content/public/browser/browser_thread.h"
#include "device/hid/hid_service.h"
-#include "device/usb/public/cpp/device_manager_delegate.h"
-#include "device/usb/public/cpp/device_manager_factory.h"
-#include "device/usb/public/interfaces/device.mojom.h"
#include "device/usb/usb_service.h"
using content::BrowserThread;
-namespace {
-
-// DeviceManagerDelegate implementation which allows access to all devices.
-class BrowserDeviceManagerDelegate : public device::usb::DeviceManagerDelegate {
- public:
- BrowserDeviceManagerDelegate() {}
- ~BrowserDeviceManagerDelegate() override {}
-
- private:
- bool IsDeviceAllowed(const device::usb::DeviceInfo& device) override {
- return true;
- }
-
- DISALLOW_COPY_AND_ASSIGN(BrowserDeviceManagerDelegate);
-};
-
-} // namespace
-
ChromeDeviceClient::ChromeDeviceClient() {}
ChromeDeviceClient::~ChromeDeviceClient() {}
@@ -43,14 +21,6 @@ device::UsbService* ChromeDeviceClient::GetUsbService() {
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE));
}
-void ChromeDeviceClient::ConnectToUSBDeviceManager(
- mojo::InterfaceRequest<device::usb::DeviceManager> request) {
- device::usb::DeviceManagerFactory::Build(
- request.Pass(),
- scoped_ptr<device::usb::DeviceManagerDelegate>(
- new BrowserDeviceManagerDelegate));
-}
-
device::HidService* ChromeDeviceClient::GetHidService() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
return device::HidService::GetInstance(
« no previous file with comments | « chrome/browser/chrome_device_client.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698