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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2357383002: bluetooth: Add device list retrieval for chrome://bluetooth-internals (Closed)
Patch Set: Revert chrome browser client file Created 4 years, 3 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/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 71fb48b244cb8e6fee0f474832a27def252e25e0..527c84d1672f51c545b0c6e560df7b932c18eddf 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -164,6 +164,8 @@
#include "content/public/common/sandbox_type.h"
#include "content/public/common/url_utils.h"
#include "content/public/common/web_preferences.h"
+#include "device/bluetooth/adapter.h"
ortuno 2016/09/28 09:44:54 I think you need to add the device/bluetooth depen
mbrunson 2016/09/28 21:20:34 Done.
+#include "device/bluetooth/public/interfaces/adapter.mojom.h"
#include "device/usb/public/interfaces/chooser_service.mojom.h"
#include "device/usb/public/interfaces/device_manager.mojom.h"
#include "gin/v8_initializer.h"
@@ -2911,6 +2913,9 @@ void ChromeContentBrowserClient::RegisterRenderFrameMojoInterfaces(
base::Bind(&CreateWebUsbChooserService, render_frame_host));
}
+ registry->AddInterface<bluetooth::mojom::Adapter>(
+ base::Bind(&bluetooth::Adapter::Create));
+
if (!render_frame_host->GetParent()) {
// Register mojo CredentialManager interface only for main frame.
registry->AddInterface(

Powered by Google App Engine
This is Rietveld 408576698