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

Unified Diff: extensions/shell/browser/shell_device_client.cc

Issue 523743005: Fix HidService lifetime issues (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: where did that stupid line come from 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 side-by-side diff with in-line comments
Download patch
Index: extensions/shell/browser/shell_device_client.cc
diff --git a/extensions/shell/browser/shell_device_client.cc b/extensions/shell/browser/shell_device_client.cc
index b3c81680c983db9fe5987bb3bfbfda3c3058a07e..55b277b03019444b1fde9eba42db84effae5e484 100644
--- a/extensions/shell/browser/shell_device_client.cc
+++ b/extensions/shell/browser/shell_device_client.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "content/public/browser/browser_thread.h"
+#include "device/hid/hid_service.h"
#include "device/usb/usb_service.h"
namespace extensions {
@@ -20,4 +21,10 @@ device::UsbService* ShellDeviceClient::GetUsbService() {
content::BrowserThread::UI));
}
+device::HidService* ShellDeviceClient::GetHidService() {
+ return device::HidService::GetInstance(
+ content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::UI));
+}
+
}
« no previous file with comments | « extensions/shell/browser/shell_device_client.h ('k') | extensions/shell/browser/shell_extensions_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698