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

Issue 1841763002: Add a kill switch for all of Web Bluetooth. (Closed)

Created:
4 years, 8 months ago by Jeffrey Yasskin
Modified:
4 years, 8 months ago
CC:
asvitkine+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, jam, mlamouri+watch-permissions_chromium.org, ortuno+watch_chromium.org, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkcr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a kill switch for all of Web Bluetooth. This is temporary until we get Web Bluetooth behind PermissionContextBase, but that may block on getting some UI done, so I don't want to bet on it happening by M51. BUG=598059 Committed: https://crrev.com/c993ce8db282755a85b9671638ba24de0c5ca946 Cr-Commit-Position: refs/heads/master@{#384162}

Patch Set 1 #

Patch Set 2 : Add owners #

Total comments: 7

Patch Set 3 : Move navigating to a secure context into SetUpOnMainThread #

Patch Set 4 : Avoid exposing the "kill switch" concept to content/ #

Total comments: 9

Patch Set 5 : Sync and rename an enum value. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -30 lines) Patch
M chrome/browser/OWNERS View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 2 chunks +22 lines, -6 lines 0 comments Download
M chrome/browser/permissions/permission_context_base.h View 1 chunk +4 lines, -2 lines 0 comments Download
A chrome/browser/web_bluetooth_browsertest.cc View 1 2 1 chunk +79 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_dispatcher_host.cc View 1 2 3 4 2 chunks +27 lines, -9 lines 0 comments Download
M content/browser/bluetooth/bluetooth_metrics.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 1 chunk +9 lines, -3 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 34 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1841763002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1841763002/20001
4 years, 8 months ago (2016-03-29 17:39:55 UTC) #2
Jeffrey Yasskin
4 years, 8 months ago (2016-03-29 17:41:17 UTC) #4
ortuno
https://codereview.chromium.org/1841763002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1841763002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode1222 content/browser/bluetooth/bluetooth_dispatcher_host.cc:1222: switch (GetContentClient()->browser()->AllowWebBluetooth( Doing this so late in OnRequestDeviceImpl seems ...
4 years, 8 months ago (2016-03-29 17:48:47 UTC) #5
jam
https://codereview.chromium.org/1841763002/diff/20001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/1841763002/diff/20001/content/public/browser/content_browser_client.h#newcode424 content/public/browser/content_browser_client.h:424: BLOCK_KILL_SWITCH, can we keep the "kill switch" concept out ...
4 years, 8 months ago (2016-03-29 18:06:18 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1841763002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1841763002/60001
4 years, 8 months ago (2016-03-29 23:12:10 UTC) #8
Jeffrey Yasskin
https://codereview.chromium.org/1841763002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1841763002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode1222 content/browser/bluetooth/bluetooth_dispatcher_host.cc:1222: switch (GetContentClient()->browser()->AllowWebBluetooth( On 2016/03/29 17:48:46, ortuno wrote: > Doing ...
4 years, 8 months ago (2016-03-29 23:13:04 UTC) #9
jam
lgtm
4 years, 8 months ago (2016-03-30 00:20:58 UTC) #10
kcarattini
https://codereview.chromium.org/1841763002/diff/20001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/1841763002/diff/20001/content/public/browser/content_browser_client.h#newcode424 content/public/browser/content_browser_client.h:424: BLOCK_KILL_SWITCH, On 2016/03/29 23:13:04, Jeffrey Yasskin wrote: > On ...
4 years, 8 months ago (2016-03-30 00:45:59 UTC) #11
Jeffrey Yasskin
https://codereview.chromium.org/1841763002/diff/60001/chrome/browser/web_bluetooth_browsertest.cc File chrome/browser/web_bluetooth_browsertest.cc (right): https://codereview.chromium.org/1841763002/diff/60001/chrome/browser/web_bluetooth_browsertest.cc#newcode56 chrome/browser/web_bluetooth_browsertest.cc:56: // Turn on the global kill switch. On 2016/03/30 ...
4 years, 8 months ago (2016-03-30 01:19:51 UTC) #12
kcarattini
lgtm
4 years, 8 months ago (2016-03-30 01:23:12 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-03-30 01:27:02 UTC) #15
Alexei Svitkine (slow)
lgtm
4 years, 8 months ago (2016-03-30 15:28:17 UTC) #16
Alexei Svitkine (slow)
However, please don't use "Finch" in CL descriptions or code - since it's an internal ...
4 years, 8 months ago (2016-03-30 16:48:54 UTC) #17
Jeffrey Yasskin
On 2016/03/30 16:48:54, Alexei Svitkine wrote: > However, please don't use "Finch" in CL descriptions ...
4 years, 8 months ago (2016-03-30 18:42:37 UTC) #19
ortuno
https://codereview.chromium.org/1841763002/diff/60001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1841763002/diff/60001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode1400 content/browser/bluetooth/bluetooth_dispatcher_host.cc:1400: WebBluetoothError::ChooserNotShown_BrowserDeniedPermissionToScan)); I think you might have meant to change ...
4 years, 8 months ago (2016-03-30 19:19:46 UTC) #20
Jeffrey Yasskin
https://codereview.chromium.org/1841763002/diff/60001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1841763002/diff/60001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode1400 content/browser/bluetooth/bluetooth_dispatcher_host.cc:1400: WebBluetoothError::ChooserNotShown_BrowserDeniedPermissionToScan)); On 2016/03/30 19:19:46, ortuno wrote: > I think ...
4 years, 8 months ago (2016-03-30 19:31:24 UTC) #21
ortuno
https://codereview.chromium.org/1841763002/diff/60001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1841763002/diff/60001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode1400 content/browser/bluetooth/bluetooth_dispatcher_host.cc:1400: WebBluetoothError::ChooserNotShown_BrowserDeniedPermissionToScan)); On 2016/03/30 at 19:31:24, Jeffrey Yasskin wrote: > ...
4 years, 8 months ago (2016-03-30 19:41:51 UTC) #22
Jeffrey Yasskin
https://codereview.chromium.org/1841763002/diff/60001/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp File third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp (right): https://codereview.chromium.org/1841763002/diff/60001/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp#newcode53 third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp:53: MAP_ERROR(ChooserNotShown_BrowserDeniedPermissionToScan, NotFoundError, "User denied the browser permission to scan ...
4 years, 8 months ago (2016-03-30 23:11:40 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1841763002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1841763002/80001
4 years, 8 months ago (2016-03-30 23:11:51 UTC) #25
ortuno
lgtm
4 years, 8 months ago (2016-03-30 23:12:15 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1841763002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1841763002/80001
4 years, 8 months ago (2016-03-30 23:27:59 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-03-31 00:38:46 UTC) #32
commit-bot: I haz the power
4 years, 8 months ago (2016-03-31 00:41:19 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c993ce8db282755a85b9671638ba24de0c5ca946
Cr-Commit-Position: refs/heads/master@{#384162}

Powered by Google App Engine
This is Rietveld 408576698