|
|
Chromium Code Reviews|
Created:
4 years, 1 month ago by puthik_chromium Modified:
4 years, 1 month ago Reviewers:
Luis Héctor Chávez CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, yusukes+watch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Descriptionarc: bluetooth: Don't use nullptr with device name
Don't use nullptr with the device name in mojo types below
as they are not defined as nullable in mojom file.
- mojom::BluetoothProperty.bdname
- mojom::BluetoothAdvertisingData.local_name
This fixes Chrome crash in recent build because of the
Bluetooth API change in http://crrev.com/2440043002
that make the device name optional. Before that, GetName()
will returns MAC address when there is no device name.
BUG=663096
TEST=minnie won't crash when scan for new BT device.
nRF connect app still has same behavior.
Committed: https://crrev.com/68561070668c0f84a0cb2d3d9fc70129fb5ede1b
Cr-Commit-Position: refs/heads/master@{#430789}
Patch Set 1 #
Messages
Total messages: 17 (10 generated)
The CQ bit was checked by puthik@chromium.org to run a CQ dry run
puthik@chromium.org changed reviewers: + lhchavez@chromium.org
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Hmmm, can there be a bit more investigation about the crash? "Something" does not seem like a good explanation.
discussed offline. as long as the commit description is changed to something a bit more informative, lgtm.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from
==========
arc: bluetooth: Replace nullptr with "" for mojo::String
Something (probably compiler settings change or mojo change) causes
mojo::String to crash when set the data with nullptr. This patch
changes nullptr to empty string ("") for mojo::String.
BUG=663096
TEST=minnie won't crash when scan for new BT device.
nRF connect app still has same behavior.
==========
to
==========
arc: bluetooth: Don't use nullptr with device name
Don't use nullptr with the device name in mojo types below
as they are not defined as nullable in mojom file.
- mojom::BluetoothProperty.bdname
- mojom::BluetoothAdvertisingData.local_name
This fixes Chrome crash in recent build because of the
Bluetooth API change in http://crrev.com/2440043002
that make the device name optional. Before that, getName()
will returns MAC address when there is no device name.
BUG=663096
TEST=minnie won't crash when scan for new BT device.
nRF connect app still has same behavior.
==========
The CQ bit was checked by puthik@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Found the root cause. Commit message updated.
Description was changed from ========== arc: bluetooth: Don't use nullptr with device name Don't use nullptr with the device name in mojo types below as they are not defined as nullable in mojom file. - mojom::BluetoothProperty.bdname - mojom::BluetoothAdvertisingData.local_name This fixes Chrome crash in recent build because of the Bluetooth API change in http://crrev.com/2440043002 that make the device name optional. Before that, getName() will returns MAC address when there is no device name. BUG=663096 TEST=minnie won't crash when scan for new BT device. nRF connect app still has same behavior. ========== to ========== arc: bluetooth: Don't use nullptr with device name Don't use nullptr with the device name in mojo types below as they are not defined as nullable in mojom file. - mojom::BluetoothProperty.bdname - mojom::BluetoothAdvertisingData.local_name This fixes Chrome crash in recent build because of the Bluetooth API change in http://crrev.com/2440043002 that make the device name optional. Before that, GetName() will returns MAC address when there is no device name. BUG=663096 TEST=minnie won't crash when scan for new BT device. nRF connect app still has same behavior. ==========
Message was sent while issue was closed.
Description was changed from ========== arc: bluetooth: Don't use nullptr with device name Don't use nullptr with the device name in mojo types below as they are not defined as nullable in mojom file. - mojom::BluetoothProperty.bdname - mojom::BluetoothAdvertisingData.local_name This fixes Chrome crash in recent build because of the Bluetooth API change in http://crrev.com/2440043002 that make the device name optional. Before that, GetName() will returns MAC address when there is no device name. BUG=663096 TEST=minnie won't crash when scan for new BT device. nRF connect app still has same behavior. ========== to ========== arc: bluetooth: Don't use nullptr with device name Don't use nullptr with the device name in mojo types below as they are not defined as nullable in mojom file. - mojom::BluetoothProperty.bdname - mojom::BluetoothAdvertisingData.local_name This fixes Chrome crash in recent build because of the Bluetooth API change in http://crrev.com/2440043002 that make the device name optional. Before that, GetName() will returns MAC address when there is no device name. BUG=663096 TEST=minnie won't crash when scan for new BT device. nRF connect app still has same behavior. ==========
Message was sent while issue was closed.
Committed patchset #1 (id:1)
Message was sent while issue was closed.
Description was changed from ========== arc: bluetooth: Don't use nullptr with device name Don't use nullptr with the device name in mojo types below as they are not defined as nullable in mojom file. - mojom::BluetoothProperty.bdname - mojom::BluetoothAdvertisingData.local_name This fixes Chrome crash in recent build because of the Bluetooth API change in http://crrev.com/2440043002 that make the device name optional. Before that, GetName() will returns MAC address when there is no device name. BUG=663096 TEST=minnie won't crash when scan for new BT device. nRF connect app still has same behavior. ========== to ========== arc: bluetooth: Don't use nullptr with device name Don't use nullptr with the device name in mojo types below as they are not defined as nullable in mojom file. - mojom::BluetoothProperty.bdname - mojom::BluetoothAdvertisingData.local_name This fixes Chrome crash in recent build because of the Bluetooth API change in http://crrev.com/2440043002 that make the device name optional. Before that, GetName() will returns MAC address when there is no device name. BUG=663096 TEST=minnie won't crash when scan for new BT device. nRF connect app still has same behavior. Committed: https://crrev.com/68561070668c0f84a0cb2d3d9fc70129fb5ede1b Cr-Commit-Position: refs/heads/master@{#430789} ==========
Message was sent while issue was closed.
Patchset 1 (id:??) landed as https://crrev.com/68561070668c0f84a0cb2d3d9fc70129fb5ede1b Cr-Commit-Position: refs/heads/master@{#430789} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
