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

Issue 1317933003: bluetooth-advertising: Fix wrong assignment and append of wrong type (Closed)

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

Description

bluetooth-advertising: Fix wrong assignment and append of wrong type The assignment statements where flipped so service data was always null. Also the wrong function was being used to append to the writer which caused chrome to crash. BUG=525313 Committed: https://crrev.com/945c90df408fc010d5e56e0768881d26e451adad Cr-Commit-Position: refs/heads/master@{#346555}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add tests #

Total comments: 8

Patch Set 3 : Address armansito's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -3 lines) Patch
M chromeos/dbus/bluetooth_le_advertisement_service_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
M device/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M device/bluetooth/bluetooth_advertisement.h View 1 chunk +2 lines, -2 lines 0 comments Download
A device/bluetooth/bluetooth_advertisement_unittest.cc View 1 2 1 chunk +70 lines, -0 lines 0 comments Download
M device/device_tests.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 20 (6 generated)
ortuno
Thanks for the help in debugging! PTAL
5 years, 3 months ago (2015-08-27 01:41:42 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1317933003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1317933003/1
5 years, 3 months ago (2015-08-27 01:42:34 UTC) #4
armansito
https://codereview.chromium.org/1317933003/diff/1/device/bluetooth/bluetooth_advertisement.h File device/bluetooth/bluetooth_advertisement.h (right): https://codereview.chromium.org/1317933003/diff/1/device/bluetooth/bluetooth_advertisement.h#newcode77 device/bluetooth/bluetooth_advertisement.h:77: service_data_ = service_data.Pass(); Can you add unit tests for ...
5 years, 3 months ago (2015-08-27 02:11:43 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-08-27 03:02:06 UTC) #7
ortuno
Ready for review https://codereview.chromium.org/1317933003/diff/1/device/bluetooth/bluetooth_advertisement.h File device/bluetooth/bluetooth_advertisement.h (right): https://codereview.chromium.org/1317933003/diff/1/device/bluetooth/bluetooth_advertisement.h#newcode77 device/bluetooth/bluetooth_advertisement.h:77: service_data_ = service_data.Pass(); On 2015/08/27 at ...
5 years, 3 months ago (2015-08-27 19:46:59 UTC) #8
armansito
https://codereview.chromium.org/1317933003/diff/20001/device/bluetooth/bluetooth_advertisement_unittest.cc File device/bluetooth/bluetooth_advertisement_unittest.cc (right): https://codereview.chromium.org/1317933003/diff/20001/device/bluetooth/bluetooth_advertisement_unittest.cc#newcode8 device/bluetooth/bluetooth_advertisement_unittest.cc:8: using device::BluetoothAdvertisement; You declared "namespace device" below. You don't ...
5 years, 3 months ago (2015-08-28 21:56:17 UTC) #9
ortuno
PTAL https://codereview.chromium.org/1317933003/diff/20001/device/bluetooth/bluetooth_advertisement_unittest.cc File device/bluetooth/bluetooth_advertisement_unittest.cc (right): https://codereview.chromium.org/1317933003/diff/20001/device/bluetooth/bluetooth_advertisement_unittest.cc#newcode8 device/bluetooth/bluetooth_advertisement_unittest.cc:8: using device::BluetoothAdvertisement; On 2015/08/28 at 21:56:16, armansito wrote: ...
5 years, 3 months ago (2015-09-01 00:24:30 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1317933003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1317933003/40001
5 years, 3 months ago (2015-09-01 00:24:40 UTC) #12
armansito
On 2015/09/01 00:24:30, ortuno wrote: > PTAL > > https://codereview.chromium.org/1317933003/diff/20001/device/bluetooth/bluetooth_advertisement_unittest.cc > File device/bluetooth/bluetooth_advertisement_unittest.cc (right): > ...
5 years, 3 months ago (2015-09-01 00:25:32 UTC) #13
armansito
lgtm
5 years, 3 months ago (2015-09-01 00:26:10 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/101239)
5 years, 3 months ago (2015-09-01 01:08:15 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1317933003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1317933003/40001
5 years, 3 months ago (2015-09-01 01:13:30 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 3 months ago (2015-09-01 01:47:13 UTC) #19
commit-bot: I haz the power
5 years, 3 months ago (2015-09-01 01:47:49 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/945c90df408fc010d5e56e0768881d26e451adad
Cr-Commit-Position: refs/heads/master@{#346555}

Powered by Google App Engine
This is Rietveld 408576698