# Copyright 2026 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/sanitizers/sanitizers.gni")

source_set("private_insights") {
  sources = [
    "private_insights_service_factory.cc",
    "private_insights_service_factory.h",
  ]
  public_deps = [
    "//base",
    "//chrome/browser/profiles:profile",
    "//content/public/browser",
  ]
  deps = [
    "//base:fuzzing_buildflags",
    "//chrome/browser:browser_process",
  ]

  # FCP cannot be linked with libprotobuf-mutator used when fuzzing, because
  # of ODR violations related to any.proto.  This can get removed when we stop
  # using libprotobuf-mutator or it stops being linked with this target.
  if (!use_fuzzing_engine) {
    public_deps += [ "//components/private_insights" ]
  }
}
