blob: 5e3bd873d8f257b66efb3cb8cd1c7f6ec8250b17 [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "extensions/browser/api/power/activity_reporter_delegate_ash.h"
#include "ui/base/user_activity/user_activity_detector.h"
namespace extensions {
ActivityReporterDelegateAsh::ActivityReporterDelegateAsh() = default;
ActivityReporterDelegateAsh::~ActivityReporterDelegateAsh() = default;
absl::optional<std::string> ActivityReporterDelegateAsh::ReportActivity()
const {
ui::UserActivityDetector::Get()->HandleExternalUserActivity();
return absl::nullopt;
}
} // namespace extensions