chromium/extensions/browser/api/feedback_private/BUILD.gn

# Copyright 2017 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")

assert(enable_extensions,
       "Cannot depend on extensions because enable_extensions=false.")

source_set("feedback_private") {
  sources = [
    "feedback_private_api.cc",
    "feedback_private_api.h",
    "feedback_private_delegate.h",
    "feedback_service.cc",
    "feedback_service.h",
  ]

  configs += [ "//build/config/compiler:wexit_time_destructors" ]

  deps = [
    "//base",
    "//build:chromeos_buildflags",
    "//components/feedback",
    "//components/feedback/content",
    "//components/feedback/redaction_tool",
    "//content/public/browser",
    "//extensions/browser:browser_sources",
    "//extensions/common",
    "//extensions/common/api",
    "//google_apis",
    "//net",
  ]

  if (is_chromeos_ash) {
    sources += [
      "access_rate_limiter.cc",
      "access_rate_limiter.h",
      "log_source_access_manager.cc",
      "log_source_access_manager.h",
      "log_source_resource.cc",
      "log_source_resource.h",
    ]

    deps += [
      "//ash/public/cpp",
      "//chromeos/ash/components/cryptohome",
      "//chromeos/ash/components/dbus/debug_daemon",
      "//chromeos/ash/services/assistant/public/cpp",
      "//chromeos/ash/services/assistant/public/mojom",
      "//components/account_id",
      "//components/user_manager",
    ]
  }
}