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

Issue 1848663002: bluetooth: Remove indicator only when there are no more devices connected (Closed)

Created:
4 years, 8 months ago by ortuno
Modified:
4 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, ortuno+watch_chromium.org, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@my-origin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Remove indicator only when there are no more devices connected Before, if multiple devices were connected and we disconnected from one we would remove the indicator even though a device could still be connected. BUG=599281 Committed: https://crrev.com/df4d79807643681b9bff15aa6dd7558230aed583 Cr-Commit-Position: refs/heads/master@{#385942}

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : ref count connections #

Patch Set 4 : Ref count connections #

Total comments: 4

Patch Set 5 : Fix #

Patch Set 6 : Address jyasskin's comments #

Total comments: 8

Patch Set 7 : Address jyasskin's comments #

Total comments: 6

Patch Set 8 : Address nick's comments #

Patch Set 9 : Address nick's comments #

Total comments: 3

Patch Set 10 : Fix format" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -44 lines) Patch
M chrome/browser/ui/tabs/tab_utils.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/bluetooth/bluetooth_dispatcher_host.h View 1 2 3 4 5 6 7 2 chunks +25 lines, -3 lines 0 comments Download
M content/browser/bluetooth/bluetooth_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 7 chunks +83 lines, -27 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 2 chunks +18 lines, -7 lines 0 comments Download
M content/public/browser/web_contents.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 29 (9 generated)
ortuno
jyasskin: PTAL
4 years, 8 months ago (2016-03-30 23:21:12 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1848663002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1848663002/20001
4 years, 8 months ago (2016-03-30 23:21:37 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-03-31 01:03:00 UTC) #6
Jeffrey Yasskin
https://codereview.chromium.org/1848663002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1848663002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode732 content/browser/bluetooth/bluetooth_dispatcher_host.cc:732: if (!device_id_to_connection_map_.empty()) { Currently, this is going to keep ...
4 years, 8 months ago (2016-03-31 16:18:43 UTC) #7
ortuno
https://codereview.chromium.org/1848663002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1848663002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode732 content/browser/bluetooth/bluetooth_dispatcher_host.cc:732: if (!device_id_to_connection_map_.empty()) { On 2016/03/31 at 16:18:43, Jeffrey Yasskin ...
4 years, 8 months ago (2016-03-31 17:53:25 UTC) #8
Jeffrey Yasskin
https://codereview.chromium.org/1848663002/diff/60001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1848663002/diff/60001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode738 content/browser/bluetooth/bluetooth_dispatcher_host.cc:738: web_contents->DecrementBluetoothConnectedDeviceCount(); Are we guaranteed that if a process crashes, ...
4 years, 8 months ago (2016-03-31 18:00:26 UTC) #9
ortuno
https://codereview.chromium.org/1848663002/diff/60001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1848663002/diff/60001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode738 content/browser/bluetooth/bluetooth_dispatcher_host.cc:738: web_contents->DecrementBluetoothConnectedDeviceCount(); On 2016/03/31 at 18:00:25, Jeffrey Yasskin wrote: > ...
4 years, 8 months ago (2016-04-04 21:20:56 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1848663002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1848663002/100001
4 years, 8 months ago (2016-04-04 21:22:44 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-04 22:47:57 UTC) #14
Jeffrey Yasskin
lgtm https://codereview.chromium.org/1848663002/diff/100001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1848663002/diff/100001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode720 content/browser/bluetooth/bluetooth_dispatcher_host.cc:720: // Indicate there is one less connected device. ...
4 years, 8 months ago (2016-04-06 23:05:13 UTC) #15
ortuno
Thanks! https://codereview.chromium.org/1848663002/diff/100001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1848663002/diff/100001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode720 content/browser/bluetooth/bluetooth_dispatcher_host.cc:720: // Indicate there is one less connected device. ...
4 years, 8 months ago (2016-04-07 15:09:21 UTC) #16
ortuno
miu@: PTAL at tab_utils nick@: PTAL at web_contents
4 years, 8 months ago (2016-04-07 15:10:05 UTC) #18
ncarter (slow)
https://codereview.chromium.org/1848663002/diff/120001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1848663002/diff/120001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode349 content/browser/bluetooth/bluetooth_dispatcher_host.cc:349: device_id_to_connection_map_.clear(); Do we need to decrement here? https://codereview.chromium.org/1848663002/diff/120001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode1418 content/browser/bluetooth/bluetooth_dispatcher_host.cc:1418: ...
4 years, 8 months ago (2016-04-07 19:48:54 UTC) #19
miu
chrome/browser/ui/tabs/tab_utils.cc lgtm
4 years, 8 months ago (2016-04-07 20:05:45 UTC) #20
ortuno
Thanks for the thorough review! https://codereview.chromium.org/1848663002/diff/120001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1848663002/diff/120001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode349 content/browser/bluetooth/bluetooth_dispatcher_host.cc:349: device_id_to_connection_map_.clear(); On 2016/04/07 at ...
4 years, 8 months ago (2016-04-07 22:34:52 UTC) #21
ncarter (slow)
lgtm https://codereview.chromium.org/1848663002/diff/160001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1848663002/diff/160001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode459 content/browser/bluetooth/bluetooth_dispatcher_host.cc:459: : render_process_id_(render_process_id) {} Add a blank line here, ...
4 years, 8 months ago (2016-04-07 22:44:53 UTC) #22
ortuno
https://codereview.chromium.org/1848663002/diff/160001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1848663002/diff/160001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode459 content/browser/bluetooth/bluetooth_dispatcher_host.cc:459: : render_process_id_(render_process_id) {} On 2016/04/07 at 22:44:53, ncarter wrote: ...
4 years, 8 months ago (2016-04-07 22:49:03 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1848663002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1848663002/180001
4 years, 8 months ago (2016-04-07 22:49:39 UTC) #26
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 8 months ago (2016-04-08 02:33:49 UTC) #27
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 02:35:23 UTC) #29
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/df4d79807643681b9bff15aa6dd7558230aed583
Cr-Commit-Position: refs/heads/master@{#385942}

Powered by Google App Engine
This is Rietveld 408576698