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

Unified Diff: device/usb/usb_device_impl.h

Issue 1034333002: Check USB device path access when prompting users to select a device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move MockPermissionBrokerClient into its own header. 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/usb/usb_device_filter_unittest.cc ('k') | device/usb/usb_device_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_device_impl.h
diff --git a/device/usb/usb_device_impl.h b/device/usb/usb_device_impl.h
index 702b20e6f06e926e463c6e242de771ba4f5bd36f..897b4910fe045d33e37bdf4c3df97057ebc9d7a1 100644
--- a/device/usb/usb_device_impl.h
+++ b/device/usb/usb_device_impl.h
@@ -32,9 +32,10 @@ class UsbDeviceImpl : public UsbDevice {
public:
// UsbDevice implementation:
#if defined(OS_CHROMEOS)
- void RequestUsbAccess(
- int interface_id,
- const base::Callback<void(bool success)>& callback) override;
+ // Only overridden on Chrome OS.
+ void CheckUsbAccess(const ResultCallback& callback) override;
+ void RequestUsbAccess(int interface_id,
+ const ResultCallback& callback) override;
#endif // OS_CHROMEOS
scoped_refptr<UsbDeviceHandle> Open() override;
bool Close(scoped_refptr<UsbDeviceHandle> handle) override;
« no previous file with comments | « device/usb/usb_device_filter_unittest.cc ('k') | device/usb/usb_device_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698