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

Issue 2288823003: device/bluetooth: Fix Interger type for DBus message construction (Closed)

Created:
4 years, 3 months ago by puthik_chromium
Modified:
4 years, 3 months ago
Reviewers:
Miao, Rahul Chaturvedi
CC:
chromium-reviews, scheib+watch_chromium.org, ortuno+watch_chromium.org, Miao, Sameer Nanda
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

device/bluetooth: Fix Interger type for DBus message construction When dbus::AppendValueDataAsVariant encounter with an integer type. It always assume that it is a signed integer 32-bit. This would make SDP record creation fail in BlueZ as correct type and signed for integer type is expected. This CL properly read integer data from base::Value and send it to BlueZ with the correct type. BUG=b:29314637 TEST=Bluez does not crash when call CreateServiceRecord Committed: https://crrev.com/2d7cfc0777b0b222c938550439832c100516ada3 Cr-Commit-Position: refs/heads/master@{#415239}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use append varientOf... #

Total comments: 2

Patch Set 3 : Add todo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -12 lines) Patch
M device/bluetooth/dbus/bluetooth_adapter_client.cc View 1 2 3 chunks +61 lines, -12 lines 0 comments Download

Messages

Total messages: 26 (17 generated)
puthik_chromium
steel, Please review fyi: mcchou, snanda
4 years, 3 months ago (2016-08-29 21:25:20 UTC) #2
Miao
lgtm
4 years, 3 months ago (2016-08-29 21:30:34 UTC) #7
Rahul Chaturvedi
https://codereview.chromium.org/2288823003/diff/1/device/bluetooth/dbus/bluetooth_adapter_client.cc File device/bluetooth/dbus/bluetooth_adapter_client.cc (right): https://codereview.chromium.org/2288823003/diff/1/device/bluetooth/dbus/bluetooth_adapter_client.cc#newcode38 device/bluetooth/dbus/bluetooth_adapter_client.cc:38: writer->OpenVariant(std::string(1, dbus::Message::DataType::BYTE), Instead of doing OpenVariant, then Append and ...
4 years, 3 months ago (2016-08-29 22:00:29 UTC) #9
puthik_chromium
https://codereview.chromium.org/2288823003/diff/1/device/bluetooth/dbus/bluetooth_adapter_client.cc File device/bluetooth/dbus/bluetooth_adapter_client.cc (right): https://codereview.chromium.org/2288823003/diff/1/device/bluetooth/dbus/bluetooth_adapter_client.cc#newcode38 device/bluetooth/dbus/bluetooth_adapter_client.cc:38: writer->OpenVariant(std::string(1, dbus::Message::DataType::BYTE), On 2016/08/29 22:00:29, Rahul Chaturvedi wrote: > ...
4 years, 3 months ago (2016-08-29 22:17:10 UTC) #10
Rahul Chaturvedi
lgtm https://codereview.chromium.org/2288823003/diff/20001/device/bluetooth/dbus/bluetooth_adapter_client.cc File device/bluetooth/dbus/bluetooth_adapter_client.cc (right): https://codereview.chromium.org/2288823003/diff/20001/device/bluetooth/dbus/bluetooth_adapter_client.cc#newcode28 device/bluetooth/dbus/bluetooth_adapter_client.cc:28: void WriteNumberAttribute(dbus::MessageWriter* writer, Nit: Add a TODO(rkc) here ...
4 years, 3 months ago (2016-08-30 05:35:37 UTC) #15
puthik_chromium
https://codereview.chromium.org/2288823003/diff/20001/device/bluetooth/dbus/bluetooth_adapter_client.cc File device/bluetooth/dbus/bluetooth_adapter_client.cc (right): https://codereview.chromium.org/2288823003/diff/20001/device/bluetooth/dbus/bluetooth_adapter_client.cc#newcode28 device/bluetooth/dbus/bluetooth_adapter_client.cc:28: void WriteNumberAttribute(dbus::MessageWriter* writer, On 2016/08/30 05:35:37, Rahul Chaturvedi wrote: ...
4 years, 3 months ago (2016-08-30 06:05:32 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2288823003/40001
4 years, 3 months ago (2016-08-30 06:06:13 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-08-30 08:07:08 UTC) #24
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 08:08:44 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2d7cfc0777b0b222c938550439832c100516ada3
Cr-Commit-Position: refs/heads/master@{#415239}

Powered by Google App Engine
This is Rietveld 408576698