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

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

Issue 2271413002: bluetooth: Implement RSSI indicator on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-impl-rssi-tx-power
Patch Set: Draft of LevelListDrawable and StateListDrawable Created 4 years, 2 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
Index: content/browser/bluetooth/bluetooth_device_chooser_controller.h
diff --git a/content/browser/bluetooth/bluetooth_device_chooser_controller.h b/content/browser/bluetooth/bluetooth_device_chooser_controller.h
index b9e21cc55689db5dee842442b57243593c81dcb2..e823090e4f8e223142351d7196c3d499deba1b66 100644
--- a/content/browser/bluetooth/bluetooth_device_chooser_controller.h
+++ b/content/browser/bluetooth/bluetooth_device_chooser_controller.h
@@ -140,6 +140,12 @@ class CONTENT_EXPORT BluetoothDeviceChooserController final {
// started.
base::Timer discovery_session_timer_;
+ // It's possible to receive notifications about new devices after
+ // we've told the chooser to be idle. In this case, we don't want to
+ // update the chooser. This variable keeps track of whether or not the
+ // chooser is idle and should no longer be updated.
+ bool should_update_chooser_;
+
// The last discovery session to be started.
// TODO(ortuno): This should be null unless there is an active discovery
// session. We need to null it when the platform stops discovery.

Powered by Google App Engine
This is Rietveld 408576698