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

Issue 183853010: Bluetooth: notify user of incoming pairing requests (Closed)

Created:
6 years, 9 months ago by keybuk
Modified:
6 years, 9 months ago
CC:
chromium-reviews, kalyank, stevenjb+watch_chromium.org, sadrul, oshima+watch_chromium.org, ben+ash_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Bluetooth: notify user of incoming pairing requests Implement a low-priority pairing delegate in the form of an Aura Status Tray Notification Controller that displays a rich notification when an incoming pairing request is received and allows the user to accept or reject it when appropriate. BUG=345535 TESTS=chromeos=1 on Linux presents fake pairing requests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=254697

Patch Set 1 #

Total comments: 6

Patch Set 2 : fit nits, add unit tests dep #

Total comments: 8

Patch Set 3 : fix nit #

Patch Set 4 : add bluetooth as ash_shell dependency on chromeos #

Total comments: 12

Patch Set 5 : fix sky's review comments #

Patch Set 6 : add dependency to hopefully fix linux_chromeos build failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+557 lines, -19 lines) Patch
M ash/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M ash/ash.gyp View 1 2 3 4 5 4 chunks +9 lines, -0 lines 0 comments Download
M ash/ash_chromeos_strings.grdp View 1 chunk +18 lines, -0 lines 0 comments Download
M ash/shell.h View 2 chunks +3 lines, -0 lines 0 comments Download
M ash/shell.cc View 2 chunks +3 lines, -0 lines 0 comments Download
A ash/system/chromeos/bluetooth/bluetooth_notification_controller.h View 1 chunk +89 lines, -0 lines 0 comments Download
A ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc View 1 2 3 4 1 chunk +301 lines, -0 lines 0 comments Download
M ash/system/system_notifier.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M ash/system/system_notifier.cc View 1 2 3 4 3 chunks +3 lines, -1 line 0 comments Download
M chromeos/dbus/fake_bluetooth_adapter_client.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_device_client.h View 3 chunks +6 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_device_client.cc View 1 4 chunks +85 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_chromeos.cc View 1 chunk +0 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_pairing_chromeos.h View 1 chunk +4 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_pairing_chromeos.cc View 1 8 chunks +28 lines, -16 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
keybuk
6 years, 9 months ago (2014-02-28 21:06:42 UTC) #1
Daniel Erat
(i won't be able to review this for a few days, so you may want ...
6 years, 9 months ago (2014-02-28 21:18:01 UTC) #2
stevenjb
lgtm https://codereview.chromium.org/183853010/diff/1/chromeos/dbus/fake_bluetooth_adapter_client.cc File chromeos/dbus/fake_bluetooth_adapter_client.cc (right): https://codereview.chromium.org/183853010/diff/1/chromeos/dbus/fake_bluetooth_adapter_client.cc#newcode183 chromeos/dbus/fake_bluetooth_adapter_client.cc:183: dbus::ObjectPath(kAdapterPath)); nit: {} https://codereview.chromium.org/183853010/diff/1/chromeos/dbus/fake_bluetooth_device_client.cc File chromeos/dbus/fake_bluetooth_device_client.cc (right): https://codereview.chromium.org/183853010/diff/1/chromeos/dbus/fake_bluetooth_device_client.cc#newcode67 ...
6 years, 9 months ago (2014-02-28 21:40:53 UTC) #3
keybuk
https://codereview.chromium.org/183853010/diff/1/chromeos/dbus/fake_bluetooth_adapter_client.cc File chromeos/dbus/fake_bluetooth_adapter_client.cc (right): https://codereview.chromium.org/183853010/diff/1/chromeos/dbus/fake_bluetooth_adapter_client.cc#newcode183 chromeos/dbus/fake_bluetooth_adapter_client.cc:183: dbus::ObjectPath(kAdapterPath)); On 2014/02/28 21:40:54, stevenjb wrote: > nit: {} ...
6 years, 9 months ago (2014-02-28 22:28:53 UTC) #4
armansito
https://codereview.chromium.org/183853010/diff/20001/chromeos/dbus/fake_bluetooth_adapter_client.cc File chromeos/dbus/fake_bluetooth_adapter_client.cc (right): https://codereview.chromium.org/183853010/diff/20001/chromeos/dbus/fake_bluetooth_adapter_client.cc#newcode183 chromeos/dbus/fake_bluetooth_adapter_client.cc:183: dbus::ObjectPath(kAdapterPath)); Should we start the simulation only if |properties_->pairable| ...
6 years, 9 months ago (2014-02-28 23:20:05 UTC) #5
keybuk
https://codereview.chromium.org/183853010/diff/20001/chromeos/dbus/fake_bluetooth_adapter_client.cc File chromeos/dbus/fake_bluetooth_adapter_client.cc (right): https://codereview.chromium.org/183853010/diff/20001/chromeos/dbus/fake_bluetooth_adapter_client.cc#newcode183 chromeos/dbus/fake_bluetooth_adapter_client.cc:183: dbus::ObjectPath(kAdapterPath)); Since there's no way to set those in ...
6 years, 9 months ago (2014-02-28 23:21:27 UTC) #6
jennyz
What if the pairing does not succeed, like timeout, user error wrong pairing code, how ...
6 years, 9 months ago (2014-02-28 23:24:36 UTC) #7
keybuk
https://codereview.chromium.org/183853010/diff/20001/ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc File ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc (right): https://codereview.chromium.org/183853010/diff/20001/ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc#newcode160 ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc:160: paired_devices_.insert(device->GetAddress()); On 2014/02/28 23:24:36, jennyz wrote: > Is the ...
6 years, 9 months ago (2014-02-28 23:28:18 UTC) #8
jennyz
https://codereview.chromium.org/183853010/diff/20001/ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc File ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc (right): https://codereview.chromium.org/183853010/diff/20001/ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc#newcode160 ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc:160: paired_devices_.insert(device->GetAddress()); On 2014/02/28 23:28:18, keybuk wrote: > On 2014/02/28 ...
6 years, 9 months ago (2014-02-28 23:31:19 UTC) #9
armansito
lgtm https://codereview.chromium.org/183853010/diff/20001/chromeos/dbus/fake_bluetooth_adapter_client.cc File chromeos/dbus/fake_bluetooth_adapter_client.cc (right): https://codereview.chromium.org/183853010/diff/20001/chromeos/dbus/fake_bluetooth_adapter_client.cc#newcode183 chromeos/dbus/fake_bluetooth_adapter_client.cc:183: dbus::ObjectPath(kAdapterPath)); On 2014/02/28 23:21:28, keybuk wrote: > Since ...
6 years, 9 months ago (2014-02-28 23:46:03 UTC) #10
jennyz
lgtm
6 years, 9 months ago (2014-02-28 23:51:32 UTC) #11
keybuk
The CQ bit was checked by keybuk@chromium.org
6 years, 9 months ago (2014-03-01 00:00:29 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keybuk@chromium.org/183853010/60001
6 years, 9 months ago (2014-03-01 00:02:26 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-01 00:25:07 UTC) #14
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=52872
6 years, 9 months ago (2014-03-01 00:25:07 UTC) #15
keybuk
sky: still need LGTM for ash/
6 years, 9 months ago (2014-03-03 19:42:11 UTC) #16
sky
https://codereview.chromium.org/183853010/diff/60001/ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc File ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc (right): https://codereview.chromium.org/183853010/diff/60001/ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc#newcode66 ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc:66: std::string address_; nit: const https://codereview.chromium.org/183853010/diff/60001/ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc#newcode113 ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc:113: case 0: This ...
6 years, 9 months ago (2014-03-03 22:56:21 UTC) #17
keybuk
https://codereview.chromium.org/183853010/diff/60001/ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc File ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc (right): https://codereview.chromium.org/183853010/diff/60001/ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc#newcode66 ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc:66: std::string address_; On 2014/03/03 22:56:22, sky wrote: > nit: ...
6 years, 9 months ago (2014-03-03 23:40:38 UTC) #18
sky
LGTM
6 years, 9 months ago (2014-03-03 23:46:34 UTC) #19
keybuk
The CQ bit was checked by keybuk@chromium.org
6 years, 9 months ago (2014-03-03 23:47:29 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keybuk@chromium.org/183853010/80001
6 years, 9 months ago (2014-03-03 23:49:32 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-04 01:12:39 UTC) #22
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=273557
6 years, 9 months ago (2014-03-04 01:12:40 UTC) #23
keybuk
The CQ bit was checked by keybuk@chromium.org
6 years, 9 months ago (2014-03-04 01:47:43 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keybuk@chromium.org/183853010/100001
6 years, 9 months ago (2014-03-04 01:48:22 UTC) #25
keybuk
The CQ bit was unchecked by keybuk@chromium.org
6 years, 9 months ago (2014-03-04 06:19:58 UTC) #26
keybuk
The CQ bit was checked by keybuk@chromium.org
6 years, 9 months ago (2014-03-04 06:20:07 UTC) #27
commit-bot: I haz the power
6 years, 9 months ago (2014-03-04 06:59:53 UTC) #28
Message was sent while issue was closed.
Change committed as 254697

Powered by Google App Engine
This is Rietveld 408576698