# Copyright 2018 The Chromium Authors. All rights reserved. # 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) # TODO(crbug.com/1065748): Delete web_applications/extensions/ directory. source_set("extensions") { sources = [ "bookmark_app_file_handler_manager.cc", "bookmark_app_file_handler_manager.h", "bookmark_app_finalizer_utils.cc", "bookmark_app_finalizer_utils.h", "bookmark_app_icon_manager.cc", "bookmark_app_icon_manager.h", "bookmark_app_install_finalizer.cc", "bookmark_app_install_finalizer.h", "bookmark_app_provider.cc", "bookmark_app_registrar.cc", "bookmark_app_registrar.h", "bookmark_app_registry_controller.cc", "bookmark_app_registry_controller.h", "bookmark_app_shortcut_manager.cc", "bookmark_app_shortcut_manager.h", "bookmark_app_util.cc", "bookmark_app_util.h", "extension_status_utils.cc", "web_app_extension_shortcut.cc", "web_app_extension_shortcut.h", ] if (is_mac) { sources += [ "web_app_extension_shortcut_mac.h", "web_app_extension_shortcut_mac.mm", ] } deps = [ "//base", "//build:chromeos_buildflags", "//chrome/browser:browser_process", "//chrome/browser/profiles:profile", "//chrome/browser/web_applications", "//chrome/browser/web_applications:web_app_group", "//chrome/browser/web_applications/components", "//chrome/common", "//components/pref_registry", "//components/services/app_service/public/mojom", "//components/sync/model", "//components/webapps/browser:browser", "//content/public/browser", "//extensions/browser", "//skia", ] } source_set("unit_tests") { testonly = true sources = [ "bookmark_app_install_finalizer_unittest.cc", "bookmark_app_util_unittest.cc", "externally_installed_web_app_prefs_unittest.cc", "externally_managed_app_install_task_unittest.cc", "web_app_policy_manager_unittest.cc", "web_app_provider_unittest.cc", ] deps = [ ":extensions", "//chrome/browser", "//chrome/browser/web_applications:web_app_test_group", "//chrome/browser/web_applications:web_applications", "//chrome/browser/web_applications:web_applications_test_support", "//chrome/browser/web_applications/components", "//chrome/common", "//chrome/test:test_support", "//components/crx_file:crx_file", "//components/webapps/browser:browser", "//content/public/browser", "//content/test:test_support", "//extensions/browser/install", "//extensions/common", "//skia", "//testing/gtest", ] if (is_chromeos_ash) { deps += [ "//chrome/browser/chromeos:chromeos" ] } }