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. |