1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/chrome_build.gni")
6 import("//build/config/crypto.gni")
7 import("//build/config/features.gni")
8 import("//build/config/ui.gni")
9 import("//third_party/protobuf/proto_library.gni")
11 # //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which
12 # produces a conflict for the "grit" template so we have to only include one.
14 import("//build/config/android/rules.gni")
16 import("//tools/grit/grit_rule.gni")
18 if (is_desktop_linux) {
19 import("//build/config/linux/pkg_config.gni")
23 # 'Ok Google' hotwording is disabled by default. Set to true to enable. (This
24 # will download a closed-source NaCl module at startup.) Chrome-branded
25 # ChromeOS builds have this enabled by default.
26 enable_hotwording = is_chrome_branded && is_chromeos
29 about_credits_file = "$target_gen_dir/about_credits.html"
30 additional_modules_list_file =
31 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt"
33 gypi_values = exec_script("//build/gypi_to_gn.py",
34 [ rebase_path("../chrome_browser.gypi") ],
36 [ "../chrome_browser.gypi" ])
39 # This is in a separate config so the flags can be applied to dependents.
40 # ldflags in GN aren't automatically inherited.
41 config("browser_win_linker_flags") {
45 "ndfapi.lib", # Used by browser/net/net_error_diagnostics_dialog_win.h
47 ldflags = [ "/DELAYLOAD:ndfapi.dll" ]
51 if (is_desktop_linux) {
52 # Gnome-keyring is normally dynamically loaded. The gnome_keyring config
54 pkg_config("gnome_keyring") {
55 packages = [ "gnome-keyring-1" ]
58 "DLOPEN_GNOME_KEYRING",
63 # If you want to link gnome-keyring directly (use only for unit tests)
64 # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a
65 # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs
66 # are just itself and common gnome ones we link already, so we can get away
67 # with additionally just coding the library name here.
68 config("gnome_keyring_direct") {
69 libs = [ "gnome-keyring" ]
73 source_set("browser") {
75 "//build/config/compiler:wexit_time_destructors",
76 "//build/config:precompiled_headers",
77 "//third_party/WebKit/public:debug_devtools",
84 # iOS/non-iOS shared deps. New dependencies should generally be added in the
87 "//components/autofill/core/browser",
88 "//content/public/browser",
94 "//chrome:extra_resources",
97 "//chrome/app:generated_resources_map",
98 "//chrome/app/resources:platform_locale_settings",
99 "//chrome/app/theme:theme_resources",
100 "//chrome/browser/net:probe_message_proto",
101 "//chrome/browser/ui",
103 "//components/autofill/core/browser",
104 "//components/bookmarks/browser",
105 "//components/bookmarks/managed",
106 "//components/captive_portal",
107 "//components/certificate_reporting",
108 "//components/cloud_devices/common",
109 "//components/component_updater",
110 "//components/compression",
111 "//components/content_settings/content/common",
112 "//components/content_settings/core/browser",
113 "//components/content_settings/core/common",
114 "//components/crx_file",
115 "//components/data_reduction_proxy/core/browser",
116 "//components/device_event_log",
117 "//components/domain_reliability",
118 "//components/enhanced_bookmarks",
119 "//components/favicon/core",
120 "//components/favicon_base",
121 "//components/gcm_driver",
122 "//components/gcm_driver/instance_id",
123 "//components/google/core/browser",
124 "//components/guest_view/browser",
125 "//components/handoff",
126 "//components/history/core/browser",
127 "//components/history/core/common",
128 "//components/infobars/core",
129 "//components/invalidation/impl",
130 "//components/metrics:gpu",
131 "//components/metrics:net",
132 "//components/metrics:profiler",
133 "//components/metrics/proto:proto",
134 "//components/mime_util",
135 "//components/navigation_metrics",
136 "//components/network_time",
137 "//components/offline_pages",
138 "//components/omnibox/browser",
139 "//components/os_crypt",
140 "//components/packed_ct_ev_whitelist",
141 "//components/password_manager/core/browser",
142 "//components/password_manager/core/common",
143 "//components/policy:policy_component",
144 "//components/proxy_config",
145 "//components/query_parser",
146 "//components/rappor",
147 "//components/renderer_context_menu",
148 "//components/search",
149 "//components/search_engines",
150 "//components/search_provider_logos",
151 "//components/security_interstitials/core",
152 "//components/signin/core/browser",
153 "//components/startup_metric_utils",
154 "//components/strings",
155 "//components/suggestions",
156 "//components/sync_driver",
157 "//components/tracing:startup_tracing",
158 "//components/translate/core/browser",
159 "//components/translate/core/common",
160 "//components/ui/zoom",
162 "//components/update_client",
163 "//components/url_formatter",
164 "//components/user_prefs",
165 "//components/user_prefs/tracked:user_prefs_tracked",
166 "//components/variations",
167 "//components/variations/net",
168 "//components/variations/service",
169 "//components/webdata/common",
170 "//components/webdata_services",
171 "//components/web_resource",
172 "//content/public/browser",
173 "//content/public/common",
174 "//courgette:courgette_lib",
181 "//third_party/cacheinvalidation",
183 "//third_party/libxml",
184 "//third_party/libjingle",
185 "//third_party/widevine/cdm:version_h",
186 "//third_party/zlib",
187 "//third_party/zlib:minizip",
188 "//third_party/zlib:zip",
190 "//ui/events:events_base",
193 "//ui/message_center",
194 "//ui/shell_dialogs",
200 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
204 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
205 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
208 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
211 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
214 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
217 sources += rebase_path(gypi_values.chrome_browser_engagement_sources,
221 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
223 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
225 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
227 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
229 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
230 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
233 sources += rebase_path(gypi_values.chrome_browser_permissions_sources,
236 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
240 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
241 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
244 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
247 sources += rebase_path(gypi_values.chrome_browser_services_sources,
251 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
253 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
255 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
257 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
258 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
265 "//chrome/app:generated_resources_map",
266 "//chrome/app/theme:theme_resources",
267 "//chrome/browser/devtools",
268 "//chrome/browser/resources:component_extension_resources",
269 "//chrome/common/net",
270 "//chrome/installer/util",
271 "//components/about_handler",
272 "//components/app_modal",
273 "//components/autofill/content/browser",
274 "//components/browsing_data",
275 "//components/data_reduction_proxy/content/browser",
276 "//components/devtools_discovery",
277 "//components/devtools_http_handler",
278 "//components/dom_distiller/content:content_browser",
279 "//components/error_page/common",
280 "//components/favicon/content",
281 "//components/history/content/browser",
282 "//components/keyed_service/content",
283 "//components/navigation_interception",
284 "//components/network_hints/common",
285 "//components/password_manager/content/browser",
286 "//components/password_manager/sync/browser",
287 "//components/plugins/common",
288 "//components/proxy_config",
289 "//components/safe_json",
290 "//components/sessions",
291 "//components/storage_monitor",
292 "//components/translate/content/browser",
293 "//components/upload_list",
294 "//components/url_matcher",
295 "//components/visitedlink/browser",
296 "//components/visitedlink/common",
297 "//components/web_cache/browser",
298 "//components/web_modal",
299 "//content/app/resources",
301 "//mojo/application/public/cpp",
303 "//mojo/environment:chromium",
308 "//third_party/WebKit/public:image_resources",
309 "//third_party/WebKit/public:resources",
310 "//third_party/leveldatabase",
311 "//third_party/libaddressinput",
312 "//third_party/libyuv",
313 "//third_party/mojo/src/mojo/edk/system",
314 "//third_party/mojo/src/mojo/public/cpp/bindings",
315 "//third_party/mojo/src/mojo/public/js",
317 "//third_party/smhasher:cityhash",
318 "//third_party/webrtc/modules/desktop_capture",
328 deps += [ "//ui/views" ]
332 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
334 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
337 "CoreTelephony.framework",
338 "CoreText.framework",
339 "MobileCoreServices.framework",
340 "QuartzCore.framework",
348 if (is_win || is_mac) {
350 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
352 if (!is_win && !is_mac && !is_ios) {
353 sources += [ "net/net_error_diagnostics_dialog_generic.cc" ]
355 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
357 "net/disk_cache_dir_policy_handler.cc",
358 "net/disk_cache_dir_policy_handler.h",
361 if (!is_android && !is_ios && enable_configuration_policy) {
363 "download/download_dir_policy_handler.cc",
364 "download/download_dir_policy_handler.h",
369 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
371 #"app_shim" TODO(GYP) bug 512600
372 #"browser_app_shim" TODO(GYP) bug 512600
375 if (enable_extensions) {
376 public_deps += [ "//chrome/browser/extensions" ]
378 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
379 "//chrome/common/extensions/api",
380 "//chrome/common/extensions/api:api_registration",
381 "//components/drive:drive",
382 "//components/proximity_auth/ble",
383 "//components/proximity_auth/cryptauth",
384 "//extensions/components/javascript_dialog_extensions_client",
387 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
391 if (enable_background) {
392 sources += rebase_path(gypi_values.chrome_browser_background_sources,
395 if (!use_aura || is_win || is_chromeos) {
396 sources -= [ "background/background_mode_manager_aura.cc" ]
399 if (enable_task_manager) {
400 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
404 if (enable_spellcheck) {
405 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
409 deps += [ "//third_party/hunspell" ]
414 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
415 deps += [ "//components/nacl:nacl_browser" ]
418 if (enable_configuration_policy) {
420 rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources,
424 "//components/policy",
425 "//components/policy/proto",
428 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources,
433 sources += rebase_path(
434 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources,
438 if (is_win || is_mac || is_desktop_linux) {
439 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
443 if (is_android || is_ios) {
444 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources,
449 "//chrome/browser/policy:path_parser",
450 "//net:net_browser_services",
454 # Configuration policy disabled.
455 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
460 if (enable_plugins) {
462 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
464 "//components/pdf/browser",
466 "//third_party/adobe/flash:flapper_version_h",
469 if (safe_browsing_mode != 0) {
471 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
475 "//chrome/browser/safe_browsing:chunk_proto",
476 "//chrome/browser/safe_browsing:metadata_proto",
477 "//chrome/browser/safe_browsing:report_proto",
479 if (safe_browsing_mode == 1) {
481 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
484 deps += [ "//chrome/common/safe_browsing:proto" ]
486 deps += [ "//chrome/browser/safe_browsing/incident_reporting:state_store_data_proto" ]
488 } else if (safe_browsing_mode == 3) {
489 sources += rebase_path(
490 gypi_values.chrome_browser_safe_browsing_mobile_extended_sources,
496 if (enable_hotwording) {
497 defines += [ "ENABLE_HOTWORDING" ]
501 deps += [ "//device/media_transfer_protocol" ]
505 deps += [ "//device/udev_linux" ]
508 if (is_linux && !is_chromeos) {
509 deps += [ "//third_party/speech-dispatcher" ]
513 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
516 deps += [ "//chrome/browser/chromeos" ]
521 "metrics/signin_status_metrics_provider_base.cc",
522 "metrics/signin_status_metrics_provider_base.h",
526 if (is_chromeos || is_ios) {
528 "metrics/signin_status_metrics_provider.cc",
529 "metrics/signin_status_metrics_provider.h",
534 configs += [ "//printing:cups" ]
536 if (is_desktop_linux) {
537 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
540 configs += [ ":gnome_keyring" ]
542 if (is_desktop_linux) {
543 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
546 defines += [ "USE_LIBSECRET" ]
550 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
557 if (ui_compositor_image_transport) {
558 deps += [ "//ui/gl" ]
563 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
568 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
570 sources -= [ "password_manager/password_store_x.cc" ]
572 if (is_posix && !is_mac && !is_ios) {
574 "//chrome/app/chrome_crash_reporter_client.cc",
575 "//chrome/app/chrome_crash_reporter_client.h",
578 "//components/crash/app",
579 "//components/crash/browser",
584 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
586 sources -= [ "net/nss_context_linux.cc" ]
589 if (enable_notifications) {
590 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
594 sources += rebase_path(
595 gypi_values.chrome_browser_notifications_non_android_sources,
602 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
605 if (enable_basic_printing || enable_print_preview) {
606 # Some form of printing support.
607 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
612 "//components/printing/browser",
616 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
620 if (enable_print_preview) {
621 # Full printing on top of the above.
622 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
626 # Partial-only printing support.
628 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
633 if (enable_captive_portal_detection) {
634 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
638 if (enable_session_service) {
639 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
644 if (!is_android && !is_ios && !is_chromeos) {
646 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
649 if (is_android || is_ios) {
652 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
655 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
659 "//components/feedback",
660 "//components/webusb",
662 "//device/devices_app/public/cpp",
663 "//device/devices_app/public/cpp:factory",
668 if (!is_official_build) {
670 "search/local_files_ntp_source.cc",
671 "search/local_files_ntp_source.h",
677 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
678 sources += rebase_path(gypi_values.chrome_browser_bookmark_android_sources,
682 ":client_discourse_context_proto",
685 "//components/cdm/browser",
686 "//components/enhanced_bookmarks",
687 "//components/precache/content",
688 "//components/precache/core",
689 "//components/resources:components_resources",
690 "//components/service_tab_launcher",
691 "//components/toolbar",
692 "//components/web_contents_delegate_android",
693 "//third_party/android_opengl/etc1",
694 "//third_party/android_tools:cpu_features",
695 "//third_party/libaddressinput:util",
698 "//third_party/libaddressinput",
699 "//components/storage_monitor",
700 "//components/web_modal",
702 defines += [ "ENABLE_DATA_REDUCTION_PROXY_DEBUGGING" ]
704 if (use_seccomp_bpf) {
705 defines += [ "USE_SECCOMP_BPF" ]
706 deps += [ "//sandbox/linux:seccomp_bpf" ]
712 "//third_party/google_toolbox_for_mac",
713 "//third_party/mozilla",
716 "Accelerate.framework",
717 "AddressBook.framework",
718 "AudioUnit.framework",
719 "DiskArbitration.framework",
721 "ImageCaptureCore.framework",
723 "QuartzCore.framework",
724 "SecurityInterface.framework",
733 # Temporary fix to break the browser target into smaller chunks so it
734 # will link with goma builds.
735 #["OS=="win" and chromium_win_pch==0", {
741 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
744 "//ui/views/controls/webview",
747 ":chrome_process_finder",
748 "//chrome:version_header",
749 "//chrome/installer/util:strings",
751 "//chrome_elf:constants",
752 "//chrome_elf:dll_hash",
753 "//components/browser_watcher",
754 "//components/browser_watcher:browser_watcher_client",
756 "//third_party/iaccessible2",
757 "//third_party/isimpledom",
760 "//win8:metro_viewer",
763 all_dependent_configs = [ ":browser_win_linker_flags" ]
765 if (!is_chrome_branded) {
766 deps -= [ "//google_update" ]
768 "google/did_run_updater_win.cc",
769 "google/did_run_updater_win.h",
770 "google/google_update_win.cc",
771 "google/google_update_win.h",
777 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
781 "//ui/views/controls/webview",
788 rebase_path(gypi_values.chrome_browser_linux_sources, ".", "//chrome")
791 "//build/config/linux:dbus",
792 "//build/config/linux:fontconfig",
797 configs += [ "//build/config/linux:x11" ]
798 deps += [ "//ui/gfx/x" ]
802 if (is_desktop_linux) {
803 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
807 if (enable_plugin_installation) {
809 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
813 if (enable_app_list) {
814 deps += [ "//ui/app_list" ]
816 if (enable_supervised_users) {
817 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
821 if (enable_supervised_users && !is_android && !is_ios) {
823 rebase_path(gypi_values.chrome_browser_supervised_user_legacy_sources,
827 if (enable_supervised_users && enable_themes) {
828 sources += rebase_path(
829 gypi_values.chrome_browser_supervised_user_and_themes_sources,
835 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
837 if (enable_service_discovery) {
838 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
844 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
846 if (!enable_autofill_dialog || is_android || is_ios) {
848 "autofill/validation_rules_storage_factory.cc",
849 "autofill/validation_rules_storage_factory.h",
852 if (enable_wifi_bootstrapping) {
854 rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources,
857 if (is_win || is_mac) {
858 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
859 # and Mac, so this test is meaningless. Can we merge these lists?
860 sources += rebase_path(
861 gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources,
866 if (enable_media_router) {
867 deps += [ "//chrome/browser/media/router" ]
872 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
873 generate_jni("jni_headers") {
875 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
876 jni_package = "chrome"
879 #GYP: '//chrome/chrome_browser.gypi:client_discourse_context_proto'
880 proto_library("client_discourse_context_proto") {
882 "android/proto/client_discourse_context.proto",
886 #GYP: '//chrome/chrome_browser.gypi:delta_file_proto'
887 proto_library("delta_file_proto") {
889 "android/proto/delta_file.proto",
895 source_set("chrome_process_finder") {
897 "chrome_process_finder_win.cc",
898 "chrome_process_finder_win.h",
902 "//chrome/browser/metro_utils",
903 "//chrome/common:constants",
905 if (enable_configuration_policy) {
906 deps += [ "//chrome/browser/policy:path_parser" ]
911 # GYP version: chrome/chrome_resources.gyp:chrome_resources
912 # (generate_browser_resources action)
914 source = "browser_resources.grd"
915 output_dir = "$root_gen_dir/chrome"
917 "grit/browser_resources.h",
918 "browser_resources.pak",
922 "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js"
926 "about_credits_file=" + rebase_path(about_credits_file, root_build_dir),
928 "additional_modules_list_file=" +
929 rebase_path(additional_modules_list_file, root_build_dir),
931 "omnibox_mojom_file=" + rebase_path(omnibox_mojom_file, root_build_dir),
936 ":chrome_internal_resources_gen",
938 # Depend only on the generated mojo bindings since we read the .mojom.js
939 # file, rather than the whole mojo target which will link the C++ bindings.
940 "//chrome/browser/ui/webui/omnibox:mojo_bindings__generator",
947 # GYP version: chrome/chrome_resource.gyp:about_credits
948 action("about_credits") {
949 script = "//tools/licenses.py"
952 # This is not a complete list. TODO(phajdan.jr, dbeam): licenses.py needs to
953 # generate a .d file with all the licenses/credits that about:credits uses.
954 # Then about:credits will automatically rebuild when one of them changes.
955 # See: depfile in gn's documentation (gn help depfile).
956 "resources/about_credits.tmpl",
957 "resources/about_credits_entry.tmpl",
966 rebase_path(about_credits_file, root_build_dir),
970 # GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
971 if (is_chrome_branded) {
972 action("chrome_internal_resources_gen") {
973 script = "internal/transform_additional_modules_list.py"
975 "internal/resources/additional_modules_list.input",
978 additional_modules_list_file,
980 args = rebase_path(sources, root_build_dir) +
981 rebase_path(outputs, root_build_dir)
984 group("chrome_internal_resources_gen") {
989 # In GYP this is part of test_support_common.
990 source_set("test_support") {
993 # Always include this via the main test support target.
994 visibility = [ "//chrome/test:test_support" ]
997 "browsing_data/mock_browsing_data_appcache_helper.cc",
998 "browsing_data/mock_browsing_data_appcache_helper.h",
999 "browsing_data/mock_browsing_data_cache_storage_helper.cc",
1000 "browsing_data/mock_browsing_data_cache_storage_helper.h",
1001 "browsing_data/mock_browsing_data_channel_id_helper.cc",
1002 "browsing_data/mock_browsing_data_channel_id_helper.h",
1003 "browsing_data/mock_browsing_data_cookie_helper.cc",
1004 "browsing_data/mock_browsing_data_cookie_helper.h",
1005 "browsing_data/mock_browsing_data_database_helper.cc",
1006 "browsing_data/mock_browsing_data_database_helper.h",
1007 "browsing_data/mock_browsing_data_file_system_helper.cc",
1008 "browsing_data/mock_browsing_data_file_system_helper.h",
1009 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
1010 "browsing_data/mock_browsing_data_flash_lso_helper.h",
1011 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
1012 "browsing_data/mock_browsing_data_indexed_db_helper.h",
1013 "browsing_data/mock_browsing_data_local_storage_helper.cc",
1014 "browsing_data/mock_browsing_data_local_storage_helper.h",
1015 "browsing_data/mock_browsing_data_quota_helper.cc",
1016 "browsing_data/mock_browsing_data_quota_helper.h",
1017 "browsing_data/mock_browsing_data_service_worker_helper.cc",
1018 "browsing_data/mock_browsing_data_service_worker_helper.h",
1019 "download/download_test_file_activity_observer.cc",
1020 "download/download_test_file_activity_observer.h",
1021 "download/test_download_shelf.cc",
1022 "download/test_download_shelf.h",
1023 "invalidation/fake_invalidation_service.cc",
1024 "invalidation/fake_invalidation_service.h",
1025 "media/fake_desktop_media_list.cc",
1026 "media/fake_desktop_media_list.h",
1027 "net/dns_probe_test_util.cc",
1028 "net/dns_probe_test_util.h",
1029 "net/url_request_mock_util.cc",
1030 "net/url_request_mock_util.h",
1031 "notifications/notification_test_util.cc",
1032 "notifications/notification_test_util.h",
1033 "password_manager/mock_password_store_service.cc",
1034 "password_manager/mock_password_store_service.h",
1035 "password_manager/null_password_store_service.cc",
1036 "password_manager/null_password_store_service.h",
1037 "password_manager/password_manager_test_base.cc",
1038 "password_manager/password_manager_test_base.h",
1039 "password_manager/test_password_store_service.cc",
1040 "password_manager/test_password_store_service.h",
1041 "prefs/pref_service_mock_factory.cc",
1042 "prefs/pref_service_mock_factory.h",
1043 "profile_resetter/profile_resetter_test_base.cc",
1044 "profile_resetter/profile_resetter_test_base.h",
1045 "search_engines/template_url_service_factory_test_util.cc",
1046 "search_engines/template_url_service_factory_test_util.h",
1047 "search_engines/template_url_service_test_util.cc",
1048 "search_engines/template_url_service_test_util.h",
1049 "sessions/session_restore_test_helper.cc",
1050 "sessions/session_restore_test_helper.h",
1051 "sessions/session_service_test_helper.cc",
1052 "sessions/session_service_test_helper.h",
1053 "signin/fake_account_fetcher_service_builder.cc",
1054 "signin/fake_account_fetcher_service_builder.h",
1055 "signin/fake_gaia_cookie_manager_service.cc",
1056 "signin/fake_gaia_cookie_manager_service.h",
1057 "signin/fake_profile_oauth2_token_service_builder.cc",
1058 "signin/fake_profile_oauth2_token_service_builder.h",
1059 "signin/fake_signin_manager_builder.cc",
1060 "signin/fake_signin_manager_builder.h",
1061 "ssl/ssl_client_auth_requestor_mock.cc",
1062 "ssl/ssl_client_auth_requestor_mock.h",
1063 "sync/profile_sync_components_factory_mock.cc",
1064 "sync/profile_sync_components_factory_mock.h",
1065 "sync/profile_sync_service_mock.cc",
1066 "sync/profile_sync_service_mock.h",
1067 "ui/webui/signin/login_ui_test_utils.cc",
1068 "ui/webui/signin/login_ui_test_utils.h",
1071 configs += [ "//build/config:precompiled_headers" ]
1075 "//chrome/browser/ui:test_support",
1078 "//base:prefs_test_support",
1081 "//chrome/common/safe_browsing:proto",
1082 "//components/invalidation/impl",
1083 "//components/invalidation/impl:test_support",
1084 "//components/password_manager/core/browser:test_support",
1085 "//components/search_engines:test_support",
1086 "//components/user_prefs/tracked:user_prefs_tracked_test_support",
1087 "//content/test:test_support",
1088 "//chrome/app/theme:theme_resources",
1089 "//net:test_support",
1098 "//components/sessions:test_support",
1099 "//google_apis:test_support",
1103 if (enable_extensions) {
1105 "extensions/extension_action_test_util.cc",
1106 "extensions/extension_action_test_util.h",
1108 deps += [ "//extensions:test_support" ]
1113 "chromeos/app_mode/fake_cws.cc",
1114 "chromeos/app_mode/fake_cws.h",
1115 "chromeos/file_manager/fake_disk_mount_manager.cc",
1116 "chromeos/file_manager/fake_disk_mount_manager.h",
1117 "chromeos/input_method/mock_candidate_window_controller.cc",
1118 "chromeos/input_method/mock_candidate_window_controller.h",
1119 "chromeos/input_method/mock_input_method_engine.cc",
1120 "chromeos/input_method/mock_input_method_engine.h",
1121 "chromeos/input_method/mock_input_method_manager.cc",
1122 "chromeos/input_method/mock_input_method_manager.h",
1123 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
1124 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
1125 "chromeos/login/session/user_session_manager_test_api.cc",
1126 "chromeos/login/session/user_session_manager_test_api.h",
1127 "chromeos/login/test/js_checker.cc",
1128 "chromeos/login/test/js_checker.h",
1129 "chromeos/login/test/oobe_screen_waiter.cc",
1130 "chromeos/login/test/oobe_screen_waiter.h",
1131 "chromeos/login/ui/mock_login_display.cc",
1132 "chromeos/login/ui/mock_login_display.h",
1133 "chromeos/login/ui/mock_login_display_host.cc",
1134 "chromeos/login/ui/mock_login_display_host.h",
1135 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1136 "chromeos/login/users/avatar/mock_user_image_manager.h",
1137 "chromeos/login/users/fake_chrome_user_manager.cc",
1138 "chromeos/login/users/fake_chrome_user_manager.h",
1139 "chromeos/login/users/fake_supervised_user_manager.cc",
1140 "chromeos/login/users/fake_supervised_user_manager.h",
1141 "chromeos/login/users/mock_user_manager.cc",
1142 "chromeos/login/users/mock_user_manager.h",
1143 "chromeos/net/network_portal_detector_test_utils.cc",
1144 "chromeos/net/network_portal_detector_test_utils.h",
1145 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1146 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1147 "chromeos/policy/device_policy_builder.cc",
1148 "chromeos/policy/device_policy_builder.h",
1149 "chromeos/policy/fake_consumer_management_service.cc",
1150 "chromeos/policy/fake_consumer_management_service.h",
1151 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1152 "chromeos/policy/fake_device_cloud_policy_initializer.h",
1153 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1154 "chromeos/policy/fake_device_cloud_policy_manager.h",
1155 "chromeos/policy/stub_enterprise_install_attributes.cc",
1156 "chromeos/policy/stub_enterprise_install_attributes.h",
1157 "chromeos/settings/device_settings_test_helper.cc",
1158 "chromeos/settings/device_settings_test_helper.h",
1159 "chromeos/system/fake_input_device_settings.cc",
1160 "chromeos/system/fake_input_device_settings.h",
1162 configs += [ "//build/config/linux:dbus" ]
1163 deps += [ "//chromeos:test_support" ]
1166 if (enable_configuration_policy) {
1168 "policy/test/local_policy_test_server.cc",
1169 "policy/test/local_policy_test_server.h",
1172 "//components/policy:policy_component_test_support",
1173 "//components/policy:test_support",
1177 if (safe_browsing_mode == 1) {
1179 "extensions/fake_safe_browsing_database_manager.cc",
1180 "extensions/fake_safe_browsing_database_manager.h",
1184 if (enable_extensions) {
1186 "extensions/api/messaging/native_messaging_test_util.cc",
1187 "extensions/api/messaging/native_messaging_test_util.h",
1188 "extensions/extension_notification_observer.cc",
1189 "extensions/extension_notification_observer.h",
1190 "extensions/mock_extension_special_storage_policy.cc",
1191 "extensions/mock_extension_special_storage_policy.h",
1192 "extensions/test_blacklist.cc",
1193 "extensions/test_blacklist.h",
1194 "extensions/test_blacklist_state_fetcher.cc",
1195 "extensions/test_blacklist_state_fetcher.h",
1196 "extensions/test_extension_dir.cc",
1197 "extensions/test_extension_dir.h",
1198 "extensions/test_extension_environment.cc",
1199 "extensions/test_extension_environment.h",
1200 "extensions/test_extension_prefs.cc",
1201 "extensions/test_extension_prefs.h",
1202 "extensions/test_extension_service.cc",
1203 "extensions/test_extension_service.h",
1204 "extensions/test_extension_system.cc",
1205 "extensions/test_extension_system.h",
1206 "media_galleries/media_galleries_test_util.cc",
1207 "media_galleries/media_galleries_test_util.h",
1210 "//components/drive:test_support",
1211 "//components/storage_monitor:test_support",
1217 "local_discovery/test_service_discovery_client.cc",
1218 "local_discovery/test_service_discovery_client.h",
1222 if (enable_app_list) {
1224 "ui/app_list/test/chrome_app_list_test_support.cc",
1225 "ui/app_list/test/chrome_app_list_test_support.h",
1226 "ui/app_list/test/test_app_list_controller_delegate.cc",
1227 "ui/app_list/test/test_app_list_controller_delegate.h",
1231 if (enable_wifi_bootstrapping) {
1233 "local_discovery/wifi/mock_wifi_manager.cc",
1234 "local_discovery/wifi/mock_wifi_manager.h",
1239 if (enable_rlz_support) {
1242 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
1244 "//components/google/core/browser",
1245 "//components/omnibox/browser",
1247 "//components/search_engines",