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

Issue 188473002: device/bluetooth: Remove BluetoothAdapter::Start|StopDiscovering. (Closed)

Created:
6 years, 9 months ago by armansito
Modified:
6 years, 9 months ago
Reviewers:
keybuk
CC:
chromium-reviews
Visibility:
Public.

Description

device/bluetooth: Remove BluetoothAdapter::Start|StopDiscovering. This CL removes all remaining references to the deprecated device::BluetoothAdapter::StartDiscovering and device::BluetoothAdapter::StopDiscovering methods. This CL also does a minor refactor, so that BluetoothAdapter now only tracks active discovery sessions. BUG=346985 TEST=Compile chrome; run device_unittests. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255809

Patch Set 1 #

Patch Set 2 : Fixed potential invalid access in BluetoothDiscoverySession destructor. #

Total comments: 4

Patch Set 3 : Changed BluetoothAdapter to only track active sessions. #

Total comments: 2

Patch Set 4 : Addressed keybuk@'s comment, added assertion. #

Patch Set 5 : Rebased. #

Patch Set 6 : Fixed clang error. Refactored calls to Start|StopDiscovering in bluetooth_adapter_win_unittest.cc #

Patch Set 7 : Fixed BluetoothAdapterWinTest compile errors. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -250 lines) Patch
M device/bluetooth/bluetooth_adapter.h View 1 2 3 chunks +23 lines, -30 lines 0 comments Download
M device/bluetooth/bluetooth_adapter.cc View 1 2 3 2 chunks +9 lines, -13 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_unittest.cc View 1 2 3 4 5 2 chunks +7 lines, -12 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_win_unittest.cc View 1 2 3 4 5 6 18 chunks +42 lines, -30 lines 0 comments Download
M device/bluetooth/bluetooth_chromeos_unittest.cc View 1 2 3 4 5 40 chunks +210 lines, -157 lines 0 comments Download
M device/bluetooth/bluetooth_discovery_session.cc View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_adapter.h View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
armansito
6 years, 9 months ago (2014-03-06 11:13:45 UTC) #1
keybuk
https://codereview.chromium.org/188473002/diff/20001/device/bluetooth/bluetooth_adapter.cc File device/bluetooth/bluetooth_adapter.cc (right): https://codereview.chromium.org/188473002/diff/20001/device/bluetooth/bluetooth_adapter.cc#newcode119 device/bluetooth/bluetooth_adapter.cc:119: discovery_sessions_.clear(); This seems to contradict the comment in the ...
6 years, 9 months ago (2014-03-06 18:42:35 UTC) #2
armansito
https://codereview.chromium.org/188473002/diff/20001/device/bluetooth/bluetooth_adapter.cc File device/bluetooth/bluetooth_adapter.cc (right): https://codereview.chromium.org/188473002/diff/20001/device/bluetooth/bluetooth_adapter.cc#newcode119 device/bluetooth/bluetooth_adapter.cc:119: discovery_sessions_.clear(); On 2014/03/06 18:42:36, keybuk wrote: > This seems ...
6 years, 9 months ago (2014-03-06 23:55:48 UTC) #3
keybuk
https://codereview.chromium.org/188473002/diff/20001/device/bluetooth/bluetooth_adapter.cc File device/bluetooth/bluetooth_adapter.cc (right): https://codereview.chromium.org/188473002/diff/20001/device/bluetooth/bluetooth_adapter.cc#newcode119 device/bluetooth/bluetooth_adapter.cc:119: discovery_sessions_.clear(); because we're dealing with object lifetime, I think ...
6 years, 9 months ago (2014-03-06 23:57:39 UTC) #4
armansito
https://codereview.chromium.org/188473002/diff/20001/device/bluetooth/bluetooth_adapter.cc File device/bluetooth/bluetooth_adapter.cc (right): https://codereview.chromium.org/188473002/diff/20001/device/bluetooth/bluetooth_adapter.cc#newcode119 device/bluetooth/bluetooth_adapter.cc:119: discovery_sessions_.clear(); On 2014/03/06 23:57:39, keybuk wrote: > because we're ...
6 years, 9 months ago (2014-03-07 19:22:16 UTC) #5
keybuk
https://codereview.chromium.org/188473002/diff/40001/device/bluetooth/bluetooth_adapter.cc File device/bluetooth/bluetooth_adapter.cc (right): https://codereview.chromium.org/188473002/diff/40001/device/bluetooth/bluetooth_adapter.cc#newcode118 device/bluetooth/bluetooth_adapter.cc:118: discovery_sessions_.clear(); if the discovery session is marking itself as ...
6 years, 9 months ago (2014-03-07 19:34:36 UTC) #6
armansito
https://codereview.chromium.org/188473002/diff/40001/device/bluetooth/bluetooth_adapter.cc File device/bluetooth/bluetooth_adapter.cc (right): https://codereview.chromium.org/188473002/diff/40001/device/bluetooth/bluetooth_adapter.cc#newcode118 device/bluetooth/bluetooth_adapter.cc:118: discovery_sessions_.clear(); On 2014/03/07 19:34:36, keybuk wrote: > if the ...
6 years, 9 months ago (2014-03-07 19:56:52 UTC) #7
keybuk
lgtm
6 years, 9 months ago (2014-03-07 20:01:59 UTC) #8
armansito
The CQ bit was checked by armansito@chromium.org
6 years, 9 months ago (2014-03-08 04:03:49 UTC) #9
armansito
The CQ bit was unchecked by armansito@chromium.org
6 years, 9 months ago (2014-03-08 06:49:12 UTC) #10
armansito
The CQ bit was checked by armansito@chromium.org
6 years, 9 months ago (2014-03-09 00:17:03 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/armansito@chromium.org/188473002/120001
6 years, 9 months ago (2014-03-09 00:17:08 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-09 01:18:11 UTC) #13
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) telemetry_perf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=234657
6 years, 9 months ago (2014-03-09 01:18:11 UTC) #14
armansito
The CQ bit was checked by armansito@chromium.org
6 years, 9 months ago (2014-03-09 02:16:19 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/armansito@chromium.org/188473002/120001
6 years, 9 months ago (2014-03-09 02:16:36 UTC) #16
commit-bot: I haz the power
6 years, 9 months ago (2014-03-09 02:43:26 UTC) #17
Message was sent while issue was closed.
Change committed as 255809

Powered by Google App Engine
This is Rietveld 408576698