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

Issue 2972263002: [CrOS Tether] Do not register a new Bluetooth advertisement until any previous identical advertisem… (Closed)

Created:
3 years, 5 months ago by Kyle Horimoto
Modified:
3 years, 5 months ago
Reviewers:
rkc, Ryan Hansberry
CC:
chromium-reviews, jlklein+watch-tether_chromium.org, tengs+watch-tether_chromium.org, hansberry+watch-tether_chromium.org, jhawkins+watch-tether_chromium.org, oshima+watch_chromium.org, lesliewatkins+watch-tether_chromium.org, khorimoto+watch-tether_chromium.org, rkc, jmann
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[CrOS Tether] Do not register a new Bluetooth advertisement until any previous identical advertisement has been unregistered. This fixes the following issue: (1) BleAdvertiser starts advertising to device A. (2) BleAdvertiser stops advertising to device A. The advertisement starts its asynchyronous unregistration flow. (3) BleAdvertiser starts advertising to device A again, but the previous advertisement has not yet been fully unregistered. After this fix, BleAdvertiser will wait for the previous advertisement to be unregistered in step (3), ensuring that we do not run into the ERROR_ADVERTISEMENT_ALREADY_EXISTS error. BUG=672263, 739883 Review-Url: https://codereview.chromium.org/2972263002 Cr-Commit-Position: refs/heads/master@{#486047} Committed: https://chromium.googlesource.com/chromium/src/+/3b45b11eb7575d7e35ff53431dd675e83f428772

Patch Set 1 #

Total comments: 6

Patch Set 2 : hansberry@ comments. #

Total comments: 2

Patch Set 3 : hansberry@ comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -48 lines) Patch
M chromeos/components/tether/ble_advertiser.h View 1 2 6 chunks +38 lines, -2 lines 0 comments Download
M chromeos/components/tether/ble_advertiser.cc View 1 2 7 chunks +76 lines, -20 lines 0 comments Download
M chromeos/components/tether/ble_advertiser_unittest.cc View 19 chunks +126 lines, -26 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
Kyle Horimoto
3 years, 5 months ago (2017-07-07 18:24:15 UTC) #2
Ryan Hansberry
lgtm with nits. https://codereview.chromium.org/2972263002/diff/1/chromeos/components/tether/ble_advertiser.cc File chromeos/components/tether/ble_advertiser.cc (right): https://codereview.chromium.org/2972263002/diff/1/chromeos/components/tether/ble_advertiser.cc#newcode48 chromeos/components/tether/ble_advertiser.cc:48: base::Bind(&IndividualAdvertisement::OnAdvertisementUnregisterFailure, I don't believe that this ...
3 years, 5 months ago (2017-07-11 21:27:42 UTC) #3
rkc
I thought we were dropping this CL?
3 years, 5 months ago (2017-07-11 21:36:36 UTC) #5
Kyle Horimoto
On 2017/07/11 21:36:36, rkc wrote: > I thought we were dropping this CL? We decided ...
3 years, 5 months ago (2017-07-11 21:44:54 UTC) #6
Sonny Sasaka
On 2017/07/11 21:44:54, Kyle Horimoto wrote: > On 2017/07/11 21:36:36, rkc wrote: > > I ...
3 years, 5 months ago (2017-07-11 21:55:52 UTC) #7
Kyle Horimoto
hansberry@: I know you already LGTM'ed, but PTAL as the change was bit complicated. https://codereview.chromium.org/2972263002/diff/1/chromeos/components/tether/ble_advertiser.cc ...
3 years, 5 months ago (2017-07-12 02:22:04 UTC) #8
Ryan Hansberry
https://codereview.chromium.org/2972263002/diff/20001/chromeos/components/tether/ble_advertiser.h File chromeos/components/tether/ble_advertiser.h (right): https://codereview.chromium.org/2972263002/diff/20001/chromeos/components/tether/ble_advertiser.h#newcode125 chromeos/components/tether/ble_advertiser.h:125: void OnAdvertisementUnregistered(const std::string& associated_device_id); one more nit: make the ...
3 years, 5 months ago (2017-07-12 16:27:10 UTC) #9
Kyle Horimoto
https://codereview.chromium.org/2972263002/diff/20001/chromeos/components/tether/ble_advertiser.h File chromeos/components/tether/ble_advertiser.h (right): https://codereview.chromium.org/2972263002/diff/20001/chromeos/components/tether/ble_advertiser.h#newcode125 chromeos/components/tether/ble_advertiser.h:125: void OnAdvertisementUnregistered(const std::string& associated_device_id); On 2017/07/12 16:27:10, Ryan Hansberry ...
3 years, 5 months ago (2017-07-12 17:40:30 UTC) #10
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/2972263002/40001
3 years, 5 months ago (2017-07-12 17:40:51 UTC) #13
commit-bot: I haz the power
3 years, 5 months ago (2017-07-12 19:08:59 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/3b45b11eb7575d7e35ff53431dd6...

Powered by Google App Engine
This is Rietveld 408576698