1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# 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" ]
}
}
|