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

Unified Diff: chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_page_handler.cc

Issue 2357383002: bluetooth: Add device list retrieval for chrome://bluetooth-internals (Closed)
Patch Set: 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/ui/webui/bluetooth_internals/bluetooth_internals_page_handler.cc
diff --git a/chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_page_handler.cc b/chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_page_handler.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5246092b88894b6a77b26c48aedc956ece0851dd
--- /dev/null
+++ b/chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_page_handler.cc
@@ -0,0 +1,23 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include <utility>
+
+#include "chrome/browser/ui/webui/bluetooth_internals/bluetooth_internals_page_handler.h"
+#include "chrome/browser/ui/webui/bluetooth_internals/services/bluetooth_adapter_service.h"
+#include "mojo/public/cpp/bindings/strong_binding.h"
+
+BluetoothInternalsPageHandler::BluetoothInternalsPageHandler(
+ mojom::InternalsPageHandlerRequest request)
+ : binding_(this, std::move(request)) {}
+
+BluetoothInternalsPageHandler::~BluetoothInternalsPageHandler() {}
+
+void BluetoothInternalsPageHandler::GetAdapterService(
+ bluetooth::AdapterRequest request,
+ bluetooth::AdapterClientPtr client) {
+ mojo::MakeStrongBinding(
+ base::MakeUnique<BluetoothAdapterService>(std::move(client)),
+ std::move(request));
+}

Powered by Google App Engine
This is Rietveld 408576698