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

Issue 11345037: Implemented BluetoothAdapterWin::IsPresent(). (Closed)

Created:
8 years, 1 month ago by youngki
Modified:
8 years, 1 month ago
Reviewers:
keybuk, bryeung
CC:
chromium-reviews
Visibility:
Public.

Description

Implemented BluetoothAdapterWin::IsPresent(). BUG=135470 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167539

Patch Set 1 #

Total comments: 9

Patch Set 2 : Fixed namespace style #

Patch Set 3 : Added unittest #

Patch Set 4 : A bit more polishing #

Patch Set 5 : Renaming constant #

Total comments: 6

Patch Set 6 : kPollIntervalMs now private and method name changes #

Total comments: 2

Patch Set 7 : Made adapter refcounted in unittest #

Total comments: 10

Patch Set 8 : Removed device:: and added parenthesis #

Total comments: 2

Patch Set 9 : Match the definition order to the declaration order #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -5 lines) Patch
M device/bluetooth/bluetooth_adapter_win.h View 1 2 3 4 5 6 7 2 chunks +17 lines, -3 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_win.cc View 1 2 3 4 5 6 7 8 3 chunks +53 lines, -2 lines 0 comments Download
A device/bluetooth/bluetooth_adapter_win_unittest.cc View 1 2 3 4 5 6 7 1 chunk +112 lines, -0 lines 0 comments Download
M device/device.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
youngki
I fell back into polling solution; I looked into two different notification frameworks: src/net/base/network_change_notifier.h and ...
8 years, 1 month ago (2012-10-30 18:52:03 UTC) #1
bryeung
FYI: Scott, there is a question buried for you down in my comments. https://chromiumcodereview.appspot.com/11345037/diff/1/device/bluetooth/bluetooth_adapter_win.cc File ...
8 years, 1 month ago (2012-10-30 19:58:40 UTC) #2
youngki
Scott, let me know your thoughts on Bryan's comment. https://chromiumcodereview.appspot.com/11345037/diff/1/device/bluetooth/bluetooth_adapter_win.cc File device/bluetooth/bluetooth_adapter_win.cc (right): https://chromiumcodereview.appspot.com/11345037/diff/1/device/bluetooth/bluetooth_adapter_win.cc#newcode19 device/bluetooth/bluetooth_adapter_win.cc:19: ...
8 years, 1 month ago (2012-10-30 21:50:56 UTC) #3
youngki
I am going to move the logic of polling the bluetooth info to a separate ...
8 years, 1 month ago (2012-10-31 17:03:58 UTC) #4
keybuk
https://chromiumcodereview.appspot.com/11345037/diff/1/device/bluetooth/bluetooth_adapter_win.cc File device/bluetooth/bluetooth_adapter_win.cc (right): https://chromiumcodereview.appspot.com/11345037/diff/1/device/bluetooth/bluetooth_adapter_win.cc#newcode94 device/bluetooth/bluetooth_adapter_win.cc:94: UpdateAdapterState(); TrackDefaultAdapter should only be called when a new ...
8 years, 1 month ago (2012-10-31 18:19:47 UTC) #5
bryeung
https://chromiumcodereview.appspot.com/11345037/diff/1/device/bluetooth/bluetooth_adapter_win.cc File device/bluetooth/bluetooth_adapter_win.cc (right): https://chromiumcodereview.appspot.com/11345037/diff/1/device/bluetooth/bluetooth_adapter_win.cc#newcode94 device/bluetooth/bluetooth_adapter_win.cc:94: UpdateAdapterState(); On 2012/10/31 18:19:47, keybuk wrote: > TrackDefaultAdapter should ...
8 years, 1 month ago (2012-10-31 18:46:01 UTC) #6
youngki
https://chromiumcodereview.appspot.com/11345037/diff/1/device/bluetooth/bluetooth_adapter_win.cc File device/bluetooth/bluetooth_adapter_win.cc (right): https://chromiumcodereview.appspot.com/11345037/diff/1/device/bluetooth/bluetooth_adapter_win.cc#newcode94 device/bluetooth/bluetooth_adapter_win.cc:94: UpdateAdapterState(); On 2012/10/31 18:46:01, bryeung wrote: > On 2012/10/31 ...
8 years, 1 month ago (2012-10-31 19:42:59 UTC) #7
youngki
The other CL to modify event router is under review: https://chromiumcodereview.appspot.com/11368145 Meanwhile I added unittest ...
8 years, 1 month ago (2012-11-09 05:03:12 UTC) #8
bryeung
https://chromiumcodereview.appspot.com/11345037/diff/14001/device/bluetooth/bluetooth_adapter_win.h File device/bluetooth/bluetooth_adapter_win.h (right): https://chromiumcodereview.appspot.com/11345037/diff/14001/device/bluetooth/bluetooth_adapter_win.h#newcode43 device/bluetooth/bluetooth_adapter_win.h:43: static const int kPollIntervalMs; why is this public? https://chromiumcodereview.appspot.com/11345037/diff/14001/device/bluetooth/bluetooth_adapter_win_unittest.cc ...
8 years, 1 month ago (2012-11-09 17:59:09 UTC) #9
youngki
https://chromiumcodereview.appspot.com/11345037/diff/14001/device/bluetooth/bluetooth_adapter_win.h File device/bluetooth/bluetooth_adapter_win.h (right): https://chromiumcodereview.appspot.com/11345037/diff/14001/device/bluetooth/bluetooth_adapter_win.h#newcode43 device/bluetooth/bluetooth_adapter_win.h:43: static const int kPollIntervalMs; On 2012/11/09 17:59:09, bryeung wrote: ...
8 years, 1 month ago (2012-11-09 19:14:04 UTC) #10
bryeung
https://chromiumcodereview.appspot.com/11345037/diff/10006/device/bluetooth/bluetooth_adapter_win.cc File device/bluetooth/bluetooth_adapter_win.cc (right): https://chromiumcodereview.appspot.com/11345037/diff/10006/device/bluetooth/bluetooth_adapter_win.cc#newcode128 device/bluetooth/bluetooth_adapter_win.cc:128: weak_ptr_factory_.GetWeakPtr()), Since this is a weak_ptr, couldn't the adapter ...
8 years, 1 month ago (2012-11-09 21:55:48 UTC) #11
youngki
https://chromiumcodereview.appspot.com/11345037/diff/10006/device/bluetooth/bluetooth_adapter_win.cc File device/bluetooth/bluetooth_adapter_win.cc (right): https://chromiumcodereview.appspot.com/11345037/diff/10006/device/bluetooth/bluetooth_adapter_win.cc#newcode128 device/bluetooth/bluetooth_adapter_win.cc:128: weak_ptr_factory_.GetWeakPtr()), On 2012/11/09 21:55:48, bryeung wrote: > Since this ...
8 years, 1 month ago (2012-11-12 16:42:53 UTC) #12
bryeung
lgtm, pending sorting out this RefCoutned/WeakPtr issue. https://chromiumcodereview.appspot.com/11345037/diff/19002/device/bluetooth/bluetooth_adapter_win.h File device/bluetooth/bluetooth_adapter_win.h (right): https://chromiumcodereview.appspot.com/11345037/diff/19002/device/bluetooth/bluetooth_adapter_win.h#newcode16 device/bluetooth/bluetooth_adapter_win.h:16: class BluetoothAdapterWinTest; ...
8 years, 1 month ago (2012-11-12 20:35:13 UTC) #13
youngki
https://chromiumcodereview.appspot.com/11345037/diff/19002/device/bluetooth/bluetooth_adapter_win.h File device/bluetooth/bluetooth_adapter_win.h (right): https://chromiumcodereview.appspot.com/11345037/diff/19002/device/bluetooth/bluetooth_adapter_win.h#newcode16 device/bluetooth/bluetooth_adapter_win.h:16: class BluetoothAdapterWinTest; On 2012/11/12 20:35:13, bryeung wrote: > I ...
8 years, 1 month ago (2012-11-13 01:57:39 UTC) #14
bryeung
lgtm https://chromiumcodereview.appspot.com/11345037/diff/19002/device/bluetooth/bluetooth_adapter_win_unittest.cc File device/bluetooth/bluetooth_adapter_win_unittest.cc (right): https://chromiumcodereview.appspot.com/11345037/diff/19002/device/bluetooth/bluetooth_adapter_win_unittest.cc#newcode53 device/bluetooth/bluetooth_adapter_win_unittest.cc:53: adapter_ = new FakeBluetoothAdapterWin; On 2012/11/13 01:57:39, youngki ...
8 years, 1 month ago (2012-11-13 14:21:09 UTC) #15
youngki
Scott, could you take a look at this CL? I think we can land this ...
8 years, 1 month ago (2012-11-13 15:48:46 UTC) #16
keybuk
lgtm
8 years, 1 month ago (2012-11-13 18:53:50 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/youngki@chromium.org/11345037/21001
8 years, 1 month ago (2012-11-13 22:08:10 UTC) #18
commit-bot: I haz the power
8 years, 1 month ago (2012-11-14 00:47:51 UTC) #19
Change committed as 167539

Powered by Google App Engine
This is Rietveld 408576698