Commit 3d272885 authored by Michael Hansen's avatar Michael Hansen Committed by Commit Bot

[Nearby] Invalidate surfaces when Bluetooth adapter is acquired.

This addresses a bug in which advertising was not starting on sign-in.
This was because Bluetooth adapter was not acquired in time for the
initial round of checks.

Bug: 1132063
Change-Id: I6ce9ad8ad9ca5c02a0cb00eb60b8d80f852a355e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2431586Reviewed-by: default avatarRyan Hansberry <hansberry@chromium.org>
Commit-Queue: Michael Hansen <hansenmichael@google.com>
Cr-Commit-Position: refs/heads/master@{#810910}
parent 111f72a2
...@@ -1032,6 +1032,10 @@ void NearbySharingServiceImpl::OnGetBluetoothAdapter( ...@@ -1032,6 +1032,10 @@ void NearbySharingServiceImpl::OnGetBluetoothAdapter(
scoped_refptr<device::BluetoothAdapter> adapter) { scoped_refptr<device::BluetoothAdapter> adapter) {
bluetooth_adapter_ = adapter; bluetooth_adapter_ = adapter;
bluetooth_adapter_->AddObserver(this); bluetooth_adapter_->AddObserver(this);
// TODO(crbug.com/1132469): This was added to fix an issue where advertising
// was not starting on sign-in. Add a unit test to cover this case.
InvalidateSurfaceState();
} }
void NearbySharingServiceImpl::StartFastInitiationAdvertising() { void NearbySharingServiceImpl::StartFastInitiationAdvertising() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment