# 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.
import("//build/config/chromeos/ui_mode.gni")
import("//extensions/buildflags/buildflags.gni")
import("//printing/buildflags/buildflags.gni")
assert(enable_extensions,
"Cannot depend on extensions because enable_extensions=false.")
assert(is_chromeos && use_cups)
source_set("printing_metrics") {
sources = [
"printing_metrics_api.cc",
"printing_metrics_api.h",
"printing_metrics_service.cc",
"printing_metrics_service.h",
]
deps = [
"//base",
"//chrome/browser/profiles:profile",
"//chrome/common/extensions/api",
"//chromeos/crosapi/mojom",
"//components/keyed_service/content",
"//content/public/browser",
"//extensions/browser",
"//printing",
]
if (is_chromeos_lacros) {
deps += [ "//chromeos/lacros:lacros" ]
}
if (is_chromeos_ash) {
deps += [ "//chrome/browser/ash/printing/history:print_job_info_proto" ]
}
}