| Index: content/renderer/usb/web_usb_device_impl.cc
|
| diff --git a/content/renderer/usb/web_usb_device_impl.cc b/content/renderer/usb/web_usb_device_impl.cc
|
| index d0cedd5116aa67087e0bc33816fdcb386a68a5a1..fc6920d328d6b775c947f79264b45512b190b1ca 100644
|
| --- a/content/renderer/usb/web_usb_device_impl.cc
|
| +++ b/content/renderer/usb/web_usb_device_impl.cc
|
| @@ -26,7 +26,6 @@ const char kClaimInterfaceFailed[] = "Unable to claim interface.";
|
| const char kClearHaltFailed[] = "Unable to clear endpoint.";
|
| const char kDeviceAlreadyOpen[] = "Device has already been opened.";
|
| const char kDeviceNoAccess[] = "Access denied.";
|
| -const char kDeviceNotConfigured[] = "Device not configured.";
|
| const char kDeviceUnavailable[] = "Device unavailable.";
|
| const char kDeviceResetFailed[] = "Unable to reset the device.";
|
| const char kReleaseInterfaceFailed[] = "Unable to release interface.";
|
| @@ -90,19 +89,6 @@ void OnDeviceClosed(
|
| callbacks.PassCallbacks()->onSuccess();
|
| }
|
|
|
| -void OnGetConfiguration(
|
| - ScopedWebCallbacks<blink::WebUSBDeviceGetConfigurationCallbacks> callbacks,
|
| - uint8_t configuration_value) {
|
| - auto scoped_callbacks = callbacks.PassCallbacks();
|
| - if (configuration_value == 0) {
|
| - RejectWithError(blink::WebUSBError(blink::WebUSBError::Error::NotFound,
|
| - kDeviceNotConfigured),
|
| - std::move(scoped_callbacks));
|
| - } else {
|
| - scoped_callbacks->onSuccess(configuration_value);
|
| - }
|
| -}
|
| -
|
| void HandlePassFailDeviceOperation(
|
| ScopedWebCallbacks<blink::WebCallbacks<void, const blink::WebUSBError&>>
|
| callbacks,
|
| @@ -258,14 +244,6 @@ void WebUSBDeviceImpl::close(blink::WebUSBDeviceCloseCallbacks* callbacks) {
|
| base::Bind(&OnDeviceClosed, base::Passed(&scoped_callbacks)));
|
| }
|
|
|
| -void WebUSBDeviceImpl::getConfiguration(
|
| - blink::WebUSBDeviceGetConfigurationCallbacks* callbacks) {
|
| - auto scoped_callbacks = MakeScopedUSBCallbacks(callbacks);
|
| - if (device_)
|
| - device_->GetConfiguration(
|
| - base::Bind(&OnGetConfiguration, base::Passed(&scoped_callbacks)));
|
| -}
|
| -
|
| void WebUSBDeviceImpl::setConfiguration(
|
| uint8_t configuration_value,
|
| blink::WebUSBDeviceSetConfigurationCallbacks* callbacks) {
|
|
|