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

Issue 12929003: Implemented BluetoothAdapterMac::AddDevices(). (Closed)

Created:
7 years, 9 months ago by youngki
Modified:
7 years, 9 months ago
CC:
chromium-reviews, sail+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Implemented BluetoothAdapterMac::AddDevices() and BluetoothAdapterMac::RemoveUnpairedDevices(). This method will update the paired devices and make this information accessible from Bluetooth API. BUG=135472 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190560

Patch Set 1 #

Total comments: 30

Patch Set 2 : DeviceRemoved obsolete in OSX. #

Total comments: 12

Patch Set 3 : used pairedDevices instead of recentDevices #

Total comments: 6

Patch Set 4 : Changed TestIOBluetoothDevice properties. #

Patch Set 5 : Replicate specific 10.7 SDK declarations. #

Patch Set 6 : Added Bluetooth.h. #

Patch Set 7 : Changed the format type to unsigned long. #

Total comments: 10

Patch Set 8 : Remove SetVisible() logic in BluetoothDeviceMac. #

Patch Set 9 : Reverted BluetoothDevice interface. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+344 lines, -17 lines) Patch
M device/bluetooth/bluetooth_adapter.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac.h View 1 2 3 2 chunks +16 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac.mm View 1 2 3 4 5 6 7 3 chunks +62 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac_unittest.mm View 1 2 3 2 chunks +178 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_win.cc View 1 chunk +0 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_device_chromeos.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -7 lines 0 comments Download
M device/bluetooth/bluetooth_device_mac.h View 1 2 chunks +19 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_device_mac.mm View 1 2 3 4 5 6 7 8 2 chunks +51 lines, -3 lines 1 comment Download
M device/bluetooth/test/mock_bluetooth_device.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M device/device.gyp View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
youngki
Mark, could you review this CL for object-c language usage?
7 years, 9 months ago (2013-03-19 04:11:01 UTC) #1
Mark Mentovai
https://chromiumcodereview.appspot.com/12929003/diff/1/device/bluetooth/bluetooth_adapter_mac.h File device/bluetooth/bluetooth_adapter_mac.h (right): https://chromiumcodereview.appspot.com/12929003/diff/1/device/bluetooth/bluetooth_adapter_mac.h#newcode69 device/bluetooth/bluetooth_adapter_mac.h:69: // |DeviceChanged|, and |DeviceRemoved| observer calls. This comment should ...
7 years, 9 months ago (2013-03-19 16:04:35 UTC) #2
youngki
https://chromiumcodereview.appspot.com/12929003/diff/1/device/bluetooth/bluetooth_adapter_mac.h File device/bluetooth/bluetooth_adapter_mac.h (right): https://chromiumcodereview.appspot.com/12929003/diff/1/device/bluetooth/bluetooth_adapter_mac.h#newcode69 device/bluetooth/bluetooth_adapter_mac.h:69: // |DeviceChanged|, and |DeviceRemoved| observer calls. On 2013/03/19 16:04:35, ...
7 years, 9 months ago (2013-03-19 19:04:55 UTC) #3
Mark Mentovai
https://chromiumcodereview.appspot.com/12929003/diff/1/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://chromiumcodereview.appspot.com/12929003/diff/1/device/bluetooth/bluetooth_adapter_mac.mm#newcode174 device/bluetooth/bluetooth_adapter_mac.mm:174: // Remove devices that are no longer known by ...
7 years, 9 months ago (2013-03-19 19:14:20 UTC) #4
youngki
https://chromiumcodereview.appspot.com/12929003/diff/1/device/bluetooth/bluetooth_adapter_mac.mm File device/bluetooth/bluetooth_adapter_mac.mm (right): https://chromiumcodereview.appspot.com/12929003/diff/1/device/bluetooth/bluetooth_adapter_mac.mm#newcode174 device/bluetooth/bluetooth_adapter_mac.mm:174: // Remove devices that are no longer known by ...
7 years, 9 months ago (2013-03-20 18:48:26 UTC) #5
Mark Mentovai
https://chromiumcodereview.appspot.com/12929003/diff/9001/device/bluetooth/bluetooth_adapter_mac_unittest.mm File device/bluetooth/bluetooth_adapter_mac_unittest.mm (right): https://chromiumcodereview.appspot.com/12929003/diff/9001/device/bluetooth/bluetooth_adapter_mac_unittest.mm#newcode24 device/bluetooth/bluetooth_adapter_mac_unittest.mm:24: @property (copy) NSString* name; youngki wrote: > On 2013/03/19 ...
7 years, 9 months ago (2013-03-20 19:01:16 UTC) #6
youngki
https://chromiumcodereview.appspot.com/12929003/diff/9001/device/bluetooth/bluetooth_adapter_mac_unittest.mm File device/bluetooth/bluetooth_adapter_mac_unittest.mm (right): https://chromiumcodereview.appspot.com/12929003/diff/9001/device/bluetooth/bluetooth_adapter_mac_unittest.mm#newcode24 device/bluetooth/bluetooth_adapter_mac_unittest.mm:24: @property (copy) NSString* name; On 2013/03/20 19:01:16, Mark Mentovai ...
7 years, 9 months ago (2013-03-20 20:30:50 UTC) #7
Mark Mentovai
OK. It’s hard to tell how things fit together if you have ideas in mind ...
7 years, 9 months ago (2013-03-20 20:34:26 UTC) #8
youngki
Thanks for the review Mark. I will send out the other CL that uses AddDevices ...
7 years, 9 months ago (2013-03-20 20:40:29 UTC) #9
youngki
mac tests are failing because some methods are specific to OSX 10.7 SDK. So I ...
7 years, 9 months ago (2013-03-21 15:38:27 UTC) #10
keybuk
https://chromiumcodereview.appspot.com/12929003/diff/48001/device/bluetooth/bluetooth_device.cc File device/bluetooth/bluetooth_device.cc (right): https://chromiumcodereview.appspot.com/12929003/diff/48001/device/bluetooth/bluetooth_device.cc#newcode33 device/bluetooth/bluetooth_device.cc:33: connecting_(false) { What's the reason for adding these methods ...
7 years, 9 months ago (2013-03-21 18:03:34 UTC) #11
youngki
https://chromiumcodereview.appspot.com/12929003/diff/48001/device/bluetooth/bluetooth_device.cc File device/bluetooth/bluetooth_device.cc (right): https://chromiumcodereview.appspot.com/12929003/diff/48001/device/bluetooth/bluetooth_device.cc#newcode33 device/bluetooth/bluetooth_device.cc:33: connecting_(false) { On 2013/03/21 18:03:34, keybuk wrote: > What's ...
7 years, 9 months ago (2013-03-21 18:43:28 UTC) #12
keybuk
https://chromiumcodereview.appspot.com/12929003/diff/48001/device/bluetooth/bluetooth_device.cc File device/bluetooth/bluetooth_device.cc (right): https://chromiumcodereview.appspot.com/12929003/diff/48001/device/bluetooth/bluetooth_device.cc#newcode33 device/bluetooth/bluetooth_device.cc:33: connecting_(false) { On 2013/03/21 18:43:28, youngki wrote: > On ...
7 years, 9 months ago (2013-03-21 18:46:25 UTC) #13
youngki
https://chromiumcodereview.appspot.com/12929003/diff/48001/device/bluetooth/bluetooth_device.cc File device/bluetooth/bluetooth_device.cc (right): https://chromiumcodereview.appspot.com/12929003/diff/48001/device/bluetooth/bluetooth_device.cc#newcode33 device/bluetooth/bluetooth_device.cc:33: connecting_(false) { On 2013/03/21 18:46:25, keybuk wrote: > On ...
7 years, 9 months ago (2013-03-21 20:07:20 UTC) #14
youngki
ping
7 years, 9 months ago (2013-03-25 16:36:02 UTC) #15
keybuk
https://chromiumcodereview.appspot.com/12929003/diff/48001/device/bluetooth/bluetooth_device.cc File device/bluetooth/bluetooth_device.cc (right): https://chromiumcodereview.appspot.com/12929003/diff/48001/device/bluetooth/bluetooth_device.cc#newcode33 device/bluetooth/bluetooth_device.cc:33: connecting_(false) { It should probably just return std::string; and ...
7 years, 9 months ago (2013-03-25 16:49:47 UTC) #16
youngki
https://chromiumcodereview.appspot.com/12929003/diff/48001/device/bluetooth/bluetooth_device.cc File device/bluetooth/bluetooth_device.cc (right): https://chromiumcodereview.appspot.com/12929003/diff/48001/device/bluetooth/bluetooth_device.cc#newcode33 device/bluetooth/bluetooth_device.cc:33: connecting_(false) { On 2013/03/25 16:49:47, keybuk wrote: > It ...
7 years, 9 months ago (2013-03-25 17:52:03 UTC) #17
keybuk
Well you're changing the interface of BluetoothDevice here ;-) That was my point; I'm ok ...
7 years, 9 months ago (2013-03-25 17:55:52 UTC) #18
Mark Mentovai
I’ll chime in by saying that it’s highly abnormal in Chrome code for an interface ...
7 years, 9 months ago (2013-03-25 17:56:46 UTC) #19
youngki
I reverted BluetoothDevice interface change. Since our design doc implies we have to redesign this ...
7 years, 9 months ago (2013-03-25 18:41:59 UTC) #20
keybuk
lgtm
7 years, 9 months ago (2013-03-25 20:50:13 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/youngki@chromium.org/12929003/66001
7 years, 9 months ago (2013-03-25 23:29:56 UTC) #22
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) printing_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=127397
7 years, 9 months ago (2013-03-26 01:35:52 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/youngki@chromium.org/12929003/66001
7 years, 9 months ago (2013-03-26 04:25:16 UTC) #24
commit-bot: I haz the power
Change committed as 190560
7 years, 9 months ago (2013-03-26 06:06:31 UTC) #25
Avi (use Gerrit)
7 years, 9 months ago (2013-03-26 19:15:51 UTC) #26
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/12929003/diff/66001/device/bluetooth/b...
File device/bluetooth/bluetooth_device_mac.mm (right):

https://chromiumcodereview.appspot.com/12929003/diff/66001/device/bluetooth/b...
device/bluetooth/bluetooth_device_mac.mm:152: [[record attributes] count]);
This breaks the 64-bit build. NSUInteger shouldn't be printf-ed.

http://build.chromium.org/p/chromium.fyi/builders/Chromium%20Mac%2010.8%20x64...

Please in the future use %lu and cast to unsigned long.

Powered by Google App Engine
This is Rietveld 408576698