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

Unified Diff: apps/saved_devices_service.cc

Issue 601073002: Move string descriptor getters from UsbDeviceHandle to UsbDevice. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix function order. 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
« no previous file with comments | « no previous file | apps/saved_devices_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/saved_devices_service.cc
diff --git a/apps/saved_devices_service.cc b/apps/saved_devices_service.cc
index df7db1de511f038501e66c6c2d5149c9b1008b18..d7e894c5d1a84fec6f1e21472a77b372a47efbe7 100644
--- a/apps/saved_devices_service.cc
+++ b/apps/saved_devices_service.cc
@@ -158,11 +158,7 @@ bool SavedDevicesService::SavedDevices::IsRegistered(
continue;
}
if (!have_serial_number) {
- scoped_refptr<UsbDeviceHandle> device_handle = device->Open();
- if (!device_handle.get()) {
- break;
- }
- if (!device_handle->GetSerial(&serial_number)) {
+ if (!device->GetSerialNumber(&serial_number)) {
break;
}
have_serial_number = true;
« no previous file with comments | « no previous file | apps/saved_devices_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698