| # Copyright 2024 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/config/chromeos/ui_mode.gni") |
| |
| assert(is_chromeos_ash, "OnTask is only supported in Ash") |
| |
| static_library("on_task") { |
| sources = [ |
| "on_task_blocklist.cc", |
| "on_task_blocklist.h", |
| "on_task_extensions_manager.h", |
| "on_task_notifications_manager.cc", |
| "on_task_notifications_manager.h", |
| "on_task_prefs.cc", |
| "on_task_prefs.h", |
| "on_task_session_manager.cc", |
| "on_task_session_manager.h", |
| "on_task_system_web_app_manager.h", |
| ] |
| |
| deps = [ |
| ":activity", |
| "//ash/constants:constants", |
| "//ash/public/cpp", |
| "//base", |
| "//chromeos/ash/components/boca", |
| "//chromeos/ash/components/boca/proto", |
| "//components/google/core/common", |
| "//components/policy/core/browser", |
| "//components/pref_registry", |
| "//components/sessions", |
| "//components/sessions:session_id", |
| "//content/public/browser", |
| ] |
| } |
| |
| static_library("activity") { |
| sources = [ |
| "activity/active_tab_tracker.cc", |
| "activity/active_tab_tracker.h", |
| ] |
| deps = [ |
| "//base", |
| "//chromeos/ash/components/boca", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| |
| sources = [ |
| "on_task_notifications_manager_unittest.cc", |
| "on_task_session_manager_unittest.cc", |
| ] |
| |
| deps = [ |
| ":activity", |
| ":on_task", |
| "//base", |
| "//chrome/test:test_support", |
| "//chromeos/ash/components/boca/proto", |
| "//components/sessions:session_id", |
| ] |
| } |