blob: 65d46822b50c4b4c4223175e6f99d344b76cf8ed [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.
import("//mojo/public/tools/bindings/mojom.gni")
assert(!is_android)
mojom("mojom") {
sources = [ "on_device_internals_page.mojom" ]
public_deps = [
"//components/optimization_guide/optimization_guide_internals/webui:mojo_bindings",
"//mojo/public/mojom/base",
"//services/on_device_model/public/mojom",
]
webui_module_path = "/"
}
source_set("on_device_internals") {
public = [ "on_device_internals_ui.h" ]
sources = [
"on_device_internals_page_handler.cc",
"on_device_internals_page_handler.h",
"on_device_internals_ui.cc",
]
deps = [
":mojom",
"//base",
"//chrome/app:generated_resources",
"//chrome/browser:browser_process",
"//chrome/browser:global_features",
"//chrome/browser/optimization_guide",
"//chrome/browser/profiles:profile",
"//chrome/browser/resources/on_device_internals:resources",
"//chrome/common",
"//content/public/browser",
"//services/on_device_model/ml:ml_no_internal",
"//services/preferences/public/cpp",
"//ui/base",
"//ui/webui",
]
if (is_chromeos) {
deps += [ "//chromeos/ash/components/mojo_service_manager" ]
}
}