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

Unified Diff: device/hid/hid_service.cc

Issue 980023002: Move device/usb classes from the FILE thread to UI thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add more thread assertions. Created 5 years, 8 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_connection_unittest.cc ('k') | device/test/usb_test_gadget.h » ('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 4f2023515c2e3aa5ce138aa155e3fa4b53218f1a..fc50a41d5abf0841ffece481f03054d2d1fe43f2 100644
--- a/device/hid/hid_service.cc
+++ b/device/hid/hid_service.cc
@@ -106,9 +106,11 @@ void HidService::AddDevice(scoped_refptr<HidDeviceInfo> device_info) {
HID_LOG(USER) << "HID device "
<< (enumeration_ready_ ? "added" : "detected")
- << ": vendorId = " << device_info->vendor_id()
- << ", productId = " << device_info->product_id()
- << ", deviceId = '" << device_info->device_id() << "'";
+ << ": vendorId=" << device_info->vendor_id()
+ << ", productId=" << device_info->product_id() << ", name='"
+ << device_info->product_name() << "', serial='"
+ << device_info->serial_number() << "', deviceId='"
+ << device_info->device_id() << "'";
if (enumeration_ready_) {
FOR_EACH_OBSERVER(Observer, observer_list_, OnDeviceAdded(device_info));
@@ -120,7 +122,7 @@ void HidService::RemoveDevice(const HidDeviceId& device_id) {
DCHECK(thread_checker_.CalledOnValidThread());
DeviceMap::iterator it = devices_.find(device_id);
if (it != devices_.end()) {
- HID_LOG(USER) << "HID device removed: deviceId = '" << device_id << "'";
+ HID_LOG(USER) << "HID device removed: deviceId='" << device_id << "'";
if (enumeration_ready_) {
FOR_EACH_OBSERVER(Observer, observer_list_, OnDeviceRemoved(it->second));
« no previous file with comments | « device/hid/hid_connection_unittest.cc ('k') | device/test/usb_test_gadget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698