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

Issue 851123002: Manage profiles in BluetoothAdapter on ChromeOS (Closed)

Created:
5 years, 11 months ago by Marie Janssen
Modified:
5 years, 10 months ago
Reviewers:
keybuk, armansito, rpaquay
CC:
chromium-reviews, rginda+watch_chromium.org, stevenjb+watch_chromium.org, hashimoto+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Manage profiles in BluetoothAdapter on ChromeOS Profiles in bluez are not specific to a device. When client code tries to connect to two different devices, only one profile is created, managed by BluetoothAdapterChromeOS. dbus messages are multiplexed based on the device desired using new class BluetoothAdapterProfileChromeOS. BUG=chromium:421207 Committed: https://crrev.com/c56186ac2901c99349cbb4b4a6b8aa0ff8088c4d Cr-Commit-Position: refs/heads/master@{#313837}

Patch Set 1 #

Total comments: 42

Patch Set 2 : address comments, slight refactor #

Total comments: 1

Patch Set 3 : use nullptr in new code #

Patch Set 4 : fix failed compile for missing override #

Patch Set 5 : rebase to catch OWNERS #

Patch Set 6 : fix profile memory leaks when adapter is gone #

Unified diffs Side-by-side diffs Delta from patch set Stats (+842 lines, -166 lines) Patch
M chromeos/dbus/fake_bluetooth_profile_manager_client.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_profile_service_provider.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos.h View 1 2 3 4 7 chunks +45 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos.cc View 1 2 3 4 2 chunks +71 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_adapter_profile_chromeos.h View 1 2 3 1 chunk +101 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_adapter_profile_chromeos.cc View 1 2 3 4 5 1 chunk +165 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc View 1 2 1 chunk +297 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_chromeos.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_socket_chromeos.h View 1 2 3 4 5 6 chunks +14 lines, -21 lines 0 comments Download
M device/bluetooth/bluetooth_socket_chromeos.cc View 1 2 3 4 5 17 chunks +112 lines, -138 lines 0 comments Download
M device/bluetooth/bluetooth_socket_chromeos_unittest.cc View 1 2 3 4 13 chunks +24 lines, -5 lines 0 comments Download
M device/device_tests.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
armansito
Initial pass, sorry for the delay, this somehow remained off my radar. https://codereview.chromium.org/851123002/diff/1/device/bluetooth/bluetooth_adapter_chromeos.cc File device/bluetooth/bluetooth_adapter_chromeos.cc ...
5 years, 11 months ago (2015-01-21 01:44:48 UTC) #2
Marie Janssen
Slightly reworked the lifetime of the profile to place the lifetime clearly under control of ...
5 years, 11 months ago (2015-01-22 21:55:33 UTC) #3
Marie Janssen
Ping, PTAL.
5 years, 10 months ago (2015-01-28 17:33:08 UTC) #4
armansito
lgtm with one nit https://codereview.chromium.org/851123002/diff/20001/device/bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc File device/bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc (right): https://codereview.chromium.org/851123002/diff/20001/device/bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc#newcode39 device/bluetooth/bluetooth_adapter_profile_chromeos_unittest.cc:39: profile_(NULL), nit: Use nullptr instead ...
5 years, 10 months ago (2015-01-29 04:44:18 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/851123002/40001
5 years, 10 months ago (2015-01-29 18:30:50 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/39223)
5 years, 10 months ago (2015-01-29 18:37:29 UTC) #9
Marie Janssen
On 2015/01/29 18:37:29, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 10 months ago (2015-01-29 21:21:19 UTC) #10
Marie Janssen
Renaud: keybuk is out, can you review this CL as owner of device/device_tests.gyp
5 years, 10 months ago (2015-01-29 23:01:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/851123002/80001
5 years, 10 months ago (2015-01-29 23:34:58 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-01-30 00:32:40 UTC) #15
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/c56186ac2901c99349cbb4b4a6b8aa0ff8088c4d Cr-Commit-Position: refs/heads/master@{#313837}
5 years, 10 months ago (2015-01-30 00:34:14 UTC) #16
perkj_chrome
5 years, 10 months ago (2015-01-30 08:32:35 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/868753006/ by perkj@chromium.org.

The reason for reverting is: This causes a leak on Chrome Os ASan. 

https://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%2....

Powered by Google App Engine
This is Rietveld 408576698