blob: 881d85bf42a096b7f808b25be0b77fb9c813627c [file] [log] [blame]
// 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 "chrome/browser/ui/webui/usb_internals/usb_internals_page_handler.h"
#include <utility>
#include "content/public/common/service_manager_connection.h"
#include "services/device/public/mojom/constants.mojom.h"
#include "services/service_manager/public/cpp/connector.h"
UsbInternalsPageHandler::UsbInternalsPageHandler(
mojom::UsbInternalsPageHandlerRequest request)
: binding_(this, std::move(request)) {}
UsbInternalsPageHandler::~UsbInternalsPageHandler() {}
void UsbInternalsPageHandler::BindTestInterface(
device::mojom::UsbDeviceManagerTestRequest request) {
// Forward the request to the DeviceService.
content::ServiceManagerConnection::GetForProcess()
->GetConnector()
->BindInterface(device::mojom::kServiceName, std::move(request));
}