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

Issue 2317773002: Fix bluetooth callback function declaration (Closed)

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

Description

Fix bluetooth callback function declaration The PFNBLUETOOTH_GATT_EVENT_CALLBACK typedef has been incorrect for years and was fixed in the Windows 10.0.14393 SDK. This leads to compile errors when building with this SDK. The incorrect function declaration is missing CALLBACK which can lead to stack mismatches so fixing the code to use the new declaration is important. A fixed typedef needs to be used throughout Chromium to ensure consistent stack cleanup. A cast is needed when calling into Windows (so that Chrome will continue to build with the Windows 10.0.10586 SDK) and that is the only time that the SDK supplied typedef should be used. BUG=644321 Committed: https://crrev.com/2181e0ecc3172fc2a5f4eee62a125f784f5993f5 Cr-Commit-Position: refs/heads/master@{#418138}

Patch Set 1 #

Patch Set 2 : Brand new fix - use correct prototype throughout Chrome #

Patch Set 3 : Add comment to explain and justify cast #

Total comments: 1

Patch Set 4 : Updating typedef comment per code-review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -21 lines) Patch
M device/bluetooth/bluetooth_low_energy_win.h View 1 2 3 2 chunks +22 lines, -6 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_win.cc View 1 2 1 chunk +9 lines, -4 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_win_fake.h View 1 2 chunks +8 lines, -7 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_win_fake.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_task_manager_win.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 38 (23 generated)
brucedawson
PTAL
4 years, 3 months ago (2016-09-06 18:35:30 UTC) #5
scheib
Thanks and LGTM
4 years, 3 months ago (2016-09-07 00:48:42 UTC) #8
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/2317773002/1
4 years, 3 months ago (2016-09-07 00:49:29 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/288470)
4 years, 3 months ago (2016-09-07 04:24:35 UTC) #12
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/2317773002/1
4 years, 3 months ago (2016-09-08 18:24:51 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/289940)
4 years, 3 months ago (2016-09-08 22:49:07 UTC) #16
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/2317773002/1
4 years, 3 months ago (2016-09-09 01:14:48 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/290198)
4 years, 3 months ago (2016-09-09 03:06:29 UTC) #20
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/2317773002/1
4 years, 3 months ago (2016-09-09 22:06:42 UTC) #22
brucedawson
I'd thought that the failures were test flakiness but now realize that they are not. ...
4 years, 3 months ago (2016-09-09 23:05:20 UTC) #24
brucedawson
The initial change fixed one calling convention mismatched but introduced others. That was not progress. ...
4 years, 3 months ago (2016-09-12 17:55:34 UTC) #30
scheib
LGTM again. Also a comment suggestion: https://codereview.chromium.org/2317773002/diff/40001/device/bluetooth/bluetooth_low_energy_win.h File device/bluetooth/bluetooth_low_energy_win.h (right): https://codereview.chromium.org/2317773002/diff/40001/device/bluetooth/bluetooth_low_energy_win.h#newcode26 device/bluetooth/bluetooth_low_energy_win.h:26: // modifier. This ...
4 years, 3 months ago (2016-09-12 19:28:16 UTC) #31
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/2317773002/60001
4 years, 3 months ago (2016-09-12 21:57:57 UTC) #34
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-13 01:54:00 UTC) #36
commit-bot: I haz the power
4 years, 3 months ago (2016-09-13 01:56:11 UTC) #38
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2181e0ecc3172fc2a5f4eee62a125f784f5993f5
Cr-Commit-Position: refs/heads/master@{#418138}

Powered by Google App Engine
This is Rietveld 408576698