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

Issue 910433002: Fix crash on second failed connect to a paired device (Closed)

Created:
5 years, 10 months ago by Marie Janssen
Modified:
5 years, 10 months ago
CC:
chromium-reviews, 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

Fix crash on second failed connect to a paired device When failing to connect to a previously-paired device, the profile would not be cleared. This sets adapter_ in RegisterProfile() so that it will be set correctly for profile release later. Also includes unit tests, adding a paired but non-connectable device. BUG=455868 Committed: https://crrev.com/089a7dade5bfd6858fd88851d2171be816854845 Cr-Commit-Position: refs/heads/master@{#315394}

Patch Set 1 #

Total comments: 5

Patch Set 2 : address comments by armansito@ #

Patch Set 3 : bugfix unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -26 lines) Patch
M chrome/browser/metrics/chromeos_metrics_provider_unittest.cc View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_device_client.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_device_client.cc View 1 4 chunks +37 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos.cc View 1 chunk +1 line, -2 lines 0 comments Download
M device/bluetooth/bluetooth_chromeos_unittest.cc View 11 chunks +16 lines, -14 lines 0 comments Download
M device/bluetooth/bluetooth_socket_chromeos.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M device/bluetooth/bluetooth_socket_chromeos_unittest.cc View 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
tbarzic
fyi, I tried the patch, and it seems to fix the crashes described in the ...
5 years, 10 months ago (2015-02-06 22:59:01 UTC) #2
armansito
lgtm with nits https://codereview.chromium.org/910433002/diff/1/chromeos/dbus/fake_bluetooth_device_client.cc File chromeos/dbus/fake_bluetooth_device_client.cc (right): https://codereview.chromium.org/910433002/diff/1/chromeos/dbus/fake_bluetooth_device_client.cc#newcode263 chromeos/dbus/fake_bluetooth_device_client.cc:263: &FakeBluetoothDeviceClient::OnPropertyChanged, base::Unretained(this), nit: Formatting. Put second ...
5 years, 10 months ago (2015-02-07 00:29:55 UTC) #3
Marie Janssen
https://codereview.chromium.org/910433002/diff/1/chromeos/dbus/fake_bluetooth_device_client.cc File chromeos/dbus/fake_bluetooth_device_client.cc (right): https://codereview.chromium.org/910433002/diff/1/chromeos/dbus/fake_bluetooth_device_client.cc#newcode263 chromeos/dbus/fake_bluetooth_device_client.cc:263: &FakeBluetoothDeviceClient::OnPropertyChanged, base::Unretained(this), On 2015/02/07 00:29:55, armansito wrote: > nit: ...
5 years, 10 months ago (2015-02-09 18:58:41 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/910433002/20001
5 years, 10 months ago (2015-02-09 18:59:50 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/910433002/40001
5 years, 10 months ago (2015-02-09 20:14:10 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/41485)
5 years, 10 months ago (2015-02-09 20:20:28 UTC) #11
Marie Janssen
Adding rtenneti for OWNERS check on chromeos_metrics_provider_unittest.cc
5 years, 10 months ago (2015-02-09 20:30:02 UTC) #13
armansito
https://codereview.chromium.org/910433002/diff/1/chromeos/dbus/fake_bluetooth_device_client.cc File chromeos/dbus/fake_bluetooth_device_client.cc (right): https://codereview.chromium.org/910433002/diff/1/chromeos/dbus/fake_bluetooth_device_client.cc#newcode263 chromeos/dbus/fake_bluetooth_device_client.cc:263: &FakeBluetoothDeviceClient::OnPropertyChanged, base::Unretained(this), On 2015/02/09 18:58:41, Michael Janssen wrote: > ...
5 years, 10 months ago (2015-02-09 20:35:22 UTC) #14
ramant (doing other things)
LGTM for chrome/browser/metrics/chromeos_metrics_provider_unittest.cc
5 years, 10 months ago (2015-02-09 20:51:46 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/910433002/40001
5 years, 10 months ago (2015-02-09 21:10:10 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-09 21:14:09 UTC) #19
commit-bot: I haz the power
5 years, 10 months ago (2015-02-09 21:15:08 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/089a7dade5bfd6858fd88851d2171be816854845
Cr-Commit-Position: refs/heads/master@{#315394}

Powered by Google App Engine
This is Rietveld 408576698