Revert 184607
commit6ac9e31faff1f1181cff814f1ac1b48280c442f9
authorhenrika@chromium.org <henrika@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 26 Feb 2013 14:27:37 +0000 (26 14:27 +0000)
committerhenrika@chromium.org <henrika@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 26 Feb 2013 14:27:37 +0000 (26 14:27 +0000)
tree570e8338884151e21f13120f22de90f3a37e5e7b
parentef9d2743e03420d43095f66bc1925a16ce53635b
Revert 184607
> Remove socket_map_.size() == 0 CHECK.
>
> Remove socket_map_.size() == 0 CHECK because this causes the browser to
> crash during the shutdown if the user closes the browser without releasing
> the bluetooth socket, which I assume could happen for careless apps that did
> not properly disconnect the sockets using chrome.bluetooth.disconnect().
>
> Also I re-implemented the bluetooth socket management using API resource manager, instead of relying on bluetooth event router.
>
> BUG=135470
> TBR=sky@chromium.org
>
>
> Review URL: https://chromiumcodereview.appspot.com/12320016

TBR=youngki@chromium.org
Review URL: https://codereview.chromium.org/12328107

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184642 0039d316-1c4b-4281-b951-d872f2087c98
12 files changed:
chrome/browser/extensions/api/bluetooth/bluetooth_api.cc
chrome/browser/extensions/api/bluetooth/bluetooth_api.h
chrome/browser/extensions/api/bluetooth/bluetooth_event_router.cc
chrome/browser/extensions/api/bluetooth/bluetooth_event_router.h
chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.cc
chrome/browser/extensions/api/bluetooth/bluetooth_socket_resource.cc [deleted file]
chrome/browser/extensions/api/bluetooth/bluetooth_socket_resource.h [deleted file]
chrome/browser/extensions/extension_system.cc
chrome/browser/extensions/extension_system.h
chrome/browser/extensions/test_extension_system.cc
chrome/browser/extensions/test_extension_system.h
chrome/chrome_browser_extensions.gypi