Commit 1d130aa1 authored by Ke He's avatar Ke He Committed by Commit Bot

Tidy whitespace, kill useless DCHECK, use auto in one place.

BUG=728223

Change-Id: I4241852401000b5d68b9547dbd23a3d405838020
Reviewed-on: https://chromium-review.googlesource.com/701324
Commit-Queue: Ke He <ke.he@intel.com>
Reviewed-by: default avatarTom Sepez <tsepez@chromium.org>
Reviewed-by: default avatarReilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#506936}
parent 4445396a
......@@ -35,7 +35,7 @@ struct HidDeviceInfo {
string device_node;
};
interface HidManagerClient{
interface HidManagerClient {
// Notifies the client that a device is added.
DeviceAdded(HidDeviceInfo device_info);
......
......@@ -259,8 +259,6 @@ void HidReceiveFunction::OnFinished(
const base::Optional<std::vector<uint8_t>>& buffer) {
if (success) {
DCHECK(buffer);
DCHECK_GE(buffer->size(), 0u);
Respond(TwoArguments(
std::make_unique<base::Value>(report_id),
base::Value::CreateWithCopiedBuffer(
......
......@@ -299,7 +299,7 @@ class HidApiTest : public ShellApiTest {
&collections, &has_report_id, &max_input_report_size,
&max_output_report_size, &max_feature_report_size);
device::mojom::HidDeviceInfoPtr device = device::mojom::HidDeviceInfo::New(
auto device = device::mojom::HidDeviceInfo::New(
device_guid, vendor_id, product_id, "Test Device", serial_number,
device::mojom::HidBusType::kHIDBusTypeUSB, report_descriptor,
collections, has_report_id, max_input_report_size,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment