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

Issue 13224004: Bluetooth: remove private members from BluetoothAdapter (Closed)

Created:
7 years, 9 months ago by keybuk
Modified:
7 years, 8 months ago
CC:
chromium-reviews, Aaron Boodman, sail+watch_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Bluetooth: remove private members from BluetoothAdapter BluetoothAdapter had two private member variables: address_ and name_ and expected implementations to fill them in so its address() and name() member functions could return const refs to them. That's a bad design, and prevented implementations from just fetching these properties on demand, so make the functions pure virtual and expect implementations to provide them. BUG=none TEST=device_unittests, unit_tests, browser_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=191941

Patch Set 1 #

Patch Set 2 : Add fix for browser tests #

Patch Set 3 : Fix BluetoothApiTest.Events #

Total comments: 12

Patch Set 4 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -32 lines) Patch
M chrome/browser/extensions/api/bluetooth/bluetooth_apitest.cc View 1 2 3 6 chunks +21 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth/bluetooth_event_router_unittest.cc View 1 2 3 1 chunk +1 line, -9 lines 0 comments Download
M device/bluetooth/bluetooth_adapter.h View 2 chunks +2 lines, -8 lines 0 comments Download
M device/bluetooth/bluetooth_adapter.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos.h View 2 chunks +4 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos_experimental.h View 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos_experimental.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac.h View 2 chunks +4 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac.mm View 1 chunk +8 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_win.h View 2 chunks +4 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_win.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_adapter.h View 1 chunk +3 lines, -1 line 0 comments Download
M device/bluetooth/test/mock_bluetooth_adapter.cc View 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
keybuk
7 years, 9 months ago (2013-03-28 22:24:12 UTC) #1
keybuk
+miket for /api/ OWNERS
7 years, 9 months ago (2013-03-28 22:25:31 UTC) #2
keybuk
+mark for obj-c check
7 years, 9 months ago (2013-03-28 22:26:13 UTC) #3
miket_OOO
On 2013/03/28 22:25:31, keybuk wrote: > +miket for /api/ OWNERS LGTM OWNERS
7 years, 8 months ago (2013-03-29 16:31:21 UTC) #4
youngki
lgtm Please address the comments below. I don't have to recheck them. https://chromiumcodereview.appspot.com/13224004/diff/8017/chrome/browser/extensions/api/bluetooth/bluetooth_apitest.cc File chrome/browser/extensions/api/bluetooth/bluetooth_apitest.cc ...
7 years, 8 months ago (2013-04-02 12:30:30 UTC) #5
Mark Mentovai
There wasn’t actually any Objective-C in this change. LGTM with these comments addressed. https://codereview.chromium.org/13224004/diff/8017/chrome/browser/extensions/api/bluetooth/bluetooth_event_router_unittest.cc File ...
7 years, 8 months ago (2013-04-02 18:05:26 UTC) #6
keybuk
https://chromiumcodereview.appspot.com/13224004/diff/8017/chrome/browser/extensions/api/bluetooth/bluetooth_apitest.cc File chrome/browser/extensions/api/bluetooth/bluetooth_apitest.cc (right): https://chromiumcodereview.appspot.com/13224004/diff/8017/chrome/browser/extensions/api/bluetooth/bluetooth_apitest.cc#newcode59 chrome/browser/extensions/api/bluetooth/bluetooth_apitest.cc:59: mock_adapter_ = new testing::StrictMock<MockBluetoothAdapter>; On 2013/04/02 12:30:31, youngki wrote: ...
7 years, 8 months ago (2013-04-02 19:03:09 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keybuk@chromium.org/13224004/17002
7 years, 8 months ago (2013-04-02 19:07:11 UTC) #8
Mark Mentovai
LGTM https://chromiumcodereview.appspot.com/13224004/diff/8017/chrome/browser/extensions/api/bluetooth/bluetooth_event_router_unittest.cc File chrome/browser/extensions/api/bluetooth/bluetooth_event_router_unittest.cc (right): https://chromiumcodereview.appspot.com/13224004/diff/8017/chrome/browser/extensions/api/bluetooth/bluetooth_event_router_unittest.cc#newcode15 chrome/browser/extensions/api/bluetooth/bluetooth_event_router_unittest.cc:15: ExtensionBluetoothEventRouterTest() keybuk wrote: > On 2013/04/02 18:05:27, Mark ...
7 years, 8 months ago (2013-04-02 19:30:24 UTC) #9
commit-bot: I haz the power
7 years, 8 months ago (2013-04-02 23:59:32 UTC) #10
Message was sent while issue was closed.
Change committed as 191941

Powered by Google App Engine
This is Rietveld 408576698