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

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

Issue 2658473002: Refactor BluetoothAllowedDevicesMap (Closed)
Patch Set: set --similarity=20 when did git cl upload Created 3 years, 11 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/web_bluetooth_service_impl.h
diff --git a/content/browser/bluetooth/web_bluetooth_service_impl.h b/content/browser/bluetooth/web_bluetooth_service_impl.h
index 01b3da6f5e8aa59f61ba2198eee05cf9267bc0b6..85a68513b795a83621622b8423d8197c9a203e75 100644
--- a/content/browser/bluetooth/web_bluetooth_service_impl.h
+++ b/content/browser/bluetooth/web_bluetooth_service_impl.h
@@ -12,7 +12,7 @@
#include "base/macros.h"
#include "base/optional.h"
#include "content/browser/bad_message.h"
-#include "content/browser/bluetooth/bluetooth_allowed_devices_map.h"
+#include "content/browser/bluetooth/bluetooth_allowed_devices.h"
#include "content/common/content_export.h"
#include "content/public/browser/web_contents_observer.h"
#include "device/bluetooth/bluetooth_adapter.h"
@@ -228,7 +228,7 @@ class CONTENT_EXPORT WebBluetoothServiceImpl
std::unique_ptr<BluetoothDeviceChooserController> device_chooser_controller_;
// Keeps track of which devices the frame's origin is allowed to access.
- BluetoothAllowedDevicesMap allowed_devices_map_;
+ BluetoothAllowedDevices* allowed_devices_ = nullptr;
// Maps to get the object's parent based on its instanceID.
std::unordered_map<std::string, std::string> service_id_to_device_address_;

Powered by Google App Engine
This is Rietveld 408576698