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

Unified Diff: device/hid/hid_service.cc

Issue 399313008: Remove HID devices not found during enumeration on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a protected const accessor instead of making devices_ protected. Created 6 years, 5 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 | « device/hid/hid_service.h ('k') | device/hid/hid_service_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/hid/hid_service.cc
diff --git a/device/hid/hid_service.cc b/device/hid/hid_service.cc
index 4d24b0093f404b37bdd2dec2f707ad43e689ac2f..8aa7cd4a37755d0b618b233704d9b60a1dee9795 100644
--- a/device/hid/hid_service.cc
+++ b/device/hid/hid_service.cc
@@ -90,6 +90,10 @@ void HidService::RemoveDevice(const HidDeviceId& device_id) {
devices_.erase(it);
}
+const HidService::DeviceMap& HidService::GetDevicesNoEnumerate() const {
+ return devices_;
+}
+
HidService* HidService::GetInstance() {
if (!g_hid_service_ptr.Get().get())
g_hid_service_ptr.Get().reset(CreateInstance());
« no previous file with comments | « device/hid/hid_service.h ('k') | device/hid/hid_service_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698