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

Unified Diff: content/browser/storage_partition_impl.cc

Issue 2658473002: Refactor BluetoothAllowedDevicesMap (Closed)
Patch Set: cleaned up layout test code Created 3 years, 10 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/storage_partition_impl.cc
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc
index 639ab4b30b14c0c59791d4b3be01c649d4f8eb7d..95b3a95d9f6cf80d21592ddb2a0dd4ac238fd910 100644
--- a/content/browser/storage_partition_impl.cc
+++ b/content/browser/storage_partition_impl.cc
@@ -497,6 +497,8 @@ std::unique_ptr<StoragePartitionImpl> StoragePartitionImpl::Create(
partition->broadcast_channel_provider_ = new BroadcastChannelProvider();
+ partition->bluetooth_allowed_devices_map_ = new BluetoothAllowedDevicesMap();
+
return partition;
}
@@ -576,6 +578,11 @@ BroadcastChannelProvider* StoragePartitionImpl::GetBroadcastChannelProvider() {
return broadcast_channel_provider_.get();
}
+BluetoothAllowedDevicesMap*
+StoragePartitionImpl::GetBluetoothAllowedDevicesMap() {
+ return bluetooth_allowed_devices_map_.get();
+}
+
void StoragePartitionImpl::OpenLocalStorage(
const url::Origin& origin,
mojo::InterfaceRequest<mojom::LevelDBWrapper> request) {
@@ -866,6 +873,10 @@ void StoragePartitionImpl::Flush() {
GetDOMStorageContext()->Flush();
}
+void StoragePartitionImpl::ClearBluetoothAllowedDevicesMapForTesting() {
+ bluetooth_allowed_devices_map_->Clear();
+}
+
BrowserContext* StoragePartitionImpl::browser_context() const {
return browser_context_;
}

Powered by Google App Engine
This is Rietveld 408576698