|
Lazy-creates BluetoothAdapter in ExtensionBluetoothEventRouter (EBEE).
Calling adapter() and GetMutableAdapter() creates and returns the refptr of
BluetoothAdapter, but EBEE does not hold the reference of it.
Adding BluetoothEventListener and registering BluetoothSocket creates and holds
the reference of BluetoothAdapter.
EBEE will release the reference if there is no socket and no listener.
BUG= 135470
Total comments: 22
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+287 lines, -16 lines) |
Patch |
|
M |
chrome/browser/extensions/api/bluetooth/bluetooth_apitest.cc
|
View
|
1
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/bluetooth_event_router.h
|
View
|
1
2
|
4 chunks |
+19 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/bluetooth_event_router.cc
|
View
|
1
2
|
9 chunks |
+71 lines, -9 lines |
0 comments
|
Download
|
|
A |
chrome/browser/extensions/bluetooth_event_router_unittest.cc
|
View
|
1
2
|
1 chunk |
+125 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/event_router.cc
|
View
|
1
2
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/extension_service.h
|
View
|
1
2
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/extension_service.cc
|
View
|
1
2
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_tests_unit.gypi
|
View
|
1
2
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
A |
device/bluetooth/test/mock_bluetooth_socket.h
|
View
|
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
|
A |
device/bluetooth/test/mock_bluetooth_socket.cc
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
device/device.gyp
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 7 (0 generated)
|