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

Issue 819713002: bluetoothPrivate: Add disconnectAll function (Closed)

Created:
6 years ago by armansito
Modified:
5 years, 11 months ago
CC:
asvitkine+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, joth, Tim Song
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetoothPrivate: Add disconnectAll function This CL adds the chrome.bluetoothPrivate.disconnectAll function, which can be used by whitelisted extensions to teardown all connected data bearers to a remote Bluetooth device. BUG=441058 Committed: https://crrev.com/373214a5345dd65ca441dcbcca4aa9eecf276a82 Cr-Commit-Position: refs/heads/master@{#310154}

Patch Set 1 #

Patch Set 2 : Ran update_extension_functions.py #

Total comments: 9

Patch Set 3 : Renamed disconnect -> disconnectAll; addressed jyasskin@'s comments #

Total comments: 5

Patch Set 4 : Fixed comment by jyasskin@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -6 lines) Patch
A + chrome/test/data/extensions/api_test/bluetooth_private/disconnect/manifest.json View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/api_test/bluetooth_private/disconnect/test.js View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
M extensions/browser/api/bluetooth/bluetooth_private_api.h View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
M extensions/browser/api/bluetooth/bluetooth_private_api.cc View 1 2 3 3 chunks +58 lines, -0 lines 0 comments Download
M extensions/browser/api/bluetooth/bluetooth_private_apitest.cc View 1 2 3 2 chunks +22 lines, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/api/bluetooth_private.json View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (3 generated)
armansito
joth@: Can you please test the CL and see that it works for you?
6 years ago (2014-12-19 22:33:09 UTC) #2
Marie Janssen
lgtm
6 years ago (2014-12-19 23:16:21 UTC) #3
armansito
jyasskin@: extensions/OWNERS isherman@: histograms OWNERS
6 years ago (2014-12-19 23:48:58 UTC) #5
armansito
cc'd tengs@: FYI, may be useful for your use case as well.
6 years ago (2014-12-19 23:52:10 UTC) #6
Ilya Sherman
histograms.xml lgtm, thanks
6 years ago (2014-12-20 00:05:27 UTC) #7
Jeffrey Yasskin
https://codereview.chromium.org/819713002/diff/20001/chrome/test/data/extensions/api_test/bluetooth_private/disconnect/test.js File chrome/test/data/extensions/api_test/bluetooth_private/disconnect/test.js (right): https://codereview.chromium.org/819713002/diff/20001/chrome/test/data/extensions/api_test/bluetooth_private/disconnect/test.js#newcode7 chrome/test/data/extensions/api_test/bluetooth_private/disconnect/test.js:7: var errorDisconnectFailed = 'Failed to disconnect device'; This message ...
6 years ago (2014-12-20 00:53:49 UTC) #8
armansito
https://codereview.chromium.org/819713002/diff/20001/chrome/test/data/extensions/api_test/bluetooth_private/disconnect/test.js File chrome/test/data/extensions/api_test/bluetooth_private/disconnect/test.js (right): https://codereview.chromium.org/819713002/diff/20001/chrome/test/data/extensions/api_test/bluetooth_private/disconnect/test.js#newcode7 chrome/test/data/extensions/api_test/bluetooth_private/disconnect/test.js:7: var errorDisconnectFailed = 'Failed to disconnect device'; On 2014/12/20 ...
6 years ago (2014-12-20 01:24:28 UTC) #9
Jeffrey Yasskin
https://codereview.chromium.org/819713002/diff/20001/chrome/test/data/extensions/api_test/bluetooth_private/disconnect/test.js File chrome/test/data/extensions/api_test/bluetooth_private/disconnect/test.js (right): https://codereview.chromium.org/819713002/diff/20001/chrome/test/data/extensions/api_test/bluetooth_private/disconnect/test.js#newcode7 chrome/test/data/extensions/api_test/bluetooth_private/disconnect/test.js:7: var errorDisconnectFailed = 'Failed to disconnect device'; On 2014/12/20 ...
6 years ago (2014-12-20 01:29:58 UTC) #10
armansito
https://codereview.chromium.org/819713002/diff/20001/chrome/test/data/extensions/api_test/bluetooth_private/disconnect/test.js File chrome/test/data/extensions/api_test/bluetooth_private/disconnect/test.js (right): https://codereview.chromium.org/819713002/diff/20001/chrome/test/data/extensions/api_test/bluetooth_private/disconnect/test.js#newcode7 chrome/test/data/extensions/api_test/bluetooth_private/disconnect/test.js:7: var errorDisconnectFailed = 'Failed to disconnect device'; On 2014/12/20 ...
6 years ago (2014-12-20 01:43:38 UTC) #11
Jeffrey Yasskin
https://codereview.chromium.org/819713002/diff/20001/extensions/browser/api/bluetooth/bluetooth_private_api.cc File extensions/browser/api/bluetooth/bluetooth_private_api.cc (right): https://codereview.chromium.org/819713002/diff/20001/extensions/browser/api/bluetooth/bluetooth_private_api.cc#newcode329 extensions/browser/api/bluetooth/bluetooth_private_api.cc:329: SetError(kDisconnectError); [Moving over to the API implementation.] On 2014/12/20 ...
6 years ago (2014-12-20 01:48:56 UTC) #12
armansito
On 2014/12/20 01:43:38, armansito wrote: > https://codereview.chromium.org/819713002/diff/20001/chrome/test/data/extensions/api_test/bluetooth_private/disconnect/test.js > File chrome/test/data/extensions/api_test/bluetooth_private/disconnect/test.js > (right): > > https://codereview.chromium.org/819713002/diff/20001/chrome/test/data/extensions/api_test/bluetooth_private/disconnect/test.js#newcode7 ...
6 years ago (2014-12-20 01:49:35 UTC) #13
armansito
On 2014/12/20 01:48:56, Jeffrey Yasskin wrote: > https://codereview.chromium.org/819713002/diff/20001/extensions/browser/api/bluetooth/bluetooth_private_api.cc > File extensions/browser/api/bluetooth/bluetooth_private_api.cc (right): > > https://codereview.chromium.org/819713002/diff/20001/extensions/browser/api/bluetooth/bluetooth_private_api.cc#newcode329 ...
6 years ago (2014-12-20 01:53:18 UTC) #14
Jeffrey Yasskin
On 2014/12/20 01:53:18, armansito wrote: > On 2014/12/20 01:48:56, Jeffrey Yasskin wrote: > > > ...
6 years ago (2014-12-20 02:03:29 UTC) #15
armansito
On 2014/12/20 02:03:29, Jeffrey Yasskin wrote: > On 2014/12/20 01:53:18, armansito wrote: > > On ...
6 years ago (2014-12-20 02:12:31 UTC) #16
Jeffrey Yasskin
On 2014/12/20 02:12:31, armansito wrote: > On 2014/12/20 02:03:29, Jeffrey Yasskin wrote: > > On ...
6 years ago (2014-12-20 02:50:51 UTC) #17
armansito
On 2014/12/20 02:50:51, Jeffrey Yasskin wrote: > On 2014/12/20 02:12:31, armansito wrote: > > On ...
6 years ago (2014-12-20 02:58:10 UTC) #18
armansito
On 2014/12/20 02:58:10, armansito wrote: > On 2014/12/20 02:50:51, Jeffrey Yasskin wrote: > > On ...
5 years, 11 months ago (2015-01-06 19:08:30 UTC) #19
Jeffrey Yasskin
lgtm, sorry for the delay. https://codereview.chromium.org/819713002/diff/40001/extensions/browser/api/bluetooth/bluetooth_private_api.cc File extensions/browser/api/bluetooth/bluetooth_private_api.cc (right): https://codereview.chromium.org/819713002/diff/40001/extensions/browser/api/bluetooth/bluetooth_private_api.cc#newcode334 extensions/browser/api/bluetooth/bluetooth_private_api.cc:334: // Despite the failure, ...
5 years, 11 months ago (2015-01-06 19:22:32 UTC) #20
armansito
https://codereview.chromium.org/819713002/diff/40001/extensions/browser/api/bluetooth/bluetooth_private_api.cc File extensions/browser/api/bluetooth/bluetooth_private_api.cc (right): https://codereview.chromium.org/819713002/diff/40001/extensions/browser/api/bluetooth/bluetooth_private_api.cc#newcode334 extensions/browser/api/bluetooth/bluetooth_private_api.cc:334: // Despite the failure, the device may have become ...
5 years, 11 months ago (2015-01-06 20:10:11 UTC) #21
Jeffrey Yasskin
lgtm https://codereview.chromium.org/819713002/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/819713002/diff/40001/tools/metrics/histograms/histograms.xml#newcode46121 tools/metrics/histograms/histograms.xml:46121: + <int value="767" label="DELETED_SYNCEDNOTIFICATIONSPRIVATE_GETINITIALDATA"/> On 2015/01/06 20:10:11, armansito ...
5 years, 11 months ago (2015-01-06 20:15:46 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/819713002/60001
5 years, 11 months ago (2015-01-06 20:40:53 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 11 months ago (2015-01-06 21:59:14 UTC) #25
commit-bot: I haz the power
5 years, 11 months ago (2015-01-06 22:00:52 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/373214a5345dd65ca441dcbcca4aa9eecf276a82
Cr-Commit-Position: refs/heads/master@{#310154}

Powered by Google App Engine
This is Rietveld 408576698