// 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); | |
} |