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

Issue 145663004: Replace "bluetooth" permission with manifest property. (Closed)

Created:
6 years, 11 months ago by rpaquay
Modified:
6 years, 10 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Replace "bluetooth" permission with manifest property. BUG=336824 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250599

Patch Set 1 #

Total comments: 28

Patch Set 2 : Address code review feedback. #

Patch Set 3 : Code review feedback, unit tests. #

Patch Set 4 : Rebasing. #

Patch Set 5 : Rebasing + git cl format. #

Patch Set 6 : Remove unused function. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+472 lines, -344 lines) Patch
M chrome/browser/extensions/api/bluetooth/bluetooth_api.cc View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/common/extensions/api/_api_features.json View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/api/_manifest_features.json View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 1 chunk +0 lines, -8 lines 0 comments Download
A chrome/common/extensions/api/bluetooth/bluetooth_manifest_data.h View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/bluetooth/bluetooth_manifest_data.cc View 1 2 3 4 1 chunk +53 lines, -0 lines 0 comments Download
A + chrome/common/extensions/api/bluetooth/bluetooth_manifest_handler.h View 1 2 3 4 2 chunks +9 lines, -9 lines 0 comments Download
A chrome/common/extensions/api/bluetooth/bluetooth_manifest_handler.cc View 1 1 chunk +47 lines, -0 lines 0 comments Download
A + chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.h View 1 2 3 4 2 chunks +23 lines, -27 lines 0 comments Download
A chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc View 1 2 3 4 5 1 chunk +222 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/manifest_types.json View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/sockets/sockets_manifest_permission.cc View 1 2 3 4 5 chunks +9 lines, -18 lines 0 comments Download
M chrome/common/extensions/chrome_manifest_handlers.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_messages.h View 1 2 3 4 2 chunks +0 lines, -5 lines 0 comments Download
D chrome/common/extensions/permissions/bluetooth_permission.h View 1 2 3 1 chunk +0 lines, -44 lines 0 comments Download
D chrome/common/extensions/permissions/bluetooth_permission.cc View 1 2 3 1 chunk +0 lines, -66 lines 0 comments Download
D chrome/common/extensions/permissions/bluetooth_permission_data.h View 1 chunk +0 lines, -54 lines 0 comments Download
D chrome/common/extensions/permissions/bluetooth_permission_data.cc View 1 chunk +0 lines, -73 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 2 3 4 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/activity_log_app/manifest.json View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth/discovery_callback/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth/discovery_in_progress/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth/get_devices/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth/get_devices_error/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth/get_profiles/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth/on_adapter_state_changed/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth/on_connection/manifest.json View 1 chunk +1 line, -5 lines 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth/profiles/manifest.json View 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/test/ext_auto/auto_provider/manifest.json View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M extensions/common/manifest_constants.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/manifest_constants.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/permissions/api_permission.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 32 (0 generated)
rpaquay
This CL should remove all traces of the "bluetooth" and "bluetoohDevices" permissions. Instead, we now ...
6 years, 11 months ago (2014-01-23 19:12:35 UTC) #1
not at google - send to devlin
yay! https://codereview.chromium.org/145663004/diff/1/chrome/common/extensions/api/bluetooth/bluetooth_manifest_data.cc File chrome/common/extensions/api/bluetooth/bluetooth_manifest_data.cc (right): https://codereview.chromium.org/145663004/diff/1/chrome/common/extensions/api/bluetooth/bluetooth_manifest_data.cc#newcode35 chrome/common/extensions/api/bluetooth/bluetooth_manifest_data.cc:35: return false; just return data && data->permission()->CheckRequest(extension, request); ...
6 years, 11 months ago (2014-01-23 20:29:12 UTC) #2
meacer
https://codereview.chromium.org/145663004/diff/1/chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc File chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc (right): https://codereview.chromium.org/145663004/diff/1/chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc#newcode134 chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc:134: } Let's be consistent with the USB API. It ...
6 years, 11 months ago (2014-01-23 22:25:14 UTC) #3
rpaquay
https://codereview.chromium.org/145663004/diff/1/chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc File chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc (right): https://codereview.chromium.org/145663004/diff/1/chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc#newcode134 chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc:134: } On 2014/01/23 22:25:14, Mustafa Emre Acer wrote: > ...
6 years, 11 months ago (2014-01-24 00:05:38 UTC) #4
rpaquay
ptal: addresses all code review feedback (except for the permission messages question). https://codereview.chromium.org/145663004/diff/1/chrome/common/extensions/api/bluetooth/bluetooth_manifest_data.cc File chrome/common/extensions/api/bluetooth/bluetooth_manifest_data.cc ...
6 years, 11 months ago (2014-01-24 16:58:23 UTC) #5
keybuk
On 2014/01/24 00:05:38, rpaquay wrote: > https://codereview.chromium.org/145663004/diff/1/chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc > File chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc > (right): > > https://codereview.chromium.org/145663004/diff/1/chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc#newcode134 ...
6 years, 11 months ago (2014-01-24 20:06:22 UTC) #6
keybuk
by "per-profile" I also mean that they're install time permissions, not runtime
6 years, 11 months ago (2014-01-24 20:06:48 UTC) #7
not at google - send to devlin
What do you mean that the user is "already an active participant in pairing a ...
6 years, 11 months ago (2014-01-24 21:41:16 UTC) #8
not at google - send to devlin
https://codereview.chromium.org/145663004/diff/1/chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc File chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc (right): https://codereview.chromium.org/145663004/diff/1/chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc#newcode127 chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc:127: IDS_EXTENSION_PROMPT_WARNING_BLUETOOTH))); Ok if not for scanning what is this ...
6 years, 11 months ago (2014-01-24 21:59:38 UTC) #9
meacer
https://codereview.chromium.org/145663004/diff/1/chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc File chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc (right): https://codereview.chromium.org/145663004/diff/1/chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc#newcode131 chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc:131: PermissionMessage::kBluetoothDevices, Corresponding permission in USB API is singular: kUsbDevice. ...
6 years, 11 months ago (2014-01-24 22:22:19 UTC) #10
not at google - send to devlin
On 2014/01/24 22:22:19, Mustafa Emre Acer wrote: > https://codereview.chromium.org/145663004/diff/1/chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc > File chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc > (right): > ...
6 years, 11 months ago (2014-01-24 22:30:02 UTC) #11
rpaquay
PTAL. I opened a http://crbug/338036 to track the permission messages issue. https://codereview.chromium.org/145663004/diff/1/chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc File chrome/common/extensions/api/bluetooth/bluetooth_manifest_permission.cc (right): ...
6 years, 11 months ago (2014-01-25 00:48:50 UTC) #12
not at google - send to devlin
lgtm from extensions (I guess you'll need a base owner now)
6 years, 10 months ago (2014-01-27 19:47:59 UTC) #13
meacer
LGTM with the "bluetoothDevices" vs "bluetoothDevice" nit.
6 years, 10 months ago (2014-01-27 20:37:55 UTC) #14
rpaquay
willchan@chromium.org: Please review changes in base/
6 years, 10 months ago (2014-01-28 00:27:33 UTC) #15
willchan no longer on Chromium
+jyasskin in case he has comments on the STL stuff LGTM
6 years, 10 months ago (2014-01-28 21:46:05 UTC) #16
willchan no longer on Chromium
Actually, do you mind splitting it out into a separate changelist? TBR to me.
6 years, 10 months ago (2014-01-28 21:47:45 UTC) #17
rpaquay
On 2014/01/28 21:47:45, willchan wrote: > Actually, do you mind splitting it out into a ...
6 years, 10 months ago (2014-01-28 21:57:10 UTC) #18
Jeffrey Yasskin
STL stuff LGTM
6 years, 10 months ago (2014-01-28 22:15:56 UTC) #19
rpaquay
FYI: CL with std_util only: https://codereview.chromium.org/148183012/
6 years, 10 months ago (2014-01-28 23:29:33 UTC) #20
rpaquay
zelidrag@chromium.org: Please review changes in chrome/test/ext_auto/auto_provider/manifest.json cdn@chromium.org: Please review changes in chrome/common/extensions/extension_messages.h
6 years, 10 months ago (2014-01-29 19:19:52 UTC) #21
zel
LGTM for chrome/test/ext_auto part
6 years, 10 months ago (2014-01-29 19:28:40 UTC) #22
Cris Neckar
On 2014/01/29 19:28:40, zel wrote: > LGTM > > for chrome/test/ext_auto part IPC changes LGTM
6 years, 10 months ago (2014-02-04 19:54:50 UTC) #23
rpaquay
The CQ bit was checked by rpaquay@chromium.org
6 years, 10 months ago (2014-02-07 16:31:42 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/145663004/470001
6 years, 10 months ago (2014-02-07 16:33:07 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-07 16:57:25 UTC) #26
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=223444
6 years, 10 months ago (2014-02-07 16:57:26 UTC) #27
rpaquay
The CQ bit was checked by rpaquay@chromium.org
6 years, 10 months ago (2014-02-11 21:17:08 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/145663004/760001
6 years, 10 months ago (2014-02-11 21:17:41 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/145663004/760001
6 years, 10 months ago (2014-02-11 21:34:11 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/145663004/760001
6 years, 10 months ago (2014-02-11 22:11:50 UTC) #31
commit-bot: I haz the power
6 years, 10 months ago (2014-02-12 01:40:21 UTC) #32
Message was sent while issue was closed.
Change committed as 250599

Powered by Google App Engine
This is Rietveld 408576698