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" ])
38 if (is_desktop_linux) {
39 # Gnome-keyring is normally dynamically loaded. The gnome_keyring config
41 pkg_config("gnome_keyring") {
42 packages = [ "gnome-keyring-1" ]
45 "DLOPEN_GNOME_KEYRING",
50 # If you want to link gnome-keyring directly (use only for unit tests)
51 # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a
52 # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs
53 # are just itself and common gnome ones we link already, so we can get away
54 # with additionally just coding the library name here.
55 config("gnome_keyring_direct") {
56 libs = [ "gnome-keyring" ]
60 source_set("browser") {
62 "//build/config/compiler:wexit_time_destructors",
63 "//build/config:precompiled_headers",
64 "//third_party/WebKit/public:debug_devtools",
71 # iOS/non-iOS shared deps. New dependencies should generally be added in the
74 "//components/autofill/core/browser",
75 "//content/public/browser",
81 "//chrome:extra_resources",
84 "//chrome/app:generated_resources_map",
85 "//chrome/app/resources:platform_locale_settings",
86 "//chrome/app/theme:theme_resources",
87 "//chrome/browser/net:encrypted_cert_logger_proto",
88 "//chrome/browser/net:probe_message_proto",
89 "//chrome/browser/ssl:cert_logger_proto",
90 "//chrome/browser/ui",
92 "//chrome/common/net",
93 "//components/autofill/core/browser",
94 "//components/bookmarks/browser",
95 "//components/bookmarks/managed",
96 "//components/captive_portal",
97 "//components/cloud_devices/common",
98 "//components/component_updater",
99 "//components/content_settings/content/common",
100 "//components/content_settings/core/browser",
101 "//components/content_settings/core/common",
102 "//components/crx_file",
103 "//components/data_reduction_proxy/core/browser",
104 "//components/device_event_log",
105 "//components/domain_reliability",
106 "//components/enhanced_bookmarks",
107 "//components/favicon/core",
108 "//components/favicon_base",
109 "//components/gcm_driver",
110 "//components/gcm_driver/instance_id",
111 "//components/google/core/browser",
112 "//components/guest_view/browser",
113 "//components/handoff",
114 "//components/history/core/browser",
115 "//components/history/core/common",
116 "//components/infobars/core",
117 "//components/invalidation/impl",
118 "//components/metrics:gpu",
119 "//components/metrics:net",
120 "//components/metrics:profiler",
121 "//components/metrics/proto:proto",
122 "//components/mime_util",
123 "//components/navigation_metrics",
124 "//components/network_time",
125 "//components/offline_pages",
126 "//components/omnibox/browser",
127 "//components/os_crypt",
128 "//components/packed_ct_ev_whitelist",
129 "//components/password_manager/core/browser",
130 "//components/password_manager/core/common",
131 "//components/policy:policy_component",
132 "//components/proxy_config",
133 "//components/query_parser",
134 "//components/rappor",
135 "//components/renderer_context_menu",
136 "//components/search",
137 "//components/search_engines",
138 "//components/search_provider_logos",
139 "//components/security_interstitials/core",
140 "//components/signin/core/browser",
141 "//components/startup_metric_utils",
142 "//components/strings",
143 "//components/suggestions",
144 "//components/sync_driver",
145 "//components/translate/core/browser",
146 "//components/translate/core/common",
147 "//components/ui/zoom:ui_zoom",
149 "//components/update_client",
150 "//components/url_formatter",
151 "//components/user_prefs",
152 "//components/user_prefs/tracked:user_prefs_tracked",
153 "//components/variations",
154 "//components/variations/net",
155 "//components/webdata/common",
156 "//components/webdata_services",
157 "//components/web_resource",
158 "//content/public/browser",
159 "//content/public/common",
160 "//courgette:courgette_lib",
167 "//third_party/cacheinvalidation",
169 "//third_party/libxml",
170 "//third_party/libjingle",
171 "//third_party/widevine/cdm:version_h",
172 "//third_party/zlib",
173 "//third_party/zlib:minizip",
174 "//third_party/zlib:zip",
176 "//ui/events:events_base",
179 "//ui/message_center",
180 "//ui/shell_dialogs",
186 rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome")
190 rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome")
191 sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources,
194 sources += rebase_path(gypi_values.chrome_browser_bookmark_sources,
197 sources += rebase_path(gypi_values.chrome_browser_browser_process_sources,
200 sources += rebase_path(gypi_values.chrome_browser_content_settings_sources,
203 sources += rebase_path(gypi_values.chrome_browser_engagement_sources,
207 rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome")
209 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
211 rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome")
213 rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome")
215 rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome")
216 sources += rebase_path(gypi_values.chrome_browser_password_manager_sources,
219 sources += rebase_path(gypi_values.chrome_browser_permissions_sources,
222 sources += rebase_path(gypi_values.chrome_browser_predictor_sources,
226 rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome")
227 sources += rebase_path(gypi_values.chrome_browser_profiles_sources,
230 sources += rebase_path(gypi_values.chrome_browser_search_engines_sources,
233 sources += rebase_path(gypi_values.chrome_browser_services_sources,
237 rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome")
239 rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome")
241 rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome")
243 rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome")
244 sources += rebase_path(gypi_values.chrome_browser_web_resource_sources,
251 "//chrome/app:generated_resources_map",
252 "//chrome/app/theme:theme_resources",
253 "//chrome/browser/devtools",
254 "//chrome/browser/resources:component_extension_resources",
255 "//chrome/installer/util",
256 "//components/about_handler",
257 "//components/app_modal",
258 "//components/autofill/content/browser",
259 "//components/browsing_data",
260 "//components/data_reduction_proxy/content/browser",
261 "//components/devtools_discovery",
262 "//components/devtools_http_handler",
263 "//components/dom_distiller/content:content_browser",
264 "//components/favicon/content",
265 "//components/history/content/browser",
266 "//components/keyed_service/content",
267 "//components/navigation_interception",
268 "//components/password_manager/content/browser",
269 "//components/password_manager/sync/browser",
270 "//components/plugins/common",
271 "//components/safe_json",
272 "//components/sessions",
273 "//components/storage_monitor",
274 "//components/translate/content/browser",
275 "//components/upload_list",
276 "//components/url_matcher",
277 "//components/visitedlink/browser",
278 "//components/visitedlink/common",
279 "//components/web_cache/browser",
280 "//components/web_modal",
281 "//content/app/resources",
283 "//mojo/application/public/cpp",
285 "//mojo/environment:chromium",
290 "//third_party/WebKit/public:image_resources",
291 "//third_party/WebKit/public:resources",
292 "//third_party/leveldatabase",
293 "//third_party/libaddressinput",
294 "//third_party/libyuv",
295 "//third_party/mojo/src/mojo/edk/system",
296 "//third_party/mojo/src/mojo/public/cpp/bindings",
297 "//third_party/mojo/src/mojo/public/js",
299 "//third_party/smhasher:cityhash",
300 "//third_party/webrtc/modules/desktop_capture",
310 deps += [ "//ui/views" ]
314 rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome")
316 rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome")
319 "CoreTelephony.framework",
320 "CoreText.framework",
321 "MobileCoreServices.framework",
322 "QuartzCore.framework",
330 if (is_win || is_mac) {
332 rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome")
334 if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) {
336 "net/disk_cache_dir_policy_handler.cc",
337 "net/disk_cache_dir_policy_handler.h",
340 if (!is_android && !is_ios && enable_configuration_policy) {
342 "download/download_dir_policy_handler.cc",
343 "download/download_dir_policy_handler.h",
348 rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome")
350 #"app_shim" TODO(GYP) bug 512600
351 #"browser_app_shim" TODO(GYP) bug 512600
354 if (enable_extensions) {
355 public_deps += [ "//chrome/browser/extensions" ]
357 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto",
358 "//chrome/common/extensions/api",
359 "//chrome/common/extensions/api:api_registration",
360 "//components/drive:drive",
361 "//components/proximity_auth/ble",
362 "//components/proximity_auth/cryptauth",
363 "//extensions/components/javascript_dialog_extensions_client",
366 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
370 if (enable_background) {
371 sources += rebase_path(gypi_values.chrome_browser_background_sources,
374 if (!use_aura || is_win || is_chromeos) {
375 sources -= [ "background/background_mode_manager_aura.cc" ]
378 if (enable_task_manager) {
379 sources += rebase_path(gypi_values.chrome_browser_task_manager_sources,
383 if (enable_spellcheck) {
384 sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources,
388 deps += [ "//third_party/hunspell" ]
393 rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome")
394 deps += [ "//components/nacl:nacl_browser" ]
397 if (enable_configuration_policy) {
399 rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources,
403 "//components/policy",
404 "//components/policy/proto",
407 sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources,
412 sources += rebase_path(
413 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources,
417 if (is_win || is_mac || is_desktop_linux) {
418 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
422 if (is_android || is_ios) {
423 sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources,
428 "//chrome/browser/policy:path_parser",
429 "//net:net_browser_services",
433 # Configuration policy disabled.
434 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
439 if (enable_plugins) {
441 rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome")
443 "//components/pdf/browser",
445 "//third_party/adobe/flash:flapper_version_h",
448 if (safe_browsing_mode != 0) {
450 rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources,
454 "//chrome/browser/safe_browsing:chunk_proto",
455 "//chrome/browser/safe_browsing:metadata_proto",
456 "//chrome/browser/safe_browsing:report_proto",
458 if (safe_browsing_mode == 1) {
460 rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources,
463 deps += [ "//chrome/common/safe_browsing:proto" ]
464 } else if (safe_browsing_mode == 3) {
465 sources += rebase_path(
466 gypi_values.chrome_browser_safe_browsing_mobile_extended_sources,
472 if (enable_hotwording) {
473 defines += [ "ENABLE_HOTWORDING" ]
478 "//device/media_transfer_protocol",
479 "//device/udev_linux",
482 if (is_linux && !is_chromeos) {
483 deps += [ "//third_party/speech-dispatcher" ]
487 sources += rebase_path(gypi_values.chrome_browser_chromeos_sources,
490 deps += [ "//chrome/browser/chromeos" ]
493 sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources,
500 "metrics/signin_status_metrics_provider_base.cc",
501 "metrics/signin_status_metrics_provider_base.h",
505 if (is_chromeos || is_ios) {
507 "metrics/signin_status_metrics_provider.cc",
508 "metrics/signin_status_metrics_provider.h",
513 configs += [ "//printing:cups" ]
515 if (is_desktop_linux) {
516 sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources,
519 configs += [ ":gnome_keyring" ]
521 if (is_desktop_linux) {
522 sources += rebase_path(gypi_values.chrome_browser_libsecret_sources,
525 defines += [ "USE_LIBSECRET" ]
529 rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome")
536 if (ui_compositor_image_transport) {
537 deps += [ "//ui/gl" ]
542 rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome")
547 rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome")
549 sources -= [ "password_manager/password_store_x.cc" ]
551 if (is_posix && !is_mac && !is_ios) {
553 "//chrome/app/chrome_crash_reporter_client.cc",
554 "//chrome/app/chrome_crash_reporter_client.h",
557 "//components/crash/app",
558 "//components/crash/browser",
563 rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome")
565 sources -= [ "net/nss_context_linux.cc" ]
568 if (enable_notifications) {
569 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
573 sources += rebase_path(
574 gypi_values.chrome_browser_notifications_non_android_sources,
581 rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome")
584 if (enable_basic_printing || enable_print_preview) {
585 # Some form of printing support.
586 sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources,
591 "//components/printing/browser:printing_browser",
595 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
599 if (enable_print_preview) {
600 # Full printing on top of the above.
601 sources += rebase_path(gypi_values.chrome_browser_printing_full_sources,
605 # Partial-only printing support.
607 rebase_path(gypi_values.chrome_browser_printing_basic_only_sources,
612 if (enable_captive_portal_detection) {
613 sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources,
617 if (enable_session_service) {
618 sources += rebase_path(gypi_values.chrome_browser_session_service_sources,
623 if (!is_android && !is_ios && !is_chromeos) {
625 rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome")
628 if (is_android || is_ios) {
631 rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome")
634 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
638 "//components/feedback",
640 "//device/devices_app/public/cpp",
641 "//device/devices_app/public/cpp:factory",
646 if (!is_official_build) {
648 "search/local_files_ntp_source.cc",
649 "search/local_files_ntp_source.h",
655 rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome")
656 sources += rebase_path(gypi_values.chrome_browser_bookmark_android_sources,
660 ":client_discourse_context_proto",
663 "//components/cdm/browser",
664 "//components/enhanced_bookmarks",
665 "//components/precache/content",
666 "//components/precache/core",
667 "//components/resources:components_resources",
668 "//components/service_tab_launcher",
669 "//components/toolbar",
670 "//components/web_contents_delegate_android",
671 "//third_party/android_opengl/etc1",
672 "//third_party/android_tools:cpu_features",
673 "//third_party/libaddressinput:util",
676 "//third_party/libaddressinput",
677 "//components/storage_monitor",
678 "//components/web_modal",
680 defines += [ "ENABLE_DATA_REDUCTION_PROXY_DEBUGGING" ]
682 if (use_seccomp_bpf) {
683 defines += [ "USE_SECCOMP_BPF" ]
684 deps += [ "//sandbox/linux:seccomp_bpf" ]
690 "//third_party/google_toolbox_for_mac",
691 "//third_party/mozilla",
694 "Accelerate.framework",
695 "AddressBook.framework",
696 "AudioUnit.framework",
697 "DiskArbitration.framework",
699 "ImageCaptureCore.framework",
701 "QuartzCore.framework",
702 "SecurityInterface.framework",
711 # Temporary fix to break the browser target into smaller chunks so it
712 # will link with goma builds.
713 #["OS=="win" and chromium_win_pch==0", {
719 rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome")
722 "//ui/views/controls/webview",
725 ":chrome_process_finder",
726 "//chrome:version_header",
727 "//chrome/installer/util:strings",
729 "//chrome_elf:constants",
730 "//chrome_elf:dll_hash",
731 "//components/browser_watcher",
732 "//components/browser_watcher:browser_watcher_client",
734 "//third_party/iaccessible2",
735 "//third_party/isimpledom",
738 "//win8:metro_viewer",
744 if (!is_chrome_branded) {
745 deps -= [ "//google_update" ]
747 "google/did_run_updater_win.cc",
748 "google/did_run_updater_win.h",
749 "google/google_update_win.cc",
750 "google/google_update_win.h",
756 rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome")
760 "//ui/views/controls/webview",
767 rebase_path(gypi_values.chrome_browser_linux_sources, ".", "//chrome")
770 "//build/config/linux:dbus",
771 "//build/config/linux:fontconfig",
776 configs += [ "//build/config/linux:x11" ]
777 deps += [ "//ui/gfx/x" ]
781 if (is_desktop_linux) {
782 sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources,
786 if (enable_plugin_installation) {
788 rebase_path(gypi_values.chrome_browser_plugin_installation_sources,
792 if (enable_app_list) {
793 deps += [ "//ui/app_list" ]
795 if (enable_supervised_users) {
796 sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources,
800 if (enable_supervised_users && !is_android && !is_ios) {
802 rebase_path(gypi_values.chrome_browser_supervised_user_legacy_sources,
806 if (enable_supervised_users && enable_themes) {
807 sources += rebase_path(
808 gypi_values.chrome_browser_supervised_user_and_themes_sources,
814 rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome")
816 if (enable_service_discovery) {
817 sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources,
823 rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome")
825 if (!enable_autofill_dialog || is_android || is_ios) {
827 "autofill/validation_rules_storage_factory.cc",
828 "autofill/validation_rules_storage_factory.h",
831 if (enable_wifi_bootstrapping) {
833 rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources,
836 if (is_win || is_mac) {
837 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
838 # and Mac, so this test is meaningless. Can we merge these lists?
839 sources += rebase_path(
840 gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources,
845 if (enable_media_router) {
846 deps += [ "//chrome/browser/media/router" ]
851 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
852 generate_jni("jni_headers") {
854 rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome")
855 jni_package = "chrome"
858 #GYP: '//chrome/chrome_browser.gypi:client_discourse_context_proto'
859 proto_library("client_discourse_context_proto") {
861 "android/proto/client_discourse_context.proto",
865 #GYP: '//chrome/chrome_browser.gypi:delta_file_proto'
866 proto_library("delta_file_proto") {
868 "android/proto/delta_file.proto",
874 source_set("chrome_process_finder") {
876 "chrome_process_finder_win.cc",
877 "chrome_process_finder_win.h",
881 "//chrome/browser/metro_utils",
882 "//chrome/common:constants",
884 if (enable_configuration_policy) {
885 deps += [ "//chrome/browser/policy:path_parser" ]
890 # GYP version: chrome/chrome_resources.gyp:chrome_resources
891 # (generate_browser_resources action)
893 source = "browser_resources.grd"
894 output_dir = "$root_gen_dir/chrome"
896 "grit/browser_resources.h",
897 "browser_resources.pak",
901 "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js"
905 "about_credits_file=" + rebase_path(about_credits_file, root_build_dir),
907 "additional_modules_list_file=" +
908 rebase_path(additional_modules_list_file, root_build_dir),
910 "omnibox_mojom_file=" + rebase_path(omnibox_mojom_file, root_build_dir),
915 ":chrome_internal_resources_gen",
917 # Depend only on the generated mojo bindings since we read the .mojom.js
918 # file, rather than the whole mojo target which will link the C++ bindings.
919 "//chrome/browser/ui/webui/omnibox:mojo_bindings__generator",
926 # GYP version: chrome/chrome_resource.gyp:about_credits
927 action("about_credits") {
928 script = "//tools/licenses.py"
931 # This is not a complete list. TODO(phajdan.jr, dbeam): licenses.py needs to
932 # generate a .d file with all the licenses/credits that about:credits uses.
933 # Then about:credits will automatically rebuild when one of them changes.
934 # See: depfile in gn's documentation (gn help depfile).
935 "resources/about_credits.tmpl",
936 "resources/about_credits_entry.tmpl",
945 rebase_path(about_credits_file, root_build_dir),
949 # GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
950 if (is_chrome_branded) {
951 action("chrome_internal_resources_gen") {
952 script = "internal/transform_additional_modules_list.py"
954 "internal/resources/additional_modules_list.input",
957 additional_modules_list_file,
959 args = rebase_path(sources, root_build_dir) +
960 rebase_path(outputs, root_build_dir)
963 group("chrome_internal_resources_gen") {
968 # In GYP this is part of test_support_common.
969 source_set("test_support") {
972 # Always include this via the main test support target.
973 visibility = [ "//chrome/test:test_support" ]
976 "browsing_data/mock_browsing_data_appcache_helper.cc",
977 "browsing_data/mock_browsing_data_appcache_helper.h",
978 "browsing_data/mock_browsing_data_channel_id_helper.cc",
979 "browsing_data/mock_browsing_data_channel_id_helper.h",
980 "browsing_data/mock_browsing_data_cookie_helper.cc",
981 "browsing_data/mock_browsing_data_cookie_helper.h",
982 "browsing_data/mock_browsing_data_database_helper.cc",
983 "browsing_data/mock_browsing_data_database_helper.h",
984 "browsing_data/mock_browsing_data_file_system_helper.cc",
985 "browsing_data/mock_browsing_data_file_system_helper.h",
986 "browsing_data/mock_browsing_data_flash_lso_helper.cc",
987 "browsing_data/mock_browsing_data_flash_lso_helper.h",
988 "browsing_data/mock_browsing_data_indexed_db_helper.cc",
989 "browsing_data/mock_browsing_data_indexed_db_helper.h",
990 "browsing_data/mock_browsing_data_local_storage_helper.cc",
991 "browsing_data/mock_browsing_data_local_storage_helper.h",
992 "browsing_data/mock_browsing_data_quota_helper.cc",
993 "browsing_data/mock_browsing_data_quota_helper.h",
994 "browsing_data/mock_browsing_data_service_worker_helper.cc",
995 "browsing_data/mock_browsing_data_service_worker_helper.h",
996 "download/download_test_file_activity_observer.cc",
997 "download/download_test_file_activity_observer.h",
998 "download/test_download_shelf.cc",
999 "download/test_download_shelf.h",
1000 "invalidation/fake_invalidation_service.cc",
1001 "invalidation/fake_invalidation_service.h",
1002 "media/fake_desktop_media_list.cc",
1003 "media/fake_desktop_media_list.h",
1004 "net/dns_probe_test_util.cc",
1005 "net/dns_probe_test_util.h",
1006 "net/url_request_mock_util.cc",
1007 "net/url_request_mock_util.h",
1008 "notifications/notification_test_util.cc",
1009 "notifications/notification_test_util.h",
1010 "password_manager/mock_password_store_service.cc",
1011 "password_manager/mock_password_store_service.h",
1012 "password_manager/null_password_store_service.cc",
1013 "password_manager/null_password_store_service.h",
1014 "password_manager/password_manager_test_base.cc",
1015 "password_manager/password_manager_test_base.h",
1016 "password_manager/test_password_store_service.cc",
1017 "password_manager/test_password_store_service.h",
1018 "prefs/pref_service_mock_factory.cc",
1019 "prefs/pref_service_mock_factory.h",
1020 "profile_resetter/profile_resetter_test_base.cc",
1021 "profile_resetter/profile_resetter_test_base.h",
1022 "search_engines/template_url_service_factory_test_util.cc",
1023 "search_engines/template_url_service_factory_test_util.h",
1024 "search_engines/template_url_service_test_util.cc",
1025 "search_engines/template_url_service_test_util.h",
1026 "sessions/session_restore_test_helper.cc",
1027 "sessions/session_restore_test_helper.h",
1028 "sessions/session_service_test_helper.cc",
1029 "sessions/session_service_test_helper.h",
1030 "signin/fake_account_fetcher_service_builder.cc",
1031 "signin/fake_account_fetcher_service_builder.h",
1032 "signin/fake_gaia_cookie_manager_service.cc",
1033 "signin/fake_gaia_cookie_manager_service.h",
1034 "signin/fake_profile_oauth2_token_service_builder.cc",
1035 "signin/fake_profile_oauth2_token_service_builder.h",
1036 "signin/fake_signin_manager_builder.cc",
1037 "signin/fake_signin_manager_builder.h",
1038 "ssl/ssl_client_auth_requestor_mock.cc",
1039 "ssl/ssl_client_auth_requestor_mock.h",
1040 "sync/profile_sync_components_factory_mock.cc",
1041 "sync/profile_sync_components_factory_mock.h",
1042 "sync/profile_sync_service_mock.cc",
1043 "sync/profile_sync_service_mock.h",
1044 "ui/webui/signin/login_ui_test_utils.cc",
1045 "ui/webui/signin/login_ui_test_utils.h",
1048 configs += [ "//build/config:precompiled_headers" ]
1052 "//chrome/browser/ui:test_support",
1055 "//base:prefs_test_support",
1058 "//chrome/common/safe_browsing:proto",
1059 "//components/invalidation/impl",
1060 "//components/invalidation/impl:test_support",
1061 "//components/password_manager/core/browser:test_support",
1062 "//components/search_engines:test_support",
1063 "//components/user_prefs/tracked:user_prefs_tracked_test_support",
1064 "//content/test:test_support",
1065 "//chrome/app/theme:theme_resources",
1066 "//net:test_support",
1075 "//components/sessions:test_support",
1076 "//google_apis:test_support",
1080 if (enable_extensions) {
1082 "extensions/extension_action_test_util.cc",
1083 "extensions/extension_action_test_util.h",
1085 deps += [ "//extensions:test_support" ]
1090 "chromeos/app_mode/fake_cws.cc",
1091 "chromeos/app_mode/fake_cws.h",
1092 "chromeos/file_manager/fake_disk_mount_manager.cc",
1093 "chromeos/file_manager/fake_disk_mount_manager.h",
1094 "chromeos/input_method/mock_candidate_window_controller.cc",
1095 "chromeos/input_method/mock_candidate_window_controller.h",
1096 "chromeos/input_method/mock_input_method_engine.cc",
1097 "chromeos/input_method/mock_input_method_engine.h",
1098 "chromeos/input_method/mock_input_method_manager.cc",
1099 "chromeos/input_method/mock_input_method_manager.h",
1100 "chromeos/login/screens/mock_device_disabled_screen_actor.cc",
1101 "chromeos/login/screens/mock_device_disabled_screen_actor.h",
1102 "chromeos/login/session/user_session_manager_test_api.cc",
1103 "chromeos/login/session/user_session_manager_test_api.h",
1104 "chromeos/login/test/js_checker.cc",
1105 "chromeos/login/test/js_checker.h",
1106 "chromeos/login/test/oobe_screen_waiter.cc",
1107 "chromeos/login/test/oobe_screen_waiter.h",
1108 "chromeos/login/ui/mock_login_display.cc",
1109 "chromeos/login/ui/mock_login_display.h",
1110 "chromeos/login/ui/mock_login_display_host.cc",
1111 "chromeos/login/ui/mock_login_display_host.h",
1112 "chromeos/login/users/avatar/mock_user_image_manager.cc",
1113 "chromeos/login/users/avatar/mock_user_image_manager.h",
1114 "chromeos/login/users/fake_chrome_user_manager.cc",
1115 "chromeos/login/users/fake_chrome_user_manager.h",
1116 "chromeos/login/users/fake_supervised_user_manager.cc",
1117 "chromeos/login/users/fake_supervised_user_manager.h",
1118 "chromeos/login/users/mock_user_manager.cc",
1119 "chromeos/login/users/mock_user_manager.h",
1120 "chromeos/net/network_portal_detector_test_utils.cc",
1121 "chromeos/net/network_portal_detector_test_utils.h",
1122 "chromeos/policy/cloud_external_data_manager_base_test_util.cc",
1123 "chromeos/policy/cloud_external_data_manager_base_test_util.h",
1124 "chromeos/policy/device_policy_builder.cc",
1125 "chromeos/policy/device_policy_builder.h",
1126 "chromeos/policy/fake_consumer_management_service.cc",
1127 "chromeos/policy/fake_consumer_management_service.h",
1128 "chromeos/policy/fake_device_cloud_policy_initializer.cc",
1129 "chromeos/policy/fake_device_cloud_policy_initializer.h",
1130 "chromeos/policy/fake_device_cloud_policy_manager.cc",
1131 "chromeos/policy/fake_device_cloud_policy_manager.h",
1132 "chromeos/policy/stub_enterprise_install_attributes.cc",
1133 "chromeos/policy/stub_enterprise_install_attributes.h",
1134 "chromeos/settings/device_settings_test_helper.cc",
1135 "chromeos/settings/device_settings_test_helper.h",
1136 "chromeos/system/fake_input_device_settings.cc",
1137 "chromeos/system/fake_input_device_settings.h",
1139 configs += [ "//build/config/linux:dbus" ]
1140 deps += [ "//chromeos:test_support" ]
1143 if (enable_configuration_policy) {
1145 "policy/test/local_policy_test_server.cc",
1146 "policy/test/local_policy_test_server.h",
1149 "//components/policy:policy_component_test_support",
1150 "//components/policy:test_support",
1154 if (safe_browsing_mode == 1) {
1156 "extensions/fake_safe_browsing_database_manager.cc",
1157 "extensions/fake_safe_browsing_database_manager.h",
1161 if (enable_extensions) {
1163 "extensions/api/messaging/native_messaging_test_util.cc",
1164 "extensions/api/messaging/native_messaging_test_util.h",
1165 "extensions/extension_notification_observer.cc",
1166 "extensions/extension_notification_observer.h",
1167 "extensions/mock_extension_special_storage_policy.cc",
1168 "extensions/mock_extension_special_storage_policy.h",
1169 "extensions/test_blacklist.cc",
1170 "extensions/test_blacklist.h",
1171 "extensions/test_blacklist_state_fetcher.cc",
1172 "extensions/test_blacklist_state_fetcher.h",
1173 "extensions/test_extension_dir.cc",
1174 "extensions/test_extension_dir.h",
1175 "extensions/test_extension_environment.cc",
1176 "extensions/test_extension_environment.h",
1177 "extensions/test_extension_prefs.cc",
1178 "extensions/test_extension_prefs.h",
1179 "extensions/test_extension_service.cc",
1180 "extensions/test_extension_service.h",
1181 "extensions/test_extension_system.cc",
1182 "extensions/test_extension_system.h",
1183 "media_galleries/media_galleries_test_util.cc",
1184 "media_galleries/media_galleries_test_util.h",
1187 "//components/drive:test_support",
1188 "//components/storage_monitor:test_support",
1194 "local_discovery/test_service_discovery_client.cc",
1195 "local_discovery/test_service_discovery_client.h",
1199 if (enable_app_list) {
1201 "ui/app_list/test/chrome_app_list_test_support.cc",
1202 "ui/app_list/test/chrome_app_list_test_support.h",
1203 "ui/app_list/test/test_app_list_controller_delegate.cc",
1204 "ui/app_list/test/test_app_list_controller_delegate.h",
1208 if (enable_wifi_bootstrapping) {
1210 "local_discovery/wifi/mock_wifi_manager.cc",
1211 "local_discovery/wifi/mock_wifi_manager.h",
1216 if (enable_rlz_support) {
1219 rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome")
1221 "//components/google/core/browser",
1222 "//components/omnibox/browser",
1224 "//components/search_engines",