blob: 79b911c01097da35f4677152d9e0ec46faada7f4 [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/hid/hid_connection_tracker.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/hid/hid_system_tray_icon.h"
#include "chrome/browser/ui/chrome_pages.h"
HidConnectionTracker::HidConnectionTracker(Profile* profile)
: DeviceConnectionTracker(profile) {}
HidConnectionTracker::~HidConnectionTracker() = default;
void HidConnectionTracker::ShowContentSettingsExceptions() {
chrome::ShowContentSettingsExceptionsForProfile(
profile_, ContentSettingsType::HID_CHOOSER_DATA);
}
DeviceSystemTrayIcon* HidConnectionTracker::GetSystemTrayIcon() {
return static_cast<DeviceSystemTrayIcon*>(
g_browser_process->hid_system_tray_icon());
}