Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(804)

Unified Diff: content/browser/bluetooth/bluetooth_dispatcher_host.cc

Issue 1859463002: bluetooth: Remove disconnect when page hidden (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/bluetooth/connect.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 =
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/bluetooth/connect.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698