|
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
Total comments: 12
|
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
|
Total messages: 10 (0 generated)
|