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

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

Issue 2577183002: Add UMA for the number of devices in the chooser when a device is paired (Closed)
Patch Set: address comments Created 4 years 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 500d31b144c125243d9ff0417a2b8e8a25aa9511..a054d6bf7058b521c3ecfde6c72256fd88122698 100644
--- a/content/browser/bluetooth/bluetooth_device_chooser_controller.h
+++ b/content/browser/bluetooth/bluetooth_device_chooser_controller.h
@@ -6,6 +6,7 @@
#define CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DEVICE_CHOOSER_CONTROLLER_H_
#include <string>
+#include <unordered_set>
#include "base/memory/weak_ptr.h"
#include "base/optional.h"
@@ -149,6 +150,9 @@ class CONTENT_EXPORT BluetoothDeviceChooserController final {
// The time when scanning starts.
base::Optional<base::TimeTicks> scanning_start_time_;
+ // The device ids that are currently shown in the chooser.
+ std::unordered_set<std::string> device_ids_;
+
// Weak pointer factory for generating 'this' pointers that might live longer
// than we do.
// Note: This should remain the last member so it'll be destroyed and

Powered by Google App Engine
This is Rietveld 408576698