blob: 1d2b5f381a6fcec7977d0a2e6cd7f55a2e457bd8 [file] [log] [blame]
// Copyright 2019 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/hid/hid_chooser.h"
#include <utility>
#include "components/bubble/bubble_controller.h"
HidChooser::HidChooser(BubbleReference bubble) : bubble_(std::move(bubble)) {}
HidChooser::~HidChooser() {
if (bubble_)
bubble_->CloseBubble(BUBBLE_CLOSE_FORCED);
}