| Index: device/hid/hid_connection.cc
|
| diff --git a/device/hid/hid_connection.cc b/device/hid/hid_connection.cc
|
| index 5a904fe7cfa75ed6c4225a10f3db80e1981f4091..9d5ee20f20bc0ec81f2e6b81f4337e9f9a32fc97 100644
|
| --- a/device/hid/hid_connection.cc
|
| +++ b/device/hid/hid_connection.cc
|
| @@ -170,20 +170,6 @@ void HidConnection::SendFeatureReport(scoped_refptr<net::IOBuffer> buffer,
|
| PlatformSendFeatureReport(buffer, size, callback);
|
| }
|
|
|
| -bool HidConnection::CompleteRead(scoped_refptr<net::IOBuffer> buffer,
|
| - size_t size,
|
| - const ReadCallback& callback) {
|
| - DCHECK_GE(size, 1u);
|
| - uint8_t report_id = buffer->data()[0];
|
| - if (IsReportIdProtected(report_id)) {
|
| - HID_LOG(EVENT) << "Filtered a protected input report.";
|
| - return false;
|
| - }
|
| -
|
| - callback.Run(true, buffer, size);
|
| - return true;
|
| -}
|
| -
|
| bool HidConnection::IsReportIdProtected(uint8_t report_id) {
|
| HidCollectionInfo collection_info;
|
| if (FindCollectionByReportId(device_info_->collections(), report_id,
|
|
|