Chromium Code Reviews| Index: content/browser/bluetooth/bluetooth_dispatcher_host.cc |
| diff --git a/content/browser/bluetooth/bluetooth_dispatcher_host.cc b/content/browser/bluetooth/bluetooth_dispatcher_host.cc |
| index 71f66c3f8083cded7e21ab6bc9cd23c1b93de6cf..bd0e52ab542c9de0577a865ba2071d7dde9198b5 100644 |
| --- a/content/browser/bluetooth/bluetooth_dispatcher_host.cc |
| +++ b/content/browser/bluetooth/bluetooth_dispatcher_host.cc |
| @@ -701,17 +701,6 @@ void BluetoothDispatcherHost::OnGATTServerDisconnect( |
| RecordWebBluetoothFunctionCall( |
| UMAWebBluetoothFunction::REMOTE_GATT_SERVER_DISCONNECT); |
| - // Make sure the origin is allowed to access the device. We perform this check |
|
Jeffrey Yasskin
2016/04/04 17:06:39
Add a comment about why we're *not* checking the o
ortuno
2016/04/04 18:04:11
Done.
|
| - // in case a hostile renderer is trying to disconnect a device that the |
| - // renderer is not allowed to access. |
| - if (allowed_devices_map_.GetDeviceAddress(GetOrigin(frame_routing_id), |
| - device_id) |
| - .empty()) { |
| - bad_message::ReceivedBadMessage( |
| - this, bad_message::BDH_DEVICE_NOT_ALLOWED_FOR_ORIGIN); |
| - return; |
| - } |
| - |
| RenderFrameHostImpl* render_frame_host = |
| RenderFrameHostImpl::FromID(render_process_id_, frame_routing_id); |
| WebContents* web_contents = |