summaryrefslogtreecommitdiffstats
path: root/device/hid/hid_service_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'device/hid/hid_service_win.cc')
-rw-r--r--device/hid/hid_service_win.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/device/hid/hid_service_win.cc b/device/hid/hid_service_win.cc
index 0bfc485..8a20060 100644
--- a/device/hid/hid_service_win.cc
+++ b/device/hid/hid_service_win.cc
@@ -70,7 +70,8 @@ void HidServiceWin::Connect(const HidDeviceId& device_id,
task_runner_->PostTask(
FROM_HERE,
- base::Bind(callback, new HidConnectionWin(device_info, std::move(file))));
+ base::Bind(callback, make_scoped_refptr(
+ new HidConnectionWin(device_info, std::move(file)))));
}
// static