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 1876753004: bluetooth: Check if device name is null before trying to convert (Closed)

Created:
4 years, 8 months ago by ortuno
Modified:
4 years, 8 months ago
Reviewers:
scheib
CC:
chromium-reviews, ortuno+watch_chromium.org, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@my-origin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Check if device name is null before trying to convert Since http://crrev.com/1828193002 ConvertJavaStringToUTF8 crashes when passed in null. To avoid that we first check if the name returned by android is null and if so return an empty string. BUG=602189 Committed: https://crrev.com/baefa2c7c7188832268e60b063103673edf8a34f Cr-Commit-Position: refs/heads/master@{#386733}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address scheib's comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -2 lines) Patch
M device/bluetooth/bluetooth_device.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_android.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_device_unittest.cc View 1 1 chunk +14 lines, -0 lines 2 comments Download
M device/bluetooth/test/android/java/src/org/chromium/device/bluetooth/Fakes.java View 1 1 chunk +8 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test.h View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
ortuno
scheib: PTAL
4 years, 8 months ago (2016-04-11 17:51:02 UTC) #2
scheib
https://codereview.chromium.org/1876753004/diff/1/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/1876753004/diff/1/device/bluetooth/bluetooth_device_unittest.cc#newcode128 device/bluetooth/bluetooth_device_unittest.cc:128: EXPECT_EQ("FakeBluetoothDevice", device->GetDeviceName()); We already have LowEnergyDeviceProperties that tests GetName ...
4 years, 8 months ago (2016-04-11 17:58:13 UTC) #3
ortuno
https://codereview.chromium.org/1876753004/diff/1/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/1876753004/diff/1/device/bluetooth/bluetooth_device_unittest.cc#newcode128 device/bluetooth/bluetooth_device_unittest.cc:128: EXPECT_EQ("FakeBluetoothDevice", device->GetDeviceName()); On 2016/04/11 at 17:58:12, scheib wrote: > ...
4 years, 8 months ago (2016-04-11 18:11:58 UTC) #4
scheib
https://codereview.chromium.org/1876753004/diff/20001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/1876753004/diff/20001/device/bluetooth/bluetooth_device_unittest.cc#newcode128 device/bluetooth/bluetooth_device_unittest.cc:128: EXPECT_EQ("", device->GetDeviceName()); Why can't this test GetName(), the public ...
4 years, 8 months ago (2016-04-12 05:05:55 UTC) #5
ortuno
https://codereview.chromium.org/1876753004/diff/20001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (right): https://codereview.chromium.org/1876753004/diff/20001/device/bluetooth/bluetooth_device_unittest.cc#newcode128 device/bluetooth/bluetooth_device_unittest.cc:128: EXPECT_EQ("", device->GetDeviceName()); On 2016/04/12 at 05:05:55, scheib wrote: > ...
4 years, 8 months ago (2016-04-12 14:42:33 UTC) #6
scheib
LGTM
4 years, 8 months ago (2016-04-12 16:25:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1876753004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1876753004/20001
4 years, 8 months ago (2016-04-12 16:26:30 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-12 17:34:22 UTC) #12
commit-bot: I haz the power
4 years, 8 months ago (2016-04-12 17:36:28 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/baefa2c7c7188832268e60b063103673edf8a34f
Cr-Commit-Position: refs/heads/master@{#386733}

Powered by Google App Engine
This is Rietveld 408576698