Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: chrome/browser/BUILD.gn

Issue 2555833002: Remove enable_notifications build flag and define (Closed)
Patch Set: Merge Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/about_flags.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/crypto.gni") 6 import("//build/config/crypto.gni")
7 import("//build/config/features.gni") 7 import("//build/config/features.gni")
8 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
9 import("//build/split_static_library.gni") 9 import("//build/split_static_library.gni")
10 import("//chrome/common/features.gni") 10 import("//chrome/common/features.gni")
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 "net/spdyproxy/data_reduction_proxy_chrome_settings.cc", 685 "net/spdyproxy/data_reduction_proxy_chrome_settings.cc",
686 "net/spdyproxy/data_reduction_proxy_chrome_settings.h", 686 "net/spdyproxy/data_reduction_proxy_chrome_settings.h",
687 "net/spdyproxy/data_reduction_proxy_chrome_settings_factory.cc", 687 "net/spdyproxy/data_reduction_proxy_chrome_settings_factory.cc",
688 "net/spdyproxy/data_reduction_proxy_chrome_settings_factory.h", 688 "net/spdyproxy/data_reduction_proxy_chrome_settings_factory.h",
689 "net/sth_distributor_provider.cc", 689 "net/sth_distributor_provider.cc",
690 "net/sth_distributor_provider.h", 690 "net/sth_distributor_provider.h",
691 "net/timed_cache.cc", 691 "net/timed_cache.cc",
692 "net/timed_cache.h", 692 "net/timed_cache.h",
693 "net/url_info.cc", 693 "net/url_info.cc",
694 "net/url_info.h", 694 "net/url_info.h",
695 "notifications/alert_dispatcher_mac.h",
696 "notifications/desktop_notification_profile_util.cc",
697 "notifications/desktop_notification_profile_util.h",
698 "notifications/login_state_notification_blocker_chromeos.cc",
699 "notifications/login_state_notification_blocker_chromeos.h",
700 "notifications/message_center_display_service.cc",
701 "notifications/message_center_display_service.h",
702 "notifications/native_notification_display_service.cc",
703 "notifications/native_notification_display_service.h",
704 "notifications/non_persistent_notification_handler.cc",
705 "notifications/non_persistent_notification_handler.h",
706 "notifications/notification.cc",
707 "notifications/notification.h",
708 "notifications/notification_common.cc",
709 "notifications/notification_common.h",
710 "notifications/notification_delegate.h",
711 "notifications/notification_display_service.h",
712 "notifications/notification_display_service_factory.cc",
713 "notifications/notification_display_service_factory.h",
714 "notifications/notification_handler.h",
715 "notifications/notification_object_proxy.cc",
716 "notifications/notification_object_proxy.h",
717 "notifications/notification_permission_context.cc",
718 "notifications/notification_permission_context.h",
719 "notifications/notification_platform_bridge.h",
720 "notifications/notification_platform_bridge_mac.h",
721 "notifications/notification_platform_bridge_mac.mm",
722 "notifications/notification_ui_manager.h",
723 "notifications/notifier_state_tracker.cc",
724 "notifications/notifier_state_tracker.h",
725 "notifications/notifier_state_tracker_factory.cc",
726 "notifications/notifier_state_tracker_factory.h",
727 "notifications/persistent_notification_delegate.cc",
728 "notifications/persistent_notification_delegate.h",
729 "notifications/persistent_notification_handler.cc",
730 "notifications/persistent_notification_handler.h",
731 "notifications/platform_notification_service_impl.cc",
732 "notifications/platform_notification_service_impl.h",
733 "notifications/web_notification_delegate.cc",
734 "notifications/web_notification_delegate.h",
695 "ntp_snippets/bookmark_last_visit_updater.cc", 735 "ntp_snippets/bookmark_last_visit_updater.cc",
696 "ntp_snippets/bookmark_last_visit_updater.h", 736 "ntp_snippets/bookmark_last_visit_updater.h",
697 "ntp_snippets/content_suggestions_service_factory.cc", 737 "ntp_snippets/content_suggestions_service_factory.cc",
698 "ntp_snippets/content_suggestions_service_factory.h", 738 "ntp_snippets/content_suggestions_service_factory.h",
699 "ntp_snippets/download_suggestions_provider.cc", 739 "ntp_snippets/download_suggestions_provider.cc",
700 "ntp_snippets/download_suggestions_provider.h", 740 "ntp_snippets/download_suggestions_provider.h",
701 "page_load_metrics/browser_page_track_decider.cc", 741 "page_load_metrics/browser_page_track_decider.cc",
702 "page_load_metrics/browser_page_track_decider.h", 742 "page_load_metrics/browser_page_track_decider.h",
703 "page_load_metrics/metrics_navigation_throttle.cc", 743 "page_load_metrics/metrics_navigation_throttle.cc",
704 "page_load_metrics/metrics_navigation_throttle.h", 744 "page_load_metrics/metrics_navigation_throttle.h",
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 "profiles/profile_shortcut_manager_win.h", 1017 "profiles/profile_shortcut_manager_win.h",
978 "profiles/profiles_state.cc", 1018 "profiles/profiles_state.cc",
979 "profiles/profiles_state.h", 1019 "profiles/profiles_state.h",
980 "profiles/sql_init_error_message_ids.cc", 1020 "profiles/sql_init_error_message_ids.cc",
981 "profiles/sql_init_error_message_ids.h", 1021 "profiles/sql_init_error_message_ids.h",
982 "profiles/storage_partition_descriptor.h", 1022 "profiles/storage_partition_descriptor.h",
983 "push_messaging/push_messaging_app_identifier.cc", 1023 "push_messaging/push_messaging_app_identifier.cc",
984 "push_messaging/push_messaging_app_identifier.h", 1024 "push_messaging/push_messaging_app_identifier.h",
985 "push_messaging/push_messaging_constants.cc", 1025 "push_messaging/push_messaging_constants.cc",
986 "push_messaging/push_messaging_constants.h", 1026 "push_messaging/push_messaging_constants.h",
1027 "push_messaging/push_messaging_notification_manager.cc",
1028 "push_messaging/push_messaging_notification_manager.h",
987 "push_messaging/push_messaging_service_factory.cc", 1029 "push_messaging/push_messaging_service_factory.cc",
988 "push_messaging/push_messaging_service_factory.h", 1030 "push_messaging/push_messaging_service_factory.h",
989 "push_messaging/push_messaging_service_impl.cc", 1031 "push_messaging/push_messaging_service_impl.cc",
990 "push_messaging/push_messaging_service_impl.h", 1032 "push_messaging/push_messaging_service_impl.h",
991 "push_messaging/push_messaging_service_observer.cc", 1033 "push_messaging/push_messaging_service_observer.cc",
992 "push_messaging/push_messaging_service_observer.h", 1034 "push_messaging/push_messaging_service_observer.h",
993 "push_messaging/push_messaging_service_observer_android.cc", 1035 "push_messaging/push_messaging_service_observer_android.cc",
994 "push_messaging/push_messaging_service_observer_android.h", 1036 "push_messaging/push_messaging_service_observer_android.h",
995 "renderer_context_menu/context_menu_content_type_factory.cc", 1037 "renderer_context_menu/context_menu_content_type_factory.cc",
996 "renderer_context_menu/context_menu_content_type_factory.h", 1038 "renderer_context_menu/context_menu_content_type_factory.h",
(...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after
2299 "certificate_manager_model.h", 2341 "certificate_manager_model.h",
2300 "net/nss_context.cc", 2342 "net/nss_context.cc",
2301 "net/nss_context.h", 2343 "net/nss_context.h",
2302 "net/nss_context_chromeos.cc", 2344 "net/nss_context_chromeos.cc",
2303 "net/nss_context_linux.cc", 2345 "net/nss_context_linux.cc",
2304 ] 2346 ]
2305 if (is_chromeos) { 2347 if (is_chromeos) {
2306 sources -= [ "net/nss_context_linux.cc" ] 2348 sources -= [ "net/nss_context_linux.cc" ]
2307 } 2349 }
2308 } 2350 }
2309 if (enable_notifications) {
2310 sources += [
2311 "notifications/alert_dispatcher_mac.h",
2312 "notifications/desktop_notification_profile_util.cc",
2313 "notifications/desktop_notification_profile_util.h",
2314 "notifications/login_state_notification_blocker_chromeos.cc",
2315 "notifications/login_state_notification_blocker_chromeos.h",
2316 "notifications/message_center_display_service.cc",
2317 "notifications/message_center_display_service.h",
2318 "notifications/native_notification_display_service.cc",
2319 "notifications/native_notification_display_service.h",
2320 "notifications/non_persistent_notification_handler.cc",
2321 "notifications/non_persistent_notification_handler.h",
2322 "notifications/notification.cc",
2323 "notifications/notification.h",
2324 "notifications/notification_common.cc",
2325 "notifications/notification_common.h",
2326 "notifications/notification_delegate.h",
2327 "notifications/notification_display_service.h",
2328 "notifications/notification_display_service_factory.cc",
2329 "notifications/notification_display_service_factory.h",
2330 "notifications/notification_handler.h",
2331 "notifications/notification_object_proxy.cc",
2332 "notifications/notification_object_proxy.h",
2333 "notifications/notification_permission_context.cc",
2334 "notifications/notification_permission_context.h",
2335 "notifications/notification_platform_bridge.h",
2336 "notifications/notification_platform_bridge_mac.h",
2337 "notifications/notification_platform_bridge_mac.mm",
2338 "notifications/notification_ui_manager.h",
2339 "notifications/notifier_state_tracker.cc",
2340 "notifications/notifier_state_tracker.h",
2341 "notifications/notifier_state_tracker_factory.cc",
2342 "notifications/notifier_state_tracker_factory.h",
2343 "notifications/persistent_notification_delegate.cc",
2344 "notifications/persistent_notification_delegate.h",
2345 "notifications/persistent_notification_handler.cc",
2346 "notifications/persistent_notification_handler.h",
2347 "notifications/platform_notification_service_impl.cc",
2348 "notifications/platform_notification_service_impl.h",
2349 "notifications/web_notification_delegate.cc",
2350 "notifications/web_notification_delegate.h",
2351 "push_messaging/push_messaging_notification_manager.cc",
2352 "push_messaging/push_messaging_notification_manager.h",
2353 ]
2354 if (android_java_ui) {
2355 sources += [
2356 "notifications/notification_permission_infobar_delegate.cc",
2357 "notifications/notification_permission_infobar_delegate.h",
2358 "notifications/notification_platform_bridge_android.cc",
2359 "notifications/notification_platform_bridge_android.h",
2360 ]
2361 } else {
2362 sources += [
2363 "notifications/application_notifier_source.cc",
2364 "notifications/application_notifier_source.h",
2365 "notifications/arc_application_notifier_source_chromeos.cc",
2366 "notifications/arc_application_notifier_source_chromeos.h",
2367 "notifications/extension_welcome_notification.cc",
2368 "notifications/extension_welcome_notification.h",
2369 "notifications/extension_welcome_notification_factory.cc",
2370 "notifications/extension_welcome_notification_factory.h",
2371 "notifications/fullscreen_notification_blocker.cc",
2372 "notifications/fullscreen_notification_blocker.h",
2373 "notifications/google_now_notification_stats_collector.cc",
2374 "notifications/google_now_notification_stats_collector.h",
2375 "notifications/message_center_notification_manager.cc",
2376 "notifications/message_center_notification_manager.h",
2377 "notifications/message_center_settings_controller.cc",
2378 "notifications/message_center_settings_controller.h",
2379 "notifications/message_center_stats_collector.cc",
2380 "notifications/message_center_stats_collector.h",
2381 "notifications/notification_conversion_helper.cc",
2382 "notifications/notification_conversion_helper.h",
2383 "notifications/notification_system_observer.cc",
2384 "notifications/notification_system_observer.h",
2385 "notifications/notification_ui_manager_desktop.cc",
2386 "notifications/notifier_source.h",
2387 "notifications/profile_notification.cc",
2388 "notifications/profile_notification.h",
2389 "notifications/screen_lock_notification_blocker.cc",
2390 "notifications/screen_lock_notification_blocker.h",
2391 "notifications/system_component_notifier_source_chromeos.cc",
2392 "notifications/system_component_notifier_source_chromeos.h",
2393 "notifications/web_page_notifier_source.cc",
2394 "notifications/web_page_notifier_source.h",
2395 ]
2396 }
2397 if (is_mac) {
2398 deps += [ "//chrome/browser/ui/cocoa/notifications:common" ]
2399 }
2400 }
2401 if (enable_themes) { 2351 if (enable_themes) {
2402 sources += [ 2352 sources += [
2403 "sync/glue/theme_data_type_controller.cc", 2353 "sync/glue/theme_data_type_controller.cc",
2404 "sync/glue/theme_data_type_controller.h", 2354 "sync/glue/theme_data_type_controller.h",
2405 "themes/browser_theme_pack.cc", 2355 "themes/browser_theme_pack.cc",
2406 "themes/browser_theme_pack.h", 2356 "themes/browser_theme_pack.h",
2407 "themes/custom_theme_supplier.cc", 2357 "themes/custom_theme_supplier.cc",
2408 "themes/custom_theme_supplier.h", 2358 "themes/custom_theme_supplier.h",
2409 "themes/theme_properties.cc", 2359 "themes/theme_properties.cc",
2410 "themes/theme_service.cc", 2360 "themes/theme_service.cc",
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
3343 "media/webrtc/screen_capture_infobar_delegate_android.cc", 3293 "media/webrtc/screen_capture_infobar_delegate_android.cc",
3344 "media/webrtc/screen_capture_infobar_delegate_android.h", 3294 "media/webrtc/screen_capture_infobar_delegate_android.h",
3345 "metrics/android_metrics_provider.cc", 3295 "metrics/android_metrics_provider.cc",
3346 "metrics/android_metrics_provider.h", 3296 "metrics/android_metrics_provider.h",
3347 "metrics/page_load_metrics_provider.cc", 3297 "metrics/page_load_metrics_provider.cc",
3348 "metrics/page_load_metrics_provider.h", 3298 "metrics/page_load_metrics_provider.h",
3349 "net/spdyproxy/data_reduction_promo_infobar_delegate_android.cc", 3299 "net/spdyproxy/data_reduction_promo_infobar_delegate_android.cc",
3350 "net/spdyproxy/data_reduction_promo_infobar_delegate_android.h", 3300 "net/spdyproxy/data_reduction_promo_infobar_delegate_android.h",
3351 "net/spdyproxy/data_reduction_proxy_settings_android.cc", 3301 "net/spdyproxy/data_reduction_proxy_settings_android.cc",
3352 "net/spdyproxy/data_reduction_proxy_settings_android.h", 3302 "net/spdyproxy/data_reduction_proxy_settings_android.h",
3303 "notifications/notification_permission_infobar_delegate.cc",
3304 "notifications/notification_permission_infobar_delegate.h",
3305 "notifications/notification_platform_bridge_android.cc",
3306 "notifications/notification_platform_bridge_android.h",
3353 "page_load_metrics/observers/android_page_load_metrics_observer.cc", 3307 "page_load_metrics/observers/android_page_load_metrics_observer.cc",
3354 "page_load_metrics/observers/android_page_load_metrics_observer.h", 3308 "page_load_metrics/observers/android_page_load_metrics_observer.h",
3355 "password_manager/account_chooser_dialog_android.cc", 3309 "password_manager/account_chooser_dialog_android.cc",
3356 "password_manager/account_chooser_dialog_android.h", 3310 "password_manager/account_chooser_dialog_android.h",
3357 "password_manager/auto_signin_first_run_dialog_android.cc", 3311 "password_manager/auto_signin_first_run_dialog_android.cc",
3358 "password_manager/auto_signin_first_run_dialog_android.h", 3312 "password_manager/auto_signin_first_run_dialog_android.h",
3359 "password_manager/credential_android.cc", 3313 "password_manager/credential_android.cc",
3360 "password_manager/credential_android.h", 3314 "password_manager/credential_android.h",
3361 "password_manager/generated_password_saved_infobar_delegate_android.cc", 3315 "password_manager/generated_password_saved_infobar_delegate_android.cc",
3362 "password_manager/generated_password_saved_infobar_delegate_android.h", 3316 "password_manager/generated_password_saved_infobar_delegate_android.h",
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
3432 3386
3433 # Used for testing only, should not be shipped to end users. 3387 # Used for testing only, should not be shipped to end users.
3434 if (!is_official_build) { 3388 if (!is_official_build) {
3435 sources += [ 3389 sources += [
3436 "android/offline_pages/evaluation/evaluation_test_scheduler.cc", 3390 "android/offline_pages/evaluation/evaluation_test_scheduler.cc",
3437 "android/offline_pages/evaluation/evaluation_test_scheduler.h", 3391 "android/offline_pages/evaluation/evaluation_test_scheduler.h",
3438 "android/offline_pages/evaluation/offline_page_evaluation_bridge.cc", 3392 "android/offline_pages/evaluation/offline_page_evaluation_bridge.cc",
3439 "android/offline_pages/evaluation/offline_page_evaluation_bridge.h", 3393 "android/offline_pages/evaluation/offline_page_evaluation_bridge.h",
3440 ] 3394 ]
3441 } 3395 }
3396 } else {
3397 # ! android_java_ui
3398 sources += [
3399 "notifications/application_notifier_source.cc",
3400 "notifications/application_notifier_source.h",
3401 "notifications/arc_application_notifier_source_chromeos.cc",
3402 "notifications/arc_application_notifier_source_chromeos.h",
3403 "notifications/extension_welcome_notification.cc",
3404 "notifications/extension_welcome_notification.h",
3405 "notifications/extension_welcome_notification_factory.cc",
3406 "notifications/extension_welcome_notification_factory.h",
3407 "notifications/fullscreen_notification_blocker.cc",
3408 "notifications/fullscreen_notification_blocker.h",
3409 "notifications/google_now_notification_stats_collector.cc",
3410 "notifications/google_now_notification_stats_collector.h",
3411 "notifications/message_center_notification_manager.cc",
3412 "notifications/message_center_notification_manager.h",
3413 "notifications/message_center_settings_controller.cc",
3414 "notifications/message_center_settings_controller.h",
3415 "notifications/message_center_stats_collector.cc",
3416 "notifications/message_center_stats_collector.h",
3417 "notifications/notification_conversion_helper.cc",
3418 "notifications/notification_conversion_helper.h",
3419 "notifications/notification_system_observer.cc",
3420 "notifications/notification_system_observer.h",
3421 "notifications/notification_ui_manager_desktop.cc",
3422 "notifications/notifier_source.h",
3423 "notifications/profile_notification.cc",
3424 "notifications/profile_notification.h",
3425 "notifications/screen_lock_notification_blocker.cc",
3426 "notifications/screen_lock_notification_blocker.h",
3427 "notifications/system_component_notifier_source_chromeos.cc",
3428 "notifications/system_component_notifier_source_chromeos.h",
3429 "notifications/web_page_notifier_source.cc",
3430 "notifications/web_page_notifier_source.h",
3431 ]
3442 } 3432 }
3443 3433
3444 if (enable_vr_shell || enable_webvr) { 3434 if (enable_vr_shell || enable_webvr) {
3445 if (enable_vr_shell) { 3435 if (enable_vr_shell) {
3446 defines += [ "ENABLE_VR_SHELL" ] 3436 defines += [ "ENABLE_VR_SHELL" ]
3447 } 3437 }
3448 3438
3449 deps += [ "android/vr_shell:vr_common" ] 3439 deps += [ "android/vr_shell:vr_common" ]
3450 configs += [ "//third_party/gvr-android-sdk:libgvr_config" ] 3440 configs += [ "//third_party/gvr-android-sdk:libgvr_config" ]
3451 } 3441 }
3452 3442
3453 if (is_mac) { 3443 if (is_mac) {
3454 deps += [ 3444 deps += [
3455 "//chrome/app_shim", 3445 "//chrome/app_shim",
3456 "//chrome/browser/apps/app_shim", 3446 "//chrome/browser/apps/app_shim",
3447 "//chrome/browser/ui/cocoa/notifications:common",
3457 "//third_party/crashpad/crashpad/client:client", 3448 "//third_party/crashpad/crashpad/client:client",
3458 "//third_party/google_toolbox_for_mac", 3449 "//third_party/google_toolbox_for_mac",
3459 "//third_party/mozilla", 3450 "//third_party/mozilla",
3460 ] 3451 ]
3461 libs += [ 3452 libs += [
3462 "Accelerate.framework", 3453 "Accelerate.framework",
3463 "AddressBook.framework", 3454 "AddressBook.framework",
3464 "AudioUnit.framework", 3455 "AudioUnit.framework",
3465 "DiskArbitration.framework", 3456 "DiskArbitration.framework",
3466 "IOKit.framework", 3457 "IOKit.framework",
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after
4452 # linking all of the test support. 4443 # linking all of the test support.
4453 static_library("pepper_cdm_test_constants") { 4444 static_library("pepper_cdm_test_constants") {
4454 testonly = true 4445 testonly = true
4455 visibility = [ "//chrome/*" ] 4446 visibility = [ "//chrome/*" ]
4456 sources = [ 4447 sources = [
4457 "media/pepper_cdm_test_constants.cc", 4448 "media/pepper_cdm_test_constants.cc",
4458 "media/pepper_cdm_test_constants.h", 4449 "media/pepper_cdm_test_constants.h",
4459 ] 4450 ]
4460 } 4451 }
4461 } 4452 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/about_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698