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

Unified Diff: chrome/browser/ui/browser.cc

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: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 3abed6c03e97efdec77f487d398acf3f4d424355..37b0b77a73d1863beec8e34d144444773a70450b 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -35,6 +35,8 @@
#include "chrome/browser/background/background_contents_service.h"
#include "chrome/browser/background/background_contents_service_factory.h"
#include "chrome/browser/banners/app_banner_manager_desktop.h"
+#include "chrome/browser/bluetooth/bluetooth_allowed_devices_map.h"
+#include "chrome/browser/bluetooth/bluetooth_allowed_devices_map_factory.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/browser_shutdown.h"
#include "chrome/browser/chrome_notification_types.h"
@@ -1340,6 +1342,12 @@ std::unique_ptr<content::BluetoothChooser> Browser::RunBluetoothChooser(
return std::move(bluetooth_chooser_desktop);
}
+content::BluetoothAllowedDevicesMapBase* Browser::GetBluetoothDevicesMap(
+ content::RenderFrameHost* frame) {
+ return BluetoothAllowedDevicesMapFactory::GetForProfile(
+ frame->GetProcess()->GetBrowserContext());
+}
+
void Browser::RequestAppBannerFromDevTools(content::WebContents* web_contents) {
banners::AppBannerManagerDesktop::CreateForWebContents(web_contents);
banners::AppBannerManagerDesktop* manager =

Powered by Google App Engine
This is Rietveld 408576698