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

Unified Diff: content/browser/bluetooth/bluetooth_device_chooser_controller.cc

Issue 2065893002: bluetooth: android: removed duplicate restart of scanning. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved restart of search from Android chooser to chooser controller. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/android/bluetooth_chooser_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/bluetooth/bluetooth_device_chooser_controller.cc
diff --git a/content/browser/bluetooth/bluetooth_device_chooser_controller.cc b/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
index 76b7b48c3795835c32acb50a861b679e455275c4..31d70514546558f68db52251d93fe16f7df1835e 100644
--- a/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
+++ b/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
@@ -341,6 +341,10 @@ void BluetoothDeviceChooserController::AdapterPoweredChanged(bool powered) {
chooser_->SetAdapterPresence(
powered ? BluetoothChooser::AdapterPresence::POWERED_ON
: BluetoothChooser::AdapterPresence::POWERED_OFF);
+ if (powered) {
+ OnBluetoothChooserEvent(BluetoothChooser::Event::RESCAN,
+ "" /* device_address */);
+ }
}
if (!powered) {
« no previous file with comments | « chrome/browser/ui/android/bluetooth_chooser_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698