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

Issue 1397983004: bluetooth: Refactor repeated code used to find a Bluetooth object from its ID. (Closed)

Created:
5 years, 2 months ago by ortuno
Modified:
5 years, 2 months ago
Reviewers:
scheib
CC:
chromium-reviews, darin-cc_chromium.org, jam, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@bluetooth-characteristic-changed-1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Refactor repeated code used to find a Bluetooth object from its ID. getCharacteristic, getCharacteristics, getService, getServices, readValue, writeValue, startNotifications, etc use the same code to find a Bluetooth Object based on the object's instance ID. We refactor bluetooth_dispatcher_host so that we don't have to repeat so much code. BUG=545153 Committed: https://crrev.com/20550da3be779194f3d7eb2475cd5bb07e4894aa Cr-Commit-Position: refs/heads/master@{#355199}

Patch Set 1 #

Patch Set 2 : Metrics #

Patch Set 3 : Clean up #

Patch Set 4 : #

Patch Set 5 : Merge #

Patch Set 6 : Clean up #

Total comments: 8

Patch Set 7 : Address scheib's comments #

Total comments: 2

Patch Set 8 : Fix compile errors on bots #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -148 lines) Patch
M content/browser/bluetooth/bluetooth_dispatcher_host.h View 1 2 3 4 5 6 2 chunks +24 lines, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_dispatcher_host.cc View 1 2 3 4 5 6 7 9 chunks +145 lines, -148 lines 0 comments Download
M content/browser/bluetooth/bluetooth_metrics.h View 1 2 3 4 5 6 5 chunks +27 lines, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_metrics.cc View 1 2 3 4 5 6 7 7 chunks +61 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 21 (9 generated)
ortuno
scheib: PTAL
5 years, 2 months ago (2015-10-19 21:00:01 UTC) #4
scheib
https://codereview.chromium.org/1397983004/diff/120001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1397983004/diff/120001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode308 content/browser/bluetooth/bluetooth_dispatcher_host.cc:308: blink::WebBluetoothError error; Instead of storing 'error', just have an ...
5 years, 2 months ago (2015-10-19 23:15:54 UTC) #5
ortuno
Thanks! https://codereview.chromium.org/1397983004/diff/120001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1397983004/diff/120001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode308 content/browser/bluetooth/bluetooth_dispatcher_host.cc:308: blink::WebBluetoothError error; On 2015/10/19 23:15:54, scheib wrote: > ...
5 years, 2 months ago (2015-10-20 17:44:04 UTC) #6
scheib
LGTM https://codereview.chromium.org/1397983004/diff/140001/content/browser/bluetooth/bluetooth_metrics.h File content/browser/bluetooth/bluetooth_metrics.h (right): https://codereview.chromium.org/1397983004/diff/140001/content/browser/bluetooth/bluetooth_metrics.h#newcode45 content/browser/bluetooth/bluetooth_metrics.h:45: SUCCESS = 0, FYI it's fine to make ...
5 years, 2 months ago (2015-10-20 17:55:33 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1397983004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1397983004/140001
5 years, 2 months ago (2015-10-20 17:57:43 UTC) #9
ortuno
https://codereview.chromium.org/1397983004/diff/140001/content/browser/bluetooth/bluetooth_metrics.h File content/browser/bluetooth/bluetooth_metrics.h (right): https://codereview.chromium.org/1397983004/diff/140001/content/browser/bluetooth/bluetooth_metrics.h#newcode45 content/browser/bluetooth/bluetooth_metrics.h:45: SUCCESS = 0, On 2015/10/20 at 17:55:33, scheib wrote: ...
5 years, 2 months ago (2015-10-20 17:59:11 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/111083)
5 years, 2 months ago (2015-10-20 18:15:25 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1397983004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1397983004/160001
5 years, 2 months ago (2015-10-20 23:14:22 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-21 00:09:47 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1397983004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1397983004/160001
5 years, 2 months ago (2015-10-21 00:11:20 UTC) #19
commit-bot: I haz the power
Committed patchset #8 (id:160001)
5 years, 2 months ago (2015-10-21 00:20:20 UTC) #20
commit-bot: I haz the power
5 years, 2 months ago (2015-10-21 00:21:53 UTC) #21
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/20550da3be779194f3d7eb2475cd5bb07e4894aa
Cr-Commit-Position: refs/heads/master@{#355199}

Powered by Google App Engine
This is Rietveld 408576698