diff --git a/chromium_version.txt b/chromium_version.txt index 2e42e696..237b3e4f 100644 --- a/chromium_version.txt +++ b/chromium_version.txt @@ -1 +1 @@ -90.0.4430.212 +91.0.4472.77 diff --git a/domain_substitution.list b/domain_substitution.list index 10982a88..254ad9a8 100644 --- a/domain_substitution.list +++ b/domain_substitution.list @@ -16,6 +16,8 @@ android_webview/browser/safe_browsing/aw_safe_browsing_allowlist_manager_unittes android_webview/common/url_constants.cc android_webview/lib/aw_main_delegate.cc android_webview/nonembedded/java/res_devui/values/strings.xml +android_webview/test/data/components/fake_component_manifest.json +android_webview/test/data/components/fake_component_update_response.json android_webview/tools/cts_config/webview_cts_gcs_path.json android_webview/tools/cts_utils.py android_webview/tools/generate_flag_labels.py @@ -35,6 +37,8 @@ ash/assistant/util/deep_link_util_unittest.cc ash/child_accounts/parent_access_controller_impl_unittest.cc ash/components/account_manager/account_manager_unittest.cc ash/constants/ash_switches.cc +ash/content/scanning/resources/scanning_app.html +ash/content/scanning/resources/scanning_app.js ash/fast_ink/laser/laser_pointer_view.cc ash/login/ui/login_user_menu_view_unittest.cc ash/public/cpp/android_intent_helper_unittest.cc @@ -64,6 +68,8 @@ base/base_paths_win.cc base/check.cc base/check_op.cc base/command_line.cc +base/containers/circular_deque_unittest.cc +base/containers/flat_tree.cc base/debug/alias.cc base/debug/debugger_posix.cc base/debug/stack_trace_fuchsia.cc @@ -71,6 +77,7 @@ base/debug/stack_trace_posix.cc base/debug/stack_trace_win.cc base/file_version_info.h base/files/file_enumerator_posix.cc +base/files/file_path.cc base/files/file_unittest.cc base/files/file_util_posix.cc base/files/file_util_win.cc @@ -99,6 +106,7 @@ base/metrics/histogram_macros.h base/metrics/user_metrics.h base/native_library_win.cc base/notreached.cc +base/observer_list_unittest.cc base/optional.h base/process/launch.h base/process/launch_posix.cc @@ -232,7 +240,6 @@ build/vs_toolchain.py build/whitespace_file.txt buildtools/README.txt buildtools/clang_format/README.txt -buildtools/ensure_gn_version.py buildtools/third_party/libc++/trunk/CREDITS.TXT buildtools/third_party/libc++/trunk/src/chrono.cpp buildtools/third_party/libc++/trunk/utils/google-benchmark/src/cycleclock.h @@ -260,6 +267,7 @@ chrome/android/java/res/xml/phone_as_a_security_key_accessory_filter.xml chrome/android/java/src/PRESUBMIT.py chrome/android/javatests/AndroidManifest.xml chrome/android/javatests/AndroidManifest_monochrome.xml +chrome/android/javatests/src/org/chromium/chrome/test/smoke/AndroidManifest_bundle.xml chrome/android/webapk/PRESUBMIT.py chrome/android/webapk/shell_apk/manifest/bound_manifest_config.json chrome/android/webapk/shell_apk/manifest/javatest_manifest_config_delta.json @@ -311,18 +319,74 @@ chrome/browser/ash/accessibility/accessibility_live_site_browsertest.cc chrome/browser/ash/accessibility/accessibility_manager_browsertest.cc chrome/browser/ash/account_manager/account_manager_edu_coexistence_controller_unittest.cc chrome/browser/ash/app_mode/fake_cws.cc +chrome/browser/ash/apps/apk_web_app_installer_browsertest.cc +chrome/browser/ash/apps/apk_web_app_installer_unittest.cc +chrome/browser/ash/arc/arc_util_unittest.cc +chrome/browser/ash/arc/auth/arc_auth_service_browsertest.cc +chrome/browser/ash/arc/auth/arc_background_auth_code_fetcher.cc +chrome/browser/ash/arc/auth/arc_robot_auth_code_fetcher.cc +chrome/browser/ash/arc/bluetooth/arc_bluetooth_bridge.cc +chrome/browser/ash/arc/bluetooth/arc_bluetooth_bridge.h +chrome/browser/ash/arc/enterprise/arc_data_snapshotd_delegate_unittest.cc +chrome/browser/ash/arc/file_system_watcher/file_system_scanner.h +chrome/browser/ash/arc/intent_helper/arc_external_protocol_dialog_unittest.cc +chrome/browser/ash/arc/policy/arc_policy_bridge_unittest.cc +chrome/browser/ash/arc/policy/arc_policy_util.h +chrome/browser/ash/arc/session/arc_play_store_enabled_preference_handler_unittest.cc +chrome/browser/ash/arc/session/arc_session_manager_browsertest.cc +chrome/browser/ash/arc/session/arc_session_manager_unittest.cc +chrome/browser/ash/arc/tracing/arc_app_performance_tracing.cc chrome/browser/ash/assistant/assistant_util.cc chrome/browser/ash/assistant/assistant_util_unittest.cc +chrome/browser/ash/attestation/attestation_ca_client.cc +chrome/browser/ash/attestation/attestation_ca_client_unittest.cc +chrome/browser/ash/attestation/platform_verification_flow_unittest.cc +chrome/browser/ash/attestation/tpm_challenge_key_subtle_unittest.cc +chrome/browser/ash/backdrop_wallpaper_handlers/backdrop_wallpaper_handlers.cc +chrome/browser/ash/bluetooth/debug_logs_manager_unittest.cc +chrome/browser/ash/cert_provisioning/cert_provisioning_test_helpers.cc +chrome/browser/ash/child_accounts/parent_access_code/parent_access_service_browsertest.cc +chrome/browser/ash/crosapi/browser_util_unittest.cc +chrome/browser/ash/drive/drivefs_test_support.cc chrome/browser/ash/login/app_mode/kiosk_browsertest.cc chrome/browser/ash/login/app_mode/kiosk_launch_controller_browsertest.cc +chrome/browser/ash/login/device_family_link_allowed_policy_browsertest.cc chrome/browser/ash/login/easy_unlock/easy_unlock_key_names.cc chrome/browser/ash/login/easy_unlock/easy_unlock_screenlock_state_handler_unittest.cc +chrome/browser/ash/login/encryption_migration_browsertest.cc +chrome/browser/ash/login/existing_user_controller_browsertest.cc +chrome/browser/ash/login/help_app_launcher.h +chrome/browser/ash/login/login_browsertest.cc +chrome/browser/ash/login/login_ui_browsertest.cc +chrome/browser/ash/login/login_ui_keyboard_browsertest.cc +chrome/browser/ash/login/login_ui_shelf_visibility_browsertest.cc +chrome/browser/ash/login/marketing_backend_connector.cc +chrome/browser/ash/login/password_change_browsertest.cc +chrome/browser/ash/login/profile_auth_data_unittest.cc chrome/browser/ash/login/quick_unlock/pin_migration_browsertest.cc +chrome/browser/ash/login/reset_browsertest.cc chrome/browser/ash/login/saml/password_sync_token_fetcher.cc chrome/browser/ash/login/saml/saml_browsertest.cc chrome/browser/ash/login/screens/assistant_optin_flow_screen_browsertest.cc chrome/browser/ash/login/screens/recommend_apps/recommend_apps_fetcher_impl.cc chrome/browser/ash/login/screens/recommend_apps/recommend_apps_fetcher_impl_unittest.cc +chrome/browser/ash/login/screens/user_selection_screen_browsertest.cc +chrome/browser/ash/login/session/user_session_manager.cc +chrome/browser/ash/login/session_login_browsertest.cc +chrome/browser/ash/login/signin/device_id_browsertest.cc +chrome/browser/ash/login/signin/oauth2_browsertest.cc +chrome/browser/ash/login/test/fake_gaia_mixin.cc +chrome/browser/ash/login/test/fake_gaia_mixin.h +chrome/browser/ash/login/test/logged_in_user_mixin.cc +chrome/browser/ash/login/test/login_manager_mixin.cc +chrome/browser/ash/login/test/login_manager_mixin.h +chrome/browser/ash/login/ui/captive_portal_view.cc +chrome/browser/ash/login/users/multi_profile_user_controller_unittest.cc +chrome/browser/ash/plugin_vm/plugin_vm_installer_unittest.cc +chrome/browser/ash/plugin_vm/plugin_vm_license_checker.cc +chrome/browser/ash/plugin_vm/plugin_vm_util.cc +chrome/browser/ash/plugin_vm/plugin_vm_util_unittest.cc +chrome/browser/ash/scanning/chrome_scanning_app_delegate_unittest.cc chrome/browser/ash/settings/cros_settings_unittest.cc chrome/browser/ash/settings/device_settings_provider_unittest.cc chrome/browser/autocomplete/autocomplete_browsertest.cc @@ -360,6 +424,7 @@ chrome/browser/browsing_data/counters/history_counter_browsertest.cc chrome/browser/browsing_data/counters/passwords_counter_browsertest.cc chrome/browser/browsing_data/counters/site_data_counting_helper_unittest.cc chrome/browser/browsing_data/counters/site_settings_counter_unittest.cc +chrome/browser/buildflags.gni chrome/browser/cart/cart_service.cc chrome/browser/cart/resources/cart_domain_cart_url_mapping.json chrome/browser/cart/resources/cart_domain_name_mapping.json @@ -372,37 +437,11 @@ chrome/browser/chrome_navigation_browsertest.cc chrome/browser/chrome_web_platform_security_metrics_browsertest.cc chrome/browser/chromeos/android_sms/android_sms_urls.cc chrome/browser/chromeos/android_sms/android_sms_urls.h -chrome/browser/chromeos/apps/apk_web_app_installer_browsertest.cc -chrome/browser/chromeos/apps/apk_web_app_installer_unittest.cc -chrome/browser/chromeos/arc/arc_util_unittest.cc -chrome/browser/chromeos/arc/auth/arc_auth_service_browsertest.cc -chrome/browser/chromeos/arc/auth/arc_background_auth_code_fetcher.cc -chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher.cc -chrome/browser/chromeos/arc/bluetooth/arc_bluetooth_bridge.cc -chrome/browser/chromeos/arc/bluetooth/arc_bluetooth_bridge.h -chrome/browser/chromeos/arc/enterprise/arc_data_snapshotd_delegate_unittest.cc -chrome/browser/chromeos/arc/file_system_watcher/file_system_scanner.h -chrome/browser/chromeos/arc/intent_helper/arc_external_protocol_dialog_unittest.cc -chrome/browser/chromeos/arc/policy/arc_policy_bridge_unittest.cc -chrome/browser/chromeos/arc/policy/arc_policy_util.h -chrome/browser/chromeos/arc/session/arc_play_store_enabled_preference_handler_unittest.cc -chrome/browser/chromeos/arc/session/arc_session_manager_browsertest.cc -chrome/browser/chromeos/arc/session/arc_session_manager_unittest.cc -chrome/browser/chromeos/arc/tracing/arc_app_performance_tracing.cc -chrome/browser/chromeos/attestation/attestation_ca_client.cc -chrome/browser/chromeos/attestation/attestation_ca_client_unittest.cc -chrome/browser/chromeos/attestation/platform_verification_flow_unittest.cc -chrome/browser/chromeos/attestation/tpm_challenge_key_subtle_unittest.cc -chrome/browser/chromeos/backdrop_wallpaper_handlers/backdrop_wallpaper_handlers.cc -chrome/browser/chromeos/bluetooth/debug_logs_manager_unittest.cc -chrome/browser/chromeos/cert_provisioning/cert_provisioning_test_helpers.cc chrome/browser/chromeos/child_accounts/child_user_service.cc chrome/browser/chromeos/child_accounts/family_user_device_metrics_browsertest.cc -chrome/browser/chromeos/child_accounts/parent_access_code/parent_access_service_browsertest.cc chrome/browser/chromeos/child_accounts/secondary_account_consent_logger_unittest.cc chrome/browser/chromeos/child_accounts/time_limits/web_time_limit_error_page/resources/web_time_limit_error_page.html chrome/browser/chromeos/chrome_content_browser_client_chromeos_part_unittest.cc -chrome/browser/chromeos/crosapi/browser_util_unittest.cc chrome/browser/chromeos/crostini/crostini_installer.h chrome/browser/chromeos/crostini/crostini_simple_types.h chrome/browser/chromeos/crostini/crostini_util.cc @@ -410,7 +449,6 @@ chrome/browser/chromeos/customization/customization_document.cc chrome/browser/chromeos/dbus/proxy_resolution_service_provider.h chrome/browser/chromeos/dbus/proxy_resolution_service_provider_browsertest.cc chrome/browser/chromeos/dbus/proxy_resolution_service_provider_unittest.cc -chrome/browser/chromeos/drive/drivefs_test_support.cc chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc @@ -428,29 +466,6 @@ chrome/browser/chromeos/full_restore/full_restore_service_unittest.cc chrome/browser/chromeos/hats/hats_dialog.cc chrome/browser/chromeos/input_method/assistive_suggester.cc chrome/browser/chromeos/kerberos/kerberos_credentials_manager_test.cc -chrome/browser/chromeos/login/device_family_link_allowed_policy_browsertest.cc -chrome/browser/chromeos/login/encryption_migration_browsertest.cc -chrome/browser/chromeos/login/existing_user_controller_browsertest.cc -chrome/browser/chromeos/login/help_app_launcher.h -chrome/browser/chromeos/login/login_browsertest.cc -chrome/browser/chromeos/login/login_ui_browsertest.cc -chrome/browser/chromeos/login/login_ui_keyboard_browsertest.cc -chrome/browser/chromeos/login/login_ui_shelf_visibility_browsertest.cc -chrome/browser/chromeos/login/marketing_backend_connector.cc -chrome/browser/chromeos/login/password_change_browsertest.cc -chrome/browser/chromeos/login/profile_auth_data_unittest.cc -chrome/browser/chromeos/login/reset_browsertest.cc -chrome/browser/chromeos/login/session/user_session_manager.cc -chrome/browser/chromeos/login/session_login_browsertest.cc -chrome/browser/chromeos/login/signin/device_id_browsertest.cc -chrome/browser/chromeos/login/signin/oauth2_browsertest.cc -chrome/browser/chromeos/login/test/fake_gaia_mixin.cc -chrome/browser/chromeos/login/test/fake_gaia_mixin.h -chrome/browser/chromeos/login/test/logged_in_user_mixin.cc -chrome/browser/chromeos/login/test/login_manager_mixin.cc -chrome/browser/chromeos/login/test/login_manager_mixin.h -chrome/browser/chromeos/login/ui/captive_portal_view.cc -chrome/browser/chromeos/login/users/multi_profile_user_controller_unittest.cc chrome/browser/chromeos/net/network_diagnostics/dns_latency_routine.cc chrome/browser/chromeos/net/network_diagnostics/dns_resolution_routine.cc chrome/browser/chromeos/net/network_diagnostics/gateway_can_be_pinged_routine.cc @@ -464,10 +479,6 @@ chrome/browser/chromeos/net/network_diagnostics/network_diagnostics_util.h chrome/browser/chromeos/net/network_diagnostics/video_conferencing_routine.cc chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc chrome/browser/chromeos/platform_keys/key_permissions/key_permissions_manager_impl.cc -chrome/browser/chromeos/plugin_vm/plugin_vm_installer_unittest.cc -chrome/browser/chromeos/plugin_vm/plugin_vm_license_checker.cc -chrome/browser/chromeos/plugin_vm/plugin_vm_util.cc -chrome/browser/chromeos/plugin_vm/plugin_vm_util_unittest.cc chrome/browser/chromeos/policy/active_directory_policy_manager.cc chrome/browser/chromeos/policy/android_management_client_unittest.cc chrome/browser/chromeos/policy/device_cloud_policy_browsertest.cc @@ -498,8 +509,6 @@ chrome/browser/chromeos/printing/synced_printers_manager_unittest.cc chrome/browser/chromeos/proxy_config_service_impl_unittest.cc chrome/browser/chromeos/release_notes/release_notes_notification_unittest.cc chrome/browser/chromeos/release_notes/release_notes_storage_unittest.cc -chrome/browser/chromeos/scanning/scanning_paths_provider_impl_unittest.cc -chrome/browser/chromeos/scanning/scanning_util_unittest.cc chrome/browser/chromeos/scheduler_configuration_manager.h chrome/browser/chromeos/smb_client/smb_service_helper.h chrome/browser/chromeos/sync/turn_sync_on_helper_unittest.cc @@ -523,7 +532,7 @@ chrome/browser/data_reduction_proxy/data_reduction_proxy_chrome_settings.cc chrome/browser/data_reduction_proxy/data_reduction_proxy_chrome_settings_unittest.cc chrome/browser/devtools/device/adb/adb_client_socket_browsertest.cc chrome/browser/devtools/device/adb/mock_adb_server.cc -chrome/browser/devtools/devtools_sanity_browsertest.cc +chrome/browser/devtools/devtools_browsertest.cc chrome/browser/devtools/devtools_ui_bindings_unittest.cc chrome/browser/devtools/url_constants.cc chrome/browser/download/chrome_download_manager_delegate_unittest.cc @@ -620,6 +629,7 @@ chrome/browser/extensions/chrome_extension_function_details.cc chrome/browser/extensions/chrome_info_map_unittest.cc chrome/browser/extensions/component_extensions_allowlist/allowlist.h chrome/browser/extensions/content_script_apitest.cc +chrome/browser/extensions/content_script_tracker_browsertest.cc chrome/browser/extensions/convert_user_script_unittest.cc chrome/browser/extensions/corb_and_cors_extension_browsertest.cc chrome/browser/extensions/crx_installer_browsertest.cc @@ -659,6 +669,7 @@ chrome/browser/extensions/policy_handlers_unittest.cc chrome/browser/extensions/scripting_permissions_modifier.cc chrome/browser/extensions/scripting_permissions_modifier.h chrome/browser/extensions/scripting_permissions_modifier_unittest.cc +chrome/browser/extensions/tab_helper.cc chrome/browser/extensions/updater/chrome_extension_downloader_factory.cc chrome/browser/extensions/updater/chrome_update_client_config.cc chrome/browser/extensions/updater/extension_updater_unittest.cc @@ -668,6 +679,7 @@ chrome/browser/federated_learning/floc_remote_permission_service_unittest.cc chrome/browser/feedback/feedback_uploader_chrome.cc chrome/browser/feedback/show_feedback_page.cc chrome/browser/feedback/system_logs/log_sources/crash_ids_source.cc +chrome/browser/first_run/first_run_unittest.cc chrome/browser/flag-metadata.json chrome/browser/flag_descriptions.cc chrome/browser/google/google_search_domain_mixing_metrics_emitter.h @@ -676,14 +688,8 @@ chrome/browser/google/google_search_domain_mixing_metrics_emitter_unittest.cc chrome/browser/google/google_update_win.cc chrome/browser/guest_view/web_view/context_menu_content_type_web_view.cc chrome/browser/hid/hid_chooser_context_unittest.cc -chrome/browser/history/android/android_history_provider_service_unittest.cc -chrome/browser/history/android/android_provider_backend_unittest.cc -chrome/browser/history/android/android_urls_database_unittest.cc -chrome/browser/history/android/bookmark_model_sql_handler_unittest.cc -chrome/browser/history/android/sqlite_cursor_unittest.cc -chrome/browser/history/android/urls_sql_handler_unittest.cc -chrome/browser/history/android/visit_sql_handler_unittest.cc chrome/browser/history/redirect_browsertest.cc +chrome/browser/history_clusters/history_clusters_tab_helper_unittest.cc chrome/browser/importer/edge_importer_browsertest_win.cc chrome/browser/importer/firefox_profile_lock.cc chrome/browser/importer/firefox_profile_lock.h @@ -691,8 +697,6 @@ chrome/browser/importer/firefox_profile_lock_posix.cc chrome/browser/importer/firefox_profile_lock_win.cc chrome/browser/importer/ie_importer_browsertest_win.cc chrome/browser/importer/profile_writer_unittest.cc -chrome/browser/installable/digital_asset_links/digital_asset_links_handler.cc -chrome/browser/installable/digital_asset_links/digital_asset_links_handler.h chrome/browser/installable/installable_manager_browsertest.cc chrome/browser/lacros/lacros_chrome_service_delegate_impl.cc chrome/browser/lifetime/switch_utils_unittest.cc @@ -700,11 +704,6 @@ chrome/browser/local_discovery/service_discovery_client_mac.mm chrome/browser/login_detection/password_store_sites_browsertest.cc chrome/browser/lookalikes/lookalike_url_navigation_throttle.cc chrome/browser/lookalikes/lookalike_url_navigation_throttle_browsertest.cc -chrome/browser/media/feeds/media_feeds_browsertest.cc -chrome/browser/media/feeds/media_feeds_converter_unittest.cc -chrome/browser/media/feeds/media_feeds_fetcher_unittest.cc -chrome/browser/media/feeds/media_feeds_service_unittest.cc -chrome/browser/media/history/media_history_browsertest.cc chrome/browser/media/history/media_history_keyed_service_unittest.cc chrome/browser/media/history/media_history_store_unittest.cc chrome/browser/media/media_engagement_contents_observer_unittest.cc @@ -734,8 +733,6 @@ chrome/browser/metrics/variations/variations_http_headers_browsertest.cc chrome/browser/nacl_host/nacl_infobar_delegate.cc chrome/browser/navigation_predictor/navigation_predictor_browsertest.cc chrome/browser/navigation_predictor/navigation_predictor_preconnect_client_browsertest.cc -chrome/browser/navigation_predictor/navigation_predictor_renderer_warmup_client_browsertest.cc -chrome/browser/navigation_predictor/navigation_predictor_renderer_warmup_client_unittest.cc chrome/browser/navigation_predictor/navigation_predictor_unittest.cc chrome/browser/navigation_predictor/search_engine_preconnector.cc chrome/browser/navigation_predictor/search_engine_preconnector_browsertest.cc @@ -744,6 +741,7 @@ chrome/browser/nearby_sharing/client/nearby_share_client_impl.cc chrome/browser/nearby_sharing/client/nearby_share_client_impl_unittest.cc chrome/browser/nearby_sharing/common/nearby_share_switches.cc chrome/browser/nearby_sharing/contacts/nearby_share_contact_manager_impl_unittest.cc +chrome/browser/nearby_sharing/contacts/nearby_share_contacts_sorter_unittest.cc chrome/browser/nearby_sharing/instantmessaging/constants.h chrome/browser/nearby_sharing/local_device_data/nearby_share_device_data_updater_impl_unittest.cc chrome/browser/nearby_sharing/local_device_data/nearby_share_local_device_data_manager_impl_unittest.cc @@ -773,10 +771,8 @@ chrome/browser/notifications/platform_notification_service_unittest.cc chrome/browser/notifications/win/notification_template_builder.cc chrome/browser/optimization_guide/hints_fetcher_browsertest.cc chrome/browser/optimization_guide/optimization_guide_hints_manager_unittest.cc -chrome/browser/optimization_guide/prediction/prediction_manager_browsertest.cc +chrome/browser/optimization_guide/page_content_annotations_service_browsertest.cc chrome/browser/page_load_metrics/observers/aborts_page_load_metrics_observer_unittest.cc -chrome/browser/page_load_metrics/observers/ad_metrics/ads_page_load_metrics_observer.cc -chrome/browser/page_load_metrics/observers/ad_metrics/ads_page_load_metrics_observer_unittest.cc chrome/browser/page_load_metrics/observers/core/amp_page_load_metrics_observer.h chrome/browser/page_load_metrics/observers/core/amp_page_load_metrics_observer_unittest.cc chrome/browser/page_load_metrics/observers/core/ukm_page_load_metrics_observer_unittest.cc @@ -817,7 +813,7 @@ chrome/browser/performance_hints/rewrite_handler_unittest.cc chrome/browser/permissions/chrome_permission_manager_unittest.cc chrome/browser/permissions/chrome_permission_request_manager_unittest.cc chrome/browser/permissions/grouped_permission_infobar_delegate_android.cc -chrome/browser/permissions/permission_context_base_feature_policy_unittest.cc +chrome/browser/permissions/permission_context_base_permissions_policy_unittest.cc chrome/browser/platform_util_win.cc chrome/browser/plugins/flash_temporary_permission_tracker_unittest.cc chrome/browser/plugins/plugins_resource_service.cc @@ -825,17 +821,18 @@ chrome/browser/policy/cloud/cloud_policy_browsertest.cc chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc chrome/browser/policy/extension_force_install_mixin.cc chrome/browser/policy/extension_policy_browsertest.cc -chrome/browser/policy/force_google_safe_search_policy_browsertest.cc -chrome/browser/policy/policy_statistics_collector_browsertest.cc -chrome/browser/policy/policy_test_google_browsertest.cc chrome/browser/policy/policy_test_utils.cc chrome/browser/policy/policy_test_utils.h -chrome/browser/policy/safe_browsing_policy_browsertest.cc +chrome/browser/policy/serial_allow_usb_devices_for_urls_policy_handler_unittest.cc +chrome/browser/policy/test/force_google_safe_search_policy_browsertest.cc +chrome/browser/policy/test/policy_statistics_collector_browsertest.cc +chrome/browser/policy/test/policy_test_google_browsertest.cc +chrome/browser/policy/test/safe_browsing_policy_browsertest.cc +chrome/browser/policy/test/system_features_policy_browsertest.cc chrome/browser/policy/webusb_allow_devices_for_urls_policy_handler_unittest.cc chrome/browser/predictors/autocomplete_action_predictor_table_unittest.cc chrome/browser/predictors/loading_data_collector_unittest.cc chrome/browser/predictors/loading_predictor_browsertest.cc -chrome/browser/predictors/loading_predictor_tab_helper_unittest.cc chrome/browser/predictors/loading_predictor_unittest.cc chrome/browser/predictors/loading_stats_collector_unittest.cc chrome/browser/predictors/preconnect_manager_unittest.cc @@ -853,7 +850,6 @@ chrome/browser/prefs/chrome_command_line_pref_store_proxy_unittest.cc chrome/browser/prefs/pref_functional_browsertest.cc chrome/browser/prefs/pref_metrics_service.cc chrome/browser/prefs/session_startup_pref_unittest.cc -chrome/browser/previews/previews_content_util_unittest.cc chrome/browser/printing/cloud_print/cloud_print_printer_list_unittest.cc chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc chrome/browser/printing/cloud_print/gcd_api_flow_unittest.cc @@ -879,15 +875,15 @@ chrome/browser/profiles/profile_manager.h chrome/browser/profiles/profile_manager_browsertest.cc chrome/browser/profiles/profile_manager_unittest.cc chrome/browser/profiles/profile_shortcut_manager_win.cc -chrome/browser/profiles/profile_window.cc chrome/browser/push_messaging/push_messaging_constants.cc chrome/browser/push_messaging/push_messaging_notification_manager.h chrome/browser/push_messaging/push_messaging_notification_manager_unittest.cc chrome/browser/push_messaging/push_messaging_service_impl.cc -chrome/browser/renderer_context_menu/copy_link_to_text_menu_observer_interactive_uitest.cc +chrome/browser/renderer_context_menu/link_to_text_menu_observer_interactive_uitest.cc chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc chrome/browser/renderer_host/chrome_navigation_ui_data.h chrome/browser/reputation/local_heuristics.cc +chrome/browser/reputation/local_heuristics_unittest.cc chrome/browser/reputation/url_elision_policy_unittest.cc chrome/browser/resource_coordinator/tab_load_tracker_unittest.cc chrome/browser/resource_coordinator/tab_manager_web_contents_data_unittest.cc @@ -896,9 +892,10 @@ chrome/browser/resource_coordinator/tab_ranker/tab_features_test_helper.cc chrome/browser/resources/PRESUBMIT.py chrome/browser/resources/bookmarks/command_manager.js chrome/browser/resources/chromeos/about_os_credits.html +chrome/browser/resources/chromeos/accessibility/accessibility_common/magnifier/magnifier.js chrome/browser/resources/chromeos/accessibility/chromevox/background/background_test.js chrome/browser/resources/chromeos/accessibility/chromevox/background/command_handler.js -chrome/browser/resources/chromeos/accessibility/chromevox/background/locale_output_helper_test.js +chrome/browser/resources/chromeos/accessibility/chromevox/background/output/locale_output_helper_test.js chrome/browser/resources/chromeos/accessibility/chromevox/braille/braille_input_handler_test.js chrome/browser/resources/chromeos/accessibility/chromevox/common/spannable_test.js chrome/browser/resources/chromeos/accessibility/chromevox/options/options.css @@ -908,6 +905,7 @@ chrome/browser/resources/chromeos/accessibility/chromevox_manifest.json.jinja2 chrome/browser/resources/chromeos/accessibility/common/cursors/cursors_test.js chrome/browser/resources/chromeos/accessibility/common/tutorial/chromevox_tutorial.js chrome/browser/resources/chromeos/accessibility/select_to_speak/mock_tts.js +chrome/browser/resources/chromeos/accessibility/select_to_speak/node_navigation_utils.js chrome/browser/resources/chromeos/accessibility/select_to_speak/node_utils.js chrome/browser/resources/chromeos/accessibility/select_to_speak/options.css chrome/browser/resources/chromeos/accessibility/select_to_speak/paragraph_utils.js @@ -934,11 +932,11 @@ chrome/browser/resources/chromeos/emulator/icons.html chrome/browser/resources/chromeos/input_method/google_xkb_manifest.json chrome/browser/resources/chromeos/login/arc_terms_of_service.js chrome/browser/resources/chromeos/login/cr_ui.js -chrome/browser/resources/chromeos/login/encryption_migration.js chrome/browser/resources/chromeos/login/marketing_opt_in.html -chrome/browser/resources/chromeos/login/offline_login.html -chrome/browser/resources/chromeos/login/offline_login.js -chrome/browser/resources/chromeos/login/oobe_eula.js +chrome/browser/resources/chromeos/login/screens/login/encryption_migration.js +chrome/browser/resources/chromeos/login/screens/login/offline_login.html +chrome/browser/resources/chromeos/login/screens/login/offline_login.js +chrome/browser/resources/chromeos/login/screens/oobe/oobe_eula.js chrome/browser/resources/chromeos/multidevice_internals/browser_tabs_metadata_form.js chrome/browser/resources/chromeos/wallpaper_manager/manifest.json chrome/browser/resources/chromeos/zip_archiver/cpp/volume.h @@ -962,15 +960,11 @@ chrome/browser/resources/gaia_auth_host/password_change_authenticator.js chrome/browser/resources/gaia_auth_host/saml_handler.js chrome/browser/resources/gaia_auth_host/saml_password_attributes.js chrome/browser/resources/hangout_services/manifest.json -chrome/browser/resources/hats/hats.html chrome/browser/resources/identity_scope_approval_dialog/manifest.json chrome/browser/resources/identity_scope_approval_dialog/scope_approval_dialog.js chrome/browser/resources/inspect/inspect.html chrome/browser/resources/internals/query_tiles/query_tiles_internals.html chrome/browser/resources/internals/query_tiles/query_tiles_internals.js -chrome/browser/resources/local_ntp/customize.js -chrome/browser/resources/local_ntp/doodles.js -chrome/browser/resources/local_ntp/voice.js chrome/browser/resources/media/mei_preload/manifest.json chrome/browser/resources/media/webrtc_logs.js chrome/browser/resources/media_router/extension/src/externs.js @@ -1038,6 +1032,7 @@ chrome/browser/safe_browsing/chrome_enterprise_url_lookup_service_unittest.cc chrome/browser/safe_browsing/chrome_password_protection_service.cc chrome/browser/safe_browsing/chrome_password_protection_service_browsertest.cc chrome/browser/safe_browsing/chrome_password_protection_service_unittest.cc +chrome/browser/safe_browsing/client_side_detection_host_unittest.cc chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service.cc chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service_unittest.cc chrome/browser/safe_browsing/download_protection/check_client_download_request_base.cc @@ -1059,8 +1054,6 @@ chrome/browser/search/background/ntp_background_service.cc chrome/browser/search/background/ntp_backgrounds.cc chrome/browser/search/drive/drive_service.cc chrome/browser/search/drive/drive_service_unittest.cc -chrome/browser/search/local_ntp_source.cc -chrome/browser/search/ntp_icon_source.cc chrome/browser/search/one_google_bar/one_google_bar_loader_impl.cc chrome/browser/search/promos/promo_service_unittest.cc chrome/browser/search/search.h @@ -1075,8 +1068,13 @@ chrome/browser/send_tab_to_self/send_tab_to_self_desktop_util_unittest.cc chrome/browser/send_tab_to_self/send_tab_to_self_util_unittest.cc chrome/browser/serial/chrome_serial_browsertest.cc chrome/browser/serial/serial_chooser_context_unittest.cc +chrome/browser/serial/serial_policy_allowed_ports_unittest.cc +chrome/browser/sessions/app_session_service_unittest.cc +chrome/browser/sessions/session_restore.cc chrome/browser/sessions/session_restore_browsertest.cc chrome/browser/sessions/session_restore_observer_unittest.cc +chrome/browser/sessions/session_service.h +chrome/browser/sessions/session_service_base.cc chrome/browser/sessions/session_service_unittest.cc chrome/browser/sharing/click_to_call/click_to_call_utils_unittest.cc chrome/browser/sharing/shared_clipboard/feature_flags.cc @@ -1145,6 +1143,7 @@ chrome/browser/sync/test/integration/single_client_typed_urls_sync_test.cc chrome/browser/sync/test/integration/single_client_user_consents_sync_test.cc chrome/browser/sync/test/integration/single_client_user_events_sync_test.cc chrome/browser/sync/test/integration/single_client_wallet_sync_test.cc +chrome/browser/sync/test/integration/single_client_web_apps_sync_test.cc chrome/browser/sync/test/integration/sync_auth_test.cc chrome/browser/sync/test/integration/sync_errors_test.cc chrome/browser/sync/test/integration/sync_test.cc @@ -1160,7 +1159,6 @@ chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc chrome/browser/tab/web_contents_state.cc chrome/browser/tab_contents/navigation_metrics_recorder_browsertest.cc chrome/browser/task_manager/sampling/shared_sampler_win_defines.h -chrome/browser/tflite_experiment/tflite_experiment_keyed_service_browsertest.cc chrome/browser/themes/theme_syncable_service.cc chrome/browser/tracing/crash_service_uploader.cc chrome/browser/translate/translate_manager_browsertest.cc @@ -1175,13 +1173,14 @@ chrome/browser/ui/app_list/app_service/app_service_app_model_builder_unittest.cc chrome/browser/ui/app_list/arc/arc_usb_host_permission_browsertest.cc chrome/browser/ui/app_list/search/arc/arc_app_reinstall_app_result.cc chrome/browser/ui/app_list/search/arc/arc_app_reinstall_search_provider_unittest.cc +chrome/browser/ui/app_list/search/arc/recommend_apps_fetcher_impl.cc +chrome/browser/ui/app_list/search/arc/recommend_apps_fetcher_impl_unittest.cc chrome/browser/ui/app_list/search/assistant_search_provider_unittest.cc chrome/browser/ui/app_list/search/files/item_suggest_cache.cc chrome/browser/ui/app_list/search/files/item_suggest_cache.h chrome/browser/ui/app_list/search/omnibox_provider.cc chrome/browser/ui/app_list/search/search_result_ranker/app_launch_event_logger_unittest.cc chrome/browser/ui/app_list/search/search_result_ranker/ranking_item_util_unittest.cc -chrome/browser/ui/app_list/search/search_result_ranker/search_ranking_event_logger_unittest.cc chrome/browser/ui/app_list/search/search_result_ranker/search_result_ranker_unittest.cc chrome/browser/ui/ash/ambient/ambient_client_impl.cc chrome/browser/ui/ash/ambient/ambient_client_impl_unittest.cc @@ -1216,7 +1215,8 @@ chrome/browser/ui/cocoa/applescript/window_applescript_test.mm chrome/browser/ui/cocoa/bookmarks/bookmark_menu_bridge_unittest.mm chrome/browser/ui/cocoa/history_menu_bridge_unittest.mm chrome/browser/ui/cocoa/history_menu_cocoa_controller_unittest.mm -chrome/browser/ui/cocoa/rosetta_required_infobar_delegate.mm +chrome/browser/ui/cocoa/screentime/history_bridge_unittest.cc +chrome/browser/ui/cocoa/screentime/screentime_tab_helper_unittest.mm chrome/browser/ui/cocoa/share_menu_controller.mm chrome/browser/ui/cocoa/share_menu_controller_browsertest.mm chrome/browser/ui/commander/open_url_command_source.cc @@ -1224,10 +1224,12 @@ chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc chrome/browser/ui/content_settings/content_setting_image_model_unittest.cc chrome/browser/ui/crypto_module_password_dialog_nss.cc chrome/browser/ui/extensions/extension_action_view_controller_unittest.cc -chrome/browser/ui/extensions/extension_message_bubble_browsertest.cc chrome/browser/ui/extensions/hosted_app_browsertest.cc chrome/browser/ui/extensions/installation_error_infobar_delegate.cc +chrome/browser/ui/global_media_controls/media_notification_service_unittest.cc +chrome/browser/ui/global_media_controls/presentation_request_notification_producer_unittest.cc chrome/browser/ui/hid/hid_chooser_controller_unittest.cc +chrome/browser/ui/managed_ui.cc chrome/browser/ui/media_router/media_cast_mode.h chrome/browser/ui/media_router/media_cast_mode_unittest.cc chrome/browser/ui/media_router/media_router_ui_helper_unittest.cc @@ -1246,9 +1248,6 @@ chrome/browser/ui/passwords/well_known_change_password_navigation_throttle.cc chrome/browser/ui/passwords/well_known_change_password_navigation_throttle_browsertest.cc chrome/browser/ui/passwords/well_known_change_password_navigation_throttle_unittest.cc chrome/browser/ui/pdf/adobe_reader_info_win.cc -chrome/browser/ui/search/local_ntp_browsertest.cc -chrome/browser/ui/search/local_ntp_doodle_browsertest.cc -chrome/browser/ui/search/local_ntp_render_browsertest.cc chrome/browser/ui/search/ntp_user_data_logger_unittest.cc chrome/browser/ui/search/search_tab_helper.h chrome/browser/ui/search/third_party_ntp_browsertest.cc @@ -1257,6 +1256,7 @@ chrome/browser/ui/signin_view_controller.cc chrome/browser/ui/signin_view_controller_interactive_uitest.cc chrome/browser/ui/startup/credential_provider_signin_dialog_win_test_data.cc chrome/browser/ui/startup/startup_browser_creator.cc +chrome/browser/ui/startup/startup_browser_creator_impl.cc chrome/browser/ui/startup/startup_tab_provider_unittest.cc chrome/browser/ui/tab_helpers.h chrome/browser/ui/tabs/pinned_tab_codec_unittest.cc @@ -1264,7 +1264,6 @@ chrome/browser/ui/tabs/pinned_tab_service_browsertest.cc chrome/browser/ui/tabs/pinned_tab_service_unittest.cc chrome/browser/ui/toolbar/location_bar_model_unittest.cc chrome/browser/ui/toolbar/media_router_contextual_menu.cc -chrome/browser/ui/views/accessibility/caption_bubble_controller_views_browsertest.cc chrome/browser/ui/views/apps/app_dialog/app_uninstall_dialog_view.cc chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views_unittest.cc chrome/browser/ui/views/autofill/payments/local_card_migration_browsertest.cc @@ -1333,7 +1332,6 @@ chrome/browser/ui/webui/favicon_source_unittest.cc chrome/browser/ui/webui/history/browsing_history_handler_unittest.cc chrome/browser/ui/webui/interstitials/interstitial_ui.cc chrome/browser/ui/webui/log_web_ui_url_unittest.cc -chrome/browser/ui/webui/management/management_ui_handler.cc chrome/browser/ui/webui/management/management_ui_handler_unittest.cc chrome/browser/ui/webui/new_tab_page/foo/foo_handler.cc chrome/browser/ui/webui/new_tab_page/new_tab_page_ui.cc @@ -1359,6 +1357,7 @@ chrome/browser/ui/webui/settings/site_settings_helper_unittest.cc chrome/browser/ui/webui/signin/dice_turn_sync_on_helper_unittest.cc chrome/browser/ui/webui/signin/signin_error_handler_unittest.cc chrome/browser/ui/webui/signin/signin_reauth_ui.h +chrome/browser/ui/webui/signin/sync_confirmation_handler_unittest.cc chrome/browser/ui/webui/theme_source_unittest.cc chrome/browser/ui/webui/welcome/google_apps_handler.cc chrome/browser/ui/webui/welcome/ntp_background_handler.cc @@ -1371,8 +1370,6 @@ chrome/browser/usb/usb_policy_allowed_devices_unittest.cc chrome/browser/usb/usb_tab_helper_unittest.cc chrome/browser/usb/web_usb_detector_unittest.cc chrome/browser/usb/web_usb_service_impl_unittest.cc -chrome/browser/video_tutorials/internal/config.cc -chrome/browser/video_tutorials/internal/config_unittest.cc chrome/browser/vr/PRESUBMIT.py chrome/browser/web_applications/components/externally_installed_web_app_prefs.cc chrome/browser/web_applications/components/web_app_handler_registration_utils_win.cc @@ -1380,7 +1377,7 @@ chrome/browser/web_applications/components/web_app_handler_registration_utils_wi chrome/browser/web_applications/components/web_app_handler_registration_utils_win_unittest.cc chrome/browser/web_applications/components/web_app_helpers_unittest.cc chrome/browser/web_applications/components/web_app_icon_downloader_unittest.cc -chrome/browser/web_applications/components/web_app_id_constants.h +chrome/browser/web_applications/components/web_app_id_constants.cc chrome/browser/web_applications/components/web_app_install_utils_unittest.cc chrome/browser/web_applications/extensions/bookmark_app_util_unittest.cc chrome/browser/web_applications/external_web_app_manager_unittest.cc @@ -1669,8 +1666,9 @@ chrome/test/enterprise/e2e/policy/webprotect_bulk_text_entry/webprotect_bulk_tex chrome/test/enterprise/e2e/policy/webprotect_file_download/webprotect_file_download_webdriver.py chrome/test/enterprise/e2e/policy/youtube_restrict/youtube_restrict.py chrome/test/media_router/media_router_integration_browsertest.cc +chrome/test/mini_installer/PRESUBMIT.py chrome/test/mini_installer/create_zip.py -chrome/test/mini_installer/test_installer.py +chrome/test/mini_installer/installer_test.py chrome/test/mini_installer/update_lastrun.py chrome/test/nacl/nacl_browsertest_util.h chrome/test/payments/payment_request_platform_browsertest_base.h @@ -1712,6 +1710,7 @@ chromecast/browser/renderer_prelauncher_test.cc chromecast/browser/service/cast_service_simple.cc chromecast/browser/webui/cast_webui.cc chromecast/browser/webview/web_content_controller.cc +chromecast/chromecast.gni chromecast/common/activity_url_filter_unittest.cc chromecast/common/extensions_api/i18n.json chromecast/common/extensions_api/tabs.json @@ -1736,6 +1735,7 @@ chromeos/components/camera_app_ui/resources/strings/camera_strings.grd chromeos/components/diagnostics_ui/resources/routine_section.js chromeos/components/drivefs/drivefs_auth.cc chromeos/components/local_search_service/content_extraction_utils_unittest.cc +chromeos/components/media_app_ui/media_app_guest_ui.cc chromeos/components/media_app_ui/resources/js/launch.js chromeos/components/multidevice/remote_device_test_util.cc chromeos/components/multidevice/stub_multidevice_util.cc @@ -1746,11 +1746,9 @@ chromeos/components/proximity_auth/proximity_auth_system_unittest.cc chromeos/components/proximity_auth/proximity_monitor_impl_unittest.cc chromeos/components/quick_answers/translation_result_loader.cc chromeos/components/quick_answers/translation_result_loader_unittest.cc -chromeos/components/scanning/resources/scanning_app.html -chromeos/components/scanning/resources/scanning_app.js chromeos/components/string_matching/tokenized_string_unittest.cc chromeos/components/trial_group/trial_group_checker.cc -chromeos/cryptohome/cryptohome_util.cc +chromeos/cryptohome/userdataauth_util.cc chromeos/dbus/arc/arc_obb_mounter_client.h chromeos/dbus/biod/fake_biod_client_unittest.cc chromeos/dbus/debug_daemon/debug_daemon_client.h @@ -1759,14 +1757,15 @@ chromeos/dbus/permission_broker/permission_broker_client.h chromeos/geolocation/simple_geolocation_provider.cc chromeos/hugepage_text/hugepage_text.cc chromeos/hugepage_text/hugepage_text.h +chromeos/lacros/BUILD.gn chromeos/network/geolocation_handler.cc chromeos/network/network_cert_loader.cc chromeos/network/network_util.h +chromeos/network/system_token_cert_db_storage.h chromeos/printing/ppd_provider.h chromeos/printing/ppd_provider_unittest.cc chromeos/printing/printer_config_cache.cc chromeos/printing/printer_config_cache_unittest.cc -chromeos/printing/printer_configuration.h chromeos/printing/printer_configuration_unittest.cc chromeos/printing/uri_fuzzer_seed_corpus/uri1.txt chromeos/printing/uri_fuzzer_seed_corpus/uri10.txt @@ -1784,7 +1783,6 @@ chromeos/printing/uri_fuzzer_seed_corpus/uri4.txt chromeos/printing/uri_fuzzer_seed_corpus/uri49.txt chromeos/printing/uri_fuzzer_seed_corpus/uri5.txt chromeos/services/assistant/assistant_manager_service_impl.cc -chromeos/services/assistant/public/cpp/assistant_service.h chromeos/services/assistant/service.cc chromeos/services/assistant/service_unittest.cc chromeos/services/device_sync/cryptauth_api_call_flow_unittest.cc @@ -1798,6 +1796,7 @@ chromeos/services/device_sync/remote_device_v2_loader_impl_unittest.cc chromeos/services/device_sync/switches.cc chromeos/services/ime/constants.cc chromeos/services/ime/public/cpp/shared_lib/interfaces.h +chromeos/services/libassistant/public/cpp/assistant_suggestion.h chromeos/test/data/network/proxy_config.json chromeos/test/data/network/shill_wifi_proxy.json chromeos/timezone/timezone_request.cc @@ -1868,8 +1867,10 @@ components/autofill_assistant/browser/devtools/error_reporter.h components/autofill_assistant/browser/devtools/message_dispatcher.h components/autofill_assistant/browser/devtools/value_conversions.h components/autofill_assistant/browser/field_formatter_unittest.cc +components/autofill_assistant/browser/script_parameters_unittest.cc components/autofill_assistant/browser/service/server_url_fetcher.cc components/autofill_assistant/browser/service/server_url_fetcher_unittest.cc +components/autofill_assistant/browser/trigger_scripts/trigger_script_coordinator_unittest.cc components/autofill_assistant/browser/user_data_util_unittest.cc components/autofill_assistant/browser/user_model_unittest.cc components/blocked_content/safe_browsing_triggered_popup_blocker.h @@ -1929,6 +1930,8 @@ components/cronet/tools/cr_cronet.py components/cronet/tools/generate_javadoc.py components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h components/data_reduction_proxy/core/common/chrome_proxy_header.txt +components/digital_asset_links/digital_asset_links_handler.cc +components/digital_asset_links/digital_asset_links_handler.h components/dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc components/dom_distiller/content/browser/dom_distiller_viewer_source.cc components/dom_distiller/core/html/dom_distiller_viewer.html @@ -1965,7 +1968,6 @@ components/favicon_base/favicon_url_parser_unittest.cc components/feed/core/v2/feed_network_impl.cc components/feed/core/v2/feed_network_impl_unittest.cc components/feed/core/v2/public/types_unittest.cc -components/feed/core/v2/types_unittest.cc components/feed/feed_feature_list.cc components/feedback/feedback_common.cc components/feedback/feedback_common_unittest.cc @@ -1977,7 +1979,6 @@ components/flags_ui/resources/flags.html components/full_restore/full_restore_info_unittest.cc components/gcm_driver/gcm_account_mapper.cc components/gcm_driver/gcm_account_mapper_unittest.cc -components/gcm_driver/gcm_account_tracker.cc components/gcm_driver/gcm_client_impl.cc components/gcm_driver/gcm_client_impl_unittest.cc components/google/core/common/google_util.cc @@ -2012,6 +2013,7 @@ components/history/core/browser/web_history_service_unittest.cc components/history/core/common/thumbnail_score.h components/history/core/test/fake_web_history_service.cc components/history/metrics/domain_diversity_reporter_unittest.cc +components/history_clusters/core/memories_service_unittest.cc components/image_fetcher/ios/webp_decoder.h components/invalidation/impl/per_user_topic_subscription_manager.cc components/invalidation/impl/per_user_topic_subscription_manager_unittest.cc @@ -2112,14 +2114,23 @@ components/omnibox/browser/titled_url_match_utils.cc components/omnibox/browser/titled_url_match_utils_unittest.cc components/omnibox/browser/zero_suggest_provider.cc components/omnibox/browser/zero_suggest_verbatim_match_provider_unittest.cc +components/omnibox/resources/omnibox_pedal_concepts.json +components/omnibox/resources/omnibox_pedal_concepts_en-GB.json +components/omnibox/resources/omnibox_pedal_concepts_en.json +components/optimization_guide/content/browser/optimization_target_model_executor_unittest.cc +components/optimization_guide/content/browser/page_content_annotations_model_manager.cc +components/optimization_guide/content/browser/page_content_annotations_model_manager_unittest.cc components/optimization_guide/core/hints_component_util_unittest.cc components/optimization_guide/core/optimization_filter_unittest.cc components/optimization_guide/core/optimization_guide_constants.cc -components/optimization_guide/core/optimization_metadata.h +components/optimization_guide/core/optimization_guide_util.h +components/optimization_guide/core/optimization_guide_util_unittest.cc components/optimization_guide/core/optimization_metadata_unittest.cc components/page_info/page_info.cc components/page_load_metrics/browser/metrics_web_contents_observer.cc components/page_load_metrics/browser/metrics_web_contents_observer_unittest.cc +components/page_load_metrics/browser/observers/ad_metrics/ads_page_load_metrics_observer.cc +components/page_load_metrics/browser/observers/ad_metrics/ads_page_load_metrics_observer_unittest.cc components/page_load_metrics/browser/observers/core/uma_page_load_metrics_observer.cc components/page_load_metrics/browser/observers/core/uma_page_load_metrics_observer_unittest.cc components/page_load_metrics/browser/observers/page_load_metrics_observer_content_test_harness.cc @@ -2184,6 +2195,7 @@ components/password_manager/core/browser/password_generation_frame_helper_unitte components/password_manager/core/browser/password_generation_manager_unittest.cc components/password_manager/core/browser/password_hash_data.cc components/password_manager/core/browser/password_hash_data.h +components/password_manager/core/browser/password_manager.cc components/password_manager/core/browser/password_manager.h components/password_manager/core/browser/password_manager_client_helper_unittest.cc components/password_manager/core/browser/password_manager_constants.cc @@ -2218,6 +2230,7 @@ components/password_manager/core/browser/sync_username_test_base.cc components/password_manager/core/browser/ui/insecure_credentials_reader_unittest.cc components/password_manager/core/browser/ui/saved_passwords_presenter_unittest.cc components/password_manager/core/browser/well_known_change_password_util_unittest.cc +components/password_manager/core/common/password_manager_pref_names.h components/password_manager/ios/password_form_helper_unittest.mm components/password_manager/ios/shared_password_controller_unittest.mm components/password_manager/ios/test_helpers.cc @@ -2268,6 +2281,7 @@ components/policy/core/common/cloud/cloud_policy_client_unittest.cc components/policy/core/common/cloud/user_cloud_policy_store_unittest.cc components/policy/core/common/cloud/user_info_fetcher_unittest.cc components/policy/core/common/policy_loader_common.cc +components/policy/core/common/policy_loader_lacros_unittest.cc components/policy/core/common/policy_map_unittest.cc components/policy/core/common/policy_service_impl_unittest.cc components/policy/core/common/preg_parser.h @@ -2294,14 +2308,8 @@ components/policy/tools/template_writers/writers/template_writer_unittest.py components/prefs/pref_change_registrar.cc components/prefs/pref_change_registrar_unittest.cc components/prefs/pref_service_unittest.cc -components/previews/content/previews_decider_impl.cc -components/previews/content/previews_decider_impl_unittest.cc -components/previews/core/previews_experiments_unittest.cc -components/previews/core/previews_features.cc components/printing/renderer/print_render_frame_helper.cc components/proxy_config/pref_proxy_config_tracker_impl_unittest.cc -components/query_tiles/internal/tile_config.cc -components/query_tiles/internal/tile_config_unittest.cc components/query_tiles/test/fake_tile_service.cc components/quirks/quirks_client.cc components/reading_list/core/offline_url_utils_unittest.cc @@ -2386,7 +2394,6 @@ components/safe_search_api/stub_url_checker.cc components/safe_search_api/url_checker_unittest.cc components/safety_check/update_check_helper.h components/safety_check/url_constants.cc -components/schema_org/extractor_unittest.cc components/search/repeatable_queries/repeatable_queries_service_unittest.cc components/search_engines/default_search_policy_handler_unittest.cc components/search_engines/keyword_table_unittest.cc @@ -2635,15 +2642,18 @@ content/browser/renderer_host/navigation_request_unittest.cc content/browser/renderer_host/navigator.cc content/browser/renderer_host/navigator_unittest.cc content/browser/renderer_host/raw_clipboard_host_impl.cc -content/browser/renderer_host/render_frame_host_feature_policy_unittest.cc +content/browser/renderer_host/recently_destroyed_hosts_unittest.cc +content/browser/renderer_host/render_frame_host.cc content/browser/renderer_host/render_frame_host_impl.cc content/browser/renderer_host/render_frame_host_impl.h content/browser/renderer_host/render_frame_host_manager_browsertest.cc content/browser/renderer_host/render_frame_host_manager_unittest.cc +content/browser/renderer_host/render_frame_host_permissions_policy_unittest.cc content/browser/renderer_host/render_process_host_impl.cc content/browser/renderer_host/render_process_host_unittest.cc content/browser/renderer_host/render_view_host_impl.h content/browser/renderer_host/render_view_host_unittest.cc +content/browser/renderer_host/render_widget_host_input_event_router.cc content/browser/renderer_host/text_input_client_mac.h content/browser/renderer_host/virtual_keyboard_controller_win.h content/browser/resources/PRESUBMIT.py @@ -2685,11 +2695,13 @@ content/common/zygote/zygote_communication_linux.h content/public/PRESUBMIT.py content/public/android/java/res/values/strings.xml content/public/browser/back_forward_cache.h +content/public/browser/browser_main_parts.h content/public/browser/browser_task_traits.h content/public/browser/browsing_data_filter_builder.h content/public/browser/content_browser_client.cc content/public/browser/content_browser_client.h content/public/browser/navigation_handle_timing.h +content/public/browser/page_navigator.cc content/public/browser/payment_app_provider.h content/public/browser/render_frame_host.h content/public/browser/render_view_host.h @@ -2736,11 +2748,11 @@ content/test/gpu/trim_culprit_cls.py content/test/gpu/unexpected_pass_finder.py content/test/gpu/unexpected_passes/data_types.py content/test/gpu/unexpected_passes/data_types_unittest.py +content/test/gpu/unexpected_passes/expectations_unittest.py content/test/gpu/unexpected_passes/result_output_unittest.py content/test/test_render_view_host.cc content/web_test/browser/fake_bluetooth_chooser.h content/web_test/browser/fake_bluetooth_chooser_factory.h -content/web_test/common/web_test_switches.cc content/zygote/zygote_linux.cc content/zygote/zygote_linux.h content/zygote/zygote_main_linux.cc @@ -2762,6 +2774,7 @@ crypto/hmac_unittest.cc crypto/nss_util.cc crypto/rsa_private_key_unittest.cc crypto/secure_util.h +crypto/unexportable_key_win.cc device/bluetooth/bluetooth_adapter_android.cc device/bluetooth/bluetooth_adapter_mac.mm device/bluetooth/bluetooth_adapter_winrt.cc @@ -2807,6 +2820,7 @@ extensions/browser/updater/extension_downloader_unittest.cc extensions/browser/updater/safe_manifest_parser.cc extensions/browser/updater/safe_manifest_parser.h extensions/browser/updater/safe_manifest_parser_unittest.cc +extensions/browser/url_loader_factory_manager.h extensions/common/api/PRESUBMIT.py extensions/common/api/app_runtime.idl extensions/common/api/app_window.idl @@ -3052,12 +3066,13 @@ ios/chrome/browser/ui/util/pasteboard_util_unittest.mm ios/chrome/browser/ui/webui/interstitials/interstitial_ui_util.mm ios/chrome/browser/url_loading/image_search_param_generator_unittest.mm ios/chrome/browser/web/chrome_web_client_unittest.mm -ios/chrome/browser/web/font_size_tab_helper_unittest.mm -ios/chrome/browser/web/resources/print.js +ios/chrome/browser/web/font_size/font_size_tab_helper_unittest.mm +ios/chrome/browser/web/print/resources/print.js ios/chrome/browser/web_state_list/web_state_list_order_controller_unittest.mm ios/chrome/browser/web_state_list/web_state_list_unittest.mm ios/chrome/browser/web_state_list/web_usage_enabler/web_usage_enabler_browser_agent_unittest.mm ios/chrome/common/ns_regular_expression_unittest.mm +ios/chrome/common/string_util_unittest.mm ios/chrome/common/x_callback_url_unittest.cc ios/chrome/test/data/policy/policy_test_cases.json ios/chrome/test/earl_grey/chrome_earl_grey_ui.h @@ -3073,11 +3088,13 @@ ios/public/provider/chrome/browser/omaha/test_omaha_service_provider.mm ios/public/provider/chrome/browser/signin/chrome_identity_service.h ios/public/provider/chrome/browser/signin/chrome_identity_service.mm ios/public/provider/chrome/browser/signin/fake_chrome_identity_service.mm +ios/public/provider/chrome/browser/signin/fake_chrome_identity_service_constants.mm ios/showcase/alert/sc_alert_coordinator.mm ios/showcase/infobars/sc_infobar_modal_save_card_coordinator.mm ios/showcase/omnibox_popup/fake_autocomplete_suggestion.mm ios/testing/data/http_server_files/opensearch.xml ios/testing/data/http_server_files/simple_login_form.html +ios/testing/data/http_server_files/simple_signup_form.html ios/testing/data/http_server_files/window_open.html ios/web/browsing_data/browsing_data_remover_unittest.mm ios/web/browsing_data/system_cookie_store_util_unittest.mm @@ -3104,6 +3121,7 @@ ios/web_view/internal/autofill/cwv_autofill_data_manager_unittest.mm ios/web_view/internal/autofill/cwv_credit_card_saver_unittest.mm ios/web_view/internal/cwv_favicon_unittest.mm ios/web_view/internal/cwv_flags.mm +ios/web_view/internal/cwv_ssl_error_handler_unittest.mm ios/web_view/internal/cwv_web_view.mm ios/web_view/internal/passwords/cwv_password_unittest.mm ios/web_view/internal/signin/cwv_identity_unittest.mm @@ -3120,6 +3138,7 @@ jingle/notifier/communicator/single_login_attempt.cc media/PRESUBMIT.py media/audio/android/audio_track_output_stream.cc media/audio/android/opensles_util.cc +media/audio/cras/cras_util.cc media/audio/win/audio_low_latency_input_win.cc media/audio/win/audio_low_latency_output_win.h media/audio/win/core_audio_util_win.cc @@ -3138,6 +3157,7 @@ media/base/video_codecs.h media/base/win/dxgi_device_manager.cc media/base/win/mf_cdm_proxy.h media/base/win/mf_helpers.h +media/base/win/mf_initializer.cc media/capture/content/smooth_event_sampler_unittest.cc media/capture/video/android/video_capture_device_android.h media/capture/video/chromeos/camera_3a_controller.cc @@ -3160,6 +3180,7 @@ media/fuchsia/common/sysmem_buffer_writer_queue.cc media/gpu/android/android_video_encode_accelerator.h media/gpu/chromeos/libyuv_image_processor_backend.cc media/gpu/test/video_encoder/video_encoder_test_environment.cc +media/gpu/vaapi/test/av1_decoder.cc media/gpu/vaapi/test/vp9_decoder.cc media/gpu/vaapi/test_utils.h media/gpu/vaapi/vaapi_image_decoder_test_common.h @@ -3552,6 +3573,7 @@ net/disk_cache/disk_cache.h net/disk_cache/simple/simple_backend_impl.h net/disk_cache/simple/simple_index.cc net/dns/context_host_resolver_unittest.cc +net/dns/dns_config_service_linux_unittest.cc net/dns/dns_config_service_posix_unittest.cc net/dns/dns_config_service_win.cc net/dns/dns_config_service_win.h @@ -3795,8 +3817,8 @@ remoting/host/host_config_unittest.cc remoting/host/host_status_logger_unittest.cc remoting/host/input_injector_x11.cc remoting/host/it2me/com.google.chrome.remote_assistance-firefox.json.jinja2 +remoting/host/it2me/it2me_constants.cc remoting/host/it2me/it2me_host_unittest.cc -remoting/host/it2me/it2me_native_messaging_host.cc remoting/host/it2me/it2me_native_messaging_host_unittest.cc remoting/host/linux/linux_me2me_host.py remoting/host/linux/remoting_user_session.cc @@ -3963,6 +3985,7 @@ testing/buildbot/tryserver.chromium.android.json testing/buildbot/waterfalls.pyl testing/chromoting/browser_test_commands_linux.txt testing/chromoting/chromoting_test_driver_commands_linux.txt +testing/generate_location_tags.py testing/gtest/BUILD.gn testing/libfuzzer/BUILD.gn testing/libfuzzer/proto/skia_image_filter_proto_converter.cc @@ -4037,6 +4060,83 @@ third_party/android_crazy_linker/src/src/crazy_linker_relr_relocations.h third_party/android_crazy_linker/src/src/crazy_linker_shared_library.cpp third_party/android_crazy_linker/src/src/crazy_linker_system_android.cpp third_party/android_crazy_linker/src/src/crazy_linker_wrappers.cpp +third_party/android_deps/libs/android_arch_core_common/3pp/fetch.py +third_party/android_deps/libs/android_arch_core_runtime/3pp/fetch.py +third_party/android_deps/libs/android_arch_lifecycle_common/3pp/fetch.py +third_party/android_deps/libs/android_arch_lifecycle_common_java8/3pp/fetch.py +third_party/android_deps/libs/android_arch_lifecycle_livedata/3pp/fetch.py +third_party/android_deps/libs/android_arch_lifecycle_livedata_core/3pp/fetch.py +third_party/android_deps/libs/android_arch_lifecycle_runtime/3pp/fetch.py +third_party/android_deps/libs/android_arch_lifecycle_viewmodel/3pp/fetch.py +third_party/android_deps/libs/com_android_support_animated_vector_drawable/3pp/fetch.py +third_party/android_deps/libs/com_android_support_appcompat_v7/3pp/fetch.py +third_party/android_deps/libs/com_android_support_asynclayoutinflater/3pp/fetch.py +third_party/android_deps/libs/com_android_support_cardview_v7/3pp/fetch.py +third_party/android_deps/libs/com_android_support_collections/3pp/fetch.py +third_party/android_deps/libs/com_android_support_coordinatorlayout/3pp/fetch.py +third_party/android_deps/libs/com_android_support_cursoradapter/3pp/fetch.py +third_party/android_deps/libs/com_android_support_customview/3pp/fetch.py +third_party/android_deps/libs/com_android_support_design/3pp/fetch.py +third_party/android_deps/libs/com_android_support_documentfile/3pp/fetch.py +third_party/android_deps/libs/com_android_support_drawerlayout/3pp/fetch.py +third_party/android_deps/libs/com_android_support_interpolator/3pp/fetch.py +third_party/android_deps/libs/com_android_support_loader/3pp/fetch.py +third_party/android_deps/libs/com_android_support_localbroadcastmanager/3pp/fetch.py +third_party/android_deps/libs/com_android_support_multidex/3pp/fetch.py +third_party/android_deps/libs/com_android_support_print/3pp/fetch.py +third_party/android_deps/libs/com_android_support_recyclerview_v7/3pp/fetch.py +third_party/android_deps/libs/com_android_support_slidingpanelayout/3pp/fetch.py +third_party/android_deps/libs/com_android_support_support_annotations/3pp/fetch.py +third_party/android_deps/libs/com_android_support_support_compat/3pp/fetch.py +third_party/android_deps/libs/com_android_support_support_core_ui/3pp/fetch.py +third_party/android_deps/libs/com_android_support_support_core_utils/3pp/fetch.py +third_party/android_deps/libs/com_android_support_support_fragment/3pp/fetch.py +third_party/android_deps/libs/com_android_support_support_media_compat/3pp/fetch.py +third_party/android_deps/libs/com_android_support_support_v4/3pp/fetch.py +third_party/android_deps/libs/com_android_support_support_vector_drawable/3pp/fetch.py +third_party/android_deps/libs/com_android_support_swiperefreshlayout/3pp/fetch.py +third_party/android_deps/libs/com_android_support_transition/3pp/fetch.py +third_party/android_deps/libs/com_android_support_versionedparcelable/3pp/fetch.py +third_party/android_deps/libs/com_android_support_viewpager/3pp/fetch.py +third_party/android_deps/libs/com_android_tools_common/3pp/fetch.py +third_party/android_deps/libs/com_android_tools_desugar_jdk_libs/3pp/fetch.py +third_party/android_deps/libs/com_android_tools_desugar_jdk_libs_configuration/3pp/fetch.py +third_party/android_deps/libs/com_android_tools_layoutlib_layoutlib_api/3pp/fetch.py +third_party/android_deps/libs/com_android_tools_sdk_common/3pp/fetch.py +third_party/android_deps/libs/com_google_android_datatransport_transport_api/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_auth/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_auth_api_phone/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_auth_base/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_base/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_basement/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_cast/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_cast_framework/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_clearcut/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_cloud_messaging/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_fido/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_flags/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_gcm/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_iid/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_instantapps/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_location/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_phenotype/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_places_placereport/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_stats/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_tasks/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_vision/3pp/fetch.py +third_party/android_deps/libs/com_google_android_gms_play_services_vision_common/3pp/fetch.py +third_party/android_deps/libs/com_google_android_material_material/3pp/fetch.py +third_party/android_deps/libs/com_google_firebase_firebase_annotations/3pp/fetch.py +third_party/android_deps/libs/com_google_firebase_firebase_common/3pp/fetch.py +third_party/android_deps/libs/com_google_firebase_firebase_components/3pp/fetch.py +third_party/android_deps/libs/com_google_firebase_firebase_encoders/3pp/fetch.py +third_party/android_deps/libs/com_google_firebase_firebase_encoders_json/3pp/fetch.py +third_party/android_deps/libs/com_google_firebase_firebase_iid/3pp/fetch.py +third_party/android_deps/libs/com_google_firebase_firebase_iid_interop/3pp/fetch.py +third_party/android_deps/libs/com_google_firebase_firebase_installations/3pp/fetch.py +third_party/android_deps/libs/com_google_firebase_firebase_installations_interop/3pp/fetch.py +third_party/android_deps/libs/com_google_firebase_firebase_measurement_connector/3pp/fetch.py +third_party/android_deps/libs/com_google_firebase_firebase_messaging/3pp/fetch.py third_party/android_deps/licenses/Android_SDK_License-December_9_2016.txt third_party/android_platform/development/scripts/PRESUBMIT.py third_party/android_platform/development/scripts/stack.py @@ -4046,6 +4146,7 @@ third_party/angle/extensions/ANGLE_client_arrays.txt third_party/angle/extensions/ANGLE_external_objects_flags.txt third_party/angle/extensions/ANGLE_external_objects_fuchsia.txt third_party/angle/extensions/ANGLE_get_image.txt +third_party/angle/extensions/ANGLE_get_serialized_context_string.txt third_party/angle/extensions/ANGLE_get_tex_level_parameter.txt third_party/angle/extensions/ANGLE_lossy_etc_decode.txt third_party/angle/extensions/ANGLE_memory_size.txt @@ -4067,6 +4168,7 @@ third_party/angle/extensions/EGL_ANGLE_device_creation.txt third_party/angle/extensions/EGL_ANGLE_device_creation_d3d11.txt third_party/angle/extensions/EGL_ANGLE_device_d3d.txt third_party/angle/extensions/EGL_ANGLE_device_eagl.txt +third_party/angle/extensions/EGL_ANGLE_device_metal.txt third_party/angle/extensions/EGL_ANGLE_direct3d_display.txt third_party/angle/extensions/EGL_ANGLE_direct_composition.txt third_party/angle/extensions/EGL_ANGLE_display_semaphore_share_group.txt @@ -4149,6 +4251,7 @@ third_party/angle/src/libGLESv2/global_state.cpp third_party/angle/src/libGLESv2/global_state.h third_party/angle/src/tests/egl_tests/EGLIOSurfaceClientBufferTest.cpp third_party/angle/src/tests/gl_tests/BufferDataTest.cpp +third_party/angle/src/tests/gl_tests/FramebufferTest.cpp third_party/angle/src/tests/gl_tests/GLSLTest.cpp third_party/angle/src/tests/gl_tests/ImageTest.cpp third_party/angle/src/tests/gl_tests/MipmapTest.cpp @@ -4164,6 +4267,7 @@ third_party/angle/src/tests/gles1_conformance_tests/ConformanceTests.cpp third_party/angle/src/tests/perf_tests/ANGLEPerfTest.h third_party/angle/src/tests/test_utils/angle_test_instantiate.cpp third_party/angle/src/tests/test_utils/runner/TestSuite.cpp +third_party/angle/src/tests/test_utils/runner/android/java/AndroidManifest.xml.jinja2 third_party/angle/src/third_party/volk/volk.h third_party/angle/third_party/BUILD.gn third_party/angle/third_party/VK-GL-CTS/src/external/vulkancts/modules/vulkan/conditional_rendering/vktConditionalClearAttachmentTests.cpp @@ -4292,7 +4396,7 @@ third_party/blink/public/common/input/web_keyboard_event.h third_party/blink/public/common/origin_trials/trial_token.h third_party/blink/public/common/scheduler/PRESUBMIT.py third_party/blink/public/common/widget/visual_properties.h -third_party/blink/public/mojom/feature_policy/PRESUBMIT.py +third_party/blink/public/mojom/permissions_policy/PRESUBMIT.py third_party/blink/public/mojom/use_counter/PRESUBMIT.py third_party/blink/public/mojom/web_feature/PRESUBMIT.py third_party/blink/public/platform/linux/web_sandbox_support.h @@ -4486,6 +4590,7 @@ third_party/blink/renderer/core/frame/local_frame_view.cc third_party/blink/renderer/core/frame/local_frame_view.h third_party/blink/renderer/core/frame/navigator.cc third_party/blink/renderer/core/frame/settings.h +third_party/blink/renderer/core/frame/visual_viewport.h third_party/blink/renderer/core/frame/web_frame_serializer_impl.cc third_party/blink/renderer/core/frame/web_frame_test.cc third_party/blink/renderer/core/frame/web_frame_widget_impl.cc @@ -4562,7 +4667,6 @@ third_party/blink/renderer/core/layout/layout_block_flow.h third_party/blink/renderer/core/layout/layout_box.cc third_party/blink/renderer/core/layout/layout_box_model_object.cc third_party/blink/renderer/core/layout/layout_box_model_object.h -third_party/blink/renderer/core/layout/layout_geometry_map_test.cc third_party/blink/renderer/core/layout/layout_image.cc third_party/blink/renderer/core/layout/layout_image.h third_party/blink/renderer/core/layout/layout_image_resource.cc @@ -4587,7 +4691,6 @@ third_party/blink/renderer/core/layout/scroll_anchor_test.cc third_party/blink/renderer/core/layout/svg/layout_svg_path.cc third_party/blink/renderer/core/layout/svg/layout_svg_shape.cc third_party/blink/renderer/core/layout/text_run_constructor.h -third_party/blink/renderer/core/loader/document_loader.cc third_party/blink/renderer/core/loader/frame_loader.cc third_party/blink/renderer/core/loader/http_equiv.cc third_party/blink/renderer/core/loader/image_loader.h @@ -4765,6 +4868,7 @@ third_party/blink/renderer/platform/fonts/opentype/open_type_vertical_data.cc third_party/blink/renderer/platform/fonts/opentype/open_type_vertical_data.h third_party/blink/renderer/platform/fonts/opentype/open_type_vertical_data_test.cc third_party/blink/renderer/platform/fonts/script_run_iterator.cc +third_party/blink/renderer/platform/fonts/shaping/harfbuzz_shaper.cc third_party/blink/renderer/platform/fonts/shaping/shape_result.cc third_party/blink/renderer/platform/fonts/shaping/shape_result_view.cc third_party/blink/renderer/platform/fonts/simple_font_data.cc @@ -4891,7 +4995,6 @@ third_party/boringssl/src/third_party/googletest/test/gtest_list_output_unittest third_party/boringssl/src/third_party/googletest/test/gtest_skip_test.cc third_party/boringssl/src/tool/fd.cc third_party/boringssl/src/tool/internal.h -third_party/boringssl/src/util/bot/go/bootstrap.py third_party/boringssl/src/util/bot/go/env.py third_party/boringssl/src/util/bot/update_clang.py third_party/breakpad/breakpad/default.xml @@ -4902,6 +5005,7 @@ third_party/breakpad/breakpad/src/client/linux/sender/google_crash_report_sender third_party/breakpad/breakpad/src/client/mac/handler/exception_handler.cc third_party/breakpad/breakpad/src/client/minidump_file_writer_unittest.cc third_party/breakpad/breakpad/src/common/dwarf/dwarf2reader_lineinfo_unittest.cc +third_party/breakpad/breakpad/src/common/dwarf/dwarf2reader_splitfunctions_unittest.cc third_party/breakpad/breakpad/src/common/dwarf/elf_reader.cc third_party/breakpad/breakpad/src/common/dwarf/elf_reader.h third_party/breakpad/breakpad/src/common/dwarf_range_list_handler.cc @@ -4962,6 +5066,7 @@ third_party/breakpad/breakpad/src/processor/static_range_map-inl.h third_party/breakpad/breakpad/src/processor/static_range_map.h third_party/breakpad/breakpad/src/processor/static_range_map_unittest.cc third_party/breakpad/breakpad/src/processor/windows_frame_info.h +third_party/breakpad/breakpad/src/tools/linux/core_handler/core_handler.cc third_party/breakpad/breakpad/src/tools/linux/md2core/minidump-2-core.cc third_party/breakpad/breakpad/src/tools/python/deps-to-manifest.py third_party/breakpad/breakpad/src/tools/python/filter_syms.py @@ -5192,9 +5297,11 @@ third_party/catapult/telemetry/telemetry/internal/backends/chrome/desktop_browse third_party/catapult/telemetry/telemetry/internal/backends/chrome/oobe.py third_party/catapult/telemetry/telemetry/internal/backends/chrome/possible_desktop_browser_unittest.py third_party/catapult/telemetry/telemetry/internal/backends/chrome_inspector/inspector_websocket.py +third_party/catapult/telemetry/telemetry/internal/backends/chrome_inspector/ui_devtools_client_backend.py third_party/catapult/telemetry/telemetry/internal/browser/browser_interval_profiling_controller.py third_party/catapult/telemetry/telemetry/internal/browser/browser_options.py third_party/catapult/telemetry/telemetry/internal/browser/tab.py +third_party/catapult/telemetry/telemetry/internal/browser/ui_devtools.py third_party/catapult/telemetry/telemetry/internal/browser/user_agent.py third_party/catapult/telemetry/telemetry/internal/platform/posix_platform_backend.py third_party/catapult/telemetry/telemetry/internal/platform/win_platform_backend.py @@ -5977,6 +6084,7 @@ third_party/catapult/third_party/typ/typ/fakes/test_result_server_fake.py third_party/catapult/third_party/typ/typ/json_results.py third_party/catapult/third_party/typ/typ/result_sink.py third_party/catapult/third_party/typ/typ/tests/expectations_parser_test.py +third_party/catapult/third_party/typ/typ/tests/result_sink_test.py third_party/catapult/third_party/urllib3/urllib3/connectionpool.py third_party/catapult/third_party/urllib3/urllib3/contrib/appengine.py third_party/catapult/third_party/urllib3/urllib3/contrib/ntlmpool.py @@ -6121,6 +6229,7 @@ third_party/closure_compiler/externs/crash_report_private.js third_party/closure_compiler/externs/developer_private.js third_party/closure_compiler/externs/events.js third_party/closure_compiler/externs/extension_types.js +third_party/closure_compiler/externs/feedback_private.js third_party/closure_compiler/externs/file_system_provider.js third_party/closure_compiler/externs/input_method_private.js third_party/closure_compiler/externs/language_settings_private.js @@ -6223,6 +6332,7 @@ third_party/dav1d/libdav1d/tests/checkasm/itx.c third_party/dav1d/libdav1d/tools/input/annexb.c third_party/dav1d/libdav1d/tools/input/parse.h third_party/dav1d/libdav1d/tools/input/section5.c +third_party/dawn/.vscode/tasks.json third_party/dawn/CMakeLists.txt third_party/dawn/examples/SampleUtils.cpp third_party/dawn/src/common/BitSetIterator.h @@ -6281,10 +6391,10 @@ third_party/dawn/src/dawn_native/vulkan/VulkanInfo.cpp third_party/dawn/src/dawn_native/vulkan/VulkanInfo.h third_party/dawn/src/tests/DawnTest.cpp third_party/dawn/src/tests/end2end/CompressedTextureFormatTests.cpp -third_party/dawn/src/tests/end2end/ComputeCopyStorageBufferTests.cpp third_party/dawn/src/tests/end2end/D3D12VideoViewsTests.cpp third_party/dawn/src/tests/end2end/DepthBiasTests.cpp third_party/dawn/src/tests/end2end/IOSurfaceWrappingTests.cpp +third_party/dawn/src/tests/end2end/MultisampledRenderingTests.cpp third_party/dawn/src/tests/end2end/OpArrayLengthTests.cpp third_party/dawn/src/tests/end2end/QueueTests.cpp third_party/dawn/src/tests/end2end/SwapChainValidationTests.cpp @@ -6296,8 +6406,6 @@ third_party/dawn/src/tests/perf_tests/DawnPerfTestPlatform.h third_party/dawn/src/tests/unittests/validation/ComputeValidationTests.cpp third_party/dawn/src/tests/unittests/validation/CopyCommandsValidationTests.cpp third_party/dawn/src/tests/unittests/validation/RenderPassDescriptorValidationTests.cpp -third_party/dawn/src/tests/unittests/validation/RenderPipelineValidationTests.cpp -third_party/dawn/src/tests/unittests/validation/ShaderModuleValidationTests.cpp third_party/dawn/src/tests/unittests/validation/ValidationTest.cpp third_party/dawn/src/tests/white_box/VulkanImageWrappingTestsDmaBuf.cpp third_party/dawn/src/utils/TerribleCommandBuffer.cpp @@ -6723,30 +6831,17 @@ third_party/depot_tools/watchlists.py third_party/depot_tools/win32imports.py third_party/depot_tools/win_toolchain/get_toolchain_if_necessary.py third_party/devtools-frontend/src/PRESUBMIT.py -third_party/devtools-frontend/src/front_end/bindings/ResourceUtils.js +third_party/devtools-frontend/src/front_end/core/i18n/locales/en-US.json +third_party/devtools-frontend/src/front_end/core/sdk/CSSMetadata.js +third_party/devtools-frontend/src/front_end/core/sdk/Cookie.js +third_party/devtools-frontend/src/front_end/core/sdk/NetworkLog.js +third_party/devtools-frontend/src/front_end/core/sdk/NetworkManager.js third_party/devtools-frontend/src/front_end/dagre_layout/dagre.js third_party/devtools-frontend/src/front_end/devtools_compatibility.js third_party/devtools-frontend/src/front_end/entrypoint_template.html -third_party/devtools-frontend/src/front_end/extensions/ExtensionServer.js -third_party/devtools-frontend/src/front_end/i18n/locales/en-US.json +third_party/devtools-frontend/src/front_end/inspector_main/RenderingOptions.js third_party/devtools-frontend/src/front_end/integration_test_runner.html -third_party/devtools-frontend/src/front_end/main/MainImpl.js -third_party/devtools-frontend/src/front_end/network/NetworkConfigView.js -third_party/devtools-frontend/src/front_end/network/NetworkDataGridNode.js -third_party/devtools-frontend/src/front_end/network/NetworkLogView.js -third_party/devtools-frontend/src/front_end/network/RequestTimingView.js -third_party/devtools-frontend/src/front_end/network/ResourceWebSocketFrameView.js -third_party/devtools-frontend/src/front_end/resources/AppManifestView.js -third_party/devtools-frontend/src/front_end/resources/ApplicationPanelSidebar.js -third_party/devtools-frontend/src/front_end/resources/BackgroundServiceView.js -third_party/devtools-frontend/src/front_end/sdk/CSSMetadata.js -third_party/devtools-frontend/src/front_end/sdk/ContentSecurityPolicyIssue.js -third_party/devtools-frontend/src/front_end/sdk/Cookie.js -third_party/devtools-frontend/src/front_end/sdk/HeavyAdIssue.js -third_party/devtools-frontend/src/front_end/sdk/NetworkLog.js -third_party/devtools-frontend/src/front_end/sdk/NetworkManager.js -third_party/devtools-frontend/src/front_end/sources/SourcesNavigator.js -third_party/devtools-frontend/src/front_end/sources/SourcesView.js +third_party/devtools-frontend/src/front_end/panels/emulation/DeviceModeToolbar.js third_party/devtools-frontend/src/front_end/theme_support/theme_support_impl.js third_party/devtools-frontend/src/front_end/third_party/acorn-loose/package/package.json third_party/devtools-frontend/src/front_end/third_party/acorn/package/dist/acorn.js @@ -6850,12 +6945,10 @@ third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/lib/es third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js third_party/devtools-frontend/src/front_end/third_party/wasmparser/package/package.json -third_party/devtools-frontend/src/front_end/timeline/TimelinePanel.js -third_party/devtools-frontend/src/front_end/timeline/TimelineUIUtils.js -third_party/devtools-frontend/src/front_end/ui/SearchableView.js -third_party/devtools-frontend/src/front_end/ui/UIUtils.js -third_party/devtools-frontend/src/front_end/ui/themeColors.css -third_party/devtools-frontend/src/front_end/ui/utils/append-style.js +third_party/devtools-frontend/src/front_end/ui/legacy/SearchableView.js +third_party/devtools-frontend/src/front_end/ui/legacy/UIUtils.js +third_party/devtools-frontend/src/front_end/ui/legacy/themeColors.css +third_party/devtools-frontend/src/front_end/ui/legacy/utils/append-style.js third_party/devtools-frontend/src/node_modules/@babel/code-frame/package.json third_party/devtools-frontend/src/node_modules/@babel/core/node_modules/source-map/dist/source-map.debug.js third_party/devtools-frontend/src/node_modules/@babel/core/node_modules/source-map/dist/source-map.js @@ -7022,6 +7115,7 @@ third_party/devtools-frontend/src/node_modules/eslint/node_modules/globals/packa third_party/devtools-frontend/src/node_modules/eslint/node_modules/has-flag/package.json third_party/devtools-frontend/src/node_modules/eslint/node_modules/strip-ansi/package.json third_party/devtools-frontend/src/node_modules/eslint/node_modules/supports-color/package.json +third_party/devtools-frontend/src/node_modules/eslint/node_modules/type-fest/package.json third_party/devtools-frontend/src/node_modules/espree/espree.js third_party/devtools-frontend/src/node_modules/esprima/package.json third_party/devtools-frontend/src/node_modules/esquery/dist/esquery.esm.js @@ -7084,6 +7178,7 @@ third_party/devtools-frontend/src/node_modules/is-alphabetical/package.json third_party/devtools-frontend/src/node_modules/is-alphanumerical/package.json third_party/devtools-frontend/src/node_modules/is-binary-path/package.json third_party/devtools-frontend/src/node_modules/is-callable/package.json +third_party/devtools-frontend/src/node_modules/is-core-module/package.json third_party/devtools-frontend/src/node_modules/is-decimal/package.json third_party/devtools-frontend/src/node_modules/is-fullwidth-code-point/package.json third_party/devtools-frontend/src/node_modules/is-hexadecimal/package.json @@ -7406,8 +7501,6 @@ third_party/devtools-frontend/src/scripts/deps/download_emscripten.py third_party/devtools-frontend/src/scripts/deps/roll_to_chromium.py third_party/devtools-frontend/src/scripts/devtools_run/package.json third_party/devtools-frontend/src/scripts/hosted_mode/server.js -third_party/devtools-frontend/src/scripts/localization/utils/check_localizability.js -third_party/devtools-frontend/src/scripts/localization/utils/localization_utils.js third_party/devtools-frontend/src/test/e2e/resources/console/primitives.html third_party/devtools-frontend/src/third_party/blink/public/devtools_protocol/browser_protocol.json third_party/devtools-frontend/src/third_party/pyjson5/src/benchmarks/chromium.linux.json @@ -8152,6 +8245,14 @@ third_party/expat/src/expat/xmlwf/readfilemap.c third_party/farmhash/src/dev/builder.cc third_party/farmhash/src/dev/farmhash.h third_party/farmhash/src/src/farmhash.h +third_party/ffmpeg/chromium/config/Chrome/android/arm-neon/config.h +third_party/ffmpeg/chromium/config/Chrome/android/arm64/config.h +third_party/ffmpeg/chromium/config/Chrome/android/ia32/config.h +third_party/ffmpeg/chromium/config/Chrome/android/x64/config.h +third_party/ffmpeg/chromium/config/Chromium/android/arm-neon/config.h +third_party/ffmpeg/chromium/config/Chromium/android/arm64/config.h +third_party/ffmpeg/chromium/config/Chromium/android/ia32/config.h +third_party/ffmpeg/chromium/config/Chromium/android/x64/config.h third_party/ffmpeg/chromium/scripts/build_ffmpeg.py third_party/ffmpeg/chromium/scripts/credits_updater.py third_party/ffmpeg/chromium/scripts/generate_gn.py @@ -8169,6 +8270,7 @@ third_party/ffmpeg/libavcodec/aacdec.c third_party/ffmpeg/libavcodec/aacdec_template.c third_party/ffmpeg/libavcodec/aacps.c third_party/ffmpeg/libavcodec/aacps.h +third_party/ffmpeg/libavcodec/aacps_common.c third_party/ffmpeg/libavcodec/aacps_fixed.c third_party/ffmpeg/libavcodec/aacps_fixed_tablegen.c third_party/ffmpeg/libavcodec/aacps_fixed_tablegen.h @@ -8194,7 +8296,6 @@ third_party/ffmpeg/libavcodec/ac3enc.c third_party/ffmpeg/libavcodec/ac3enc.h third_party/ffmpeg/libavcodec/ac3enc_fixed.c third_party/ffmpeg/libavcodec/ac3enc_float.c -third_party/ffmpeg/libavcodec/ac3enc_opts_template.c third_party/ffmpeg/libavcodec/ac3enc_template.c third_party/ffmpeg/libavcodec/adpcm.c third_party/ffmpeg/libavcodec/aliaspixdec.c @@ -8373,9 +8474,11 @@ third_party/ffmpeg/libavfilter/vf_super2xsai.c third_party/ffmpeg/libavfilter/vf_tinterlace.c third_party/ffmpeg/libavfilter/vf_tonemap.c third_party/ffmpeg/libavfilter/vf_uspp.c +third_party/ffmpeg/libavfilter/vf_vif.c third_party/ffmpeg/libavfilter/vf_vmafmotion.c third_party/ffmpeg/libavfilter/vf_xbr.c third_party/ffmpeg/libavfilter/vf_yadif.c +third_party/ffmpeg/libavfilter/vif.h third_party/ffmpeg/libavfilter/vmaf_motion.h third_party/ffmpeg/libavfilter/x86/avf_showcqt_init.c third_party/ffmpeg/libavfilter/x86/colorspacedsp_init.c @@ -8433,7 +8536,6 @@ third_party/ffmpeg/libavresample/x86/audio_convert_init.c third_party/ffmpeg/libavresample/x86/audio_mix_init.c third_party/ffmpeg/libavresample/x86/dither_init.c third_party/ffmpeg/libavutil/aarch64/neontest.h -third_party/ffmpeg/libavutil/aes_internal.h third_party/ffmpeg/libavutil/arm/neontest.h third_party/ffmpeg/libavutil/audio_fifo.c third_party/ffmpeg/libavutil/audio_fifo.h @@ -8844,6 +8946,7 @@ third_party/google_input_tools/third_party/closure_library/closure/goog/ui/separ third_party/google_input_tools/third_party/closure_library/closure/goog/uri/utils.js third_party/google_input_tools/third_party/closure_library/closure/goog/useragent/useragent.js third_party/google_input_tools/third_party/closure_library/third_party/closure/goog/mochikit/async/deferred.js +third_party/googletest/src/docs/_layouts/default.html third_party/googletest/src/googlemock/scripts/fuse_gmock_files.py third_party/googletest/src/googlemock/src/gmock_main.cc third_party/googletest/src/googletest/include/gtest/gtest_pred_impl.h @@ -8866,6 +8969,7 @@ third_party/grpc/src/include/grpcpp/impl/codegen/proto_buffer_writer.h third_party/grpc/src/package.xml third_party/grpc/src/setup.py third_party/grpc/src/src/boringssl/gen_build_yaml.py +third_party/grpc/src/src/core/ext/filters/client_channel/resolver/google_c2p/google_c2p_resolver.cc third_party/grpc/src/src/core/ext/filters/client_channel/service_config.h third_party/grpc/src/src/core/ext/xds/google_mesh_ca_certificate_provider_factory.cc third_party/grpc/src/src/core/ext/xds/xds_api.cc @@ -8911,11 +9015,13 @@ third_party/grpc/src/test/cpp/qps/report.cc third_party/grpc/src/test/cpp/util/channel_trace_proto_helper.cc third_party/grpc/src/test/cpp/util/create_test_channel.cc third_party/grpc/src/third_party/objective_c/google_toolbox_for_mac/UnitTesting/GTMGoogleTestRunner.mm -third_party/grpc/src/third_party/upb/generated_for_cmake/upb/json/parser.c -third_party/grpc/src/third_party/upb/upbc/generator.cc +third_party/grpc/src/third_party/upb/cmake/upb/json/parser.c +third_party/grpc/src/third_party/upb/upbc/protoc-gen-upbdefs.cc +third_party/grpc/src/third_party/xxhash/cli/xsum_arch.h +third_party/grpc/src/third_party/xxhash/cli/xsum_os_specific.c +third_party/grpc/src/third_party/xxhash/xxhash.h third_party/grpc/src/tools/distrib/python/grpc_prefixed/templates/setup.py.template third_party/grpc/src/tools/distrib/python/grpcio_tools/setup.py -third_party/grpc/src/tools/failures/detect_new_failures.py third_party/grpc/src/tools/interop_matrix/run_interop_matrix_tests.py third_party/grpc/src/tools/run_tests/performance/bq_upload_result.py third_party/grpc/src/tools/run_tests/python_utils/port_server.py @@ -8923,6 +9029,9 @@ third_party/grpc/src/tools/run_tests/python_utils/upload_rbe_results.py third_party/grpc/src/tools/run_tests/python_utils/upload_test_results.py third_party/grpc/src/tools/run_tests/run_interop_tests.py third_party/grpc/src/tools/run_tests/run_xds_tests.py +third_party/grpc/src/tools/run_tests/xds_k8s_test_driver/framework/infrastructure/gcp/api.py +third_party/grpc/src/tools/run_tests/xds_k8s_test_driver/framework/infrastructure/k8s.py +third_party/grpc/src/tools/run_tests/xds_k8s_test_driver/framework/test_app/server_app.py third_party/harfbuzz-ng/src/docs/usermanual-install-harfbuzz.xml third_party/harfbuzz-ng/src/docs/usermanual-integration.xml third_party/harfbuzz-ng/src/docs/usermanual-opentype-features.xml @@ -9100,6 +9209,7 @@ third_party/libaom/BUILD.gn third_party/libaom/source/libaom/aom_ports/msvc.h third_party/libaom/source/libaom/aom_util/aom_thread.c third_party/libaom/source/libaom/aom_util/aom_thread.h +third_party/libaom/source/libaom/av1/av1_cx_iface.c third_party/libaom/source/libaom/av1/common/av1_common_int.h third_party/libaom/source/libaom/av1/common/x86/av1_inv_txfm_ssse3.c third_party/libaom/source/libaom/av1/encoder/bitstream.c @@ -9115,7 +9225,6 @@ third_party/libaom/source/libaom/av1/encoder/palette.c third_party/libaom/source/libaom/av1/encoder/partition_model_weights.h third_party/libaom/source/libaom/av1/encoder/partition_strategy.c third_party/libaom/source/libaom/av1/encoder/partition_strategy.h -third_party/libaom/source/libaom/av1/encoder/rd.h third_party/libaom/source/libaom/av1/encoder/rdopt.c third_party/libaom/source/libaom/av1/encoder/rdopt_utils.h third_party/libaom/source/libaom/av1/encoder/speed_features.c @@ -9180,6 +9289,11 @@ third_party/libjingle_xmpp/xmpp/constants.cc third_party/libjingle_xmpp/xmpp/xmppclient.cc third_party/libjingle_xmpp/xmpp/xmppengine_unittest.cc third_party/libjingle_xmpp/xmpp/xmpplogintask_unittest.cc +third_party/libjxl/src/lib/jxl/base/descriptive_statistics.h +third_party/libjxl/src/lib/jxl/butteraugli/butteraugli.cc +third_party/libjxl/src/lib/jxl/butteraugli/butteraugli.h +third_party/libjxl/src/tools/cpu/os_specific.cc +third_party/libjxl/src/tools/ssimulacra.cpp third_party/liblouis/src/liblouis/metadata.c third_party/liblouis/src/python/louis/__init__.py.in third_party/liblouis/src/tests/check_metadata.c @@ -9208,6 +9322,7 @@ third_party/libpng/contrib/oss-fuzz/libpng_read_fuzzer.cc third_party/libprotobuf-mutator/src/examples/libfuzzer/libfuzzer_bin_example.cc third_party/libprotobuf-mutator/src/examples/libfuzzer/libfuzzer_example.cc third_party/libprotobuf-mutator/src/src/mutator_test.cc +third_party/liburlpattern/tokenize.cc third_party/libusb/src/libusb/os/threads_windows.c third_party/libusb/src/libusb/os/threads_windows.h third_party/libusb/src/libusb/os/wince_usb.c @@ -9374,9 +9489,6 @@ third_party/libyuv/include/libyuv/video_common.h third_party/libyuv/source/cpu_id.cc third_party/libyuv/tools_libyuv/autoroller/roll_deps.py third_party/libyuv/tools_libyuv/autoroller/unittests/roll_deps_test.py -third_party/libyuv/tools_libyuv/valgrind/memcheck/PRESUBMIT.py -third_party/libyuv/tools_libyuv/valgrind/memcheck_analyze.py -third_party/libyuv/tools_libyuv/valgrind/valgrind_test.py third_party/libzip/src/lib/zip_crypto_win.c third_party/libzip/src/lib/zip_extra_field.c third_party/llvm/clang-tools-extra/CODE_OWNERS.TXT @@ -9495,6 +9607,7 @@ third_party/llvm/lld/COFF/PDB.cpp third_party/llvm/lld/ELF/ICF.cpp third_party/llvm/lld/ELF/SyntheticSections.cpp third_party/llvm/lld/ELF/SyntheticSections.h +third_party/llvm/lld/MachO/SyntheticSections.cpp third_party/llvm/lldb/CODE_OWNERS.txt third_party/llvm/lldb/include/lldb/Utility/UUID.h third_party/llvm/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptExpressionOpts.cpp @@ -9656,6 +9769,10 @@ third_party/nearby/src/cpp/platform/api/wifi_lan.h third_party/nearby/src/cpp/platform/base/nsd_service_info.h third_party/nearby/src/cpp/platform/impl/g3/bluetooth_adapter.h third_party/nearby/src/cpp/platform/impl/g3/bluetooth_classic.h +third_party/nearby/src/cpp/platform/impl/windows/ble.h +third_party/nearby/src/cpp/platform/impl/windows/bluetooth_adapter.h +third_party/nearby/src/cpp/platform/impl/windows/bluetooth_classic.h +third_party/nearby/src/cpp/platform/impl/windows/wifi_lan.h third_party/nearby/src/cpp/platform/public/bluetooth_adapter.h third_party/nearby/src/cpp/platform/public/bluetooth_classic.h third_party/nearby/src/cpp/platform/public/thread_check_nocompile.cc @@ -9990,9 +10107,14 @@ third_party/openscreen/src/build/config/BUILD.gn third_party/openscreen/src/build/config/BUILDCONFIG.gn third_party/openscreen/src/build/scripts/install-sysroot.py third_party/openscreen/src/build/toolchain/linux/BUILD.gn +third_party/openscreen/src/cast/common/certificate/cast_cert_validator_internal.cc third_party/openscreen/src/cast/common/discovery/e2e_test/tests.cc third_party/openscreen/src/cast/standalone_sender/receiver_chooser.cc third_party/openscreen/src/cast/standalone_sender/streaming_vp8_encoder.h +third_party/openscreen/src/cast/streaming/remoting_capabilities.h +third_party/openscreen/src/cast/streaming/rtp_defines.h +third_party/openscreen/src/cast/streaming/sender_session.h +third_party/openscreen/src/cast/streaming/sender_session_unittest.cc third_party/openscreen/src/cast/test/cast_socket_e2e_test.cc third_party/openscreen/src/discovery/BUILD.gn third_party/openscreen/src/discovery/dnssd/impl/dns_data_graph.h @@ -10004,7 +10126,6 @@ third_party/openscreen/src/third_party/mozilla/LICENSE.txt third_party/openscreen/src/third_party/mozilla/url_parse.cc third_party/openscreen/src/third_party/mozilla/url_parse.h third_party/openscreen/src/tools/licenses.py -third_party/openscreen/src/util/BUILD.gn third_party/openscreen/src/util/crypto/rsa_private_key_unittest.cc third_party/openscreen/src/util/url_unittest.cc third_party/opus/src/doc/draft-ietf-codec-oggopus.xml @@ -10057,7 +10178,6 @@ third_party/pdfium/public/PRESUBMIT.py third_party/pdfium/skia/config/SkUserConfig.h third_party/pdfium/testing/gtest/BUILD.gn third_party/pdfium/testing/tools/PRESUBMIT.py -third_party/pdfium/testing/tools/gold.py third_party/pdfium/testing/tools/safetynet_compare.py third_party/pdfium/third_party/agg23/agg_math.h third_party/pdfium/third_party/base/allocator/partition_allocator/address_space_randomization.h @@ -10128,7 +10248,6 @@ third_party/polymer/v1_0/PRESUBMIT.py third_party/polymer/v1_0/components-chromium/iron-a11y-keys-behavior/iron-a11y-keys-behavior-extracted.js third_party/polymer/v1_0/components-chromium/iron-flex-layout/iron-flex-layout.html third_party/polymer/v1_0/components-chromium/iron-icon/iron-icon.html -third_party/polymer/v1_0/components-chromium/iron-location/iron-location-extracted.js third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-focusables-helper-extracted.js third_party/polymer/v1_0/components-chromium/iron-overlay-behavior/iron-overlay-manager-extracted.js third_party/polymer/v1_0/components-chromium/iron-test-helpers/mock-interactions.js @@ -10145,7 +10264,6 @@ third_party/polymer/v3_0/components-chromium/iron-test-helpers/mock-interactions third_party/polymer/v3_0/components-chromium/neon-animation/neon-animated-pages.js third_party/polymer/v3_0/components-chromium/paper-progress/paper-progress.js third_party/polymer/v3_0/components-chromium/paper-spinner/paper-spinner-lite.js -third_party/polymer/v3_0/components-chromium/paper-styles/typography.js third_party/polymer/v3_0/components-chromium/paper-tooltip/paper-tooltip.js third_party/polymer/v3_0/components-chromium/polymer/polymer_bundled.js third_party/polymer/v3_0/package.json @@ -10938,7 +11056,7 @@ third_party/skia/gm/stringart.cpp third_party/skia/gm/strokerect.cpp third_party/skia/gm/strokes.cpp third_party/skia/gm/stroketext.cpp -third_party/skia/gn/BUILD.gn +third_party/skia/gn/skia/BUILD.gn third_party/skia/include/ports/SkImageGeneratorWIC.h third_party/skia/include/ports/SkTypeface_mac.h third_party/skia/infra/bots/assets/android_ndk_darwin/create.py @@ -10969,6 +11087,7 @@ third_party/skia/infra/bots/recipe_modules/checkout/examples/full.py third_party/skia/infra/bots/recipe_modules/doxygen/examples/full.py third_party/skia/infra/bots/recipe_modules/flavor/default.py third_party/skia/infra/bots/recipe_modules/flavor/examples/full.py +third_party/skia/infra/bots/recipe_modules/gold_upload/examples/full.py third_party/skia/infra/bots/recipe_modules/gsutil/examples/full.py third_party/skia/infra/bots/recipe_modules/infra/examples/full.py third_party/skia/infra/bots/recipe_modules/run/examples/full.py @@ -10984,7 +11103,6 @@ third_party/skia/infra/bots/recipes/housekeeper.expected/Housekeeper-PerCommit-T third_party/skia/infra/bots/recipes/housekeeper.expected/Housekeeper-PerCommit.json third_party/skia/infra/bots/recipes/housekeeper.py third_party/skia/infra/bots/recipes/infra.py -third_party/skia/infra/bots/recipes/perf_canvaskit.py third_party/skia/infra/bots/recipes/perf_pathkit.py third_party/skia/infra/bots/recipes/perf_skottietrace.py third_party/skia/infra/bots/recipes/perf_skottiewasm_lottieweb.py @@ -10997,6 +11115,7 @@ third_party/skia/infra/bots/recipes/sync_and_compile.expected/Build-Debian10-Cla third_party/skia/infra/bots/recipes/sync_and_compile.expected/Build-Mac-Clang-x86_64-Debug-CommandBuffer.json third_party/skia/infra/bots/recipes/sync_and_compile.expected/Build-Win10-Clang-x86_64-Release-NoDEPS.json third_party/skia/infra/bots/recipes/sync_and_compile.py +third_party/skia/infra/bots/recipes/test.py third_party/skia/infra/bots/recipes/test_canvaskit.py third_party/skia/infra/bots/recipes/test_lottie_web.py third_party/skia/infra/bots/recipes/test_pathkit.py @@ -11016,7 +11135,6 @@ third_party/skia/modules/canvaskit/npm_build/example.html third_party/skia/modules/canvaskit/npm_build/extra.html third_party/skia/modules/canvaskit/npm_build/package.json third_party/skia/modules/canvaskit/npm_build/shaping.html -third_party/skia/modules/canvaskit/perf/canvas.bench.js third_party/skia/modules/canvaskit/tests/canvas.spec.js third_party/skia/modules/canvaskit/tests/core.spec.js third_party/skia/modules/canvaskit/tests/font.spec.js @@ -11039,7 +11157,7 @@ third_party/skia/resources/skottie/skottie_sample_webfont.json third_party/skia/samplecode/SampleClock.cpp third_party/skia/samplecode/SamplePath.cpp third_party/skia/samplecode/SampleStringArt.cpp -third_party/skia/site/user/api/catalog.htm +third_party/skia/site/about/_index.html third_party/skia/specs/web-img-decode/proposed/impl/impl.js third_party/skia/src/codec/SkWebpCodec.cpp third_party/skia/src/core/SkGeometry.cpp @@ -11053,11 +11171,6 @@ third_party/skia/src/effects/imagefilters/SkDisplacementMapImageFilter.cpp third_party/skia/src/gpu/GrDistanceFieldGenFromVector.cpp third_party/skia/src/gpu/GrRenderTask.h third_party/skia/src/gpu/GrShaderCaps.h -third_party/skia/src/gpu/GrSurfaceDrawContext.cpp -third_party/skia/src/gpu/ccpr/GrCCConicShader.h -third_party/skia/src/gpu/ccpr/GrCCCubicShader.h -third_party/skia/src/gpu/ccpr/GrCCFillGeometry.cpp -third_party/skia/src/gpu/ccpr/GrCCQuadraticShader.h third_party/skia/src/gpu/d3d/GrD3DCaps.cpp third_party/skia/src/gpu/effects/GrDisableColorXP.cpp third_party/skia/src/gpu/geometry/GrPathUtils.cpp @@ -11127,7 +11240,10 @@ third_party/skia/tools/skp/page_sets/skia_googlenews_mobile.py third_party/skia/tools/skp/page_sets/skia_googlesearch_desktop.py third_party/skia/tools/skp/page_sets/skia_googlespreadsheet_desktop.py third_party/skia/tools/skp/page_sets/skia_micrographygirlsvg_desktop.py +third_party/skia/tools/skp/page_sets/skia_motionmarkarcs_desktop.py third_party/skia/tools/skp/page_sets/skia_motionmarkpaths_desktop.py +third_party/skia/tools/skp/page_sets/skia_motionmarksuitsclip_desktop.py +third_party/skia/tools/skp/page_sets/skia_motionmarksuitsclipshaperot_desktop.py third_party/skia/tools/skp/page_sets/skia_mozilla_tablet.py third_party/skia/tools/skp/page_sets/skia_tiger8svg_desktop.py third_party/skia/tools/skp/page_sets/skia_ynevsvg_desktop.py @@ -11430,6 +11546,7 @@ third_party/tflite/src/third_party/eigen3/unsupported/Eigen/CXX11/src/FixedPoint third_party/tflite/src/third_party/eigen3/unsupported/Eigen/CXX11/src/FixedPoint/MatMatProductAVX2.h third_party/tflite/src/third_party/eigen3/unsupported/Eigen/CXX11/src/FixedPoint/MatMatProductNEON.h third_party/tflite/src/third_party/eigen3/unsupported/Eigen/CXX11/src/FixedPoint/MatVecProduct.h +third_party/tint/src/.vscode/tasks.json third_party/tint/src/PRESUBMIT.py third_party/tint/src/src/reader/spirv/function.cc third_party/tint/src/src/reader/spirv/function_cfg_test.cc @@ -11869,6 +11986,7 @@ third_party/webrtc/modules/desktop_capture/win/screen_capturer_win_directx.h third_party/webrtc/modules/desktop_capture/win/window_capture_utils.cc third_party/webrtc/modules/desktop_capture/win/window_capturer_win_gdi.cc third_party/webrtc/modules/desktop_capture/window_finder_win.cc +third_party/webrtc/modules/rtp_rtcp/include/receive_statistics.h third_party/webrtc/modules/rtp_rtcp/source/rtcp_sender_unittest.cc third_party/webrtc/modules/utility/source/jvm_android.cc third_party/webrtc/modules/video_capture/test/video_capture_unittest.cc @@ -11877,6 +11995,8 @@ third_party/webrtc/modules/video_coding/codecs/vp9/vp9.cc third_party/webrtc/modules/video_coding/codecs/vp9/vp9_frame_buffer_pool.cc third_party/webrtc/modules/video_coding/packet_buffer.cc third_party/webrtc/modules/video_coding/utility/quality_scaler.cc +third_party/webrtc/net/dcsctp/public/strong_alias.h +third_party/webrtc/net/dcsctp/public/strong_alias_test.cc third_party/webrtc/p2p/base/port_unittest.cc third_party/webrtc/p2p/base/stun_server_unittest.cc third_party/webrtc/p2p/base/turn_port.cc @@ -11938,6 +12058,8 @@ third_party/webrtc/sdk/android/src/jni/audio_device/audio_device_module.cc third_party/webrtc/sdk/android/src/jni/audio_device/opensles_recorder.h third_party/webrtc/sdk/android/src/jni/jvm.cc third_party/webrtc/sdk/media_constraints.h +third_party/webrtc/sdk/objc/api/peerconnection/RTCConfiguration.h +third_party/webrtc/test/fuzzers/BUILD.gn third_party/webrtc/test/test_main_lib.cc third_party/webrtc/test/testsupport/perf_test.h third_party/webrtc/tools_webrtc/autoroller/roll_deps.py @@ -12081,6 +12203,7 @@ tools/clang/rewrite_raw_ptr_fields/RewriteRawPtrFields.cpp tools/clang/rewrite_raw_ptr_fields/tests/gen-deleted-operator-new-test.cc tools/clang/rewrite_raw_ptr_fields/tests/gen-in-out-arg-test.cc tools/clang/scripts/build.py +tools/clang/scripts/include-analysis.html tools/clang/scripts/package.py tools/clang/scripts/update.py tools/clang/translation_unit/test_translation_unit.py @@ -12165,6 +12288,7 @@ tools/json_schema_compiler/test/windows.json tools/json_to_struct/PRESUBMIT.py tools/licenses.py tools/linux/PRESUBMIT.py +tools/mac/download_symbols.py tools/mb/mb.py tools/mb/mb_config.pyl tools/md_browser/base.css @@ -12268,6 +12392,7 @@ tools/metrics/histograms/histograms_xml/others/histograms.xml tools/metrics/histograms/histograms_xml/page/histograms.xml tools/metrics/histograms/histograms_xml/password/histograms.xml tools/metrics/histograms/histograms_xml/payment/histograms.xml +tools/metrics/histograms/histograms_xml/pcscan/histograms.xml tools/metrics/histograms/histograms_xml/permissions/histograms.xml tools/metrics/histograms/histograms_xml/phonehub/histograms.xml tools/metrics/histograms/histograms_xml/platform/histograms.xml @@ -12359,6 +12484,8 @@ tools/perf/benchmarks/tab_switching.py tools/perf/benchmarks/tracing.py tools/perf/benchmarks/v8.py tools/perf/benchmarks/v8_browsing.py +tools/perf/benchmarks/v8_loading.py +tools/perf/benchmarks/wasmpspdfkit.py tools/perf/benchmarks/webrtc.py tools/perf/cli_tools/flakiness_cli/api.py tools/perf/cli_tools/pinboard/job_configs.json @@ -12409,7 +12536,6 @@ tools/perf/core/shard_maps/timing_data/android_nexus5x_webview_perf_timing.json tools/perf/core/shard_maps/timing_data/linux-perf_timing.json tools/perf/core/shard_maps/timing_data/mac-10_12_laptop_low_end-perf_timing.json tools/perf/core/shard_maps/timing_data/mac-10_13_laptop_high_end-perf_timing.json -tools/perf/core/shard_maps/timing_data/mac-arm_dtk_arm-perf_timing.json tools/perf/core/shard_maps/timing_data/win-10-perf_timing.json tools/perf/core/shard_maps/timing_data/win-10_laptop_low_end-perf_timing.json tools/perf/core/test_data/benchmarks_to_shard.json @@ -12430,6 +12556,7 @@ tools/perf/page_sets/data/top_10.json tools/perf/page_sets/data/top_25.json tools/perf/page_sets/data/v8_top_25.json tools/perf/page_sets/desktop_power.py +tools/perf/page_sets/desktop_ui/download_shelf_story.py tools/perf/page_sets/desktop_ui/url_list.py tools/perf/page_sets/google_pages.py tools/perf/page_sets/intl_ar_fa_he.py @@ -12762,6 +12889,7 @@ tools/traffic_annotation/scripts/annotation_tools.py tools/traffic_annotation/scripts/update_annotations_doc.py tools/traffic_annotation/scripts/update_annotations_sheet.py tools/translation/upload_screenshots.py +tools/typescript/PRESUBMIT.py tools/usb_gadget/gadget.py tools/usb_gadget/msos20_descriptors.py tools/variations/bisect_variations.py @@ -12840,7 +12968,6 @@ ui/base/test/skia_gold_matching_algorithm.h ui/base/ui_base_features.h ui/base/win/event_creation_utils.cc ui/base/win/lock_state.cc -ui/base/x/x11_window.cc ui/display/display_transform.cc ui/events/android/motion_event_android_unittest.cc ui/events/blink/blink_event_util.cc @@ -12859,23 +12986,21 @@ ui/events/win/events_win.cc ui/events/win/events_win_utils.cc ui/events/win/modifier_keyboard_hook_win.cc ui/file_manager/audio_player/manifest.json -ui/file_manager/base/js/mock_chrome.js ui/file_manager/base/tools/PRESUBMIT.py -ui/file_manager/externs/chrome_cast.js -ui/file_manager/externs/chrome_file_browser_handler.js -ui/file_manager/externs/volume_info.js ui/file_manager/file_manager/background/js/background.js ui/file_manager/file_manager/background/js/volume_manager_unittest.m.js ui/file_manager/file_manager/common/js/files_app_entry_types.js +ui/file_manager/file_manager/common/js/mock_chrome.js ui/file_manager/file_manager/common/js/util.js ui/file_manager/file_manager/cws_widget/cws_widget_container.js +ui/file_manager/file_manager/externs/chrome_cast.js +ui/file_manager/file_manager/externs/chrome_file_browser_handler.js +ui/file_manager/file_manager/externs/volume_info.js ui/file_manager/file_manager/foreground/elements/icons.html ui/file_manager/file_manager/foreground/js/file_manager_commands.js ui/file_manager/file_manager/foreground/js/ui/file_tap_handler.js ui/file_manager/file_manager/foreground/js/web_store_utils.js ui/file_manager/file_manager/manifest.json -ui/file_manager/file_manager/test/js/chrome_api_test_impl.js -ui/file_manager/file_manager/test/js/strings.js ui/file_manager/gallery/manifest.json ui/file_manager/image_loader/piex/Makefile ui/file_manager/image_loader/piex/package.json @@ -12900,12 +13025,12 @@ ui/gl/gl_surface_presentation_helper.cc ui/gl/hdr_metadata_helper_win.cc ui/gl/vsync_thread_win.cc ui/gtk/gtk_util.cc -ui/gtk/native_theme_gtk.cc ui/gtk/printing/print_dialog_gtk.cc ui/latency/latency_info.h ui/native_theme/native_theme_win.h ui/ozone/ozone.gni ui/ozone/platform/wayland/host/shell_popup_wrapper.cc +ui/platform_window/x11/x11_window.cc ui/resources/PRESUBMIT.py ui/resources/resource_check/ico_files.py ui/resources/resource_check/resource_scale_factors.py @@ -12974,7 +13099,7 @@ v8/src/codegen/reloc-info.h v8/src/codegen/x64/macro-assembler-x64.cc v8/src/compiler/backend/instruction.cc v8/src/compiler/c-linkage.cc -v8/src/compiler/js-call-reducer.cc +v8/src/compiler/loop-unrolling.h v8/src/compiler/machine-operator.cc v8/src/d8/d8-posix.cc v8/src/debug/interface-types.h @@ -12986,6 +13111,7 @@ v8/src/handles/handles.h v8/src/heap/base/asm/x64/push_registers_asm.cc v8/src/heap/factory.cc v8/src/heap/memory-allocator.cc +v8/src/init/v8.cc v8/src/inspector/v8-console.h v8/src/inspector/v8-regex.cc v8/src/libplatform/tracing/recorder-win.cc @@ -13066,6 +13192,7 @@ v8/tools/v8windbg/test/v8windbg-test.cc v8/tools/visual_studio/README.txt v8/tools/zone-stats/index.html weblayer/browser/android/javatests/skew/build_weblayer_instrumentation_test_cipd_pkg.py +weblayer/browser/background_fetch/background_fetch_delegate_impl.cc weblayer/browser/default_search_engine.cc weblayer/browser/favicon/favicon_backend_wrapper_unittest.cc weblayer/browser/navigation_browsertest.cc diff --git a/patches/core/chromium-upstream/fix-crash-in-ThemeService.patch b/patches/core/chromium-upstream/fix-crash-in-ThemeService.patch new file mode 100644 index 00000000..ea990738 --- /dev/null +++ b/patches/core/chromium-upstream/fix-crash-in-ThemeService.patch @@ -0,0 +1,43 @@ +From c2d0133f47afb59b4ce64e42215d1d053f15250a Mon Sep 17 00:00:00 2001 +From: Stephan Hartmann +Date: Tue, 13 Apr 2021 23:21:42 +0000 +Subject: [PATCH] fix crash in ThemeService + +ThemeSyncableService and ThemeService are owned by each other. On +destruction of ThemeService, ThemeSyncableService gets destructed as +well, but calls RemoveObserver of partly destructed ThemeService object. +To avoid already destructed |observers_| list, move it before +|theme_syncable_service_| definition. + +Bug: 1190561 +Change-Id: I4dc2c990d589071d97b7fa737afef54463c84751 +Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2821311 +Commit-Queue: Peter Kasting +Reviewed-by: Peter Kasting +Cr-Commit-Position: refs/heads/master@{#872164} +--- + +diff --git a/chrome/browser/themes/theme_service.h b/chrome/browser/themes/theme_service.h +index 592d40a..337dfac9 100644 +--- a/chrome/browser/themes/theme_service.h ++++ b/chrome/browser/themes/theme_service.h +@@ -299,6 +299,10 @@ + // The number of infobars currently displayed. + int number_of_reinstallers_ = 0; + ++ // Declared before |theme_syncable_service_|, because ThemeSyncableService ++ // removes itself from the |observers_| list on destruction. ++ base::ObserverList observers_; ++ + std::unique_ptr theme_syncable_service_; + + #if BUILDFLAG(ENABLE_EXTENSIONS) +@@ -320,8 +324,6 @@ + ScopedObserver + native_theme_observer_{this}; + +- base::ObserverList observers_; +- + base::WeakPtrFactory weak_ptr_factory_{this}; + + DISALLOW_COPY_AND_ASSIGN(ThemeService); diff --git a/patches/core/inox-patchset/0001-fix-building-without-safebrowsing.patch b/patches/core/inox-patchset/0001-fix-building-without-safebrowsing.patch index a20f877d..184516e1 100644 --- a/patches/core/inox-patchset/0001-fix-building-without-safebrowsing.patch +++ b/patches/core/inox-patchset/0001-fix-building-without-safebrowsing.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/BUILD.gn +++ b/chrome/browser/BUILD.gn -@@ -3540,8 +3540,6 @@ static_library("browser") { +@@ -3511,8 +3511,6 @@ static_library("browser") { "download/download_commands.h", "download/download_crx_util.cc", "download/download_crx_util.h", @@ -51,7 +51,7 @@ network_time_tracker_.reset(); #if BUILDFLAG(ENABLE_PLUGINS) plugins_resource_service_.reset(); -@@ -968,14 +965,6 @@ StatusTray* BrowserProcessImpl::status_t +@@ -972,14 +969,6 @@ StatusTray* BrowserProcessImpl::status_t return status_tray_.get(); } @@ -66,7 +66,7 @@ subresource_filter::RulesetService* BrowserProcessImpl::subresource_filter_ruleset_service() { DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); -@@ -1225,26 +1214,6 @@ void BrowserProcessImpl::CreateBackgroun +@@ -1229,26 +1218,6 @@ void BrowserProcessImpl::CreateBackgroun #endif } @@ -115,15 +115,15 @@ subresource_filter_ruleset_service_; --- a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc +++ b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc -@@ -72,7 +72,6 @@ - #include "chrome/browser/privacy_sandbox/privacy_sandbox_settings.h" - #include "chrome/browser/privacy_sandbox/privacy_sandbox_settings_factory.h" +@@ -70,7 +70,6 @@ #include "chrome/browser/profiles/profile.h" + #include "chrome/browser/profiles/profile_keep_alive_types.h" + #include "chrome/browser/profiles/scoped_profile_keep_alive.h" -#include "chrome/browser/safe_browsing/safe_browsing_service.h" #include "chrome/browser/search_engines/template_url_service_factory.h" #include "chrome/browser/spellchecker/spellcheck_factory.h" #include "chrome/browser/spellchecker/spellcheck_service.h" -@@ -668,10 +667,6 @@ void ChromeBrowsingDataRemoverDelegate:: +@@ -663,10 +662,6 @@ void ChromeBrowsingDataRemoverDelegate:: base::RecordAction(UserMetricsAction("ClearBrowsingData_Cookies")); network::mojom::NetworkContext* safe_browsing_context = nullptr; @@ -136,7 +136,7 @@ delete_begin, delete_end, filter_builder, host_content_settings_map_, --- a/chrome/browser/chrome_content_browser_client.cc +++ b/chrome/browser/chrome_content_browser_client.cc -@@ -958,30 +958,6 @@ void SetApplicationLocaleOnIOThread(cons +@@ -1011,30 +1011,6 @@ void SetApplicationLocaleOnIOThread(cons GetIOThreadApplicationLocale() = locale; } @@ -167,7 +167,7 @@ #if BUILDFLAG(ENABLE_EXTENSIONS) AppLoadedInTabSource ClassifyAppLoadedInTabSource( -@@ -1403,7 +1379,6 @@ void ChromeContentBrowserClient::PostAft +@@ -1462,7 +1438,6 @@ void ChromeContentBrowserClient::PostAft InitNetworkContextsParentDirectory(); DCHECK_CURRENTLY_ON(BrowserThread::UI); @@ -175,7 +175,7 @@ } bool ChromeContentBrowserClient::IsBrowserStartupComplete() { -@@ -4110,7 +4085,7 @@ ChromeContentBrowserClient::CreateThrott +@@ -4196,7 +4171,7 @@ ChromeContentBrowserClient::CreateThrott base::BindRepeating(&MaybeTriggerSecurityInterstitialShownEvent)); throttles.push_back(std::make_unique( handle, @@ -184,7 +184,7 @@ base::BindOnce(&HandleSSLErrorWrapper), base::BindOnce(&IsInHostedApp), base::BindOnce( &TypedNavigationUpgradeThrottle:: -@@ -4132,9 +4107,6 @@ ChromeContentBrowserClient::CreateThrott +@@ -4224,9 +4199,6 @@ ChromeContentBrowserClient::CreateThrott &throttles); #endif @@ -219,7 +219,7 @@ } // namespace --- a/chrome/browser/download/chrome_download_manager_delegate.cc +++ b/chrome/browser/download/chrome_download_manager_delegate.cc -@@ -394,13 +394,6 @@ ChromeDownloadManagerDelegate::~ChromeDo +@@ -392,13 +392,6 @@ ChromeDownloadManagerDelegate::~ChromeDo void ChromeDownloadManagerDelegate::SetDownloadManager(DownloadManager* dm) { download_manager_ = dm; @@ -233,7 +233,7 @@ } #if defined(OS_ANDROID) -@@ -741,16 +734,6 @@ void ChromeDownloadManagerDelegate::Choo +@@ -746,16 +739,6 @@ void ChromeDownloadManagerDelegate::Choo void ChromeDownloadManagerDelegate::SanitizeSavePackageResourceName( base::FilePath* filename) { @@ -252,7 +252,7 @@ void ChromeDownloadManagerDelegate::SanitizeDownloadParameters( --- a/chrome/browser/download/download_item_model.cc +++ b/chrome/browser/download/download_item_model.cc -@@ -81,7 +81,7 @@ class DownloadItemModelData : public bas +@@ -82,7 +82,7 @@ class DownloadItemModelData : public bas // Danger level of the file determined based on the file type and whether // there was a user action associated with the download. @@ -261,7 +261,7 @@ // Whether the download is currently being revived. bool is_being_revived_; -@@ -118,7 +118,7 @@ DownloadItemModelData::DownloadItemModel +@@ -119,7 +119,7 @@ DownloadItemModelData::DownloadItemModel : should_show_in_shelf_(true), was_ui_notified_(false), should_prefer_opening_in_browser_(false), @@ -375,7 +375,7 @@ void DownloadTargetDeterminer::OnDownloadDestroyed( --- a/chrome/browser/extensions/api/downloads/downloads_api.cc +++ b/chrome/browser/extensions/api/downloads/downloads_api.cc -@@ -38,7 +38,6 @@ +@@ -36,7 +36,6 @@ #include "chrome/browser/browser_process.h" #include "chrome/browser/download/download_core_service.h" #include "chrome/browser/download/download_core_service_factory.h" @@ -383,7 +383,7 @@ #include "chrome/browser/download/download_file_icon_extractor.h" #include "chrome/browser/download/download_open_prompt.h" #include "chrome/browser/download/download_prefs.h" -@@ -1307,9 +1306,6 @@ DownloadsAcceptDangerFunction::Downloads +@@ -1301,9 +1300,6 @@ DownloadsAcceptDangerFunction::Downloads DownloadsAcceptDangerFunction::~DownloadsAcceptDangerFunction() {} @@ -393,7 +393,7 @@ ExtensionFunction::ResponseAction DownloadsAcceptDangerFunction::Run() { std::unique_ptr params( downloads::AcceptDanger::Params::Create(*args_)); -@@ -1347,41 +1343,7 @@ void DownloadsAcceptDangerFunction::Prom +@@ -1341,41 +1337,7 @@ void DownloadsAcceptDangerFunction::Prom return; } RecordApiFunctions(DOWNLOADS_FUNCTION_ACCEPT_DANGER); @@ -440,7 +440,7 @@ +++ b/chrome/browser/extensions/api/downloads/downloads_api.h @@ -13,7 +13,6 @@ #include "base/macros.h" - #include "base/scoped_observer.h" + #include "base/scoped_observation.h" #include "base/time/time.h" -#include "chrome/browser/download/download_danger_prompt.h" #include "chrome/common/extensions/api/downloads.h" @@ -515,11 +515,30 @@ referrer_entries))); --- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc +++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc -@@ -1041,51 +1041,9 @@ WebstorePrivateGetReferrerChainFunction: +@@ -675,18 +675,6 @@ void WebstorePrivateBeginInstallWithMani + + void WebstorePrivateBeginInstallWithManifest3Function:: + ReportFrictionAcceptedEvent() { +- if (!profile_) { +- return; +- } +- auto* metrics_collector = +- safe_browsing::SafeBrowsingMetricsCollectorFactory::GetForProfile( +- profile_); +- // `metrics_collector` can be null in incognito. +- if (metrics_collector) { +- metrics_collector->AddSafeBrowsingEventToPref( +- safe_browsing::SafeBrowsingMetricsCollector::EventType:: +- EXTENSION_ALLOWLIST_INSTALL_BYPASS); +- } + } + + void WebstorePrivateBeginInstallWithManifest3Function::OnInstallPromptDone( +@@ -1180,51 +1168,9 @@ WebstorePrivateGetReferrerChainFunction: ExtensionFunction::ResponseAction WebstorePrivateGetReferrerChainFunction::Run() { -- Profile* profile = chrome_details_.GetProfile(); +- Profile* profile = Profile::FromBrowserContext(browser_context()); - if (!SafeBrowsingNavigationObserverManager::IsEnabledAndReady(profile)) - return RespondNow(ArgumentList( - api::webstore_private::GetReferrerChain::Results::Create(""))); @@ -650,7 +669,7 @@ // SimpleURLLoader -> (owned loader, extension id). --- a/chrome/browser/metrics/chrome_metrics_service_client.cc +++ b/chrome/browser/metrics/chrome_metrics_service_client.cc -@@ -796,9 +796,6 @@ void ChromeMetricsServiceClient::Registe +@@ -800,9 +800,6 @@ void ChromeMetricsServiceClient::Registe metrics_service_->RegisterMetricsProvider( std::make_unique()); @@ -674,7 +693,7 @@ // static --- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc +++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc -@@ -272,7 +272,6 @@ void ChromeBrowserMainExtraPartsProfiles +@@ -277,7 +277,6 @@ void ChromeBrowserMainExtraPartsProfiles #if BUILDFLAG(IS_CHROMEOS_LACROS) CertDbInitializerFactory::GetInstance(); #endif @@ -684,7 +703,7 @@ #endif --- a/chrome/browser/profiles/profile_impl.cc +++ b/chrome/browser/profiles/profile_impl.cc -@@ -93,7 +93,6 @@ +@@ -91,7 +91,6 @@ #include "chrome/browser/profiles/profile_metrics.h" #include "chrome/browser/push_messaging/push_messaging_service_factory.h" #include "chrome/browser/push_messaging/push_messaging_service_impl.h" @@ -692,7 +711,7 @@ #include "chrome/browser/sharing/sharing_service_factory.h" #include "chrome/browser/signin/identity_manager_factory.h" #include "chrome/browser/signin/signin_ui_util.h" -@@ -629,17 +628,6 @@ void ProfileImpl::LoadPrefsForNormalStar +@@ -650,17 +649,6 @@ void ProfileImpl::LoadPrefsForNormalStar mojo::PendingRemote pref_validation_delegate; @@ -712,15 +731,15 @@ CreatePrefService(pref_registry_, CreateExtensionPrefStore(this, false), --- a/chrome/browser/profiles/profiles_state.cc +++ b/chrome/browser/profiles/profiles_state.cc -@@ -249,9 +249,6 @@ void RemoveBrowsingDataForProfile(const +@@ -319,9 +319,6 @@ void RemoveBrowsingDataForProfile(const // The BrowsingDataRemover relies on many objects that aren't created in unit // tests. Previously this code would depend on content::ResourceDispatcherHost // but that's gone, so do a similar hack for now. - if (!g_browser_process->safe_browsing_service()) - return; - - Profile* profile = g_browser_process->profile_manager()->GetProfileByPath( - profile_path); + Profile* profile = + g_browser_process->profile_manager()->GetProfileByPath(profile_path); if (!profile) --- a/chrome/browser/safe_browsing/BUILD.gn +++ b/chrome/browser/safe_browsing/BUILD.gn @@ -732,7 +751,7 @@ sources = [ "chrome_controller_client.cc", "chrome_controller_client.h", -@@ -82,6 +83,7 @@ static_library("safe_browsing") { +@@ -84,6 +85,7 @@ static_library("safe_browsing") { "//extensions/browser", ] } @@ -740,7 +759,7 @@ if (safe_browsing_mode != 0) { # "Safe Browsing Basic" files used for safe browsing in full mode -@@ -388,6 +390,7 @@ static_library("advanced_protection") { +@@ -392,6 +394,7 @@ static_library("advanced_protection") { } source_set("metrics_collector") { @@ -748,7 +767,7 @@ sources = [ "safe_browsing_metrics_collector.cc", "safe_browsing_metrics_collector.h", -@@ -405,6 +408,7 @@ source_set("metrics_collector") { +@@ -409,6 +412,7 @@ source_set("metrics_collector") { "//components/safe_browsing/core/common:safe_browsing_prefs", "//content/public/browser", ] @@ -758,7 +777,7 @@ source_set("test_support") { --- a/chrome/browser/ssl/security_state_tab_helper.cc +++ b/chrome/browser/ssl/security_state_tab_helper.cc -@@ -257,92 +257,6 @@ bool SecurityStateTabHelper::UsedPolicyI +@@ -205,88 +205,6 @@ bool SecurityStateTabHelper::UsedPolicyI security_state::MaliciousContentStatus SecurityStateTabHelper::GetMaliciousContentStatus() const { @@ -797,10 +816,8 @@ - return security_state:: - MALICIOUS_CONTENT_STATUS_SIGNED_IN_SYNC_PASSWORD_REUSE; - } -- // If user has already changed Gaia password, returns the regular -- // social engineering content status. -- return security_state::MALICIOUS_CONTENT_STATUS_SOCIAL_ENGINEERING; -#endif +- FALLTHROUGH; - case safe_browsing::SB_THREAT_TYPE_SIGNED_IN_NON_SYNC_PASSWORD_REUSE: -#if BUILDFLAG(FULL_SAFE_BROWSING) - if (safe_browsing::ChromePasswordProtectionService:: @@ -809,10 +826,8 @@ - return security_state:: - MALICIOUS_CONTENT_STATUS_SIGNED_IN_NON_SYNC_PASSWORD_REUSE; - } -- // If user has already changed Gaia password, returns the regular -- // social engineering content status. -- return security_state::MALICIOUS_CONTENT_STATUS_SOCIAL_ENGINEERING; -#endif +- FALLTHROUGH; - case safe_browsing::SB_THREAT_TYPE_ENTERPRISE_PASSWORD_REUSE: -#if BUILDFLAG(FULL_SAFE_BROWSING) - if (safe_browsing::ChromePasswordProtectionService:: @@ -821,10 +836,10 @@ - return security_state:: - MALICIOUS_CONTENT_STATUS_ENTERPRISE_PASSWORD_REUSE; - } -- // If user has already changed Gaia password, returns the regular -- // social engineering content status. -- return security_state::MALICIOUS_CONTENT_STATUS_SOCIAL_ENGINEERING; -#endif +- // If user has already changed password or FULL_SAFE_BROWSING isn't +- // enabled, returns the regular social engineering content status. +- return security_state::MALICIOUS_CONTENT_STATUS_SOCIAL_ENGINEERING; - case safe_browsing::SB_THREAT_TYPE_BILLING: - return security_state::MALICIOUS_CONTENT_STATUS_BILLING; - case safe_browsing:: @@ -853,7 +868,7 @@ --- a/chrome/browser/subresource_filter/chrome_subresource_filter_client.cc +++ b/chrome/browser/subresource_filter/chrome_subresource_filter_client.cc -@@ -57,10 +57,7 @@ void ChromeSubresourceFilterClient::Show +@@ -53,8 +53,5 @@ void ChromeSubresourceFilterClient::Show const scoped_refptr ChromeSubresourceFilterClient::GetSafeBrowsingDatabaseManager() { @@ -863,11 +878,9 @@ - : nullptr; + return nullptr; } - - subresource_filter::ProfileInteractionManager* --- a/chrome/browser/ui/BUILD.gn +++ b/chrome/browser/ui/BUILD.gn -@@ -3640,7 +3640,6 @@ static_library("ui") { +@@ -3691,7 +3691,6 @@ static_library("ui") { "views/device_chooser_content_view.h", "views/devtools_process_observer.cc", "views/devtools_process_observer.h", @@ -877,10 +890,10 @@ "views/download/download_item_view.cc", --- a/chrome/browser/ui/tab_helpers.cc +++ b/chrome/browser/ui/tab_helpers.cc -@@ -317,11 +317,6 @@ void TabHelpers::AttachTabHelpers(WebCon +@@ -308,11 +308,6 @@ void TabHelpers::AttachTabHelpers(WebCon + // See https://crbug.com/910288. resource_coordinator::ResourceCoordinatorTabHelper::CreateForWebContents( web_contents); - ResourceLoadingHintsWebContentsObserver::CreateForWebContents(web_contents); - safe_browsing::SafeBrowsingNavigationObserver::MaybeCreateForWebContents( - web_contents); - safe_browsing::SafeBrowsingTabObserver::CreateForWebContents(web_contents); @@ -1153,7 +1166,7 @@ #include "components/subresource_filter/content/renderer/unverified_ruleset_dealer.h" --- a/components/security_interstitials/content/cert_report_helper.cc +++ b/components/security_interstitials/content/cert_report_helper.cc -@@ -175,7 +175,6 @@ void CertReportHelper::FinishCertCollect +@@ -178,7 +178,6 @@ void CertReportHelper::FinishCertCollect return; } diff --git a/patches/core/inox-patchset/0003-disable-autofill-download-manager.patch b/patches/core/inox-patchset/0003-disable-autofill-download-manager.patch index 5f39fac9..de0ff705 100644 --- a/patches/core/inox-patchset/0003-disable-autofill-download-manager.patch +++ b/patches/core/inox-patchset/0003-disable-autofill-download-manager.patch @@ -1,6 +1,6 @@ --- a/components/autofill/core/browser/autofill_download_manager.cc +++ b/components/autofill/core/browser/autofill_download_manager.cc -@@ -831,87 +831,6 @@ AutofillDownloadManager::GetRequestURLAn +@@ -831,96 +831,6 @@ AutofillDownloadManager::GetRequestURLAn } bool AutofillDownloadManager::StartRequest(FormRequestData request_data) { @@ -30,8 +30,17 @@ - // As it is shared, it is not trusted and we cannot assign trusted_params - // to the network request. -#if !defined(OS_IOS) -- resource_request->trusted_params = network::ResourceRequest::TrustedParams(); -- resource_request->trusted_params->isolation_info = driver_->IsolationInfo(); +- // Do not call IsolationInfo() for REQUEST_UPLOADs because Password Manager +- // uploads when RenderFrameHostImpl::DidCommitNavigation() is called, in which +- // case IsolationInfo() may crash because there is no committing +- // NavigationRequest. This is safe because no information about the response +- // is passed to the renderer, or is otherwise visible to a page. +- // crbug/1176635#c22 +- if (request_data.request_type != AutofillDownloadManager::REQUEST_UPLOAD) { +- resource_request->trusted_params = +- network::ResourceRequest::TrustedParams(); +- resource_request->trusted_params->isolation_info = driver_->IsolationInfo(); +- } -#endif - - // Add Chrome experiment state to the request headers. diff --git a/patches/core/inox-patchset/0005-disable-default-extensions.patch b/patches/core/inox-patchset/0005-disable-default-extensions.patch index 6fea6a84..e286dd7f 100644 --- a/patches/core/inox-patchset/0005-disable-default-extensions.patch +++ b/patches/core/inox-patchset/0005-disable-default-extensions.patch @@ -22,7 +22,7 @@ } #if BUILDFLAG(IS_CHROMEOS_ASH) -@@ -526,18 +521,6 @@ void ComponentLoader::AddDefaultComponen +@@ -527,18 +522,6 @@ void ComponentLoader::AddDefaultComponen AddHangoutServicesExtension(); #endif // BUILDFLAG(ENABLE_HANGOUT_SERVICES_EXTENSION) @@ -55,7 +55,7 @@ { --- a/chrome/browser/extensions/webstore_installer.cc +++ b/chrome/browser/extensions/webstore_installer.cc -@@ -551,20 +551,6 @@ void WebstoreInstaller::DownloadNextPend +@@ -556,20 +556,6 @@ void WebstoreInstaller::DownloadNextPend void WebstoreInstaller::DownloadCrx( const std::string& extension_id, InstallSource source) { @@ -76,7 +76,7 @@ } // http://crbug.com/165634 -@@ -709,21 +695,6 @@ void WebstoreInstaller::UpdateDownloadPr +@@ -714,21 +700,6 @@ void WebstoreInstaller::UpdateDownloadPr void WebstoreInstaller::StartCrxInstaller(const DownloadItem& download) { DCHECK_CURRENTLY_ON(BrowserThread::UI); DCHECK(!crx_installer_.get()); diff --git a/patches/core/inox-patchset/0009-disable-google-ipv6-probes.patch b/patches/core/inox-patchset/0009-disable-google-ipv6-probes.patch index ab9125c6..0e29fea3 100644 --- a/patches/core/inox-patchset/0009-disable-google-ipv6-probes.patch +++ b/patches/core/inox-patchset/0009-disable-google-ipv6-probes.patch @@ -1,6 +1,6 @@ --- a/net/dns/host_resolver_manager.cc +++ b/net/dns/host_resolver_manager.cc -@@ -132,10 +132,10 @@ const unsigned kMinimumTTLSeconds = kCac +@@ -134,10 +134,10 @@ const unsigned kMinimumTTLSeconds = kCac // cached. const int kIPv6ProbePeriodMs = 1000; diff --git a/patches/core/inox-patchset/0015-disable-update-pings.patch b/patches/core/inox-patchset/0015-disable-update-pings.patch index a9e7ced6..68b1f93c 100644 --- a/patches/core/inox-patchset/0015-disable-update-pings.patch +++ b/patches/core/inox-patchset/0015-disable-update-pings.patch @@ -1,6 +1,6 @@ --- a/chrome/updater/configurator.cc +++ b/chrome/updater/configurator.cc -@@ -74,7 +74,7 @@ int Configurator::UpdateDelay() const { +@@ -77,7 +77,7 @@ int Configurator::UpdateDelay() const { } std::vector Configurator::UpdateUrl() const { diff --git a/patches/core/inox-patchset/0021-disable-rlz.patch b/patches/core/inox-patchset/0021-disable-rlz.patch index 10d8b0e9..1e7424ba 100644 --- a/patches/core/inox-patchset/0021-disable-rlz.patch +++ b/patches/core/inox-patchset/0021-disable-rlz.patch @@ -2,8 +2,8 @@ --- a/BUILD.gn +++ b/BUILD.gn -@@ -453,14 +453,6 @@ group("gn_all") { - ] +@@ -459,14 +459,6 @@ group("gn_all") { + deps += [ "//chromeos:chromeos_unittests" ] } - if (is_chromeos_ash || is_mac || is_win) { diff --git a/patches/core/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch b/patches/core/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch index 94027062..e146f408 100644 --- a/patches/core/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch +++ b/patches/core/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch @@ -90,15 +90,15 @@ by default. // creates and uses to publish OEM default apps to the extensions system. --- a/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc +++ b/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc -@@ -863,7 +863,7 @@ void FileManagerPrivateInternalGetDownlo +@@ -858,7 +858,7 @@ void FileManagerPrivateInternalGetDownlo const CoreAccountId& account_id = - identity_manager->GetPrimaryAccountId(signin::ConsentLevel::kNotRequired); + identity_manager->GetPrimaryAccountId(signin::ConsentLevel::kSignin); std::vector scopes; - scopes.emplace_back("https://www.googleapis.com/auth/drive.readonly"); + scopes.emplace_back("trk:208:https://www.googleapis.com/auth/drive.readonly"); scoped_refptr url_loader_factory = - content::BrowserContext::GetDefaultStoragePartition( + content::BrowserContext::GetDefaultStoragePartition(browser_context()) --- a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc +++ b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc @@ -81,7 +81,7 @@ namespace { @@ -142,7 +142,7 @@ by default. // elements of |list| equals |hash|. --- a/chrome/browser/extensions/install_signer.cc +++ b/chrome/browser/extensions/install_signer.cc -@@ -65,7 +65,7 @@ const int kSignatureFormatVersion = 2; +@@ -67,7 +67,7 @@ const int kSignatureFormatVersion = 2; const size_t kSaltBytes = 32; const char kBackendUrl[] = @@ -175,7 +175,7 @@ by default. ? upload_url_for_testing_ --- a/chrome/browser/nacl_host/nacl_infobar_delegate.cc +++ b/chrome/browser/nacl_host/nacl_infobar_delegate.cc -@@ -32,7 +32,7 @@ base::string16 NaClInfoBarDelegate::GetL +@@ -32,7 +32,7 @@ std::u16string NaClInfoBarDelegate::GetL } GURL NaClInfoBarDelegate::GetLinkURL() const { @@ -183,10 +183,10 @@ by default. + return GURL("trk:143:https://support.google.com/chrome/?p=ib_nacl"); } - base::string16 NaClInfoBarDelegate::GetMessageText() const { + std::u16string NaClInfoBarDelegate::GetMessageText() const { --- a/chrome/browser/profiles/profile_avatar_downloader.cc +++ b/chrome/browser/profiles/profile_avatar_downloader.cc -@@ -19,7 +19,7 @@ +@@ -20,7 +20,7 @@ namespace { const char kHighResAvatarDownloadUrlPrefix[] = @@ -275,7 +275,7 @@ by default. // The maximum number of ignored bubble we track in the NumLaterPerReinstall --- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc +++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc -@@ -71,22 +71,22 @@ namespace { +@@ -68,22 +68,22 @@ namespace { // The URL for the the Learn More page shown on incognito new tab. const char kLearnMoreIncognitoUrl[] = #if BUILDFLAG(IS_CHROMEOS_ASH) @@ -301,8 +301,8 @@ by default. - "https://support.google.com/chrome/?p=ui_guest"; + "trk:261:https://support.google.com/chrome/?p=ui_guest"; - SkColor GetThemeColor(const ui::ThemeProvider& tp, int id) { - SkColor color = tp.GetColor(id); + std::string ReplaceTemplateExpressions( + const scoped_refptr& bytes, --- a/chrome/chrome_cleaner/components/recovery_component.cc +++ b/chrome/chrome_cleaner/components/recovery_component.cc @@ -37,7 +37,7 @@ namespace chrome_cleaner { @@ -327,7 +327,7 @@ by default. bool g_is_connected_to_crash_handler = false; --- a/chrome/common/extensions/chrome_extensions_client.cc +++ b/chrome/common/extensions/chrome_extensions_client.cc -@@ -44,9 +44,9 @@ namespace { +@@ -45,9 +45,9 @@ namespace { // TODO(battre): Delete the HTTP URL once the blocklist is downloaded via HTTPS. const char kExtensionBlocklistUrlPrefix[] = @@ -363,7 +363,7 @@ by default. if (url.is_valid() && url.has_scheme()) --- a/chromecast/crash/linux/minidump_uploader.cc +++ b/chromecast/crash/linux/minidump_uploader.cc -@@ -40,7 +40,7 @@ namespace { +@@ -41,7 +41,7 @@ namespace { const char kProductName[] = "Eureka"; @@ -427,23 +427,9 @@ by default. constexpr char kProtoBufMimeType[] = "application/x-protobuf"; ---- a/components/gcm_driver/gcm_account_tracker.cc -+++ b/components/gcm_driver/gcm_account_tracker.cc -@@ -27,9 +27,9 @@ namespace gcm { - namespace { - - // Scopes needed by the OAuth2 access tokens. --const char kGCMGroupServerScope[] = "https://www.googleapis.com/auth/gcm"; -+const char kGCMGroupServerScope[] = "trk:230:https://www.googleapis.com/auth/gcm"; - const char kGCMCheckinServerScope[] = -- "https://www.googleapis.com/auth/android_checkin"; -+ "trk:231:https://www.googleapis.com/auth/android_checkin"; - // Name of the GCM account tracker for fetching access tokens. - const char kGCMAccountTrackerName[] = "gcm_account_tracker"; - // Minimum token validity when sending to GCM groups server. --- a/components/google/core/common/google_util.cc +++ b/components/google/core/common/google_util.cc -@@ -140,7 +140,7 @@ bool IsGoogleSearchSubdomainUrl(const GU +@@ -139,7 +139,7 @@ bool IsGoogleSearchSubdomainUrl(const GU // Global functions ----------------------------------------------------------- @@ -484,7 +470,7 @@ by default. "http://clientservices.googleapis.com/uma/v2"; --- a/components/password_manager/core/browser/password_store.cc +++ b/components/password_manager/core/browser/password_store.cc -@@ -297,10 +297,10 @@ void PasswordStore::GetLogins(const Form +@@ -296,10 +296,10 @@ void PasswordStore::GetLogins(const Form // TODO(mdm): actually delete them at some point, say M24 or so. base::Time cutoff; // the null time if (form.scheme == PasswordForm::Scheme::kHtml && @@ -501,15 +487,15 @@ by default. base::Time out_time; --- a/components/safe_browsing/content/browser/client_side_detection_service.cc +++ b/components/safe_browsing/content/browser/client_side_detection_service.cc -@@ -53,7 +53,7 @@ const int ClientSideDetectionService::kN +@@ -59,7 +59,7 @@ const int ClientSideDetectionService::kN const int ClientSideDetectionService::kPositiveCacheIntervalMinutes = 30; const char ClientSideDetectionService::kClientReportPhishingUrl[] = - "https://sb-ssl.google.com/safebrowsing/clientreport/phishing"; + "trk:148:https://sb-ssl.google.com/safebrowsing/clientreport/phishing"; - struct ClientSideDetectionService::ClientPhishingReportInfo { - std::unique_ptr loader; + constexpr char kAuthHeaderBearer[] = "Bearer "; + --- a/components/safe_search_api/safe_search/safe_search_url_checker_client.cc +++ b/components/safe_search_api/safe_search/safe_search_url_checker_client.cc @@ -29,7 +29,7 @@ namespace safe_search_api { @@ -566,7 +552,7 @@ by default. "http://clientservices.googleapis.com/chrome-variations/seed"; --- a/content/browser/speech/speech_recognition_engine.cc +++ b/content/browser/speech/speech_recognition_engine.cc -@@ -30,7 +30,7 @@ namespace content { +@@ -31,7 +31,7 @@ namespace content { namespace { const char kWebServiceBaseUrl[] = @@ -577,7 +563,7 @@ by default. --- a/content/browser/webauth/authenticator_common.cc +++ b/content/browser/webauth/authenticator_common.cc -@@ -171,9 +171,9 @@ base::Optional ProcessAppId +@@ -178,9 +178,9 @@ base::Optional ProcessAppId // special-case AppIDs. Firefox also does this: // https://groups.google.com/forum/#!msg/mozilla.dev.platform/Uiu3fwnA2xw/201ynAiPAQAJ const GURL kGstatic1 = @@ -602,7 +588,7 @@ by default. GURL url(base::WideToUTF16(args[0])); --- a/extensions/common/extension_urls.cc +++ b/extensions/common/extension_urls.cc -@@ -26,9 +26,9 @@ bool IsSourceFromAnExtension(const base: +@@ -26,9 +26,9 @@ bool IsSourceFromAnExtension(const std:: namespace extension_urls { @@ -616,7 +602,7 @@ by default. extensions::ExtensionsClient* client = extensions::ExtensionsClient::Get(); --- a/google_apis/gaia/gaia_constants.cc +++ b/google_apis/gaia/gaia_constants.cc -@@ -25,117 +25,117 @@ const char kSyncService[] = "chromiumsyn +@@ -25,119 +25,119 @@ const char kSyncService[] = "chromiumsyn const char kRemotingService[] = "chromoting"; // OAuth scopes. @@ -727,7 +713,7 @@ by default. + "trk:091:https://www.googleapis.com/auth/kid.permission"; const char kKidFamilyReadonlyOAuth2Scope[] = - "https://www.googleapis.com/auth/kid.family.readonly"; -+ "trk:092https://www.googleapis.com/auth/kid.family.readonly"; ++ "trk:092:https://www.googleapis.com/auth/kid.family.readonly"; // OAuth2 scope for access to payments. const char kPaymentsOAuth2Scope[] = @@ -739,29 +725,33 @@ by default. + "trk:094:https://www.googleapis.com/auth/cryptauth"; // OAuth2 scope for access to Drive. - const char kDriveOAuth2Scope[] = "https://www.googleapis.com/auth/drive"; +-const char kDriveOAuth2Scope[] = "https://www.googleapis.com/auth/drive"; ++const char kDriveOAuth2Scope[] = "trk:095:https://www.googleapis.com/auth/drive"; const char kDriveReadOnlyOAuth2Scope[] = - "https://www.googleapis.com/auth/drive.readonly"; -+ "trk:095:https://www.googleapis.com/auth/drive.readonly"; ++ "trk:096:https://www.googleapis.com/auth/drive.readonly"; // OAuth2 scope for access to Assistant SDK. const char kAssistantOAuth2Scope[] = - "https://www.googleapis.com/auth/assistant-sdk-prototype"; -+ "trk:096:https://www.googleapis.com/auth/assistant-sdk-prototype"; ++ "trk:097:https://www.googleapis.com/auth/assistant-sdk-prototype"; // OAuth2 scope for access to nearby sharing. const char kNearbyShareOAuth2Scope[] = - "https://www.googleapis.com/auth/nearbysharing-pa"; -+ "trk:097:https://www.googleapis.com/auth/nearbysharing-pa"; ++ "trk:098:https://www.googleapis.com/auth/nearbysharing-pa"; - // OAuth2 scope for access to GCM account tracker. + // OAuth2 scopes for access to GCM account tracker. -const char kGCMGroupServerOAuth2Scope[] = "https://www.googleapis.com/auth/gcm"; -+const char kGCMGroupServerOAuth2Scope[] = "trk:098:https://www.googleapis.com/auth/gcm"; ++const char kGCMGroupServerOAuth2Scope[] = "trk:099:https://www.googleapis.com/auth/gcm"; + const char kGCMCheckinServerOAuth2Scope[] = +- "https://www.googleapis.com/auth/android_checkin"; ++ "trk:100:https://www.googleapis.com/auth/android_checkin"; // OAuth2 scope for access to readonly Chrome web store. const char kChromeWebstoreOAuth2Scope[] = - "https://www.googleapis.com/auth/chromewebstore.readonly"; -+ "trk:099:https://www.googleapis.com/auth/chromewebstore.readonly"; ++ "trk:101:https://www.googleapis.com/auth/chromewebstore.readonly"; // Used to mint uber auth tokens when needed. const char kGaiaSid[] = "sid"; @@ -823,7 +813,7 @@ by default. --- a/remoting/protocol/jingle_messages.cc +++ b/remoting/protocol/jingle_messages.cc -@@ -25,7 +25,7 @@ const char kJabberNamespace[] = "jabber: +@@ -27,7 +27,7 @@ const char kJabberNamespace[] = "jabber: const char kJingleNamespace[] = "urn:xmpp:jingle:1"; // Namespace for transport messages when using standard ICE. diff --git a/patches/core/iridium-browser/safe_browsing-disable-incident-reporting.patch b/patches/core/iridium-browser/safe_browsing-disable-incident-reporting.patch index bc2f171f..06361666 100644 --- a/patches/core/iridium-browser/safe_browsing-disable-incident-reporting.patch +++ b/patches/core/iridium-browser/safe_browsing-disable-incident-reporting.patch @@ -16,7 +16,7 @@ the URL so we get notified if this happens again in the future). --- a/chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.cc +++ b/chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.cc -@@ -24,7 +24,7 @@ namespace safe_browsing { +@@ -25,7 +25,7 @@ namespace safe_browsing { namespace { const char kSbIncidentReportUrl[] = @@ -27,7 +27,7 @@ the URL so we get notified if this happens again in the future). kSafeBrowsingIncidentTrafficAnnotation = --- a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc +++ b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc -@@ -303,11 +303,14 @@ IncidentReportingService::UploadContext: +@@ -304,11 +304,14 @@ IncidentReportingService::UploadContext: // static bool IncidentReportingService::IsEnabledForProfile(Profile* profile) { diff --git a/patches/core/iridium-browser/safe_browsing-disable-reporting-of-safebrowsing-over.patch b/patches/core/iridium-browser/safe_browsing-disable-reporting-of-safebrowsing-over.patch index dbeb7c10..97816462 100644 --- a/patches/core/iridium-browser/safe_browsing-disable-reporting-of-safebrowsing-over.patch +++ b/patches/core/iridium-browser/safe_browsing-disable-reporting-of-safebrowsing-over.patch @@ -13,7 +13,7 @@ This prevents trk:148 (phishing) and trk:149 (malware). --- a/components/safe_browsing/content/browser/client_side_detection_service.cc +++ b/components/safe_browsing/content/browser/client_side_detection_service.cc -@@ -211,6 +211,10 @@ void ClientSideDetectionService::StartCl +@@ -222,6 +222,10 @@ void ClientSideDetectionService::StartCl return; } @@ -24,10 +24,10 @@ This prevents trk:148 (phishing) and trk:149 (malware). // Fill in metadata about which model we used. request->set_model_filename(model_loader_->name()); *request->mutable_population() = delegate_->GetUserPopulation(); -@@ -275,6 +279,7 @@ void ClientSideDetectionService::StartCl - - // Record that we made a request - AddPhishingReport(base::Time::Now()); +@@ -303,6 +307,7 @@ void ClientSideDetectionService::StartCl + base::BindOnce(&WebUIInfoSingleton::AddToClientPhishingRequestsSent, + base::Unretained(WebUIInfoSingleton::GetInstance()), + std::move(request), access_token)); +#endif } diff --git a/patches/core/ungoogled-chromium/block-requests.patch b/patches/core/ungoogled-chromium/block-requests.patch index 796b54c1..1b6d142e 100644 --- a/patches/core/ungoogled-chromium/block-requests.patch +++ b/patches/core/ungoogled-chromium/block-requests.patch @@ -25,7 +25,7 @@ collection_error_info_.ClearError(); --- a/chrome/browser/search/one_google_bar/one_google_bar_loader_impl.cc +++ b/chrome/browser/search/one_google_bar/one_google_bar_loader_impl.cc -@@ -285,6 +285,7 @@ OneGoogleBarLoaderImpl::OneGoogleBarLoad +@@ -296,6 +296,7 @@ OneGoogleBarLoaderImpl::OneGoogleBarLoad OneGoogleBarLoaderImpl::~OneGoogleBarLoaderImpl() = default; void OneGoogleBarLoaderImpl::Load(OneGoogleCallback callback) { diff --git a/patches/core/ungoogled-chromium/block-trk-and-subdomains.patch b/patches/core/ungoogled-chromium/block-trk-and-subdomains.patch index 63e7832b..28149e0c 100644 --- a/patches/core/ungoogled-chromium/block-trk-and-subdomains.patch +++ b/patches/core/ungoogled-chromium/block-trk-and-subdomains.patch @@ -35,7 +35,7 @@ GURL rewritten_tab_url = tab_url; --- a/components/omnibox/browser/autocomplete_input.cc +++ b/components/omnibox/browser/autocomplete_input.cc -@@ -552,7 +552,8 @@ void AutocompleteInput::ParseForEmphasiz +@@ -525,7 +525,8 @@ void AutocompleteInput::ParseForEmphasiz // For the view-source and blob schemes, we should emphasize the host of the // URL qualified by the view-source or blob prefix. if ((base::LowerCaseEqualsASCII(scheme_str, kViewSourceScheme) || @@ -44,7 +44,7 @@ + base::LowerCaseEqualsASCII(scheme_str, url::kTraceScheme)) && (static_cast(text.length()) > after_scheme_and_colon)) { // Obtain the URL prefixed by view-source or blob and parse it. - base::string16 real_url(text.substr(after_scheme_and_colon)); + std::u16string real_url(text.substr(after_scheme_and_colon)); --- a/components/url_formatter/url_fixer.cc +++ b/components/url_formatter/url_fixer.cc @@ -562,6 +562,10 @@ GURL FixupURL(const std::string& text, c @@ -60,7 +60,7 @@ return GURL(parts.scheme.is_valid() ? text : FixupPath(text)); --- a/content/browser/child_process_security_policy_impl.cc +++ b/content/browser/child_process_security_policy_impl.cc -@@ -793,6 +793,7 @@ ChildProcessSecurityPolicyImpl::ChildPro +@@ -808,6 +808,7 @@ ChildProcessSecurityPolicyImpl::ChildPro #endif // BUILDFLAG(ENABLE_WEBSOCKETS) RegisterWebSafeScheme(url::kFtpScheme); RegisterWebSafeScheme(url::kDataScheme); @@ -70,7 +70,7 @@ // TODO(nick): https://crbug.com/651534 blob: and filesystem: schemes embed --- a/net/BUILD.gn +++ b/net/BUILD.gn -@@ -1075,6 +1075,8 @@ component("net") { +@@ -1076,6 +1076,8 @@ component("net") { "url_request/report_sender.h", "url_request/static_http_user_agent_settings.cc", "url_request/static_http_user_agent_settings.h", @@ -152,7 +152,7 @@ #include "base/strings/utf_string_conversions.h" #include "base/synchronization/lock.h" #include "base/threading/thread_task_runner_handle.h" -@@ -40,6 +41,7 @@ +@@ -41,6 +42,7 @@ #include "net/url_request/url_request_redirect_job.h" #include "url/gurl.h" #include "url/origin.h" @@ -160,7 +160,7 @@ using base::Time; using std::string; -@@ -575,6 +577,12 @@ URLRequest::URLRequest(const GURL& url, +@@ -577,6 +579,12 @@ URLRequest::URLRequest(const GURL& url, // Sanity check out environment. DCHECK(base::ThreadTaskRunnerHandle::IsSet()); @@ -175,7 +175,7 @@ return NetLogURLRequestConstructorParams(url, priority_, --- a/net/url_request/url_request_context_builder.cc +++ b/net/url_request/url_request_context_builder.cc -@@ -44,6 +44,7 @@ +@@ -45,6 +45,7 @@ #include "net/quic/quic_stream_factory.h" #include "net/ssl/ssl_config_service_defaults.h" #include "net/url_request/static_http_user_agent_settings.h" @@ -183,7 +183,7 @@ #include "net/url_request/url_request_context.h" #include "net/url_request/url_request_context_storage.h" #include "net/url_request/url_request_job_factory.h" -@@ -607,6 +608,9 @@ std::unique_ptr URLRe +@@ -608,6 +609,9 @@ std::unique_ptr URLRe } protocol_handlers_.clear(); diff --git a/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch b/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch index 2f7e7666..8a33e66f 100644 --- a/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch +++ b/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch @@ -46,7 +46,7 @@ --- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc +++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc -@@ -295,7 +295,7 @@ bool DomDistillerViewerSource::ShouldSer +@@ -297,7 +297,7 @@ bool DomDistillerViewerSource::ShouldSer std::string DomDistillerViewerSource::GetContentSecurityPolicy( network::mojom::CSPDirectiveName directive) { if (directive == network::mojom::CSPDirectiveName::StyleSrc) { diff --git a/patches/core/ungoogled-chromium/disable-gcm.patch b/patches/core/ungoogled-chromium/disable-gcm.patch index 42a01b59..e1200596 100644 --- a/patches/core/ungoogled-chromium/disable-gcm.patch +++ b/patches/core/ungoogled-chromium/disable-gcm.patch @@ -26,11 +26,11 @@ - device_checkin_info_.account_tokens, - gservices_settings_.digest(), - chrome_build_proto); -- checkin_request_.reset(new CheckinRequest( +- checkin_request_ = std::make_unique( - gservices_settings_.GetCheckinURL(), request_info, GetGCMBackoffPolicy(), - base::BindOnce(&GCMClientImpl::OnCheckinCompleted, - weak_ptr_factory_.GetWeakPtr()), -- url_loader_factory_, io_task_runner_, &recorder_)); +- url_loader_factory_, io_task_runner_, &recorder_); - // Taking a snapshot of the accounts count here, as there might be an asynch - // update of the account tokens while checkin is in progress. - device_checkin_info_.SnapshotCheckinAccounts(); diff --git a/patches/core/ungoogled-chromium/disable-google-host-detection.patch b/patches/core/ungoogled-chromium/disable-google-host-detection.patch index e0d9ea67..3f9c209d 100644 --- a/patches/core/ungoogled-chromium/disable-google-host-detection.patch +++ b/patches/core/ungoogled-chromium/disable-google-host-detection.patch @@ -138,7 +138,7 @@ #endif --- a/components/google/core/common/google_util.cc +++ b/components/google/core/common/google_util.cc -@@ -33,109 +33,6 @@ namespace google_util { +@@ -32,109 +32,6 @@ namespace google_util { namespace { @@ -248,7 +248,7 @@ } // namespace // Global functions ----------------------------------------------------------- -@@ -143,12 +40,6 @@ bool IsGoogleSearchSubdomainUrl(const GU +@@ -142,12 +39,6 @@ bool IsGoogleSearchSubdomainUrl(const GU const char kGoogleHomepageURL[] = "trk:113:https://www.google.com/"; bool HasGoogleSearchQueryParam(base::StringPiece str) { @@ -261,7 +261,7 @@ return false; } -@@ -159,161 +50,53 @@ std::string GetGoogleLocale(const std::s +@@ -158,161 +49,53 @@ std::string GetGoogleLocale(const std::s GURL AppendGoogleLocaleParam(const GURL& url, const std::string& application_locale) { @@ -490,7 +490,7 @@ bool IsGoogleHostname(const GURL& url) { --- a/components/search_engines/template_url.cc +++ b/components/search_engines/template_url.cc -@@ -526,11 +526,7 @@ base::string16 TemplateURLRef::SearchTer +@@ -526,11 +526,7 @@ std::u16string TemplateURLRef::SearchTer bool TemplateURLRef::HasGoogleBaseURLs( const SearchTermsData& search_terms_data) const { ParseIfNecessary(search_terms_data); diff --git a/patches/core/ungoogled-chromium/disable-mei-preload.patch b/patches/core/ungoogled-chromium/disable-mei-preload.patch index bcb87184..684cbb6b 100644 --- a/patches/core/ungoogled-chromium/disable-mei-preload.patch +++ b/patches/core/ungoogled-chromium/disable-mei-preload.patch @@ -7,7 +7,7 @@ --- a/chrome/BUILD.gn +++ b/chrome/BUILD.gn -@@ -316,7 +316,6 @@ if (!is_android && !is_mac) { +@@ -317,7 +317,6 @@ if (!is_android && !is_mac) { } data_deps += [ @@ -15,7 +15,7 @@ "//third_party/widevine/cdm", ] } -@@ -1045,7 +1044,6 @@ if (is_win) { +@@ -1121,7 +1120,6 @@ if (is_win) { ":keystone_registration_framework", ":swiftshader_library", ":widevine_cdm_library", diff --git a/patches/core/ungoogled-chromium/disable-profile-avatar-downloading.patch b/patches/core/ungoogled-chromium/disable-profile-avatar-downloading.patch index 6ae193ce..279269e1 100644 --- a/patches/core/ungoogled-chromium/disable-profile-avatar-downloading.patch +++ b/patches/core/ungoogled-chromium/disable-profile-avatar-downloading.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/profiles/profile_avatar_downloader.cc +++ b/chrome/browser/profiles/profile_avatar_downloader.cc -@@ -26,8 +26,7 @@ ProfileAvatarDownloader::ProfileAvatarDo +@@ -27,8 +27,7 @@ ProfileAvatarDownloader::ProfileAvatarDo FetchCompleteCallback callback) : icon_index_(icon_index), callback_(std::move(callback)) { DCHECK(!callback_.is_null()); diff --git a/patches/core/ungoogled-chromium/disable-signin.patch b/patches/core/ungoogled-chromium/disable-signin.patch index 0418caf1..88ba0006 100644 --- a/patches/core/ungoogled-chromium/disable-signin.patch +++ b/patches/core/ungoogled-chromium/disable-signin.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/ui/chrome_pages.cc +++ b/chrome/browser/ui/chrome_pages.cc -@@ -494,32 +494,6 @@ GURL GetOSSettingsUrl(const std::string& +@@ -479,32 +479,6 @@ GURL GetOSSettingsUrl(const std::string& void ShowBrowserSignin(Browser* browser, signin_metrics::AccessPoint access_point, signin::ConsentLevel consent_level) { @@ -25,7 +25,7 @@ - case signin::ConsentLevel::kSync: - bubble_view_mode = profiles::BUBBLE_VIEW_MODE_GAIA_SIGNIN; - break; -- case signin::ConsentLevel::kNotRequired: +- case signin::ConsentLevel::kSignin: - bubble_view_mode = profiles::BUBBLE_VIEW_MODE_GAIA_ADD_ACCOUNT; - break; - } diff --git a/patches/core/ungoogled-chromium/disable-webstore-urls.patch b/patches/core/ungoogled-chromium/disable-webstore-urls.patch index f5c765b3..677038b8 100644 --- a/patches/core/ungoogled-chromium/disable-webstore-urls.patch +++ b/patches/core/ungoogled-chromium/disable-webstore-urls.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc +++ b/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc -@@ -587,10 +587,6 @@ std::vector ChromeContentBr +@@ -588,10 +588,6 @@ std::vector ChromeContentBr GetOriginsRequiringDedicatedProcess() { std::vector list; diff --git a/patches/core/ungoogled-chromium/fix-building-with-prunned-binaries.patch b/patches/core/ungoogled-chromium/fix-building-with-prunned-binaries.patch new file mode 100644 index 00000000..5b0b436d --- /dev/null +++ b/patches/core/ungoogled-chromium/fix-building-with-prunned-binaries.patch @@ -0,0 +1,13 @@ +# Contains tests and features that are unneeded and would otherwise +# require binaries to be whitelisted in the pruning list + +--- a/third_party/devtools-frontend/src/BUILD.gn ++++ b/third_party/devtools-frontend/src/BUILD.gn +@@ -166,7 +166,6 @@ devtools_applications = [ + devtools_frontend_resources_deps = [ + ":build_release_devtools", + "front_end", +- "test", + ] + + group("devtools_all_files") { diff --git a/patches/core/ungoogled-chromium/fix-building-without-enabling-reporting.patch b/patches/core/ungoogled-chromium/fix-building-without-enabling-reporting.patch index bc809818..d88edfd6 100644 --- a/patches/core/ungoogled-chromium/fix-building-without-enabling-reporting.patch +++ b/patches/core/ungoogled-chromium/fix-building-without-enabling-reporting.patch @@ -1,6 +1,6 @@ --- a/content/browser/BUILD.gn +++ b/content/browser/BUILD.gn -@@ -1164,6 +1164,10 @@ source_set("browser") { +@@ -1180,6 +1180,10 @@ source_set("browser") { "net/browser_online_state_observer.cc", "net/browser_online_state_observer.h", "net/cookie_store_factory.cc", @@ -11,7 +11,7 @@ "net/network_errors_listing_ui.cc", "net/network_errors_listing_ui.h", "net/network_quality_observer_impl.cc", -@@ -2829,10 +2833,6 @@ source_set("browser") { +@@ -2878,10 +2882,6 @@ source_set("browser") { if (enable_reporting) { sources += [ @@ -32,7 +32,7 @@ #include "services/data_decoder/public/mojom/resource_snapshot_for_web_bundle.mojom-blink.h" #include "services/network/public/cpp/features.h" #include "services/network/public/mojom/content_security_policy.mojom-blink.h" -@@ -545,7 +546,9 @@ void LocalFrame::Trace(Visitor* visitor) +@@ -553,7 +554,9 @@ void LocalFrame::Trace(Visitor* visitor) visitor->Trace(raw_system_clipboard_); visitor->Trace(virtual_keyboard_overlay_changed_observers_); visitor->Trace(pause_handle_receivers_); @@ -42,7 +42,7 @@ #if defined(OS_MAC) visitor->Trace(text_input_host_); #endif -@@ -2261,6 +2264,7 @@ const base::UnguessableToken& LocalFrame +@@ -2364,6 +2367,7 @@ const base::UnguessableToken& LocalFrame return base::UnguessableToken::Null(); } @@ -50,7 +50,7 @@ mojom::blink::ReportingServiceProxy* LocalFrame::GetReportingService() { if (!reporting_service_.is_bound()) { GetBrowserInterfaceBroker().GetInterface( -@@ -2269,6 +2273,7 @@ mojom::blink::ReportingServiceProxy* Loc +@@ -2372,6 +2376,7 @@ mojom::blink::ReportingServiceProxy* Loc } return reporting_service_.get(); } @@ -68,7 +68,7 @@ #include "third_party/blink/public/common/frame/payment_request_token.h" #include "third_party/blink/public/common/frame/transient_allow_fullscreen.h" #include "third_party/blink/public/mojom/blob/blob_url_store.mojom-blink.h" -@@ -527,9 +528,9 @@ class CORE_EXPORT LocalFrame final +@@ -537,9 +538,9 @@ class CORE_EXPORT LocalFrame final } SmoothScrollSequencer& GetSmoothScrollSequencer(); @@ -80,13 +80,12 @@ // Returns the frame host ptr. The interface returned is backed by an // associated interface with the legacy Chrome IPC channel. mojom::blink::LocalFrameHost& GetLocalFrameHostRemote() const; -@@ -926,9 +927,11 @@ class CORE_EXPORT LocalFrame final +@@ -956,8 +957,10 @@ class CORE_EXPORT LocalFrame final // const methods. // // LocalFrame can be reused by multiple ExecutionContext. +#if BUILDFLAG(ENABLE_REPORTING) - mutable HeapMojoRemote + mutable HeapMojoRemote reporting_service_{nullptr}; +#endif @@ -145,10 +144,10 @@ +#if BUILDFLAG(ENABLE_REPORTING) const String& type = report->type(); if (!(type == ReportType::kCSPViolation || type == ReportType::kDeprecation || - type == ReportType::kFeaturePolicyViolation || -@@ -227,6 +235,7 @@ void ReportingContext::SendToReportingAP - "Document policy violation", body->sourceFile(), line_number, - column_number); + type == ReportType::kPermissionsPolicyViolation || +@@ -226,6 +234,7 @@ void ReportingContext::SendToReportingAP + url, endpoint, body->featureId(), body->disposition(), body->message(), + body->sourceFile(), line_number, column_number); } +#endif } diff --git a/patches/core/ungoogled-chromium/fix-building-without-one-click-signin.patch b/patches/core/ungoogled-chromium/fix-building-without-one-click-signin.patch index a6a98859..742d7a7e 100644 --- a/patches/core/ungoogled-chromium/fix-building-without-one-click-signin.patch +++ b/patches/core/ungoogled-chromium/fix-building-without-one-click-signin.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/ui/BUILD.gn +++ b/chrome/browser/ui/BUILD.gn -@@ -4422,8 +4422,6 @@ static_library("ui") { +@@ -4496,8 +4496,6 @@ static_library("ui") { "views/sync/dice_bubble_sync_promo_view.h", "views/sync/dice_signin_button_view.cc", "views/sync/dice_signin_button_view.h", @@ -25,7 +25,7 @@ } --- a/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc +++ b/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc -@@ -375,6 +375,7 @@ void InlineSigninHelper::OnClientOAuthSu +@@ -359,6 +359,7 @@ void InlineSigninHelper::OnClientOAuthSu const ClientOAuthResult& result, Profile* /*profile*/, Profile::CreateStatus /*status*/) { @@ -33,9 +33,9 @@ HandlerSigninReason reason = GetHandlerSigninReason(current_url_); if (reason == HandlerSigninReason::FETCH_LST_ONLY) { // Constants are only available on Windows for the Google Credential -@@ -465,6 +466,7 @@ void InlineSigninHelper::OnClientOAuthSu - CreateSyncStarter(result.refresh_token); - } +@@ -419,6 +420,7 @@ void InlineSigninHelper::OnClientOAuthSu + CreateSyncStarter(result.refresh_token); + base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this); +#endif } diff --git a/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch b/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch index 91332103..838d7b50 100644 --- a/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch +++ b/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/chrome_content_browser_client.cc +++ b/chrome/browser/chrome_content_browser_client.cc -@@ -4107,11 +4107,13 @@ ChromeContentBrowserClient::CreateThrott +@@ -4199,11 +4199,13 @@ ChromeContentBrowserClient::CreateThrott &throttles); #endif @@ -16,7 +16,7 @@ // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch // of lacros-chrome is complete. -@@ -5317,26 +5319,7 @@ ChromeContentBrowserClient::GetSafeBrows +@@ -5434,26 +5436,7 @@ ChromeContentBrowserClient::GetSafeBrows const std::vector& allowlist_domains) { DCHECK_CURRENTLY_ON(BrowserThread::IO); @@ -44,7 +44,7 @@ } safe_browsing::RealTimeUrlLookupServiceBase* -@@ -5357,11 +5340,6 @@ ChromeContentBrowserClient::GetUrlLookup +@@ -5474,11 +5457,6 @@ ChromeContentBrowserClient::GetUrlLookup GetForProfile(profile); } #endif @@ -106,15 +106,15 @@ } // namespace --- a/chrome/browser/download/chrome_download_manager_delegate.cc +++ b/chrome/browser/download/chrome_download_manager_delegate.cc -@@ -131,7 +131,6 @@ using content::DownloadManager; +@@ -128,7 +128,6 @@ using content::DownloadManager; using download::DownloadItem; using download::DownloadPathReservationTracker; using download::PathValidationResult; -using safe_browsing::DownloadFileType; using safe_browsing::DownloadProtectionService; + using ConnectionType = net::NetworkChangeNotifier::ConnectionType; - namespace { -@@ -1431,8 +1430,6 @@ void ChromeDownloadManagerDelegate::OnDo +@@ -1423,8 +1422,6 @@ void ChromeDownloadManagerDelegate::OnDo if (item->GetOriginalMimeType() == "application/x-x509-user-cert") DownloadItemModel(item).SetShouldPreferOpeningInBrowser(true); #endif @@ -141,7 +141,7 @@ #include "content/public/browser/web_contents.h" --- a/chrome/browser/enterprise/connectors/connectors_service.cc +++ b/chrome/browser/enterprise/connectors/connectors_service.cc -@@ -265,19 +265,6 @@ base::Optional ConnectorsSe +@@ -362,19 +362,6 @@ base::Optional ConnectorsSe return base::nullopt; } @@ -163,7 +163,7 @@ } --- a/chrome/browser/enterprise/connectors/connectors_service.h +++ b/chrome/browser/enterprise/connectors/connectors_service.h -@@ -13,7 +13,6 @@ +@@ -14,7 +14,6 @@ #include "components/keyed_service/content/browser_context_keyed_service_factory.h" #include "components/keyed_service/core/keyed_service.h" #include "components/policy/core/common/policy_types.h" @@ -171,7 +171,7 @@ #include "content/public/browser/browser_context.h" namespace base { -@@ -73,12 +72,6 @@ class ConnectorsService : public KeyedSe +@@ -74,12 +73,6 @@ class ConnectorsService : public KeyedSe // is no token to use. base::Optional GetDMTokenForRealTimeUrlCheck() const; @@ -184,9 +184,9 @@ // Testing functions. ConnectorsManager* ConnectorsManagerForTesting(); ---- a/chrome/browser/extensions/api/enterprise_reporting_private/context_info_fetcher.cc -+++ b/chrome/browser/extensions/api/enterprise_reporting_private/context_info_fetcher.cc -@@ -49,7 +49,6 @@ void ContextInfoFetcher::Fetch(ContextIn +--- a/chrome/browser/enterprise/signals/context_info_fetcher.cc ++++ b/chrome/browser/enterprise/signals/context_info_fetcher.cc +@@ -53,7 +53,6 @@ void ContextInfoFetcher::Fetch(ContextIn GetAnalysisConnectorProviders(enterprise_connectors::FILE_DOWNLOADED); info.on_bulk_data_entry_providers = GetAnalysisConnectorProviders(enterprise_connectors::BULK_DATA_ENTRY); @@ -194,28 +194,71 @@ info.on_security_event_providers = GetOnSecurityEventProviders(); info.browser_version = version_info::GetVersionNumber(); -@@ -91,18 +90,6 @@ std::vector ContextInfoFetc +@@ -79,11 +78,6 @@ std::vector ContextInfoFetc return connectors_service_->GetAnalysisServiceProviderNames(connector); } --api::enterprise_reporting_private::RealtimeUrlCheckMode +-safe_browsing::EnterpriseRealTimeUrlCheckMode -ContextInfoFetcher::GetRealtimeUrlCheckMode() { -- switch (connectors_service_->GetAppliedRealTimeUrlCheck()) { -- case safe_browsing::REAL_TIME_CHECK_DISABLED: -- return api::enterprise_reporting_private:: -- REALTIME_URL_CHECK_MODE_DISABLED; -- case safe_browsing::REAL_TIME_CHECK_FOR_MAINFRAME_ENABLED: -- return api::enterprise_reporting_private:: -- REALTIME_URL_CHECK_MODE_ENABLED_MAIN_FRAME; -- } +- return connectors_service_->GetAppliedRealTimeUrlCheck(); -} - std::vector ContextInfoFetcher::GetOnSecurityEventProviders() { return connectors_service_->GetReportingServiceProviderNames( enterprise_connectors::ReportingConnector::SECURITY_EVENT); +--- a/chrome/browser/enterprise/signals/context_info_fetcher.h ++++ b/chrome/browser/enterprise/signals/context_info_fetcher.h +@@ -6,10 +6,10 @@ + #define CHROME_BROWSER_ENTERPRISE_SIGNALS_CONTEXT_INFO_FETCHER_H_ + + #include ++#include + #include + + #include "base/callback_forward.h" +-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" + + namespace content { + class BrowserContext; +@@ -35,7 +35,6 @@ struct ContextInfo { + std::vector on_file_downloaded_providers; + std::vector on_bulk_data_entry_providers; + std::vector on_security_event_providers; +- safe_browsing::EnterpriseRealTimeUrlCheckMode realtime_url_check_mode; + std::string browser_version; + }; + +@@ -76,7 +75,6 @@ class ContextInfoFetcher { + std::vector GetAnalysisConnectorProviders( + enterprise_connectors::AnalysisConnector connector); + +- safe_browsing::EnterpriseRealTimeUrlCheckMode GetRealtimeUrlCheckMode(); + + std::vector GetOnSecurityEventProviders(); + +--- a/chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc ++++ b/chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc +@@ -69,17 +69,8 @@ api::enterprise_reporting_private::Conte + info.on_file_downloaded_providers = signals.on_file_downloaded_providers; + info.on_bulk_data_entry_providers = signals.on_bulk_data_entry_providers; + info.on_security_event_providers = signals.on_security_event_providers; +- switch (signals.realtime_url_check_mode) { +- case safe_browsing::REAL_TIME_CHECK_DISABLED: + info.realtime_url_check_mode = extensions::api:: + enterprise_reporting_private::REALTIME_URL_CHECK_MODE_DISABLED; +- break; +- case safe_browsing::REAL_TIME_CHECK_FOR_MAINFRAME_ENABLED: +- info.realtime_url_check_mode = +- extensions::api::enterprise_reporting_private:: +- REALTIME_URL_CHECK_MODE_ENABLED_MAIN_FRAME; +- break; +- } + info.browser_version = signals.browser_version; + + return info; --- a/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.cc +++ b/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.cc -@@ -320,6 +320,7 @@ void SafeBrowsingPrivateEventRouter::OnD +@@ -305,6 +305,7 @@ void SafeBrowsingPrivateEventRouter::OnD event_router_->BroadcastEvent(std::move(extension_event)); } @@ -223,15 +266,15 @@ auto settings = GetReportingSettings(); if (!settings.has_value() || settings->enabled_event_names.count(kKeyDangerousDownloadEvent) == 0) { -@@ -356,6 +357,7 @@ void SafeBrowsingPrivateEventRouter::OnD - params.url, params.file_name, params.download_digest_sha256, - params.user_name, mime_type, DangerTypeToThreatType(danger_type), - content_size)); +@@ -330,6 +331,7 @@ void SafeBrowsingPrivateEventRouter::OnD + + ReportRealtimeEvent(kKeyDangerousDownloadEvent, std::move(settings.value()), + std::move(event)); +#endif // FULL_SAFE_BROWSING } void SafeBrowsingPrivateEventRouter::OnSecurityInterstitialShown( -@@ -383,6 +385,7 @@ void SafeBrowsingPrivateEventRouter::OnS +@@ -357,6 +359,7 @@ void SafeBrowsingPrivateEventRouter::OnS event_router_->BroadcastEvent(std::move(extension_event)); } @@ -239,15 +282,15 @@ auto settings = GetReportingSettings(); if (!settings.has_value() || settings->enabled_event_names.count(kKeyInterstitialEvent) == 0) { -@@ -415,6 +418,7 @@ void SafeBrowsingPrivateEventRouter::OnS - }, - params.url, params.reason, net_error_code, params.user_name, - event_result)); +@@ -379,6 +382,7 @@ void SafeBrowsingPrivateEventRouter::OnS + + ReportRealtimeEvent(kKeyInterstitialEvent, std::move(settings.value()), + std::move(event)); +#endif // FULL_SAFE_BROWSING } void SafeBrowsingPrivateEventRouter::OnSecurityInterstitialProceeded( -@@ -442,6 +446,7 @@ void SafeBrowsingPrivateEventRouter::OnS +@@ -406,6 +410,7 @@ void SafeBrowsingPrivateEventRouter::OnS event_router_->BroadcastEvent(std::move(extension_event)); } @@ -255,15 +298,15 @@ auto settings = GetReportingSettings(); if (!settings.has_value() || settings->enabled_event_names.count(kKeyInterstitialEvent) == 0) { -@@ -466,6 +471,7 @@ void SafeBrowsingPrivateEventRouter::OnS - return event; - }, - params.url, params.reason, net_error_code, params.user_name)); +@@ -424,6 +429,7 @@ void SafeBrowsingPrivateEventRouter::OnS + + ReportRealtimeEvent(kKeyInterstitialEvent, std::move(settings.value()), + std::move(event)); +#endif // FULL_SAFE_BROWSING } void SafeBrowsingPrivateEventRouter::OnAnalysisConnectorResult( -@@ -478,6 +484,7 @@ void SafeBrowsingPrivateEventRouter::OnA +@@ -436,6 +442,7 @@ void SafeBrowsingPrivateEventRouter::OnA const enterprise_connectors::ContentAnalysisResponse::Result& result, const int64_t content_size, safe_browsing::EventResult event_result) { @@ -271,7 +314,7 @@ if (result.tag() == "malware") { DCHECK_EQ(1, result.triggered_rules().size()); OnDangerousDeepScanningResult( -@@ -489,6 +496,7 @@ void SafeBrowsingPrivateEventRouter::OnA +@@ -447,6 +454,7 @@ void SafeBrowsingPrivateEventRouter::OnA OnSensitiveDataEvent(url, file_name, download_digest_sha256, mime_type, trigger, result, content_size, event_result); } @@ -279,7 +322,7 @@ } void SafeBrowsingPrivateEventRouter::OnDangerousDeepScanningResult( -@@ -503,6 +511,7 @@ void SafeBrowsingPrivateEventRouter::OnD +@@ -461,6 +469,7 @@ void SafeBrowsingPrivateEventRouter::OnD const std::string& malware_family, const std::string& malware_category, const std::string& evidence_locker_filepath) { @@ -287,15 +330,15 @@ auto settings = GetReportingSettings(); if (!settings.has_value() || settings->enabled_event_names.count(kKeyDangerousDownloadEvent) == 0) { -@@ -555,6 +564,7 @@ void SafeBrowsingPrivateEventRouter::OnD - url.spec(), file_name, download_digest_sha256, GetProfileUserName(), - threat_type, mime_type, trigger, content_size, event_result, - malware_family, malware_category, evidence_locker_filepath)); +@@ -493,6 +502,7 @@ void SafeBrowsingPrivateEventRouter::OnD + + ReportRealtimeEvent(kKeyDangerousDownloadEvent, std::move(settings.value()), + std::move(event)); +#endif // FULL_SAFE_BROWSING } void SafeBrowsingPrivateEventRouter::OnSensitiveDataEvent( -@@ -566,6 +576,7 @@ void SafeBrowsingPrivateEventRouter::OnS +@@ -504,6 +514,7 @@ void SafeBrowsingPrivateEventRouter::OnS const enterprise_connectors::ContentAnalysisResponse::Result& result, const int64_t content_size, safe_browsing::EventResult event_result) { @@ -303,15 +346,15 @@ auto settings = GetReportingSettings(); if (!settings.has_value() || settings->enabled_event_names.count(kKeySensitiveDataEvent) == 0) { -@@ -614,6 +625,7 @@ void SafeBrowsingPrivateEventRouter::OnS - result, url.spec(), file_name, download_digest_sha256, - GetProfileUserName(), mime_type, trigger, content_size, - event_result)); +@@ -534,6 +545,7 @@ void SafeBrowsingPrivateEventRouter::OnS + + ReportRealtimeEvent(kKeySensitiveDataEvent, std::move(settings.value()), + std::move(event)); +#endif // FULL_SAFE_BROWSING } void SafeBrowsingPrivateEventRouter::OnAnalysisConnectorWarningBypassed( -@@ -625,6 +637,7 @@ void SafeBrowsingPrivateEventRouter::OnA +@@ -545,6 +557,7 @@ void SafeBrowsingPrivateEventRouter::OnA safe_browsing::DeepScanAccessPoint access_point, const enterprise_connectors::ContentAnalysisResponse::Result& result, const int64_t content_size) { @@ -319,15 +362,15 @@ auto settings = GetReportingSettings(); if (!settings.has_value() || settings->enabled_event_names.count(kKeySensitiveDataEvent) == 0) { -@@ -672,6 +685,7 @@ void SafeBrowsingPrivateEventRouter::OnA - result, url.spec(), file_name, download_digest_sha256, - GetProfileUserName(), mime_type, trigger, access_point, - content_size)); +@@ -575,6 +588,7 @@ void SafeBrowsingPrivateEventRouter::OnA + + ReportRealtimeEvent(kKeySensitiveDataEvent, std::move(settings.value()), + std::move(event)); +#endif // FULL_SAFE_BROWSING } void SafeBrowsingPrivateEventRouter::OnUnscannedFileEvent( -@@ -684,6 +698,7 @@ void SafeBrowsingPrivateEventRouter::OnU +@@ -587,6 +601,7 @@ void SafeBrowsingPrivateEventRouter::OnU const std::string& reason, const int64_t content_size, safe_browsing::EventResult event_result) { @@ -335,15 +378,15 @@ auto settings = GetReportingSettings(); if (!settings.has_value() || settings->enabled_event_names.count(kKeyUnscannedFileEvent) == 0) { -@@ -726,6 +741,7 @@ void SafeBrowsingPrivateEventRouter::OnU - url.spec(), file_name, download_digest_sha256, GetProfileUserName(), - mime_type, trigger, access_point, reason, content_size, - event_result)); +@@ -612,6 +627,7 @@ void SafeBrowsingPrivateEventRouter::OnU + + ReportRealtimeEvent(kKeyUnscannedFileEvent, std::move(settings.value()), + std::move(event)); +#endif // FULL_SAFE_BROWSING } void SafeBrowsingPrivateEventRouter::OnDangerousDownloadEvent( -@@ -749,6 +765,7 @@ void SafeBrowsingPrivateEventRouter::OnD +@@ -635,6 +651,7 @@ void SafeBrowsingPrivateEventRouter::OnD const std::string& mime_type, const int64_t content_size, safe_browsing::EventResult event_result) { @@ -351,15 +394,15 @@ auto settings = GetReportingSettings(); if (!settings.has_value() || settings->enabled_event_names.count(kKeyDangerousDownloadEvent) == 0) { -@@ -786,6 +803,7 @@ void SafeBrowsingPrivateEventRouter::OnD - }, - url.spec(), file_name, download_digest_sha256, GetProfileUserName(), - threat_type, mime_type, content_size, event_result)); +@@ -659,6 +676,7 @@ void SafeBrowsingPrivateEventRouter::OnD + + ReportRealtimeEvent(kKeyDangerousDownloadEvent, std::move(settings.value()), + std::move(event)); +#endif } void SafeBrowsingPrivateEventRouter::OnDangerousDownloadWarningBypassed( -@@ -807,6 +825,7 @@ void SafeBrowsingPrivateEventRouter::OnD +@@ -680,6 +698,7 @@ void SafeBrowsingPrivateEventRouter::OnD const std::string& threat_type, const std::string& mime_type, const int64_t content_size) { @@ -367,15 +410,15 @@ auto settings = GetReportingSettings(); if (!settings.has_value() || settings->enabled_event_names.count(kKeyDangerousDownloadEvent) == 0) { -@@ -843,6 +862,7 @@ void SafeBrowsingPrivateEventRouter::OnD - }, - url.spec(), file_name, download_digest_sha256, GetProfileUserName(), - threat_type, mime_type, content_size)); +@@ -705,6 +724,7 @@ void SafeBrowsingPrivateEventRouter::OnD + + ReportRealtimeEvent(kKeyDangerousDownloadEvent, std::move(settings.value()), + std::move(event)); +#endif // FULL_SAFE_BROWSING } // static -@@ -1115,7 +1135,11 @@ void SafeBrowsingPrivateEventRouter::Rep +@@ -977,7 +997,11 @@ void SafeBrowsingPrivateEventRouter::Rep } std::string SafeBrowsingPrivateEventRouter::GetProfileUserName() const { @@ -521,7 +564,7 @@ --- a/chrome/browser/media/webrtc/display_media_access_handler.cc +++ b/chrome/browser/media/webrtc/display_media_access_handler.cc -@@ -107,6 +107,7 @@ void DisplayMediaAccessHandler::HandleRe +@@ -108,6 +108,7 @@ void DisplayMediaAccessHandler::HandleRe return; } @@ -529,7 +572,7 @@ // SafeBrowsing Delayed Warnings experiment can delay some SafeBrowsing // warnings until user interaction. If the current page has a delayed warning, // it'll have a user interaction observer attached. Show the warning -@@ -121,6 +122,7 @@ void DisplayMediaAccessHandler::HandleRe +@@ -122,6 +123,7 @@ void DisplayMediaAccessHandler::HandleRe observer->OnDesktopCaptureRequest(); return; } @@ -547,7 +590,7 @@ #include "chrome/browser/safe_browsing/user_interaction_observer.h" #include "chrome/browser/signin/identity_manager_factory.h" #include "chrome/browser/sync/profile_sync_service_factory.h" -@@ -107,11 +106,11 @@ +@@ -108,11 +107,11 @@ #if BUILDFLAG(FULL_SAFE_BROWSING) #include "chrome/browser/safe_browsing/advanced_protection_status_manager.h" #include "chrome/browser/safe_browsing/advanced_protection_status_manager_factory.h" @@ -560,7 +603,7 @@ #if defined(OS_ANDROID) #include "base/feature_list.h" -@@ -793,6 +792,7 @@ autofill::LanguageCode ChromePasswordMan +@@ -798,6 +797,7 @@ autofill::LanguageCode ChromePasswordMan return autofill::LanguageCode(); } @@ -568,7 +611,7 @@ safe_browsing::PasswordProtectionService* ChromePasswordManagerClient::GetPasswordProtectionService() const { return safe_browsing::ChromePasswordProtectionService:: -@@ -803,13 +803,6 @@ ChromePasswordManagerClient::GetPassword +@@ -808,13 +808,6 @@ ChromePasswordManagerClient::GetPassword void ChromePasswordManagerClient::CheckSafeBrowsingReputation( const GURL& form_action, const GURL& frame_url) { @@ -582,7 +625,7 @@ } #endif // defined(ON_FOCUS_PING_ENABLED) -@@ -819,22 +812,10 @@ void ChromePasswordManagerClient::CheckP +@@ -824,22 +817,10 @@ void ChromePasswordManagerClient::CheckP const std::vector& matching_reused_credentials, bool password_field_exists) { @@ -606,7 +649,7 @@ } ukm::SourceId ChromePasswordManagerClient::GetUkmSourceId() { -@@ -1286,9 +1267,11 @@ void ChromePasswordManagerClient::OnPast +@@ -1294,9 +1275,11 @@ void ChromePasswordManagerClient::OnPast } was_on_paste_called_ = true; @@ -619,7 +662,7 @@ void ChromePasswordManagerClient::RenderFrameCreated( content::RenderFrameHost* render_frame_host) { -@@ -1323,7 +1306,9 @@ void ChromePasswordManagerClient::OnInpu +@@ -1331,7 +1314,9 @@ void ChromePasswordManagerClient::OnInpu if (key_event.windows_key_code == (ui::VKEY_V & 0x1f)) { OnPaste(); } else { @@ -629,7 +672,7 @@ } #endif // defined(OS_ANDROID) } -@@ -1362,6 +1347,7 @@ bool ChromePasswordManagerClient::IsPass +@@ -1370,6 +1355,7 @@ bool ChromePasswordManagerClient::IsPass is_enabled = false; } @@ -637,7 +680,7 @@ // SafeBrowsing Delayed Warnings experiment can delay some SafeBrowsing // warnings until user interaction. If the current page has a delayed warning, // it'll have a user interaction observer attached. Disable password -@@ -1372,6 +1358,7 @@ bool ChromePasswordManagerClient::IsPass +@@ -1380,6 +1366,7 @@ bool ChromePasswordManagerClient::IsPass observer->OnPasswordSaveOrAutofillDenied(); is_enabled = false; } @@ -647,7 +690,7 @@ password_manager::BrowserSavePasswordProgressLogger logger( --- a/chrome/browser/password_manager/chrome_password_manager_client.h +++ b/chrome/browser/password_manager/chrome_password_manager_client.h -@@ -189,13 +189,14 @@ class ChromePasswordManagerClient +@@ -190,13 +190,14 @@ class ChromePasswordManagerClient void AnnotateNavigationEntry(bool has_password_field) override; autofill::LanguageCode GetPageLanguage() const override; @@ -663,7 +706,7 @@ void CheckProtectedPasswordEntry( password_manager::metrics_util::PasswordType reused_password_type, -@@ -203,6 +204,7 @@ class ChromePasswordManagerClient +@@ -204,6 +205,7 @@ class ChromePasswordManagerClient const std::vector& matching_reused_credentials, bool password_field_exists) override; @@ -752,7 +795,7 @@ void ContextualNotificationPermissionUiSelector::OnSafeBrowsingVerdictReceived( --- a/chrome/browser/permissions/prediction_based_permission_ui_selector.cc +++ b/chrome/browser/permissions/prediction_based_permission_ui_selector.cc -@@ -19,7 +19,6 @@ +@@ -20,7 +20,6 @@ #include "components/permissions/prediction_service/prediction_service.h" #include "components/permissions/prediction_service/prediction_service_messages.pb.h" #include "components/prefs/pref_service.h" @@ -760,7 +803,7 @@ namespace { -@@ -182,8 +181,7 @@ bool PredictionBasedPermissionUiSelector +@@ -197,8 +196,7 @@ bool PredictionBasedPermissionUiSelector // We need to also check `kQuietNotificationPrompts` here since there is no // generic safeguard anywhere else in the stack. return base::FeatureList::IsEnabled(features::kQuietNotificationPrompts) && @@ -785,7 +828,7 @@ if (service->EngagedSitesNeedUpdating()) { --- a/chrome/browser/safe_browsing/url_lookup_service_factory.cc +++ b/chrome/browser/safe_browsing/url_lookup_service_factory.cc -@@ -53,37 +53,7 @@ RealTimeUrlLookupServiceFactory::RealTim +@@ -55,29 +55,7 @@ RealTimeUrlLookupServiceFactory::RealTim KeyedService* RealTimeUrlLookupServiceFactory::BuildServiceInstanceFor( content::BrowserContext* context) const { @@ -797,19 +840,10 @@ - std::make_unique( - g_browser_process->safe_browsing_service()->GetURLLoaderFactory( - profile)); -- const policy::BrowserPolicyConnector* browser_policy_connector = -- g_browser_process->browser_policy_connector(); -- bool is_under_advanced_protection = false; --#if BUILDFLAG(FULL_SAFE_BROWSING) -- is_under_advanced_protection = -- AdvancedProtectionStatusManagerFactory::GetForProfile(profile) -- ->IsUnderAdvancedProtection(); --#endif - return new RealTimeUrlLookupService( - network::SharedURLLoaderFactory::Create(std::move(url_loader_factory)), - VerdictCacheManagerFactory::GetForProfile(profile), -- base::BindRepeating(&safe_browsing::SyncUtils::IsHistorySyncEnabled, -- ProfileSyncServiceFactory::GetForProfile(profile)), +- base::BindRepeating(&safe_browsing::GetUserPopulation, profile), - profile->GetPrefs(), - std::make_unique( - IdentityManagerFactory::GetForProfile(profile)), @@ -817,9 +851,10 @@ - AreSigninAndSyncSetUpForSafeBrowsingTokenFetches, - ProfileSyncServiceFactory::GetForProfile(profile), - IdentityManagerFactory::GetForProfile(profile)), -- GetProfileManagementStatus(browser_policy_connector), -- is_under_advanced_protection, profile->IsOffTheRecord(), -- g_browser_process->variations_service()); +- profile->IsOffTheRecord(), g_browser_process->variations_service(), +- g_browser_process->safe_browsing_service() +- ->navigation_observer_manager() +- .get()); + return nullptr; } @@ -907,7 +942,7 @@ } --- a/chrome/browser/ui/views/download/download_item_view.cc +++ b/chrome/browser/ui/views/download/download_item_view.cc -@@ -774,9 +774,7 @@ void DownloadItemView::UpdateLabels() { +@@ -778,9 +778,7 @@ void DownloadItemView::UpdateLabels() { deep_scanning_label_->SetVisible(mode_ == Mode::kDeepScanning); if (deep_scanning_label_->GetVisible()) { @@ -917,8 +952,8 @@ + const int id = model_->download() ? IDS_PROMPT_DEEP_SCANNING_DOWNLOAD : IDS_PROMPT_DEEP_SCANNING_APP_DOWNLOAD; - const base::string16 filename = ElidedFilename(*deep_scanning_label_); -@@ -800,11 +798,15 @@ void DownloadItemView::UpdateButtons() { + const std::u16string filename = ElidedFilename(*deep_scanning_label_); +@@ -804,11 +802,15 @@ void DownloadItemView::UpdateButtons() { } const bool allow_open_during_deep_scan = @@ -934,7 +969,7 @@ open_button_->SetEnabled((mode_ == Mode::kNormal) || prompt_to_scan || allow_open_during_deep_scan); -@@ -1233,7 +1235,9 @@ void DownloadItemView::ShowContextMenuIm +@@ -1237,7 +1239,9 @@ void DownloadItemView::ShowContextMenuIm } void DownloadItemView::OpenDownloadDuringAsyncScanning() { @@ -944,23 +979,9 @@ model_->SetOpenWhenComplete(true); } ---- a/chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.cc -+++ b/chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.cc -@@ -174,10 +174,7 @@ PasswordReuseModalWarningDialog::Passwor - placeholder_offsets); - } else { - views::Label* message_body_label = CreateMessageBodyLabel( -- service_ -- ? service_->GetWarningDetailText(password_type, -- &placeholder_offsets) -- : l10n_util::GetStringUTF16(IDS_PAGE_INFO_CHANGE_PASSWORD_DETAILS)); -+ l10n_util::GetStringUTF16(IDS_PAGE_INFO_CHANGE_PASSWORD_DETAILS)); - CreateGaiaPasswordReuseModalWarningDialog(message_body_label); - } - modal_construction_start_time_ = base::TimeTicks::Now(); --- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc +++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc -@@ -76,8 +76,6 @@ +@@ -75,8 +75,6 @@ #include "components/prefs/pref_service.h" #include "components/reading_list/features/reading_list_switches.h" #include "components/safe_browsing/buildflags.h" @@ -969,7 +990,7 @@ #include "components/search/ntp_features.h" #include "components/security_interstitials/content/connection_help_ui.h" #include "components/security_interstitials/content/known_interception_disclosure_ui.h" -@@ -570,8 +568,6 @@ WebUIFactoryFunction GetWebUIFactoryFunc +@@ -588,8 +586,6 @@ WebUIFactoryFunction GetWebUIFactoryFunc return &NewWebUI; if (url.host_piece() == chrome::kChromeUIQuotaInternalsHost) return &NewWebUI; @@ -990,7 +1011,7 @@ --- a/chrome/browser/ui/webui/management/management_ui_handler.cc +++ b/chrome/browser/ui/webui/management/management_ui_handler.cc -@@ -798,14 +798,6 @@ base::Value ManagementUIHandler::GetThre +@@ -790,14 +790,6 @@ base::Value ManagementUIHandler::GetThre auto* on_page_visited_event = chrome_policies.GetValue(policy::key::kEnterpriseRealTimeUrlCheckMode); @@ -1018,7 +1039,7 @@ } --- a/components/password_manager/core/browser/password_manager_client.h +++ b/components/password_manager/core/browser/password_manager_client.h -@@ -330,11 +330,14 @@ class PasswordManagerClient { +@@ -331,11 +331,14 @@ class PasswordManagerClient { // Returns the current best guess as to the page's display language. virtual autofill::LanguageCode GetPageLanguage() const; @@ -1034,7 +1055,7 @@ // Checks the safe browsing reputation of the webpage when the // user focuses on a username/password field. This is used for reporting // only, and won't trigger a warning. -@@ -342,6 +345,7 @@ class PasswordManagerClient { +@@ -343,6 +346,7 @@ class PasswordManagerClient { const GURL& frame_url) = 0; #endif @@ -1042,7 +1063,7 @@ // Checks the safe browsing reputation of the webpage where password reuse // happens. This is called by the PasswordReuseDetectionManager when a // protected password is typed on the wrong domain. This may trigger a -@@ -354,6 +358,7 @@ class PasswordManagerClient { +@@ -355,6 +359,7 @@ class PasswordManagerClient { const std::string& username, const std::vector& matching_reused_credentials, bool password_field_exists) = 0; @@ -1151,7 +1172,7 @@ // Protected by lock_. --- a/components/safe_browsing/core/password_protection/password_protection_service_base.cc +++ b/components/safe_browsing/core/password_protection/password_protection_service_base.cc -@@ -249,12 +249,6 @@ void PasswordProtectionServiceBase::Hist +@@ -260,12 +260,6 @@ void PasswordProtectionServiceBase::Hist history_service_observation_.Reset(); } @@ -1166,15 +1187,15 @@ PasswordProtectionServiceBase::GetPasswordProtectionReusedPasswordType( --- a/components/safe_browsing/core/password_protection/password_protection_service_base.h +++ b/components/safe_browsing/core/password_protection/password_protection_service_base.h -@@ -22,7 +22,6 @@ - #include "components/password_manager/core/browser/password_reuse_detector.h" +@@ -23,7 +23,6 @@ #include "components/safe_browsing/buildflags.h" #include "components/safe_browsing/core/browser/referrer_chain_provider.h" + #include "components/safe_browsing/core/browser/safe_browsing_token_fetcher.h" -#include "components/safe_browsing/core/common/safe_browsing_prefs.h" #include "components/safe_browsing/core/db/database_manager.h" #include "components/safe_browsing/core/db/v4_protocol_manager_util.h" #include "components/safe_browsing/core/password_protection/metrics_util.h" -@@ -130,10 +129,6 @@ class PasswordProtectionServiceBase : pu +@@ -143,10 +142,6 @@ class PasswordProtectionServiceBase : pu // Returns if the warning UI is enabled. bool IsWarningEnabled(ReusedPasswordAccountType password_type); @@ -1187,7 +1208,7 @@ // policy. --- a/content/browser/file_system_access/file_system_access_file_writer_impl.cc +++ b/content/browser/file_system_access/file_system_access_file_writer_impl.cc -@@ -340,15 +340,8 @@ void FileSystemAccessFileWriterImpl::Clo +@@ -335,15 +335,8 @@ void FileSystemAccessFileWriterImpl::Clo close_callback_ = std::move(callback); @@ -1205,7 +1226,7 @@ } void FileSystemAccessFileWriterImpl::AbortImpl(AbortCallback callback) { -@@ -368,37 +361,6 @@ void FileSystemAccessFileWriterImpl::Abo +@@ -363,35 +356,6 @@ void FileSystemAccessFileWriterImpl::Abo manager()->RemoveFileWriter(this); } @@ -1217,10 +1238,8 @@ - DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); - - if (hash_result != base::File::FILE_OK) { -- // Calculating the hash failed try deleting the swap file and invoke the -- // callback. -- manager()->operation_runner().PostTaskWithThisObject( -- FROM_HERE, base::BindOnce(&RemoveSwapFile, swap_url())); +- // Calculating the hash failed, the destructor will try to delete the swap +- // file, so call the callback to report the error and delete `this`. - CallCloseCallbackAndDeleteThis(file_system_access_error::FromStatus( - FileSystemAccessStatus::kOperationAborted, - "Failed to perform Safe Browsing check.")); @@ -1245,7 +1264,7 @@ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); --- a/content/browser/file_system_access/file_system_access_file_writer_impl.h +++ b/content/browser/file_system_access/file_system_access_file_writer_impl.h -@@ -100,9 +100,6 @@ class CONTENT_EXPORT FileSystemAccessFil +@@ -99,9 +99,6 @@ class CONTENT_EXPORT FileSystemAccessFil void TruncateImpl(uint64_t length, TruncateCallback callback); void CloseImpl(CloseCallback callback); void AbortImpl(AbortCallback callback); diff --git a/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch b/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch index d6308799..f889cbf0 100644 --- a/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch +++ b/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch @@ -23,7 +23,7 @@ // TODO(amalova): Make sure NetworkContextParams is configured correctly when --- a/chrome/app/settings_strings.grdp +++ b/chrome/app/settings_strings.grdp -@@ -1413,78 +1413,9 @@ +@@ -1431,78 +1431,9 @@ Pre-fetches information from pages, including pages you have not yet visited. Information fetched may include cookies, if you allow cookies. @@ -162,26 +162,8 @@ // Handler for prefs::kForceBrowserSignin. This preference is set in Local // State, not in user prefs. BooleanPrefMember force_browser_signin_; ---- a/chrome/browser/chrome_content_browser_client.cc -+++ b/chrome/browser/chrome_content_browser_client.cc -@@ -272,7 +272,6 @@ - #include "components/safe_browsing/content/browser/browser_url_loader_throttle.h" - #include "components/safe_browsing/content/password_protection/password_protection_navigation_throttle.h" - #include "components/safe_browsing/core/browser/url_checker_delegate.h" --#include "components/safe_browsing/core/common/safe_browsing_prefs.h" - #include "components/safe_browsing/core/db/database_manager.h" - #include "components/safe_browsing/core/features.h" - #include "components/safe_browsing/core/realtime/policy_engine.h" -@@ -282,7 +281,6 @@ - #include "components/security_interstitials/content/ssl_cert_reporter.h" - #include "components/security_interstitials/content/ssl_error_handler.h" - #include "components/security_interstitials/content/ssl_error_navigation_throttle.h" --#include "components/signin/public/identity_manager/identity_manager.h" - #include "components/site_engagement/content/site_engagement_service.h" - #include "components/site_isolation/pref_names.h" - #include "components/site_isolation/preloaded_isolated_origins.h" ---- a/chrome/browser/chromeos/lock_screen_apps/lock_screen_profile_creator_impl.cc -+++ b/chrome/browser/chromeos/lock_screen_apps/lock_screen_profile_creator_impl.cc +--- a/chrome/browser/ash/lock_screen_apps/lock_screen_profile_creator_impl.cc ++++ b/chrome/browser/ash/lock_screen_apps/lock_screen_profile_creator_impl.cc @@ -18,7 +18,6 @@ #include "chrome/browser/profiles/profile_manager.h" #include "chrome/common/pref_names.h" @@ -190,7 +172,7 @@ #include "extensions/browser/extension_system.h" namespace lock_screen_apps { -@@ -93,8 +92,6 @@ void LockScreenProfileCreatorImpl::OnPro +@@ -90,8 +89,6 @@ void LockScreenProfileCreatorImpl::OnPro // SafeBrowsingService when the user has safe browsing disabled (reasoning // similar to http://crbug.com/461493). // TODO(tbarzic): Revisit this if webviews get enabled for lock screen apps. @@ -199,8 +181,8 @@ return; } ---- a/chrome/browser/chromeos/lock_screen_apps/lock_screen_profile_creator_impl_unittest.cc -+++ b/chrome/browser/chromeos/lock_screen_apps/lock_screen_profile_creator_impl_unittest.cc +--- a/chrome/browser/ash/lock_screen_apps/lock_screen_profile_creator_impl_unittest.cc ++++ b/chrome/browser/ash/lock_screen_apps/lock_screen_profile_creator_impl_unittest.cc @@ -35,7 +35,6 @@ #include "components/arc/session/arc_session.h" #include "components/crx_file/id_util.h" @@ -209,8 +191,8 @@ #include "content/public/test/browser_task_environment.h" #include "extensions/common/extension.h" #include "extensions/common/extension_builder.h" ---- a/chrome/browser/chromeos/login/signin/device_id_browsertest.cc -+++ b/chrome/browser/chromeos/login/signin/device_id_browsertest.cc +--- a/chrome/browser/ash/login/signin/device_id_browsertest.cc ++++ b/chrome/browser/ash/login/signin/device_id_browsertest.cc @@ -23,7 +23,6 @@ #include "chrome/common/chrome_switches.h" #include "chrome/test/base/in_process_browser_test.h" @@ -249,6 +231,24 @@ // Can't use SetKnownUserDeviceId here, because it forbids changing a device // ID. user_manager::known_user::SetStringPref( +--- a/chrome/browser/chrome_content_browser_client.cc ++++ b/chrome/browser/chrome_content_browser_client.cc +@@ -264,7 +264,6 @@ + #include "components/safe_browsing/content/browser/browser_url_loader_throttle.h" + #include "components/safe_browsing/content/password_protection/password_protection_navigation_throttle.h" + #include "components/safe_browsing/core/browser/url_checker_delegate.h" +-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" + #include "components/safe_browsing/core/db/database_manager.h" + #include "components/safe_browsing/core/features.h" + #include "components/safe_browsing/core/realtime/policy_engine.h" +@@ -274,7 +273,6 @@ + #include "components/security_interstitials/content/ssl_cert_reporter.h" + #include "components/security_interstitials/content/ssl_error_handler.h" + #include "components/security_interstitials/content/ssl_error_navigation_throttle.h" +-#include "components/signin/public/identity_manager/identity_manager.h" + #include "components/site_engagement/content/site_engagement_service.h" + #include "components/site_isolation/pref_names.h" + #include "components/site_isolation/preloaded_isolated_origins.h" --- a/chrome/browser/chromeos/policy/secondary_google_account_signin_policy_handler.cc +++ b/chrome/browser/chromeos/policy/secondary_google_account_signin_policy_handler.cc @@ -8,7 +8,6 @@ @@ -317,15 +317,15 @@ --- a/chrome/browser/enterprise/connectors/connectors_service.cc +++ b/chrome/browser/enterprise/connectors/connectors_service.cc -@@ -23,7 +23,6 @@ +@@ -31,7 +31,6 @@ #include "components/policy/core/common/cloud/machine_level_user_cloud_policy_manager.h" #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" #include "components/policy/core/common/policy_types.h" -#include "components/safe_browsing/core/common/safe_browsing_prefs.h" + #include "components/signin/public/identity_manager/consent_level.h" + #include "components/signin/public/identity_manager/identity_manager.h" #include "components/user_prefs/user_prefs.h" - #include "content/public/browser/browser_context.h" - -@@ -248,20 +247,6 @@ std::vector ConnectorsServi +@@ -345,20 +344,6 @@ std::vector ConnectorsServi base::Optional ConnectorsService::GetDMTokenForRealTimeUrlCheck() const { @@ -385,19 +385,19 @@ #include "components/spellcheck/browser/pref_names.h" #include "components/translate/core/browser/translate_pref_names.h" #include "extensions/browser/extension_pref_value_map.h" -@@ -106,11 +105,6 @@ const PrefMappingEntry kPrefMapping[] = - APIPermission::kPrivacy}, - {"doNotTrackEnabled", prefs::kEnableDoNotTrack, APIPermission::kPrivacy, - APIPermission::kPrivacy}, +@@ -108,11 +107,6 @@ const PrefMappingEntry kPrefMapping[] = + APIPermissionID::kPrivacy}, + {"doNotTrackEnabled", prefs::kEnableDoNotTrack, APIPermissionID::kPrivacy, + APIPermissionID::kPrivacy}, - {"safeBrowsingEnabled", prefs::kSafeBrowsingEnabled, -- APIPermission::kPrivacy, APIPermission::kPrivacy}, +- APIPermissionID::kPrivacy, APIPermissionID::kPrivacy}, - {"safeBrowsingExtendedReportingEnabled", -- prefs::kSafeBrowsingScoutReportingEnabled, APIPermission::kPrivacy, -- APIPermission::kPrivacy}, +- prefs::kSafeBrowsingScoutReportingEnabled, APIPermissionID::kPrivacy, +- APIPermissionID::kPrivacy}, {"searchSuggestEnabled", prefs::kSearchSuggestEnabled, - APIPermission::kPrivacy, APIPermission::kPrivacy}, + APIPermissionID::kPrivacy, APIPermissionID::kPrivacy}, {"spellingServiceEnabled", spellcheck::prefs::kSpellCheckUseSpellingService, -@@ -811,18 +805,6 @@ ExtensionFunction::ResponseAction SetPre +@@ -813,18 +807,6 @@ ExtensionFunction::ResponseAction SetPre base::Value(browser_pref_value->GetBool())); } @@ -416,7 +416,7 @@ preference_api->SetExtensionControlledPref( extension_id(), browser_pref, scope, base::Value::FromUniquePtrValue(std::move(browser_pref_value))); -@@ -876,18 +858,6 @@ ExtensionFunction::ResponseAction ClearP +@@ -878,18 +860,6 @@ ExtensionFunction::ResponseAction ClearP PreferenceAPI::Get(browser_context()) ->RemoveExtensionControlledPref(extension_id(), browser_pref, scope); @@ -491,7 +491,7 @@ #include "content/public/test/browser_task_environment.h" --- a/chrome/browser/extensions/api/settings_private/prefs_util.cc +++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc -@@ -39,7 +39,6 @@ +@@ -41,7 +41,6 @@ #include "components/prefs/pref_service.h" #include "components/privacy_sandbox/privacy_sandbox_prefs.h" #include "components/proxy_config/proxy_config_pref_names.h" @@ -499,7 +499,7 @@ #include "components/search_engines/default_search_manager.h" #include "components/spellcheck/browser/pref_names.h" #include "components/translate/core/browser/translate_pref_names.h" -@@ -278,18 +277,6 @@ const PrefsUtil::TypedPrefMap& PrefsUtil +@@ -282,18 +281,6 @@ const PrefsUtil::TypedPrefMap& PrefsUtil settings_api::PrefType::PREF_TYPE_BOOLEAN; } @@ -520,7 +520,7 @@ settings_api::PrefType::PREF_TYPE_BOOLEAN; --- a/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc +++ b/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc -@@ -636,9 +636,6 @@ IN_PROC_BROWSER_TEST_F(ExtensionWebstore +@@ -643,9 +643,6 @@ IN_PROC_BROWSER_TEST_F(ExtensionWebstore IN_PROC_BROWSER_TEST_F(ExtensionWebstorePrivateGetReferrerChainApiTest, GetReferrerChainForNonSafeBrowsingUser) { PrefService* pref_service = browser()->profile()->GetPrefs(); @@ -529,18 +529,18 @@ - pref_service->SetBoolean(prefs::kSafeBrowsingEnabled, false); GURL page_url = GetTestServerURLWithReferrers("empty_referrer_chain.html"); - ASSERT_TRUE(RunPageTest(page_url.spec())); + ASSERT_TRUE(RunExtensionTest({.page_url = page_url.spec().c_str()})); --- a/chrome/browser/extensions/extension_allowlist.cc +++ b/chrome/browser/extensions/extension_allowlist.cc -@@ -6,7 +6,6 @@ - - #include "chrome/browser/extensions/extension_service.h" +@@ -9,7 +9,6 @@ #include "chrome/browser/profiles/profile.h" + #include "chrome/browser/safe_browsing/safe_browsing_metrics_collector.h" + #include "chrome/browser/safe_browsing/safe_browsing_metrics_collector_factory.h" -#include "components/safe_browsing/core/common/safe_browsing_prefs.h" #include "extensions/browser/allowlist_state.h" #include "extensions/browser/extension_registry.h" #include "extensions/browser/extension_system.h" -@@ -28,10 +27,6 @@ void ExtensionAllowlist::Init() { +@@ -68,10 +67,6 @@ ExtensionAllowlist::ExtensionAllowlist(P // Register to Enhanced Safe Browsing setting changes for allowlist // enforcements. pref_change_registrar_.Init(profile_->GetPrefs()); @@ -548,23 +548,44 @@ - prefs::kSafeBrowsingEnhanced, - base::BindRepeating(&ExtensionAllowlist::OnSafeBrowsingEnhancedChanged, - base::Unretained(this))); - - if (is_allowlist_enforced_) { - ActivateAllowlistEnforcement(); -@@ -93,10 +88,6 @@ bool ExtensionAllowlist::ShouldDisplayWa } - void ExtensionAllowlist::SetAllowlistEnforcedField() { -- is_allowlist_enforced_ = -- base::FeatureList::IsEnabled( -- extensions_features::kEnforceSafeBrowsingExtensionAllowlist) && -- safe_browsing::IsEnhancedProtectionEnabled(*profile_->GetPrefs()); + ExtensionAllowlist::~ExtensionAllowlist() = default; +@@ -240,15 +235,8 @@ void ExtensionAllowlist::OnExtensionInst } - void ExtensionAllowlist::ActivateAllowlistEnforcement() { + void ExtensionAllowlist::SetAllowlistEnforcementFields() { +- if (safe_browsing::IsEnhancedProtectionEnabled(*profile_->GetPrefs())) { +- warnings_enabled_ = base::FeatureList::IsEnabled( +- extensions_features::kSafeBrowsingCrxAllowlistShowWarnings); +- should_auto_disable_extensions_ = base::FeatureList::IsEnabled( +- extensions_features::kSafeBrowsingCrxAllowlistAutoDisable); +- } else { + warnings_enabled_ = false; + should_auto_disable_extensions_ = false; +- } + } + + // `ApplyEnforcement` can be called when an extension becomes not allowlisted or +@@ -398,15 +386,6 @@ void ExtensionAllowlist::NotifyExtension + } + + void ExtensionAllowlist::ReportExtensionReEnabledEvent() { +- auto* metrics_collector = +- safe_browsing::SafeBrowsingMetricsCollectorFactory::GetForProfile( +- profile_); +- DCHECK(metrics_collector); +- if (metrics_collector) { +- metrics_collector->AddSafeBrowsingEventToPref( +- safe_browsing::SafeBrowsingMetricsCollector::EventType:: +- NON_ALLOWLISTED_EXTENSION_RE_ENABLED); +- } + } + + } // namespace extensions --- a/chrome/browser/extensions/installed_loader.cc +++ b/chrome/browser/extensions/installed_loader.cc -@@ -703,12 +703,6 @@ void InstalledLoader::RecordExtensionsMe +@@ -696,12 +696,6 @@ void InstalledLoader::RecordExtensionsMe enabled_not_allowlisted_count); base::UmaHistogramCounts100("Extensions.NotAllowlistedDisabled", disabled_not_allowlisted_count); @@ -579,7 +600,7 @@ int InstalledLoader::GetCreationFlags(const ExtensionInfo* info) { --- a/chrome/browser/net/profile_network_context_service.cc +++ b/chrome/browser/net/profile_network_context_service.cc -@@ -41,7 +41,6 @@ +@@ -42,7 +42,6 @@ #include "components/pref_registry/pref_registry_syncable.h" #include "components/prefs/pref_registry_simple.h" #include "components/prefs/pref_service.h" @@ -587,7 +608,7 @@ #include "content/public/browser/browser_context.h" #include "content/public/browser/browser_thread.h" #include "content/public/browser/network_service_instance.h" -@@ -755,13 +754,6 @@ void ProfileNetworkContextService::Confi +@@ -756,13 +755,6 @@ void ProfileNetworkContextService::Confi network_context_params->enable_certificate_reporting = true; network_context_params->enable_expect_ct_reporting = true; @@ -603,7 +624,7 @@ #if BUILDFLAG(TRIAL_COMPARISON_CERT_VERIFIER_SUPPORTED) --- a/chrome/browser/net/trial_comparison_cert_verifier_browsertest.cc +++ b/chrome/browser/net/trial_comparison_cert_verifier_browsertest.cc -@@ -12,7 +12,6 @@ +@@ -11,7 +11,6 @@ #include "chrome/test/base/in_process_browser_test.h" #include "chrome/test/base/ui_test_utils.h" #include "components/metrics/content/subprocess_metrics_provider.h" @@ -613,15 +634,15 @@ #include "net/cert/trial_comparison_cert_verifier.h" --- a/chrome/browser/net/trial_comparison_cert_verifier_controller.cc +++ b/chrome/browser/net/trial_comparison_cert_verifier_controller.cc -@@ -20,7 +20,6 @@ +@@ -19,7 +19,6 @@ + #include "chrome/browser/safe_browsing/certificate_reporting_service.h" #include "chrome/browser/safe_browsing/certificate_reporting_service_factory.h" #include "chrome/common/channel_info.h" - #include "chrome/common/chrome_features.h" -#include "components/safe_browsing/core/common/safe_browsing_prefs.h" #include "components/security_interstitials/content/certificate_error_report.h" #include "content/public/browser/browser_task_traits.h" #include "content/public/browser/browser_thread.h" -@@ -43,12 +42,6 @@ TrialComparisonCertVerifierController::T +@@ -42,12 +41,6 @@ TrialComparisonCertVerifierController::T // enabled. return; } @@ -655,17 +676,17 @@ #include "mojo/public/cpp/bindings/pending_receiver.h" #include "mojo/public/cpp/bindings/pending_remote.h" #include "mojo/public/cpp/bindings/receiver_set.h" -@@ -70,7 +69,6 @@ class TrialComparisonCertVerifierControl +@@ -71,7 +70,6 @@ class TrialComparisonCertVerifierControl void RefreshState(); Profile* profile_; - PrefChangeRegistrar pref_change_registrar_; - mojo::ReceiverSet - receiver_set_; + mojo::ReceiverSet< + cert_verifier::mojom::TrialComparisonCertVerifierReportClient> --- a/chrome/browser/net/trial_comparison_cert_verifier_controller_unittest.cc +++ b/chrome/browser/net/trial_comparison_cert_verifier_controller_unittest.cc -@@ -21,7 +21,6 @@ +@@ -20,7 +20,6 @@ #include "chrome/test/base/testing_browser_process.h" #include "chrome/test/base/testing_profile.h" #include "chrome/test/base/testing_profile_manager.h" @@ -683,7 +704,7 @@ #include "components/signin/public/identity_manager/identity_manager.h" namespace { -@@ -44,8 +43,7 @@ bool IsUserSignedInAndSyncing(Profile* p +@@ -43,8 +42,7 @@ bool IsUserSignedInAndSyncing(Profile* p // Returns whether the effective value of the Safe Browsing preferences for // |profile| is standard protection. bool IsSafeBrowsingStandard(Profile* profile) { @@ -693,7 +714,7 @@ } } // namespace -@@ -64,16 +62,6 @@ GeneratedPasswordLeakDetectionPref::Gene +@@ -63,16 +61,6 @@ GeneratedPasswordLeakDetectionPref::Gene base::BindRepeating( &GeneratedPasswordLeakDetectionPref::OnSourcePreferencesChanged, base::Unretained(this))); @@ -709,10 +730,10 @@ - base::Unretained(this))); if (auto* identity_manager = IdentityManagerFactory::GetForProfile(profile)) - identity_manager_observer_.Add(identity_manager); + identity_manager_observer_.Observe(identity_manager); --- a/chrome/browser/password_manager/password_store_factory.cc +++ b/chrome/browser/password_manager/password_store_factory.cc -@@ -163,16 +163,6 @@ PasswordStoreFactory::BuildServiceInstan +@@ -164,16 +164,6 @@ PasswordStoreFactory::BuildServiceInstan profile->GetPrefs(), base::TimeDelta::FromSeconds(60), network_context_getter); @@ -726,9 +747,9 @@ - ps->SetPasswordStoreSigninNotifier(std::move(notifier)); -#endif - - return ps; - } - + if (base::FeatureList::IsEnabled( + password_manager::features::kFillingAcrossAffiliatedWebsites)) { + // Try to create affiliation service without awaiting synced state changes. --- a/chrome/browser/policy/browser_signin_policy_handler.cc +++ b/chrome/browser/policy/browser_signin_policy_handler.cc @@ -15,7 +15,6 @@ @@ -775,7 +796,7 @@ } --- a/chrome/browser/policy/configuration_policy_handler_list_factory.cc +++ b/chrome/browser/policy/configuration_policy_handler_list_factory.cc -@@ -78,12 +78,9 @@ +@@ -81,12 +81,9 @@ #include "components/policy/core/common/policy_pref_names.h" #include "components/policy/core/common/schema.h" #include "components/policy/policy_constants.h" @@ -788,7 +809,7 @@ #include "components/spellcheck/spellcheck_buildflags.h" #include "components/sync/base/pref_names.h" #include "components/sync/driver/sync_policy_handler.h" -@@ -185,12 +182,6 @@ const PolicyToPreferenceMapEntry kSimple +@@ -192,12 +189,6 @@ const PolicyToPreferenceMapEntry kSimple { key::kQuicAllowed, prefs::kQuicAllowed, base::Value::Type::BOOLEAN }, @@ -801,7 +822,7 @@ { key::kUrlKeyedAnonymizedDataCollectionEnabled, unified_consent::prefs::kUrlKeyedAnonymizedDataCollectionEnabled, base::Value::Type::BOOLEAN }, -@@ -320,15 +311,6 @@ const PolicyToPreferenceMapEntry kSimple +@@ -327,15 +318,6 @@ const PolicyToPreferenceMapEntry kSimple { key::kGloballyScopeHTTPAuthCacheEnabled, prefs::kGloballyScopeHTTPAuthCacheEnabled, base::Value::Type::BOOLEAN }, @@ -817,7 +838,7 @@ { key::kSafeSitesFilterBehavior, policy_prefs::kSafeSitesFilterBehavior, base::Value::Type::INTEGER }, -@@ -443,18 +425,12 @@ const PolicyToPreferenceMapEntry kSimple +@@ -447,18 +429,12 @@ const PolicyToPreferenceMapEntry kSimple { key::kMaxConnectionsPerProxy, prefs::kMaxConnectionsPerProxy, base::Value::Type::INTEGER }, @@ -833,10 +854,10 @@ - { key::kDisableSafeBrowsingProceedAnyway, - prefs::kSafeBrowsingProceedAnywayDisabled, - base::Value::Type::BOOLEAN }, - { key::kSSLErrorOverrideAllowed, - prefs::kSSLErrorOverrideAllowed, + { key::kCECPQ2Enabled, + prefs::kCECPQ2Enabled, base::Value::Type::BOOLEAN }, -@@ -611,9 +587,6 @@ const PolicyToPreferenceMapEntry kSimple +@@ -637,9 +613,6 @@ const PolicyToPreferenceMapEntry kSimple { key::kIntranetRedirectBehavior, omnibox::kIntranetRedirectBehavior, base::Value::Type::INTEGER }, @@ -846,7 +867,7 @@ { key::kAccessibilityImageLabelsEnabled, prefs::kAccessibilityImageLabelsEnabled, base::Value::Type::BOOLEAN }, -@@ -1455,8 +1428,6 @@ std::unique_ptrAddHandler(std::make_unique()); handlers->AddHandler(std::make_unique()); handlers->AddHandler(std::make_unique()); @@ -855,7 +876,7 @@ handlers->AddHandler(std::make_unique( std::make_unique(key::kAuthServerWhitelist, prefs::kAuthServerAllowlist, -@@ -1480,9 +1451,6 @@ std::unique_ptrAddHandler(std::make_unique()); handlers->AddHandler(std::make_unique()); -@@ -1491,12 +1459,6 @@ std::unique_ptrAddHandler(std::make_unique( key::kURLAllowlist, policy_prefs::kUrlAllowlist, base::Value::Type::LIST)); @@ -875,10 +896,10 @@ - SCHEMA_ALLOW_UNKNOWN, - SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, - SimpleSchemaValidatingPolicyHandler::MANDATORY_ALLOWED)); - - #if defined(OS_ANDROID) handlers->AddHandler( -@@ -1571,12 +1533,6 @@ std::unique_ptr()); + +@@ -1629,12 +1591,6 @@ std::unique_ptrAddHandler(std::make_unique( key::kBrowsingDataLifetime, browsing_data::prefs::kBrowsingDataLifetime, -@@ -1856,17 +1812,6 @@ std::unique_ptr( key::kForceBrowserSignin, prefs::kForceBrowserSignin, base::Value::Type::BOOLEAN)); @@ -911,7 +932,7 @@ std::make_unique(chrome_schema))); --- a/chrome/browser/prefs/browser_prefs.cc +++ b/chrome/browser/prefs/browser_prefs.cc -@@ -134,7 +134,6 @@ +@@ -133,7 +133,6 @@ #include "components/prefs/pref_service.h" #include "components/privacy_sandbox/privacy_sandbox_prefs.h" #include "components/proxy_config/pref_proxy_config_tracker_impl.h" @@ -919,7 +940,7 @@ #include "components/search_engines/template_url_prepopulate_data.h" #include "components/security_interstitials/content/insecure_form_blocking_page.h" #include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h" -@@ -711,7 +710,6 @@ void RegisterLocalState(PrefRegistrySimp +@@ -709,7 +708,6 @@ void RegisterLocalState(PrefRegistrySimp ProfileNetworkContextService::RegisterLocalStatePrefs(registry); profiles::RegisterPrefs(registry); RegisterScreenshotPrefs(registry); @@ -927,7 +948,7 @@ secure_origin_allowlist::RegisterPrefs(registry); sessions::SessionIdGenerator::RegisterPrefs(registry); SSLConfigServiceManager::RegisterPrefs(registry); -@@ -947,7 +945,6 @@ void RegisterProfilePrefs(user_prefs::Pr +@@ -952,7 +950,6 @@ void RegisterProfilePrefs(user_prefs::Pr PushMessagingAppIdentifier::RegisterProfilePrefs(registry); QuietNotificationPermissionUiState::RegisterProfilePrefs(registry); RegisterBrowserUserPrefs(registry); @@ -937,7 +958,7 @@ registry); --- a/chrome/browser/prefs/chrome_command_line_pref_store.cc +++ b/chrome/browser/prefs/chrome_command_line_pref_store.cc -@@ -28,7 +28,6 @@ +@@ -29,7 +29,6 @@ #include "components/language/core/browser/pref_names.h" #include "components/proxy_config/proxy_config_dictionary.h" #include "components/proxy_config/proxy_config_pref_names.h" @@ -945,7 +966,7 @@ #include "components/safe_browsing/core/common/safebrowsing_switches.h" #include "components/sync/base/pref_names.h" #include "content/public/common/content_switches.h" -@@ -74,8 +73,6 @@ const CommandLinePrefStore::BooleanSwitc +@@ -76,8 +75,6 @@ const CommandLinePrefStore::BooleanSwitc {switches::kAllowCrossOriginAuthPrompt, prefs::kAllowCrossOriginAuthPrompt, true}, {switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true}, @@ -1036,7 +1057,7 @@ #include "components/signin/public/identity_manager/consent_level.h" --- a/chrome/browser/profiles/gaia_info_update_service_unittest.cc +++ b/chrome/browser/profiles/gaia_info_update_service_unittest.cc -@@ -29,7 +29,6 @@ +@@ -30,7 +30,6 @@ #include "chrome/test/base/testing_profile_manager.h" #include "components/prefs/pref_service.h" #include "components/profile_metrics/state.h" @@ -1054,7 +1075,7 @@ #include "components/signin/public/identity_manager/account_info.h" #include "ui/base/resource/resource_bundle.h" #include "ui/gfx/canvas.h" -@@ -424,7 +423,7 @@ bool ProfileAttributesEntry::IsAuthError +@@ -418,7 +417,7 @@ bool ProfileAttributesEntry::IsAuthError } bool ProfileAttributesEntry::IsSignedInWithCredentialProvider() const { @@ -1063,7 +1084,7 @@ } size_t ProfileAttributesEntry::GetAvatarIconIndex() const { -@@ -573,9 +572,6 @@ void ProfileAttributesEntry::SetIsSignin +@@ -558,9 +557,6 @@ void ProfileAttributesEntry::SetIsSignin } void ProfileAttributesEntry::SetSignedInWithCredentialProvider(bool value) { @@ -1076,8 +1097,8 @@ --- a/chrome/browser/profiles/profile_impl.cc +++ b/chrome/browser/profiles/profile_impl.cc @@ -137,7 +137,6 @@ - #include "components/prefs/pref_service.h" #include "components/prefs/scoped_user_pref_update.h" + #include "components/profile_metrics/browser_profile_type.h" #include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h" -#include "components/signin/public/base/signin_pref_names.h" #include "components/signin/public/identity_manager/identity_manager.h" @@ -1085,7 +1106,7 @@ #include "components/sync_preferences/pref_service_syncable.h" --- a/chrome/browser/profiles/profile_manager.cc +++ b/chrome/browser/profiles/profile_manager.cc -@@ -90,7 +90,6 @@ +@@ -91,7 +91,6 @@ #include "components/search_engines/default_search_manager.h" #include "components/signin/public/base/signin_buildflags.h" #include "components/signin/public/base/signin_metrics.h" @@ -1093,7 +1114,7 @@ #include "components/signin/public/identity_manager/consent_level.h" #include "components/signin/public/identity_manager/identity_manager.h" #include "components/signin/public/identity_manager/primary_account_mutator.h" -@@ -1908,8 +1907,7 @@ void ProfileManager::AddProfileToStorage +@@ -1961,8 +1960,7 @@ void ProfileManager::AddProfileToStorage entry->SetAuthInfo(account_info.gaia, username, is_consented_primary_account); @@ -1103,7 +1124,7 @@ #if !defined(OS_ANDROID) && !BUILDFLAG(IS_CHROMEOS_ASH) // Sign out if force-sign-in policy is enabled and profile is not signed -@@ -1972,14 +1970,11 @@ void ProfileManager::AddProfileToStorage +@@ -2025,14 +2023,11 @@ void ProfileManager::AddProfileToStorage entry->SetIsOmitted(true); } @@ -1129,17 +1150,6 @@ #include "components/signin/public/identity_manager/account_info.h" #include "components/signin/public/identity_manager/identity_manager.h" #include "content/public/browser/browser_thread.h" -@@ -290,9 +289,7 @@ bool IsLockAvailable(Profile* profile) { - base::Optional primary_account_info = - identity_manager->FindExtendedAccountInfoForAccountWithRefreshToken( - identity_manager->GetPrimaryAccountInfo(signin::ConsentLevel::kSync)); -- std::string hosted_domain = primary_account_info.has_value() -- ? primary_account_info.value().hosted_domain -- : ""; -+ std::string hosted_domain; - - // TODO(mlerman): Prohibit only users who authenticate using SAML. Until then, - // prohibited users who use hosted domains (aside from google.com). --- a/chrome/browser/profiles/profiles_state.cc +++ b/chrome/browser/profiles/profiles_state.cc @@ -42,7 +42,6 @@ @@ -1167,7 +1177,7 @@ --- a/chrome/browser/resources/settings/privacy_page/privacy_page.html +++ b/chrome/browser/resources/settings/privacy_page/privacy_page.html -@@ -676,48 +676,6 @@ +@@ -713,48 +713,6 @@ @@ -1178,8 +1188,8 @@ - search-label="$i18n{siteSettingsAllSitesSearch}" - search-term="{{searchFilter_}}"> - --- a/chrome/browser/resources/settings/privacy_page/security_page.js +++ b/chrome/browser/resources/settings/privacy_page/security_page.js -@@ -138,14 +138,6 @@ Polymer({ +@@ -129,14 +129,6 @@ Polymer({ /** @override */ ready() { @@ -1362,7 +1371,7 @@ this.browserProxy_ = PrivacyPageBrowserProxyImpl.getInstance(); this.metricsBrowserProxy_ = MetricsBrowserProxyImpl.getInstance(); -@@ -207,8 +199,7 @@ Polymer({ +@@ -198,8 +190,7 @@ Polymer({ * @private */ getDisabledExtendedSafeBrowsing_() { @@ -1470,7 +1479,7 @@ --- a/chrome/browser/safe_browsing/certificate_reporting_service.cc +++ b/chrome/browser/safe_browsing/certificate_reporting_service.cc -@@ -12,7 +12,6 @@ +@@ -14,7 +14,6 @@ #include "chrome/browser/profiles/profile.h" #include "chrome/browser/safe_browsing/safe_browsing_service.h" #include "components/prefs/pref_service.h" @@ -1480,7 +1489,7 @@ #include "services/network/public/cpp/shared_url_loader_factory.h" --- a/chrome/browser/safe_browsing/certificate_reporting_service_browsertest.cc +++ b/chrome/browser/safe_browsing/certificate_reporting_service_browsertest.cc -@@ -25,7 +25,6 @@ +@@ -27,7 +27,6 @@ #include "chrome/test/base/in_process_browser_test.h" #include "chrome/test/base/ui_test_utils.h" #include "components/prefs/pref_service.h" @@ -1520,15 +1529,15 @@ namespace safe_browsing { --- a/chrome/browser/safe_browsing/chrome_password_protection_service.cc +++ b/chrome/browser/safe_browsing/chrome_password_protection_service.cc -@@ -53,7 +53,6 @@ - #include "components/safe_browsing/content/password_protection/password_protection_navigation_throttle.h" +@@ -54,7 +54,6 @@ #include "components/safe_browsing/content/password_protection/password_protection_request_content.h" #include "components/safe_browsing/content/web_ui/safe_browsing_ui.h" + #include "components/safe_browsing/core/browser/sync/safe_browsing_primary_account_token_fetcher.h" -#include "components/safe_browsing/core/common/safe_browsing_prefs.h" #include "components/safe_browsing/core/common/safebrowsing_constants.h" #include "components/safe_browsing/core/common/utils.h" #include "components/safe_browsing/core/db/database_manager.h" -@@ -1284,14 +1283,6 @@ bool ChromePasswordProtectionService::Ha +@@ -1286,14 +1285,6 @@ bool ChromePasswordProtectionService::Ha } void ChromePasswordProtectionService::OnWarningTriggerChanged() { @@ -1543,7 +1552,7 @@ // Clears captured enterprise password hashes or GSuite sync password hashes. scoped_refptr password_store = GetProfilePasswordStore(); -@@ -1445,7 +1436,7 @@ PrefService* ChromePasswordProtectionSer +@@ -1447,7 +1438,7 @@ PrefService* ChromePasswordProtectionSer } bool ChromePasswordProtectionService::IsSafeBrowsingEnabled() { @@ -1552,7 +1561,7 @@ } bool ChromePasswordProtectionService::IsExtendedReporting() { -@@ -1465,37 +1456,7 @@ bool ChromePasswordProtectionService::Is +@@ -1467,37 +1458,7 @@ bool ChromePasswordProtectionService::Is bool ChromePasswordProtectionService::IsPingingEnabled( LoginReputationClientRequest::TriggerType trigger_type, ReusedPasswordAccountType password_type) { @@ -1591,7 +1600,7 @@ } RequestOutcome ChromePasswordProtectionService::GetPingNotSentReason( -@@ -1690,24 +1651,6 @@ MaybeCreateNavigationThrottle(content::N +@@ -1699,22 +1660,6 @@ MaybeCreateNavigationThrottle(content::N : nullptr; } @@ -1600,9 +1609,7 @@ - ReusedPasswordAccountType password_type) const { - if (password_type.account_type() == ReusedPasswordAccountType::GMAIL || - (password_type.account_type() == -- ReusedPasswordAccountType::SAVED_PASSWORD && -- base::FeatureList::IsEnabled( -- safe_browsing::kPasswordProtectionForSavedPasswords))) +- ReusedPasswordAccountType::SAVED_PASSWORD)) - return PHISHING_REUSE; - - bool is_policy_managed = profile_->GetPrefs()->HasPrefPath( @@ -1686,7 +1693,7 @@ #include "components/safe_browsing/core/file_type_policies.h" --- a/chrome/browser/safe_browsing/download_protection/download_protection_service_unittest.cc +++ b/chrome/browser/safe_browsing/download_protection/download_protection_service_unittest.cc -@@ -76,7 +76,6 @@ +@@ -79,7 +79,6 @@ #include "components/prefs/pref_service.h" #include "components/prefs/scoped_user_pref_update.h" #include "components/safe_browsing/content/web_ui/safe_browsing_ui.h" @@ -1839,7 +1846,7 @@ #include "content/public/test/browser_task_environment.h" --- a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc +++ b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc -@@ -39,7 +39,6 @@ +@@ -40,7 +40,6 @@ #include "chrome/browser/safe_browsing/safe_browsing_service.h" #include "chrome/common/pref_names.h" #include "components/prefs/pref_service.h" @@ -1849,7 +1856,7 @@ #include "content/public/browser/browser_thread.h" --- a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service_unittest.cc +++ b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service_unittest.cc -@@ -34,7 +34,6 @@ +@@ -35,7 +35,6 @@ #include "chrome/test/base/testing_browser_process.h" #include "chrome/test/base/testing_profile.h" #include "chrome/test/base/testing_profile_manager.h" @@ -1869,7 +1876,7 @@ #include "content/public/test/browser_task_environment.h" --- a/chrome/browser/safe_browsing/incident_reporting/state_store.cc +++ b/chrome/browser/safe_browsing/incident_reporting/state_store.cc -@@ -13,7 +13,6 @@ +@@ -14,7 +14,6 @@ #include "chrome/browser/safe_browsing/incident_reporting/incident.h" #include "chrome/browser/safe_browsing/incident_reporting/platform_state_store.h" #include "components/prefs/pref_service.h" @@ -1909,7 +1916,7 @@ #include "components/safe_browsing/core/db/util.h" --- a/chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.cc +++ b/chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.cc -@@ -249,10 +249,7 @@ GURL SafeBrowsingNavigationObserverManag +@@ -298,10 +298,7 @@ GURL SafeBrowsingNavigationObserverManag // static bool SafeBrowsingNavigationObserverManager::IsEnabledAndReady( Profile* profile) { @@ -2031,7 +2038,7 @@ #include "components/safe_browsing/core/db/database_manager.h" #include "components/safe_browsing/core/features.h" #include "components/safe_browsing/core/ping_manager.h" -@@ -143,11 +142,9 @@ bool AndroidTelemetryService::CanSendPin +@@ -140,11 +139,9 @@ bool AndroidTelemetryService::CanSendPin return false; } @@ -2179,14 +2186,14 @@ #include "components/signin/public/identity_manager/scope_set.h" --- a/chrome/browser/signin/chromeos_mirror_account_consistency_browsertest.cc +++ b/chrome/browser/signin/chromeos_mirror_account_consistency_browsertest.cc -@@ -20,7 +20,6 @@ +@@ -21,7 +21,6 @@ #include "components/network_session_configurator/common/network_switches.h" #include "components/prefs/pref_service.h" #include "components/signin/core/browser/signin_header_helper.h" -#include "components/signin/public/base/signin_pref_names.h" + #include "components/signin/public/identity_manager/identity_test_utils.h" #include "components/user_manager/user.h" #include "components/user_manager/user_manager.h" - #include "content/public/test/browser_test.h" --- a/chrome/browser/signin/dice_browsertest.cc +++ b/chrome/browser/signin/dice_browsertest.cc @@ -61,7 +61,6 @@ @@ -2247,8 +2254,8 @@ // Display the signin promo if the user is not signed in. --- a/chrome/browser/signin/signin_ui_util.cc +++ b/chrome/browser/signin/signin_ui_util.cc -@@ -32,7 +32,6 @@ - #include "chrome/common/pref_names.h" +@@ -34,7 +34,6 @@ + #include "components/feature_engagement/public/tracker.h" #include "components/prefs/pref_service.h" #include "components/signin/public/base/signin_metrics.h" -#include "components/signin/public/base/signin_pref_names.h" @@ -2294,7 +2301,7 @@ } // Extracts preferences to consider while signing in through credential -@@ -358,20 +354,7 @@ bool ReauthWithCredentialProviderIfPossi +@@ -350,20 +346,7 @@ bool ReauthWithCredentialProviderIfPossi // - The profile is marked as having been signed in with a system credential. // - The profile is already signed in. // - The profile is in an auth error state. @@ -2357,7 +2364,7 @@ } --- a/chrome/browser/ssl/ssl_browsertest.cc +++ b/chrome/browser/ssl/ssl_browsertest.cc -@@ -91,7 +91,6 @@ +@@ -92,7 +92,6 @@ #include "components/policy/core/common/policy_types.h" #include "components/policy/policy_constants.h" #include "components/prefs/testing_pref_service.h" @@ -2367,7 +2374,7 @@ #include "components/security_interstitials/content/captive_portal_blocking_page.h" --- a/chrome/browser/ssl/ssl_error_controller_client.cc +++ b/chrome/browser/ssl/ssl_error_controller_client.cc -@@ -21,7 +21,6 @@ +@@ -23,7 +23,6 @@ #include "chrome/browser/ssl/stateful_ssl_host_state_delegate_factory.h" #include "chrome/common/pref_names.h" #include "chrome/common/url_constants.h" @@ -2435,7 +2442,7 @@ InitCommandState(); -@@ -1525,7 +1520,7 @@ void BrowserCommandController::UpdateSho +@@ -1523,7 +1518,7 @@ void BrowserCommandController::UpdateSho return; command_updater_.UpdateCommandEnabled( @@ -2474,7 +2481,7 @@ #include "components/signin/public/identity_manager/identity_manager.h" #endif -@@ -498,13 +497,7 @@ void ShowBrowserSignin(Browser* browser, +@@ -483,13 +482,7 @@ void ShowBrowserSignin(Browser* browser, void ShowBrowserSigninOrSettings(Browser* browser, signin_metrics::AccessPoint access_point) { @@ -2509,7 +2516,7 @@ #include "components/signin/public/identity_manager/consent_level.h" #include "components/signin/public/identity_manager/primary_account_mutator.h" #include "components/strings/grit/components_strings.h" -@@ -569,11 +568,6 @@ void ProfileMenuView::BuildAutofillButto +@@ -566,11 +565,6 @@ void ProfileMenuView::BuildAutofillButto void ProfileMenuView::BuildSyncInfo() { Profile* profile = browser()->profile(); @@ -2541,7 +2548,7 @@ url_(web_contents->GetLastCommittedURL()), password_type_(password_type) { bool show_check_passwords = false; -@@ -158,31 +157,13 @@ PasswordReuseModalWarningDialog::Passwor +@@ -158,34 +157,13 @@ PasswordReuseModalWarningDialog::Passwor SetCancelCallback(make_done_callback(WarningAction::IGNORE_WARNING)); SetCloseCallback(make_done_callback(WarningAction::CLOSE)); @@ -2553,7 +2560,7 @@ - - if (password_type.account_type() == - ReusedPasswordAccountType::SAVED_PASSWORD) { -- const base::string16 message_body = +- const std::u16string message_body = - service_->GetWarningDetailText(password_type, &placeholder_offsets); - - CreateSavedPasswordReuseModalWarningDialog( @@ -2561,7 +2568,10 @@ - placeholder_offsets); - } else { - views::Label* message_body_label = CreateMessageBodyLabel( -- l10n_util::GetStringUTF16(IDS_PAGE_INFO_CHANGE_PASSWORD_DETAILS)); +- service_ +- ? service_->GetWarningDetailText(password_type, +- &placeholder_offsets) +- : l10n_util::GetStringUTF16(IDS_PAGE_INFO_CHANGE_PASSWORD_DETAILS)); - CreateGaiaPasswordReuseModalWarningDialog(message_body_label); - } + views::Label* message_body_label = CreateMessageBodyLabel( @@ -2614,8 +2624,8 @@ - prefs::kSigninAllowed); + false; if (is_signin_allowed) { - base::string16 signed_in_link = l10n_util::GetStringUTF16( - IDS_SYNC_PROMO_NOT_SIGNED_IN_STATUS_LINK); + std::u16string signed_in_link = + l10n_util::GetStringUTF16(IDS_SYNC_PROMO_NOT_SIGNED_IN_STATUS_LINK); @@ -211,8 +209,6 @@ bool AppLauncherLoginHandler::ShouldShow // UI and the avatar menu don't exist on that platform. return false; @@ -2638,8 +2648,8 @@ #include "content/public/browser/render_process_host.h" --- a/chrome/browser/ui/webui/management/management_ui_handler.cc +++ b/chrome/browser/ui/webui/management/management_ui_handler.cc -@@ -26,7 +26,6 @@ - #include "chrome/browser/profiles/profile.h" +@@ -29,7 +29,6 @@ + #include "chrome/browser/ui/managed_ui.h" #include "chrome/common/chrome_features.h" #include "chrome/common/pref_names.h" -#include "components/safe_browsing/core/common/safe_browsing_prefs.h" @@ -2747,7 +2757,7 @@ IdentityManagerFactory::GetInstance()->GetForProfile(profile_)); --- a/chrome/browser/ui/webui/settings/safety_check_handler.cc +++ b/chrome/browser/ui/webui/settings/safety_check_handler.cc -@@ -26,7 +26,6 @@ +@@ -28,7 +28,6 @@ #include "chrome/grit/chromium_strings.h" #include "chrome/grit/generated_resources.h" #include "components/prefs/pref_service.h" @@ -2765,7 +2775,7 @@ #include "components/signin/public/base/signin_buildflags.h" #include "components/strings/grit/components_chromium_strings.h" #include "components/strings/grit/components_strings.h" -@@ -1314,46 +1313,6 @@ void AddPrivacyStrings(content::WebUIDat +@@ -1325,46 +1324,6 @@ void AddPrivacyStrings(content::WebUIDat {"clearBrowsingData", IDS_SETTINGS_CLEAR_BROWSING_DATA}, {"clearBrowsingDataDescription", IDS_SETTINGS_CLEAR_DATA_DESCRIPTION}, {"titleAndCount", IDS_SETTINGS_TITLE_AND_COUNT}, @@ -2812,7 +2822,7 @@ {"safeBrowsingSectionLabel", IDS_SETTINGS_SAFEBROWSING_SECTION_LABEL}, {"syncAndGoogleServicesPrivacyDescription", IDS_SETTINGS_SYNC_AND_GOOGLE_SERVICES_PRIVACY_DESC_UNIFIED_CONSENT}, -@@ -2321,11 +2280,6 @@ void AddSiteSettingsStrings(content::Web +@@ -2395,11 +2354,6 @@ void AddSiteSettingsStrings(content::Web html_source->AddLocalizedStrings(kSensorsLocalizedStrings); html_source->AddBoolean( @@ -2826,7 +2836,7 @@ --- a/chrome/browser/ui/webui/settings/settings_ui.cc +++ b/chrome/browser/ui/webui/settings/settings_ui.cc -@@ -72,7 +72,6 @@ +@@ -74,7 +74,6 @@ #include "components/pref_registry/pref_registry_syncable.h" #include "components/prefs/pref_service.h" #include "components/safe_browsing/core/features.h" @@ -2834,7 +2844,7 @@ #include "content/public/browser/url_data_source.h" #include "content/public/browser/web_contents.h" #include "content/public/browser/web_ui.h" -@@ -249,9 +248,7 @@ SettingsUI::SettingsUI(content::WebUI* w +@@ -255,9 +254,7 @@ SettingsUI::SettingsUI(content::WebUI* w std::make_unique()); #endif // OS_WIN && BUILDFLAG(GOOGLE_CHROME_BRANDING) @@ -2843,11 +2853,11 @@ - prefs::kSigninAllowed)); + html_source->AddBoolean("signinAllowed", false); - html_source->AddBoolean( - "safeBrowsingEnhancedEnabled", + html_source->AddBoolean("showImportPasswords", + base::FeatureList::IsEnabled( --- a/chrome/browser/ui/webui/signin/dice_turn_sync_on_helper.cc +++ b/chrome/browser/ui/webui/signin/dice_turn_sync_on_helper.cc -@@ -45,7 +45,6 @@ +@@ -44,7 +44,6 @@ #include "components/policy/core/common/management/platform_management_service.h" #include "components/prefs/pref_service.h" #include "components/signin/public/base/signin_metrics.h" @@ -2855,7 +2865,7 @@ #include "components/signin/public/identity_manager/accounts_mutator.h" #include "components/signin/public/identity_manager/identity_manager.h" #include "components/signin/public/identity_manager/primary_account_mutator.h" -@@ -250,8 +249,7 @@ DiceTurnSyncOnHelper::DiceTurnSyncOnHelp +@@ -248,8 +247,7 @@ DiceTurnSyncOnHelper::DiceTurnSyncOnHelp // last authenticated account of the current profile, then Chrome will show a // confirmation dialog before starting sync. // TODO(skym): Warn for high risk upgrade scenario (https://crbug.com/572754). @@ -2867,14 +2877,14 @@ base::BindOnce(&DiceTurnSyncOnHelper::OnMergeAccountConfirmation, --- a/chrome/browser/ui/webui/signin/dice_turn_sync_on_helper_unittest.cc +++ b/chrome/browser/ui/webui/signin/dice_turn_sync_on_helper_unittest.cc -@@ -36,7 +36,6 @@ - #include "components/policy/core/common/management/scoped_management_service_override_for_testing.h" +@@ -37,7 +37,6 @@ #include "components/prefs/pref_service.h" + #include "components/signin/public/base/account_consistency_method.h" #include "components/signin/public/base/signin_metrics.h" -#include "components/signin/public/base/signin_pref_names.h" #include "components/signin/public/identity_manager/identity_manager.h" #include "components/signin/public/identity_manager/identity_test_environment.h" - #include "components/sync/driver/mock_sync_service.h" + #include "components/signin/public/identity_manager/primary_account_mutator.h" --- a/chrome/browser/ui/webui/signin/inline_login_handler.cc +++ b/chrome/browser/ui/webui/signin/inline_login_handler.cc @@ -27,7 +27,6 @@ @@ -2885,10 +2895,10 @@ #include "content/public/browser/storage_partition.h" #include "content/public/browser/web_contents.h" #include "content/public/browser/web_ui.h" -@@ -128,8 +127,6 @@ void InlineLoginHandler::ContinueHandleI +@@ -127,8 +126,6 @@ void InlineLoginHandler::ContinueHandleI std::string default_email; - if (reason == signin_metrics::Reason::REASON_SIGNIN_PRIMARY_ACCOUNT || - reason == signin_metrics::Reason::REASON_FORCED_SIGNIN_PRIMARY_ACCOUNT) { + if (reason == signin_metrics::Reason::kSigninPrimaryAccount || + reason == signin_metrics::Reason::kForcedSigninPrimaryAccount) { - default_email = - profile->GetPrefs()->GetString(prefs::kGoogleServicesLastUsername); } else { @@ -2904,7 +2914,7 @@ #include "components/signin/public/identity_manager/account_info.h" #include "components/signin/public/identity_manager/accounts_cookie_mutator.h" #include "components/signin/public/identity_manager/accounts_mutator.h" -@@ -276,11 +275,6 @@ void OnSyncSetupComplete(Profile* profil +@@ -260,11 +259,6 @@ void OnSyncSetupComplete(Profile* profil scoped_refptr password_store = PasswordStoreFactory::GetForProfile(profile, ServiceAccessType::EXPLICIT_ACCESS); @@ -2913,12 +2923,12 @@ - /*is_primary_account_=*/true, - password_manager::metrics_util::GaiaPasswordHashChange:: - SAVED_ON_CHROME_SIGNIN); + } - if (profiles::IsLockAvailable(profile)) - LocalAuth::SetLocalAuthCredentials(profile, password); + if (has_primary_account && is_force_sign_in_with_usermanager && --- a/chrome/browser/ui/webui/signin/signin_error_ui.cc +++ b/chrome/browser/ui/webui/signin/signin_error_ui.cc -@@ -22,7 +22,6 @@ +@@ -23,7 +23,6 @@ #include "chrome/grit/browser_resources.h" #include "chrome/grit/generated_resources.h" #include "components/prefs/pref_service.h" @@ -2926,7 +2936,7 @@ #include "components/strings/grit/components_strings.h" #include "content/public/browser/web_ui.h" #include "content/public/browser/web_ui_data_source.h" -@@ -113,9 +112,7 @@ void SigninErrorUI::Initialize(Browser* +@@ -115,9 +114,7 @@ void SigninErrorUI::Initialize(Browser* if (is_profile_blocked) { source->AddLocalizedString("profileBlockedMessage", IDS_OLD_PROFILES_DISABLED_MESSAGE); @@ -2947,7 +2957,7 @@ #include "components/signin/public/identity_manager/identity_manager.h" #include "components/signin/public/identity_manager/identity_utils.h" #include "google_apis/gaia/gaia_auth_util.h" -@@ -32,7 +31,7 @@ SigninUIError CanOfferSignin(Profile* pr +@@ -31,7 +30,7 @@ SigninUIError CanOfferSignin(Profile* pr if (!profile) return SigninUIError::Other(email); @@ -2956,7 +2966,7 @@ return SigninUIError::Other(email); if (!ChromeSigninClient::ProfileAllowsSigninCookies(profile)) -@@ -96,8 +95,7 @@ SigninUIError CanOfferSignin(Profile* pr +@@ -108,8 +107,7 @@ SigninUIError CanOfferSignin(Profile* pr // With force sign in enabled, cross account sign in is not allowed. if (signin_util::IsForceSigninEnabled() && IsCrossAccountError(profile, email, gaia_id)) { @@ -2976,7 +2986,7 @@ #include "components/strings/grit/components_strings.h" #include "net/base/url_util.h" #include "ui/base/webui/web_ui_util.h" -@@ -189,7 +188,7 @@ WelcomeUI::WelcomeUI(content::WebUI* web +@@ -160,7 +159,7 @@ WelcomeUI::WelcomeUI(content::WebUI* web "returningUserModules", welcome::GetModules(profile).FindKey("returning-user")->GetString()); html_source->AddBoolean( @@ -3032,7 +3042,7 @@ #include "services/network/public/cpp/shared_url_loader_factory.h" namespace password_manager { -@@ -166,28 +165,7 @@ void LeakDetectionDelegate::OnError(Leak +@@ -164,28 +163,7 @@ void LeakDetectionDelegate::OnError(Leak bool CanStartLeakCheck(const PrefService& prefs, const PasswordManagerClient* client) { @@ -3105,7 +3115,7 @@ --- a/components/password_manager/core/browser/password_store.cc +++ b/components/password_manager/core/browser/password_store.cc -@@ -43,7 +43,6 @@ +@@ -42,7 +42,6 @@ #include "components/password_manager/core/common/password_manager_features.h" #include "components/password_manager/core/common/password_manager_pref_names.h" #include "components/prefs/pref_service.h" @@ -3113,7 +3123,7 @@ #include "components/sync/model/client_tag_based_model_type_processor.h" #include "components/sync/model/proxy_model_type_controller_delegate.h" -@@ -659,15 +658,6 @@ void PasswordStore::SchedulePasswordHash +@@ -658,15 +657,6 @@ void PasswordStore::SchedulePasswordHash } void PasswordStore::ScheduleEnterprisePasswordURLUpdate() { @@ -3173,14 +3183,14 @@ #include "components/security_interstitials/content/settings_page_helper.h" --- a/components/safe_browsing/content/browser/client_side_detection_service.cc +++ b/components/safe_browsing/content/browser/client_side_detection_service.cc -@@ -21,7 +21,6 @@ - #include "components/prefs/pref_service.h" +@@ -24,7 +24,6 @@ #include "components/safe_browsing/content/browser/client_side_detection_host.h" #include "components/safe_browsing/content/common/safe_browsing.mojom.h" + #include "components/safe_browsing/content/web_ui/safe_browsing_ui.h" -#include "components/safe_browsing/core/common/safe_browsing_prefs.h" #include "components/safe_browsing/core/common/utils.h" + #include "components/safe_browsing/core/features.h" #include "components/safe_browsing/core/proto/client_model.pb.h" - #include "components/safe_browsing/core/proto/csd.pb.h" --- a/components/safe_browsing/content/triggers/suspicious_site_trigger_unittest.cc +++ b/components/safe_browsing/content/triggers/suspicious_site_trigger_unittest.cc @@ -11,7 +11,6 @@ @@ -3201,7 +3211,7 @@ #include "components/safe_browsing/core/features.h" #include "components/safe_browsing/core/proto/csd.pb.h" #include "services/network/public/mojom/cookie_manager.mojom.h" -@@ -1580,9 +1579,7 @@ void SafeBrowsingUIHandler::GetPrefs(con +@@ -1752,9 +1751,7 @@ void SafeBrowsingUIHandler::GetPrefs(con AllowJavascript(); std::string callback_id; args->GetString(0, &callback_id); @@ -3338,7 +3348,7 @@ namespace safe_browsing { --- a/components/safe_browsing/core/db/v4_local_database_manager.cc +++ b/components/safe_browsing/core/db/v4_local_database_manager.cc -@@ -261,10 +261,9 @@ const V4LocalDatabaseManager* +@@ -320,10 +320,9 @@ const V4LocalDatabaseManager* // static scoped_refptr V4LocalDatabaseManager::Create( @@ -3351,7 +3361,7 @@ } void V4LocalDatabaseManager::CollectDatabaseManagerInfo( -@@ -286,10 +285,8 @@ void V4LocalDatabaseManager::CollectData +@@ -345,10 +344,8 @@ void V4LocalDatabaseManager::CollectData V4LocalDatabaseManager::V4LocalDatabaseManager( const base::FilePath& base_path, @@ -3362,7 +3372,7 @@ list_infos_(GetListInfos()), task_runner_(task_runner_for_tests ? task_runner_for_tests -@@ -1021,8 +1018,7 @@ void V4LocalDatabaseManager::SetupUpdate +@@ -1087,8 +1084,7 @@ void V4LocalDatabaseManager::SetupUpdate weak_factory_.GetWeakPtr()); v4_update_protocol_manager_ = V4UpdateProtocolManager::Create( @@ -3392,7 +3402,7 @@ scoped_refptr task_runner_for_tests); ~V4LocalDatabaseManager() override; -@@ -358,10 +356,6 @@ class V4LocalDatabaseManager : public Sa +@@ -355,10 +353,6 @@ class V4LocalDatabaseManager : public Sa // ready to process next update. DatabaseUpdatedCallback db_updated_callback_; @@ -3643,15 +3653,15 @@ // static --- a/components/safe_browsing/core/realtime/url_lookup_service.cc +++ b/components/safe_browsing/core/realtime/url_lookup_service.cc -@@ -14,7 +14,6 @@ - #include "components/prefs/pref_service.h" +@@ -16,7 +16,6 @@ #include "components/safe_browsing/buildflags.h" + #include "components/safe_browsing/core/browser/referrer_chain_provider.h" #include "components/safe_browsing/core/browser/safe_browsing_token_fetcher.h" -#include "components/safe_browsing/core/common/safe_browsing_prefs.h" #include "components/safe_browsing/core/common/thread_utils.h" #include "components/safe_browsing/core/db/v4_protocol_manager_util.h" - #include "components/safe_browsing/core/realtime/policy_engine.h" -@@ -92,7 +91,7 @@ bool RealTimeUrlLookupService::CanPerfor + #include "components/safe_browsing/core/features.h" +@@ -109,7 +108,7 @@ int RealTimeUrlLookupService::GetReferre } bool RealTimeUrlLookupService::CanCheckSubresourceURL() const { @@ -3663,26 +3673,13 @@ --- a/components/safe_browsing/core/realtime/url_lookup_service_base.cc +++ b/components/safe_browsing/core/realtime/url_lookup_service_base.cc @@ -14,7 +14,6 @@ - #include "build/build_config.h" #include "build/chromeos_buildflags.h" #include "components/prefs/pref_service.h" + #include "components/safe_browsing/core/browser/referrer_chain_provider.h" -#include "components/safe_browsing/core/common/safe_browsing_prefs.h" #include "components/safe_browsing/core/common/thread_utils.h" #include "components/safe_browsing/core/common/utils.h" #include "components/safe_browsing/core/verdict_cache_manager.h" -@@ -440,11 +439,7 @@ std::unique_ptr RealTim - - ChromeUserPopulation* user_population = request->mutable_population(); - user_population->set_user_population( -- IsEnhancedProtectionEnabled(*pref_service_) -- ? ChromeUserPopulation::ENHANCED_PROTECTION -- : IsExtendedReportingEnabled(*pref_service_) -- ? ChromeUserPopulation::EXTENDED_REPORTING -- : ChromeUserPopulation::SAFE_BROWSING); -+ ChromeUserPopulation::UNKNOWN_USER_POPULATION); - - user_population->set_profile_management_status(profile_management_status_); - user_population->set_is_history_sync_enabled( --- a/components/safe_browsing/core/triggers/trigger_manager.cc +++ b/components/safe_browsing/core/triggers/trigger_manager.cc @@ -10,7 +10,6 @@ @@ -3708,10 +3705,10 @@ + /*IsEnhancedProtectionEnabled(pref_service)*/false, /*is_proceed_anyway_disabled=*/false, /*should_open_links_in_new_tab=*/false, - /*show_back_to_safety_button=*/true, -- IsEnhancedProtectionMessageInInterstitialsEnabled(), + /*always_show_back_to_safety=*/true, +- /*is_enhanced_protection_message_enabled=*/true, - IsSafeBrowsingPolicyManaged(pref_service), -+ /*IsEnhancedProtectionMessageInInterstitialsEnabled()*/false, ++ /*is_enhanced_protection_message_enabled=*/false, + /*IsSafeBrowsingPolicyManaged(pref_service)*/false, /*help_center_article_link=*/std::string()); } @@ -3844,7 +3841,7 @@ #include "components/security_interstitials/content/ssl_cert_reporter.h" #include "components/security_interstitials/core/controller_client.h" #include "components/security_interstitials/core/metrics_helper.h" -@@ -84,8 +83,7 @@ void CertReportHelper::PopulateExtendedR +@@ -87,8 +86,7 @@ void CertReportHelper::PopulateExtendedR return; load_time_data->SetBoolean( @@ -3854,7 +3851,7 @@ load_time_data->SetString( security_interstitials::kOptInLink, -@@ -122,14 +120,8 @@ void CertReportHelper::HandleReportingCo +@@ -125,14 +123,8 @@ void CertReportHelper::HandleReportingCo PrefService* pref_service) { switch (command) { case security_interstitials::CMD_DO_REPORT: @@ -3869,7 +3866,7 @@ break; case security_interstitials::CMD_PROCEED: user_action_ = CertificateErrorReport::USER_PROCEEDED; -@@ -147,7 +139,7 @@ void CertReportHelper::FinishCertCollect +@@ -150,7 +142,7 @@ void CertReportHelper::FinishCertCollect if (!ShouldShowCertificateReporterCheckbox()) return; @@ -3878,7 +3875,7 @@ return; if (metrics_helper_) { -@@ -178,51 +170,11 @@ void CertReportHelper::FinishCertCollect +@@ -181,51 +173,11 @@ void CertReportHelper::FinishCertCollect } bool CertReportHelper::ShouldShowCertificateReporterCheckbox() { @@ -3901,10 +3898,15 @@ } bool CertReportHelper::ShouldShowEnhancedProtectionMessage() { -- // Only show the enhanced protection message iff the user is part of the -- // respective Finch group and the window is not incognito and Safe Browsing is -- // not managed by policy and the user is not already in enhanced protection -- // mode. +- // Only show the enhanced protection message if all the following are true: +- // |can_show_enhanced_protection_message_| is set to true AND +- // the window is not incognito AND +- // Safe Browsing is not managed by policy AND +- // the user is not already in enhanced protection mode. +- if (!can_show_enhanced_protection_message_) { +- return false; +- } +- - const bool in_incognito = - web_contents_->GetBrowserContext()->IsOffTheRecord(); - const PrefService* pref_service = GetPrefs(web_contents_); @@ -3912,8 +3914,6 @@ - safe_browsing::IsEnhancedProtectionEnabled(*pref_service); - bool is_safe_browsing_managed = - safe_browsing::IsSafeBrowsingPolicyManaged(*pref_service); -- bool is_enhanced_protection_message_enabled = -- safe_browsing::IsEnhancedProtectionMessageInInterstitialsEnabled(); - - if (in_incognito) { - return false; @@ -3924,9 +3924,6 @@ - if (is_safe_browsing_managed) { - return false; - } -- if (!is_enhanced_protection_message_enabled) { -- return false; -- } - return true; + return false; } @@ -4016,7 +4013,7 @@ + on_show_extended_reporting_pref_value_ = false; } - base::string16 SecurityInterstitialPage::GetFormattedHostName() const { + std::u16string SecurityInterstitialPage::GetFormattedHostName() const { --- a/components/security_interstitials/content/ssl_blocking_page.cc +++ b/components/security_interstitials/content/ssl_blocking_page.cc @@ -12,7 +12,6 @@ @@ -4104,7 +4101,7 @@ } else if (currently_authenticated && !previously_authenticated_) { SignedInAccountRelationReport(signed_in_accounts, signed_out_accounts, ReportingType::ON_CHANGE); -@@ -252,10 +235,6 @@ void AccountInvestigator::DoPeriodicRepo +@@ -251,10 +234,6 @@ void AccountInvestigator::DoPeriodicRepo } periodic_pending_ = false; @@ -4115,7 +4112,7 @@ } void AccountInvestigator::SharedCookieJarReport( -@@ -263,8 +242,7 @@ void AccountInvestigator::SharedCookieJa +@@ -262,8 +241,7 @@ void AccountInvestigator::SharedCookieJa const std::vector& signed_out_accounts, const Time now, const ReportingType type) { @@ -4215,7 +4212,7 @@ #include "testing/gtest/include/gtest/gtest.h" --- a/components/signin/internal/identity_manager/account_tracker_service.cc +++ b/components/signin/internal/identity_manager/account_tracker_service.cc -@@ -27,7 +27,6 @@ +@@ -26,7 +26,6 @@ #include "components/prefs/pref_registry_simple.h" #include "components/prefs/scoped_user_pref_update.h" #include "components/signin/internal/identity_manager/account_info_util.h" @@ -4223,7 +4220,7 @@ #include "components/signin/public/base/signin_switches.h" #include "ui/gfx/image/image.h" -@@ -117,9 +116,6 @@ AccountTrackerService::~AccountTrackerSe +@@ -118,9 +117,6 @@ AccountTrackerService::~AccountTrackerSe // static void AccountTrackerService::RegisterPrefs(PrefRegistrySimple* registry) { @@ -4233,7 +4230,7 @@ } void AccountTrackerService::Initialize(PrefService* pref_service, -@@ -402,14 +398,12 @@ AccountTrackerService::ComputeNewMigrati +@@ -405,14 +401,12 @@ AccountTrackerService::ComputeNewMigrati void AccountTrackerService::SetMigrationState(AccountIdMigrationState state) { DCHECK(state != MIGRATION_DONE || AreAllAccountsMigrated()); @@ -4249,7 +4246,7 @@ } base::FilePath AccountTrackerService::GetImagePathFor( -@@ -467,24 +461,7 @@ void AccountTrackerService::OnAccountIma +@@ -469,24 +463,7 @@ void AccountTrackerService::OnAccountIma const CoreAccountId& account_id, const std::string& image_url_with_size, bool success) { @@ -4275,7 +4272,7 @@ } void AccountTrackerService::RemoveAccountImageFromDisk( -@@ -496,11 +473,10 @@ void AccountTrackerService::RemoveAccoun +@@ -498,11 +475,10 @@ void AccountTrackerService::RemoveAccoun } void AccountTrackerService::LoadFromPrefs() { @@ -4289,7 +4286,7 @@ std::string value; if (dict->GetString(kAccountKeyPath, &value)) { // Ignore incorrectly persisted non-canonical account ids. -@@ -574,13 +550,11 @@ void AccountTrackerService::LoadFromPref +@@ -576,13 +552,11 @@ void AccountTrackerService::LoadFromPref } void AccountTrackerService::SaveToPrefs(const AccountInfo& account_info) { @@ -4306,7 +4303,7 @@ std::string value; if (dict->GetString(kAccountKeyPath, &value) && value == account_info.account_id.ToString()) -@@ -590,9 +564,6 @@ void AccountTrackerService::SaveToPrefs( +@@ -592,9 +566,6 @@ void AccountTrackerService::SaveToPrefs( if (!dict) { dict = new base::DictionaryValue(); @@ -4316,7 +4313,7 @@ dict->SetString(kAccountKeyPath, account_info.account_id.ToString()); } -@@ -616,14 +587,12 @@ void AccountTrackerService::RemoveFromPr +@@ -618,14 +589,12 @@ void AccountTrackerService::RemoveFromPr if (!pref_service_) return; @@ -4335,7 +4332,7 @@ } --- a/components/signin/internal/identity_manager/account_tracker_service.h +++ b/components/signin/internal/identity_manager/account_tracker_service.h -@@ -230,6 +230,8 @@ class AccountTrackerService { +@@ -227,6 +227,8 @@ class AccountTrackerService { AccountInfoCallback on_account_updated_callback_; AccountInfoCallback on_account_removed_callback_; @@ -4375,7 +4372,7 @@ if (!gaia_cookie_last_list_accounts_data.empty()) { if (!gaia::ParseListAccountsData(gaia_cookie_last_list_accounts_data, -@@ -465,8 +462,6 @@ GaiaCookieManagerService::~GaiaCookieMan +@@ -466,8 +463,6 @@ GaiaCookieManagerService::~GaiaCookieMan // static void GaiaCookieManagerService::RegisterPrefs(PrefRegistrySimple* registry) { @@ -4384,7 +4381,7 @@ } void GaiaCookieManagerService::InitCookieListener() { -@@ -863,16 +858,12 @@ void GaiaCookieManagerService::OnListAcc +@@ -860,16 +855,12 @@ void GaiaCookieManagerService::OnListAcc &signed_out_accounts_)) { listed_accounts_.clear(); signed_out_accounts_.clear(); @@ -4448,7 +4445,7 @@ } void MutableProfileOAuth2TokenServiceDelegate::UpdateCredentials( -@@ -831,8 +826,6 @@ void MutableProfileOAuth2TokenServiceDel +@@ -828,8 +823,6 @@ void MutableProfileOAuth2TokenServiceDel } void MutableProfileOAuth2TokenServiceDelegate::FinishLoadingCredentials() { @@ -4457,7 +4454,7 @@ FireRefreshTokensLoaded(); } -@@ -863,8 +856,7 @@ void MutableProfileOAuth2TokenServiceDel +@@ -860,8 +853,7 @@ void MutableProfileOAuth2TokenServiceDel LOAD_CREDENTIALS_FINISHED_WITH_DB_CANNOT_BE_OPENED); if (account_consistency_ == signin::AccountConsistencyMethod::kDice && @@ -4469,7 +4466,7 @@ } --- a/components/signin/internal/identity_manager/mutable_profile_oauth2_token_service_delegate_unittest.cc +++ b/components/signin/internal/identity_manager/mutable_profile_oauth2_token_service_delegate_unittest.cc -@@ -24,7 +24,6 @@ +@@ -25,7 +25,6 @@ #include "components/signin/internal/identity_manager/profile_oauth2_token_service.h" #include "components/signin/public/base/account_consistency_method.h" #include "components/signin/public/base/device_id_helper.h" @@ -4553,7 +4550,7 @@ CoreAccountId account_id = CoreAccountId::FromString(pref_account_id); CoreAccountInfo account_info = account_tracker_service_->GetAccountInfo(account_id); -@@ -166,8 +132,7 @@ void PrimaryAccountManager::SetSyncPrima +@@ -171,8 +137,7 @@ void PrimaryAccountManager::SetSyncPrima #if DCHECK_IS_ON() { @@ -4563,7 +4560,7 @@ bool consented_to_sync = client_->GetPrefs()->GetBoolean(prefs::kGoogleServicesConsentedToSync); -@@ -183,10 +148,6 @@ void PrimaryAccountManager::SetSyncPrima +@@ -188,10 +153,6 @@ void PrimaryAccountManager::SetSyncPrima // Go ahead and update the last signed in account info here as well. Once a // user is signed in the corresponding preferences should match. Doing it here // as opposed to on signin allows us to catch the upgrade scenario. @@ -4574,7 +4571,7 @@ // Commit primary sync account info immediately so that it does not get lost // if Chrome crashes before the next commit interval. -@@ -200,20 +161,11 @@ void PrimaryAccountManager::SetPrimaryAc +@@ -205,20 +166,11 @@ void PrimaryAccountManager::SetPrimaryAc PrefService* prefs = client_->GetPrefs(); const std::string& account_id = primary_account_info_.account_id.ToString(); @@ -4686,7 +4683,7 @@ #include "google_apis/gaia/gaia_constants.h" #include "google_apis/gaia/google_service_auth_error.h" #include "google_apis/gaia/oauth2_access_token_consumer.h" -@@ -135,8 +134,6 @@ bool ProfileOAuth2TokenService::HasRefre +@@ -137,8 +136,6 @@ bool ProfileOAuth2TokenService::HasRefre // static void ProfileOAuth2TokenService::RegisterProfilePrefs( PrefRegistrySimple* registry) { @@ -4697,8 +4694,8 @@ ProfileOAuth2TokenServiceDelegate* ProfileOAuth2TokenService::GetDelegate() { --- a/components/signin/internal/identity_manager/profile_oauth2_token_service_delegate_chromeos_unittest.cc +++ b/components/signin/internal/identity_manager/profile_oauth2_token_service_delegate_chromeos_unittest.cc -@@ -19,7 +19,6 @@ - #include "components/account_manager_core/account.h" +@@ -24,7 +24,6 @@ + #include "components/account_manager_core/account_manager_facade_impl.h" #include "components/signin/internal/identity_manager/account_tracker_service.h" #include "components/signin/internal/identity_manager/profile_oauth2_token_service_observer.h" -#include "components/signin/public/base/signin_pref_names.h" @@ -4855,7 +4852,7 @@ #include "components/signin/public/identity_manager/identity_test_utils.h" --- a/tools/metrics/histograms/enums.xml +++ b/tools/metrics/histograms/enums.xml -@@ -76364,7 +76364,6 @@ Full version information for the fingerp +@@ -77797,7 +77797,6 @@ Full version information for the fingerp @@ -4863,7 +4860,7 @@ -@@ -76379,10 +76378,7 @@ Full version information for the fingerp +@@ -77812,10 +77811,7 @@ Full version information for the fingerp diff --git a/patches/core/ungoogled-chromium/toggle-translation-via-switch.patch b/patches/core/ungoogled-chromium/toggle-translation-via-switch.patch index e1f97d40..bef4b1aa 100644 --- a/patches/core/ungoogled-chromium/toggle-translation-via-switch.patch +++ b/patches/core/ungoogled-chromium/toggle-translation-via-switch.patch @@ -9,7 +9,7 @@ #include "components/translate/core/browser/translate_download_manager.h" #include "components/translate/core/browser/translate_manager.h" #include "components/translate/core/browser/translate_prefs.h" -@@ -1573,6 +1574,8 @@ void RenderViewContextMenu::AppendPageIt +@@ -1577,6 +1578,8 @@ void RenderViewContextMenu::AppendPageIt menu_model_.AddSeparator(ui::NORMAL_SEPARATOR); } @@ -18,7 +18,7 @@ ChromeTranslateClient* chrome_translate_client = ChromeTranslateClient::FromWebContents(embedder_web_contents_); const bool canTranslate = -@@ -1594,6 +1597,7 @@ void RenderViewContextMenu::AppendPageIt +@@ -1598,6 +1601,7 @@ void RenderViewContextMenu::AppendPageIt IDC_CONTENT_CONTEXT_TRANSLATE, l10n_util::GetStringFUTF16(IDS_CONTENT_CONTEXT_TRANSLATE, language)); } @@ -56,7 +56,7 @@ request_pending_ = true; --- a/components/translate/core/browser/translate_manager.cc +++ b/components/translate/core/browser/translate_manager.cc -@@ -889,8 +889,9 @@ void TranslateManager::FilterIsTranslate +@@ -908,8 +908,9 @@ void TranslateManager::FilterIsTranslate ->LogAutofillAssistantDeferredTriggerDecision(); } diff --git a/patches/core/ungoogled-chromium/use-local-devtools-files.patch b/patches/core/ungoogled-chromium/use-local-devtools-files.patch deleted file mode 100644 index 72db3f66..00000000 --- a/patches/core/ungoogled-chromium/use-local-devtools-files.patch +++ /dev/null @@ -1,16 +0,0 @@ -# Always use local DevTools files instead of remote files from Google -# NOTE: This can break Remote Debugging -# This also fixes local debugging with domain substitution -# Related comment: https://bugs.chromium.org/p/chromium/issues/detail?id=710701#c14 - ---- a/third_party/devtools-frontend/src/BUILD.gn -+++ b/third_party/devtools-frontend/src/BUILD.gn -@@ -230,7 +230,7 @@ devtools_applications = [ - devtools_frontend_resources_deps = [ - ":build_release_devtools", - "front_end", -- "test", -+# "test", - ] - - group("devtools_all_files") { diff --git a/patches/extra/bromite/fingerprinting-flags-client-rects-and-measuretext.patch b/patches/extra/bromite/fingerprinting-flags-client-rects-and-measuretext.patch index ab25fccc..62f42474 100644 --- a/patches/extra/bromite/fingerprinting-flags-client-rects-and-measuretext.patch +++ b/patches/extra/bromite/fingerprinting-flags-client-rects-and-measuretext.patch @@ -9,7 +9,7 @@ --- a/chrome/browser/BUILD.gn +++ b/chrome/browser/BUILD.gn -@@ -2362,6 +2362,7 @@ static_library("browser") { +@@ -2323,6 +2323,7 @@ static_library("browser") { "//third_party/libyuv", "//third_party/metrics_proto", "//third_party/re2", @@ -19,7 +19,7 @@ "//third_party/widevine/cdm:headers", --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -179,6 +179,7 @@ +@@ -178,6 +178,7 @@ #include "third_party/blink/public/common/forcedark/forcedark_switches.h" #include "third_party/blink/public/common/switches.h" #include "third_party/leveldatabase/leveldb_features.h" @@ -54,7 +54,7 @@ "//third_party/zlib", --- a/content/browser/renderer_host/render_process_host_impl.cc +++ b/content/browser/renderer_host/render_process_host_impl.cc -@@ -212,6 +212,7 @@ +@@ -208,6 +208,7 @@ #include "third_party/blink/public/common/user_agent/user_agent_metadata.h" #include "third_party/blink/public/mojom/disk_allocator.mojom.h" #include "third_party/blink/public/public_buildflags.h" @@ -62,7 +62,7 @@ #include "third_party/skia/include/core/SkBitmap.h" #include "ui/accessibility/accessibility_switches.h" #include "ui/base/ui_base_switches.h" -@@ -3299,6 +3300,8 @@ void RenderProcessHostImpl::PropagateBro +@@ -3252,6 +3253,8 @@ void RenderProcessHostImpl::PropagateBro switches::kEnableWebGLDraftExtensions, switches::kEnableWebGLImageChromium, switches::kFileUrlPathAlias, @@ -91,7 +91,7 @@ #include "ui/accessibility/accessibility_features.h" #include "ui/base/ui_base_features.h" #include "ui/events/blink/blink_features.h" -@@ -460,6 +461,10 @@ void SetRuntimeFeaturesFromCommandLine(c +@@ -456,6 +457,10 @@ void SetRuntimeFeaturesFromCommandLine(c {wrf::EnableWebGPU, switches::kEnableUnsafeWebGPU, true}, {wrf::ForceOverlayFullscreenVideo, switches::kForceOverlayFullscreenVideo, true}, @@ -104,15 +104,15 @@ if (command_line.HasSwitch(mapping.switch_name)) --- a/third_party/blink/public/platform/web_runtime_features.h +++ b/third_party/blink/public/platform/web_runtime_features.h -@@ -209,6 +209,8 @@ class WebRuntimeFeatures { +@@ -210,6 +210,8 @@ class WebRuntimeFeatures { BLINK_PLATFORM_EXPORT static void EnableGetDisplayMedia(bool); BLINK_PLATFORM_EXPORT static void EnableGetCurrentBrowsingContextMedia(bool); BLINK_PLATFORM_EXPORT static void EnableAllowSyncXHRInPageDismissal(bool); + BLINK_PLATFORM_EXPORT static void EnableFingerprintingClientRectsNoise(bool); + BLINK_PLATFORM_EXPORT static void EnableFingerprintingCanvasMeasureTextNoise(bool); - BLINK_PLATFORM_EXPORT static void EnableHTMLImports(bool); BLINK_PLATFORM_EXPORT static void EnableSignedExchangePrefetchCacheForNavigations(bool); + BLINK_PLATFORM_EXPORT static void EnableSignedExchangeSubresourcePrefetch( --- a/third_party/blink/renderer/core/dom/document.cc +++ b/third_party/blink/renderer/core/dom/document.cc @@ -43,6 +43,7 @@ @@ -123,7 +123,7 @@ #include "base/time/time.h" #include "cc/input/overscroll_behavior.h" #include "cc/input/scroll_snap_data.h" -@@ -864,6 +865,14 @@ Range* Document::CreateRangeAdjustedToTr +@@ -867,6 +868,14 @@ Range* Document::CreateRangeAdjustedToTr Position::BeforeNode(*shadow_host)); } @@ -138,7 +138,7 @@ SelectorQueryCache& Document::GetSelectorQueryCache() { if (!selector_query_cache_) selector_query_cache_ = std::make_unique(); -@@ -2386,6 +2395,15 @@ void Document::UpdateStyleAndLayoutTreeF +@@ -2398,6 +2407,15 @@ void Document::UpdateStyleAndLayoutTreeF #if DCHECK_IS_ON() AssertLayoutTreeUpdated(*this); #endif @@ -156,7 +156,7 @@ void Document::InvalidateStyleAndLayoutForFontUpdates() { --- a/third_party/blink/renderer/core/dom/document.h +++ b/third_party/blink/renderer/core/dom/document.h -@@ -444,6 +444,10 @@ class CORE_EXPORT Document : public Cont +@@ -445,6 +445,10 @@ class CORE_EXPORT Document : public Cont has_xml_declaration_ = has_xml_declaration ? 1 : 0; } @@ -167,7 +167,7 @@ AtomicString visibilityState() const; bool IsPageVisible() const; bool hidden() const; -@@ -1998,6 +2002,9 @@ class CORE_EXPORT Document : public Cont +@@ -2005,6 +2009,9 @@ class CORE_EXPORT Document : public Cont base::ElapsedTimer start_time_; @@ -179,7 +179,7 @@ HeapVector> current_script_stack_; --- a/third_party/blink/renderer/core/dom/element.cc +++ b/third_party/blink/renderer/core/dom/element.cc -@@ -2075,6 +2075,11 @@ DOMRectList* Element::getClientRects() { +@@ -2092,6 +2092,11 @@ DOMRectList* Element::getClientRects() { DCHECK(element_layout_object); GetDocument().AdjustFloatQuadsForScrollAndAbsoluteZoom( quads, *element_layout_object); @@ -191,7 +191,7 @@ return MakeGarbageCollected(quads); } -@@ -2092,6 +2097,9 @@ FloatRect Element::GetBoundingClientRect +@@ -2109,6 +2114,9 @@ FloatRect Element::GetBoundingClientRect DCHECK(element_layout_object); GetDocument().AdjustFloatRectForScrollAndAbsoluteZoom(result, *element_layout_object); @@ -266,9 +266,9 @@ const TextDirection&, --- a/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.cc +++ b/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.cc -@@ -964,9 +964,15 @@ TextMetrics* CanvasRenderingContext2D::m - else - direction = ToTextDirection(GetState().GetDirection(), canvas()); +@@ -968,9 +968,15 @@ TextMetrics* CanvasRenderingContext2D::m + TextDirection direction = + ToTextDirection(GetState().GetDirection(), canvas()); - return MakeGarbageCollected(font, direction, + TextMetrics* text_metrics = MakeGarbageCollected(font, direction, @@ -285,7 +285,7 @@ void CanvasRenderingContext2D::fillFormattedText( --- a/third_party/blink/renderer/platform/BUILD.gn +++ b/third_party/blink/renderer/platform/BUILD.gn -@@ -1656,6 +1656,7 @@ component("platform") { +@@ -1660,6 +1660,7 @@ component("platform") { "//components/paint_preview/common", "//components/power_scheduler", "//components/search_engines:search_engine_utils", @@ -295,8 +295,8 @@ "//crypto", --- a/third_party/blink/renderer/platform/exported/web_runtime_features.cc +++ b/third_party/blink/renderer/platform/exported/web_runtime_features.cc -@@ -671,4 +671,12 @@ void WebRuntimeFeatures::EnableCSSColorS - RuntimeEnabledFeatures::SetCSSColorSchemeUARenderingEnabled(enable); +@@ -671,4 +671,12 @@ void WebRuntimeFeatures::EnableDocumentT + RuntimeEnabledFeatures::SetDocumentTransitionEnabled(enable); } +void WebRuntimeFeatures::EnableFingerprintingClientRectsNoise(bool enable) { @@ -310,8 +310,8 @@ } // namespace blink --- a/third_party/blink/renderer/platform/runtime_enabled_features.json5 +++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5 -@@ -951,6 +951,12 @@ - status: "experimental", +@@ -948,6 +948,12 @@ + origin_trial_feature_name: "FledgeInterestGroupAPI", }, { + name: "FingerprintingClientRectsNoise", diff --git a/patches/extra/bromite/flag-fingerprinting-canvas-image-data-noise.patch b/patches/extra/bromite/flag-fingerprinting-canvas-image-data-noise.patch index 974dabb5..f653246a 100644 --- a/patches/extra/bromite/flag-fingerprinting-canvas-image-data-noise.patch +++ b/patches/extra/bromite/flag-fingerprinting-canvas-image-data-noise.patch @@ -34,7 +34,7 @@ approach to change color components. #endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_ --- a/content/browser/renderer_host/render_process_host_impl.cc +++ b/content/browser/renderer_host/render_process_host_impl.cc -@@ -3302,6 +3302,7 @@ void RenderProcessHostImpl::PropagateBro +@@ -3255,6 +3255,7 @@ void RenderProcessHostImpl::PropagateBro switches::kFileUrlPathAlias, switches::kFingerprintingClientRectsNoise, switches::kFingerprintingCanvasMeasureTextNoise, @@ -44,7 +44,7 @@ approach to change color components. switches::kForceGpuMemAvailableMb, --- a/content/child/runtime_features.cc +++ b/content/child/runtime_features.cc -@@ -465,6 +465,8 @@ void SetRuntimeFeaturesFromCommandLine(c +@@ -461,6 +461,8 @@ void SetRuntimeFeaturesFromCommandLine(c switches::kFingerprintingClientRectsNoise, true}, {wrf::EnableFingerprintingCanvasMeasureTextNoise, switches::kFingerprintingCanvasMeasureTextNoise, true}, @@ -55,17 +55,17 @@ approach to change color components. if (command_line.HasSwitch(mapping.switch_name)) --- a/third_party/blink/public/platform/web_runtime_features.h +++ b/third_party/blink/public/platform/web_runtime_features.h -@@ -211,6 +211,7 @@ class WebRuntimeFeatures { +@@ -212,6 +212,7 @@ class WebRuntimeFeatures { BLINK_PLATFORM_EXPORT static void EnableAllowSyncXHRInPageDismissal(bool); BLINK_PLATFORM_EXPORT static void EnableFingerprintingClientRectsNoise(bool); BLINK_PLATFORM_EXPORT static void EnableFingerprintingCanvasMeasureTextNoise(bool); + BLINK_PLATFORM_EXPORT static void EnableFingerprintingCanvasImageDataNoise(bool); - BLINK_PLATFORM_EXPORT static void EnableHTMLImports(bool); BLINK_PLATFORM_EXPORT static void EnableSignedExchangePrefetchCacheForNavigations(bool); + BLINK_PLATFORM_EXPORT static void EnableSignedExchangeSubresourcePrefetch( --- a/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc +++ b/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc -@@ -20,6 +20,7 @@ +@@ -21,6 +21,7 @@ #include "third_party/blink/renderer/platform/geometry/float_quad.h" #include "third_party/blink/renderer/platform/graphics/bitmap_image.h" #include "third_party/blink/renderer/platform/graphics/skia/skia_utils.h" @@ -73,7 +73,7 @@ approach to change color components. #include "third_party/blink/renderer/platform/graphics/stroke_data.h" #include "third_party/blink/renderer/platform/heap/heap.h" -@@ -1978,6 +1979,11 @@ ImageData* BaseRenderingContext2D::getIm +@@ -2005,6 +2006,11 @@ ImageData* BaseRenderingContext2D::getIm snapshot->PaintImageForCurrentFrame().GetSkImageInfo().bounds(); DCHECK(!bounds.intersect(SkIRect::MakeXYWH(sx, sy, sw, sh))); } @@ -87,7 +87,7 @@ approach to change color components. // Wrap |contents| in an ImageData. --- a/third_party/blink/renderer/platform/BUILD.gn +++ b/third_party/blink/renderer/platform/BUILD.gn -@@ -1615,7 +1615,9 @@ component("platform") { +@@ -1619,7 +1619,9 @@ component("platform") { "//third_party/blink/renderer:non_test_config", ] @@ -324,7 +324,7 @@ approach to change color components. // Methods overridden by all sub-classes --- a/third_party/blink/renderer/platform/runtime_enabled_features.json5 +++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5 -@@ -957,6 +957,9 @@ +@@ -954,6 +954,9 @@ name: "FingerprintingCanvasMeasureTextNoise", }, { diff --git a/patches/extra/bromite/flag-max-connections-per-host.patch b/patches/extra/bromite/flag-max-connections-per-host.patch index b77c8e6a..7d583504 100644 --- a/patches/extra/bromite/flag-max-connections-per-host.patch +++ b/patches/extra/bromite/flag-max-connections-per-host.patch @@ -17,7 +17,7 @@ with limited CPU/memory resources and it is disabled by default. --- a/chrome/browser/BUILD.gn +++ b/chrome/browser/BUILD.gn -@@ -2132,6 +2132,7 @@ static_library("browser") { +@@ -2084,6 +2084,7 @@ static_library("browser") { "//components/net_log", "//components/network_hints/common:mojo_bindings", "//components/network_session_configurator/browser", @@ -64,7 +64,7 @@ with limited CPU/memory resources and it is disabled by default. #include "base/synchronization/waitable_event.h" #include "base/task/task_traits.h" #include "base/task/thread_pool.h" -@@ -98,6 +100,7 @@ +@@ -97,6 +99,7 @@ #include "components/metrics/metrics_service.h" #include "components/metrics_services_manager/metrics_services_manager.h" #include "components/metrics_services_manager/metrics_services_manager_client.h" @@ -72,7 +72,7 @@ with limited CPU/memory resources and it is disabled by default. #include "components/network_time/network_time_tracker.h" #include "components/permissions/permissions_client.h" #include "components/policy/core/common/policy_service.h" -@@ -130,6 +133,7 @@ +@@ -129,6 +132,7 @@ #include "media/media_buildflags.h" #include "mojo/public/cpp/bindings/pending_receiver.h" #include "net/log/net_log.h" @@ -101,7 +101,7 @@ with limited CPU/memory resources and it is disabled by default. --- a/chrome/browser/flag_descriptions.cc +++ b/chrome/browser/flag_descriptions.cc -@@ -1451,6 +1451,10 @@ const char kMediaHistoryDescription[] = +@@ -1477,6 +1477,10 @@ const char kMediaHistoryDescription[] = "Enables Media History which records data around media playbacks on " "websites."; @@ -114,7 +114,7 @@ with limited CPU/memory resources and it is disabled by default. const char kMediaRouterCastAllowAllIPsDescription[] = --- a/chrome/browser/flag_descriptions.h +++ b/chrome/browser/flag_descriptions.h -@@ -859,6 +859,9 @@ extern const char kLogJsConsoleMessagesD +@@ -866,6 +866,9 @@ extern const char kLogJsConsoleMessagesD extern const char kMediaHistoryName[]; extern const char kMediaHistoryDescription[]; @@ -149,7 +149,7 @@ with limited CPU/memory resources and it is disabled by default. #endif // COMPONENTS_NETWORK_SESSION_CONFIGURATOR_COMMON_NETWORK_FEATURES_H_ --- a/components/network_session_configurator/common/network_switch_list.h +++ b/components/network_session_configurator/common/network_switch_list.h -@@ -22,6 +22,10 @@ NETWORK_SWITCH(kEnableUserAlternateProto +@@ -19,6 +19,10 @@ NETWORK_SWITCH(kEnableUserAlternateProto // Enables the QUIC protocol. This is a temporary testing flag. NETWORK_SWITCH(kEnableQuic, "enable-quic") diff --git a/patches/extra/debian/disable/google-api-warning.patch b/patches/extra/debian/disable/google-api-warning.patch index 489682a7..44383a77 100644 --- a/patches/extra/debian/disable/google-api-warning.patch +++ b/patches/extra/debian/disable/google-api-warning.patch @@ -3,7 +3,7 @@ author: Michael Gilbert --- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc +++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc -@@ -598,9 +598,6 @@ void StartupBrowserCreatorImpl::AddInfoB +@@ -652,9 +652,6 @@ void StartupBrowserCreatorImpl::AddInfoB } #endif diff --git a/patches/extra/debian/disable/welcome-page.patch b/patches/extra/debian/disable/welcome-page.patch index 8a1f4ee5..002db519 100644 --- a/patches/extra/debian/disable/welcome-page.patch +++ b/patches/extra/debian/disable/welcome-page.patch @@ -4,7 +4,7 @@ bug-debian: http://bugs.debian.org/857767 --- a/chrome/browser/profiles/profile_manager.cc +++ b/chrome/browser/profiles/profile_manager.cc -@@ -1200,7 +1200,7 @@ void ProfileManager::InitProfileUserPref +@@ -1249,7 +1249,7 @@ void ProfileManager::InitProfileUserPref profile->GetPrefs()->SetString(prefs::kSupervisedUserId, supervised_user_id); } diff --git a/patches/extra/debian/gn/parallel.patch b/patches/extra/debian/gn/parallel.patch index 8e04c418..77e01102 100644 --- a/patches/extra/debian/gn/parallel.patch +++ b/patches/extra/debian/gn/parallel.patch @@ -11,7 +11,7 @@ author: Michael Gilbert parser.add_option( '--skip-generate-buildfiles', action='store_true', -@@ -120,8 +121,12 @@ def main(argv): +@@ -121,8 +122,12 @@ def main(argv): shutil.copy2( os.path.join(BOOTSTRAP_DIR, 'last_commit_position.h'), gn_build_dir) diff --git a/patches/extra/inox-patchset/0006-modify-default-prefs.patch b/patches/extra/inox-patchset/0006-modify-default-prefs.patch index 8f8f146a..209aff23 100644 --- a/patches/extra/inox-patchset/0006-modify-default-prefs.patch +++ b/patches/extra/inox-patchset/0006-modify-default-prefs.patch @@ -1,7 +1,7 @@ --- a/chrome/browser/background/background_mode_manager.cc +++ b/chrome/browser/background/background_mode_manager.cc -@@ -362,7 +362,7 @@ void BackgroundModeManager::RegisterPref +@@ -373,7 +373,7 @@ void BackgroundModeManager::RegisterPref registry->RegisterBooleanPref(prefs::kChromeCreatedLoginItem, false); registry->RegisterBooleanPref(prefs::kMigratedLoginItemPref, false); #endif @@ -12,7 +12,7 @@ void BackgroundModeManager::RegisterProfile(Profile* profile) { --- a/chrome/browser/chrome_content_browser_client.cc +++ b/chrome/browser/chrome_content_browser_client.cc -@@ -1239,7 +1239,7 @@ void ChromeContentBrowserClient::Registe +@@ -1292,7 +1292,7 @@ void ChromeContentBrowserClient::Registe void ChromeContentBrowserClient::RegisterProfilePrefs( user_prefs::PrefRegistrySyncable* registry) { registry->RegisterBooleanPref(prefs::kDisable3DAPIs, false); @@ -45,7 +45,7 @@ enum class NetworkPredictionStatus { --- a/chrome/browser/net/profile_network_context_service.cc +++ b/chrome/browser/net/profile_network_context_service.cc -@@ -324,7 +324,7 @@ void ProfileNetworkContextService::Updat +@@ -325,7 +325,7 @@ void ProfileNetworkContextService::Updat void ProfileNetworkContextService::RegisterProfilePrefs( user_prefs::PrefRegistrySyncable* registry) { registry->RegisterBooleanPref( @@ -56,7 +56,7 @@ registry->RegisterBooleanPref(prefs::kGloballyScopeHTTPAuthCacheEnabled, --- a/chrome/browser/profiles/profile.cc +++ b/chrome/browser/profiles/profile.cc -@@ -247,7 +247,7 @@ const char Profile::kProfileKey[] = "__P +@@ -265,7 +265,7 @@ const char Profile::kProfileKey[] = "__P void Profile::RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { registry->RegisterBooleanPref( prefs::kSearchSuggestEnabled, @@ -140,7 +140,7 @@ prefs::kAutofillProfileValidity, "", --- a/components/bookmarks/browser/bookmark_utils.cc +++ b/components/bookmarks/browser/bookmark_utils.cc -@@ -441,12 +441,12 @@ bool DoesBookmarkContainWords(const base +@@ -440,12 +440,12 @@ bool DoesBookmarkContainWords(const std: void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { registry->RegisterBooleanPref( prefs::kShowBookmarkBar, @@ -168,7 +168,7 @@ --- a/components/password_manager/core/browser/password_manager.cc +++ b/components/password_manager/core/browser/password_manager.cc -@@ -208,10 +208,10 @@ FormData SimplifiedFormDataFromFormStruc +@@ -198,10 +198,10 @@ FormData SimplifiedFormDataFromFormStruc void PasswordManager::RegisterProfilePrefs( user_prefs::PrefRegistrySyncable* registry) { registry->RegisterBooleanPref( diff --git a/patches/extra/inox-patchset/0008-restore-classic-ntp.patch b/patches/extra/inox-patchset/0008-restore-classic-ntp.patch index 3f6ab69e..24a150a1 100644 --- a/patches/extra/inox-patchset/0008-restore-classic-ntp.patch +++ b/patches/extra/inox-patchset/0008-restore-classic-ntp.patch @@ -1,7 +1,7 @@ --- a/chrome/browser/search/search.cc +++ b/chrome/browser/search/search.cc -@@ -188,26 +188,7 @@ struct NewTabURLDetails { - : chrome::kChromeSearchLocalNtpUrl); +@@ -182,26 +182,7 @@ struct NewTabURLDetails { + : chrome::kChromeUINewTabPageThirdPartyURL); #endif - if (ShouldShowLocalNewTab(profile)) @@ -13,7 +13,7 @@ - return NewTabURLDetails(local_url, NEW_TAB_URL_BAD); - - GURL search_provider_url(template_url->new_tab_url_ref().ReplaceSearchTerms( -- TemplateURLRef::SearchTermsArgs(base::string16()), +- TemplateURLRef::SearchTermsArgs(std::u16string()), - UIThreadSearchTermsData())); - - if (!search_provider_url.is_valid()) diff --git a/patches/extra/iridium-browser/browser-disable-profile-auto-import-on-first-run.patch b/patches/extra/iridium-browser/browser-disable-profile-auto-import-on-first-run.patch index 2dfdfbae..ef4dee6b 100644 --- a/patches/extra/iridium-browser/browser-disable-profile-auto-import-on-first-run.patch +++ b/patches/extra/iridium-browser/browser-disable-profile-auto-import-on-first-run.patch @@ -9,7 +9,7 @@ Subject: [PATCH 56/66] browser: disable profile auto-import on first run --- a/chrome/browser/chrome_browser_main.cc +++ b/chrome/browser/chrome_browser_main.cc -@@ -1448,8 +1448,6 @@ int ChromeBrowserMainParts::PreMainMessa +@@ -1461,8 +1461,6 @@ int ChromeBrowserMainParts::PreMainMessa // and preferences have been registered since some of the import code depends // on preferences. if (first_run::IsChromeFirstRun()) { diff --git a/patches/extra/iridium-browser/mime_util-force-text-x-suse-ymp-to-be-downloaded.patch b/patches/extra/iridium-browser/mime_util-force-text-x-suse-ymp-to-be-downloaded.patch index 03cb7a47..e66b0d6c 100644 --- a/patches/extra/iridium-browser/mime_util-force-text-x-suse-ymp-to-be-downloaded.patch +++ b/patches/extra/iridium-browser/mime_util-force-text-x-suse-ymp-to-be-downloaded.patch @@ -11,7 +11,7 @@ very interesting in themselves. Force them to be stored. --- a/third_party/blink/common/mime_util/mime_util.cc +++ b/third_party/blink/common/mime_util/mime_util.cc -@@ -81,6 +81,7 @@ static const char* const kUnsupportedTex +@@ -83,6 +83,7 @@ static const char* const kUnsupportedTex "text/x-csv", "text/x-vcf", "text/rtf", diff --git a/patches/extra/iridium-browser/updater-disable-auto-update.patch b/patches/extra/iridium-browser/updater-disable-auto-update.patch index 1ed929a9..8656d422 100644 --- a/patches/extra/iridium-browser/updater-disable-auto-update.patch +++ b/patches/extra/iridium-browser/updater-disable-auto-update.patch @@ -16,7 +16,7 @@ the case anyway, since we are based off Chromium, not Chrome. --- a/chrome/browser/app_controller_mac.mm +++ b/chrome/browser/app_controller_mac.mm -@@ -738,7 +738,7 @@ static base::mac::ScopedObjCClassSwizzle +@@ -728,7 +728,7 @@ static base::mac::ScopedObjCClassSwizzle CFStringRef checkInterval = CFSTR("checkInterval"); CFPropertyListRef plist = CFPreferencesCopyAppValue(checkInterval, app); if (!plist) { diff --git a/patches/extra/ungoogled-chromium/add-flag-for-bookmark-bar-ntp.patch b/patches/extra/ungoogled-chromium/add-flag-for-bookmark-bar-ntp.patch index 9b3eed87..74ffd901 100644 --- a/patches/extra/ungoogled-chromium/add-flag-for-bookmark-bar-ntp.patch +++ b/patches/extra/ungoogled-chromium/add-flag-for-bookmark-bar-ntp.patch @@ -8,7 +8,7 @@ #include "base/observer_list.h" #include "build/build_config.h" #include "build/chromeos_buildflags.h" -@@ -69,10 +70,12 @@ bool BookmarkTabHelper::ShouldShowBookma +@@ -71,10 +72,12 @@ bool BookmarkTabHelper::ShouldShowBookma !prefs->GetBoolean(bookmarks::prefs::kShowBookmarkBar)) return false; diff --git a/patches/extra/ungoogled-chromium/add-flag-for-omnibox-autocomplete-filtering.patch b/patches/extra/ungoogled-chromium/add-flag-for-omnibox-autocomplete-filtering.patch index 75e5150a..8f3714e8 100644 --- a/patches/extra/ungoogled-chromium/add-flag-for-omnibox-autocomplete-filtering.patch +++ b/patches/extra/ungoogled-chromium/add-flag-for-omnibox-autocomplete-filtering.patch @@ -41,7 +41,7 @@ #include "base/feature_list.h" #include "base/format_macros.h" #include "base/metrics/histogram.h" -@@ -276,6 +277,15 @@ AutocompleteController::AutocompleteCont +@@ -275,6 +276,15 @@ AutocompleteController::AutocompleteCont search_service_worker_signal_sent_(false), template_url_service_(provider_client_->GetTemplateURLService()) { provider_types &= ~OmniboxFieldTrial::GetDisabledProviderTypes(); @@ -59,7 +59,7 @@ if (provider_types & AutocompleteProvider::TYPE_BUILTIN) --- a/components/omnibox/browser/history_url_provider.cc +++ b/components/omnibox/browser/history_url_provider.cc -@@ -551,6 +551,9 @@ void HistoryURLProvider::Start(const Aut +@@ -553,6 +553,9 @@ void HistoryURLProvider::Start(const Aut if (fixed_up_input.type() != metrics::OmniboxInputType::QUERY) matches_.push_back(what_you_typed_match); diff --git a/patches/extra/ungoogled-chromium/add-flag-for-pdf-plugin-name.patch b/patches/extra/ungoogled-chromium/add-flag-for-pdf-plugin-name.patch index e85e19ca..9c20985a 100644 --- a/patches/extra/ungoogled-chromium/add-flag-for-pdf-plugin-name.patch +++ b/patches/extra/ungoogled-chromium/add-flag-for-pdf-plugin-name.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/chrome_content_browser_client.cc +++ b/chrome/browser/chrome_content_browser_client.cc -@@ -5926,7 +5926,7 @@ bool ChromeContentBrowserClient::ShouldA +@@ -5794,7 +5794,7 @@ bool ChromeContentBrowserClient::ShouldA const url::Origin& embedder_origin, const content::PepperPluginInfo& plugin_info) { #if BUILDFLAG(ENABLE_PDF) @@ -35,7 +35,7 @@ +++ b/chrome/browser/plugins/plugin_prefs.cc @@ -37,9 +37,9 @@ namespace { - bool IsPDFViewerPlugin(const base::string16& plugin_name) { + bool IsPDFViewerPlugin(const std::u16string& plugin_name) { return (plugin_name == - base::ASCIIToUTF16(ChromeContentClient::kPDFExtensionPluginName)) || + base::ASCIIToUTF16(ChromeContentClient::GetPDFExtensionPluginName())) || @@ -254,7 +254,7 @@ #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ --- a/chrome/common/BUILD.gn +++ b/chrome/common/BUILD.gn -@@ -245,6 +245,7 @@ static_library("common") { +@@ -247,6 +247,7 @@ static_library("common") { "//components/no_state_prefetch/common", "//components/no_state_prefetch/common:mojo_bindings", "//components/page_load_metrics/common:common", @@ -264,7 +264,7 @@ if (enable_plugins) { --- a/chrome/common/chrome_content_client.cc +++ b/chrome/common/chrome_content_client.cc -@@ -142,7 +142,7 @@ void ComputeBuiltInPlugins(std::vector + +#include "base/command_line.h" + #include "build/branding_buildflags.h" #include "chrome/common/chrome_content_client.h" +#include "components/ungoogled/ungoogled_switches.h" - #if defined(GOOGLE_CHROME_BUILD) + #if BUILDFLAG(GOOGLE_CHROME_BRANDING) const base::FilePath::CharType ChromeContentClient::kNotPresent[] = -@@ -14,15 +18,52 @@ const base::FilePath::CharType ChromeCon +@@ -15,15 +19,52 @@ const base::FilePath::CharType ChromeCon FILE_PATH_LITERAL("internal-nacl-plugin"); #endif --#if defined(GOOGLE_CHROME_BUILD) +-#if BUILDFLAG(GOOGLE_CHROME_BRANDING) -const char ChromeContentClient::kPDFExtensionPluginName[] = "Chrome PDF Viewer"; -const char ChromeContentClient::kPDFInternalPluginName[] = "Chrome PDF Plugin"; -#else @@ -362,7 +363,7 @@ FILE_PATH_LITERAL("internal-pdf-viewer"); --- a/chrome/renderer/chrome_content_renderer_client.cc +++ b/chrome/renderer/chrome_content_renderer_client.cc -@@ -955,7 +955,7 @@ WebPlugin* ChromeContentRendererClient:: +@@ -959,7 +959,7 @@ WebPlugin* ChromeContentRendererClient:: } } } else if (info.name == @@ -371,7 +372,7 @@ // Report PDF load metrics. Since the PDF plugin is comprised of an // extension that loads a second plugin, avoid double counting by // ignoring the creation of the second plugin. -@@ -991,7 +991,7 @@ WebPlugin* ChromeContentRendererClient:: +@@ -1005,7 +1005,7 @@ WebPlugin* ChromeContentRendererClient:: PluginUMAReporter::GetInstance()->ReportPluginDisabled(orig_mime_type, url); if (info.name == diff --git a/patches/extra/ungoogled-chromium/add-flag-for-search-engine-collection.patch b/patches/extra/ungoogled-chromium/add-flag-for-search-engine-collection.patch index b50a9b32..59b48694 100644 --- a/patches/extra/ungoogled-chromium/add-flag-for-search-engine-collection.patch +++ b/patches/extra/ungoogled-chromium/add-flag-for-search-engine-collection.patch @@ -13,7 +13,7 @@ #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ --- a/chrome/renderer/chrome_render_frame_observer.cc +++ b/chrome/renderer/chrome_render_frame_observer.cc -@@ -136,9 +136,10 @@ ChromeRenderFrameObserver::ChromeRenderF +@@ -139,9 +139,10 @@ ChromeRenderFrameObserver::ChromeRenderF if (!render_frame->IsMainFrame()) return; @@ -25,7 +25,7 @@ if (!command_line.HasSwitch(switches::kDisableClientSidePhishingDetection)) SetClientSidePhishingDetection(); #endif -@@ -198,14 +199,16 @@ void ChromeRenderFrameObserver::DidFinis +@@ -201,14 +202,16 @@ void ChromeRenderFrameObserver::DidFinis if (frame->Parent()) return; @@ -52,7 +52,7 @@ --- a/chrome/renderer/chrome_render_frame_observer.h +++ b/chrome/renderer/chrome_render_frame_observer.h -@@ -134,6 +134,7 @@ class ChromeRenderFrameObserver : public +@@ -135,6 +135,7 @@ class ChromeRenderFrameObserver : public #if BUILDFLAG(SAFE_BROWSING_AVAILABLE) safe_browsing::PhishingClassifierDelegate* phishing_classifier_ = nullptr; #endif @@ -62,15 +62,15 @@ web_cache::WebCacheImpl* web_cache_impl_; --- a/components/search_engines/template_url_service.cc +++ b/components/search_engines/template_url_service.cc -@@ -11,6 +11,7 @@ - #include "base/base64url.h" +@@ -12,6 +12,7 @@ #include "base/bind.h" #include "base/callback.h" + #include "base/callback_helpers.h" +#include "base/command_line.h" #include "base/containers/contains.h" #include "base/debug/crash_logging.h" #include "base/format_macros.h" -@@ -196,6 +197,12 @@ bool IsCreatedByExtension(const Template +@@ -197,6 +198,12 @@ bool IsCreatedByExtension(const Template template_url->type() == TemplateURL::OMNIBOX_API_EXTENSION; } @@ -83,7 +83,7 @@ } // namespace // TemplateURLService::LessWithPrefix ----------------------------------------- -@@ -280,6 +287,7 @@ TemplateURLService::TemplateURLService( +@@ -281,6 +288,7 @@ TemplateURLService::TemplateURLService( std::unique_ptr client, const base::RepeatingClosure& dsp_change_callback) : prefs_(prefs), @@ -91,7 +91,7 @@ search_terms_data_(std::move(search_terms_data)), web_data_service_(web_data_service), client_(std::move(client)), -@@ -361,8 +369,8 @@ bool TemplateURLService::CanAddAutogener +@@ -362,8 +370,8 @@ bool TemplateURLService::CanAddAutogener // that may interfere with search queries). An easy heuristic for this is // whether the user has a TemplateURL that has been manually modified (e.g., // renamed) connected to the same host. @@ -102,7 +102,7 @@ } bool TemplateURLService::IsPrepopulatedOrCreatedByPolicy( -@@ -1449,6 +1457,8 @@ SyncDataMap TemplateURLService::CreateGU +@@ -1450,6 +1458,8 @@ SyncDataMap TemplateURLService::CreateGU void TemplateURLService::Init(const Initializer* initializers, int num_initializers) { @@ -111,7 +111,7 @@ if (client_) client_->SetOwner(this); -@@ -1585,6 +1595,9 @@ void TemplateURLService::ChangeToLoadedS +@@ -1586,6 +1596,9 @@ void TemplateURLService::ChangeToLoadedS bool TemplateURLService::CanAddAutogeneratedKeywordForHost( const std::string& host) const { @@ -123,7 +123,7 @@ return true; --- a/components/search_engines/template_url_service.h +++ b/components/search_engines/template_url_service.h -@@ -686,6 +686,8 @@ class TemplateURLService : public WebDat +@@ -685,6 +685,8 @@ class TemplateURLService : public WebDat // ---------- Browser state related members --------------------------------- PrefService* prefs_ = nullptr; diff --git a/patches/extra/ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch b/patches/extra/ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch index 851a686d..bda81ddb 100644 --- a/patches/extra/ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch +++ b/patches/extra/ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch @@ -8,7 +8,7 @@ #include "base/containers/flat_map.h" #include "base/metrics/histogram_macros.h" #include "base/metrics/user_metrics.h" -@@ -1755,6 +1756,10 @@ bool TabStripModel::InternalCloseTabs( +@@ -1790,6 +1791,10 @@ bool TabStripModel::InternalCloseTabs( if (items.empty()) return true; diff --git a/patches/extra/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch b/patches/extra/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch index 48af0d4b..f19c848b 100644 --- a/patches/extra/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch +++ b/patches/extra/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch @@ -3,15 +3,15 @@ --- a/chrome/browser/download/download_crx_util.cc +++ b/chrome/browser/download/download_crx_util.cc -@@ -6,6 +6,7 @@ +@@ -8,6 +8,7 @@ - #include "chrome/browser/download/download_crx_util.h" + #include +#include "base/command_line.h" #include "chrome/browser/chrome_notification_types.h" #include "chrome/browser/extensions/crx_installer.h" #include "chrome/browser/extensions/extension_install_prompt.h" -@@ -126,6 +127,14 @@ scoped_refptr +@@ -127,6 +128,14 @@ scoped_refptr return installer; } @@ -26,7 +26,7 @@ bool IsExtensionDownload(const DownloadItem& download_item) { if (download_item.GetTargetDisposition() == DownloadItem::TARGET_DISPOSITION_PROMPT) -@@ -134,7 +143,7 @@ bool IsExtensionDownload(const DownloadI +@@ -135,7 +144,7 @@ bool IsExtensionDownload(const DownloadI if (download_item.GetMimeType() == extensions::Extension::kMimeType || extensions::UserScript::IsURLUserScript(download_item.GetURL(), download_item.GetMimeType())) { @@ -69,7 +69,7 @@ // Don't prompt for file types that are marked for opening automatically. --- a/chrome/browser/extensions/extension_management.cc +++ b/chrome/browser/extensions/extension_management.cc -@@ -8,6 +8,7 @@ +@@ -10,6 +10,7 @@ #include "base/bind.h" #include "base/callback_helpers.h" @@ -77,7 +77,7 @@ #include "base/containers/contains.h" #include "base/logging.h" #include "base/metrics/histogram_functions.h" -@@ -234,6 +235,13 @@ bool ExtensionManagement::IsInstallation +@@ -237,6 +238,13 @@ bool ExtensionManagement::IsInstallation bool ExtensionManagement::IsOffstoreInstallAllowed( const GURL& url, const GURL& referrer_url) const { diff --git a/patches/extra/ungoogled-chromium/add-flag-to-disable-beforeunload.patch b/patches/extra/ungoogled-chromium/add-flag-to-disable-beforeunload.patch index 6266c322..5986b33c 100644 --- a/patches/extra/ungoogled-chromium/add-flag-to-disable-beforeunload.patch +++ b/patches/extra/ungoogled-chromium/add-flag-to-disable-beforeunload.patch @@ -30,4 +30,4 @@ + || base::CommandLine::ForCurrentProcess()->HasSwitch("disable-beforeunload")) { // If a site harassed the user enough for them to put it on mute, then it // lost its privilege to deny unloading. - std::move(callback).Run(true, base::string16()); + std::move(callback).Run(true, std::u16string()); diff --git a/patches/extra/ungoogled-chromium/add-flag-to-disable-local-history-expiration.patch b/patches/extra/ungoogled-chromium/add-flag-to-disable-local-history-expiration.patch index b5bc78aa..87380569 100644 --- a/patches/extra/ungoogled-chromium/add-flag-to-disable-local-history-expiration.patch +++ b/patches/extra/ungoogled-chromium/add-flag-to-disable-local-history-expiration.patch @@ -21,7 +21,7 @@ #include "base/callback_helpers.h" #include "base/compiler_specific.h" #include "base/containers/flat_set.h" -@@ -879,7 +880,8 @@ void HistoryBackend::InitImpl( +@@ -907,7 +908,8 @@ void HistoryBackend::InitImpl( db_->GetStartDate(&first_recorded_time_); // Start expiring old stuff. @@ -29,5 +29,5 @@ + if (!base::CommandLine::ForCurrentProcess()->HasSwitch("keep-old-history")) + expirer_.StartExpiringOldStuff(TimeDelta::FromDays(kExpireDaysThreshold)); - #if defined(OS_ANDROID) - if (backend_client_) { + LOCAL_HISTOGRAM_TIMES("History.InitTime", TimeTicks::Now() - beginning_time); + } diff --git a/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch b/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch index 50663ea8..db149db4 100644 --- a/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch +++ b/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch @@ -18,10 +18,10 @@ #include +#include "base/command_line.h" - #include "base/i18n/uchar.h" #include "base/lazy_instance.h" #include "base/numerics/safe_conversions.h" -@@ -268,6 +269,13 @@ IDNConversionResult IDNToUnicodeWithAdju + #include "base/stl_util.h" +@@ -266,6 +267,13 @@ IDNConversionResult IDNToUnicodeWithAdju host16.reserve(host.length()); host16.insert(host16.end(), host.begin(), host.end()); @@ -34,4 +34,4 @@ + // Compute the top level domain to be used in spoof checks later. base::StringPiece top_level_domain; - base::string16 top_level_domain_unicode; + std::u16string top_level_domain_unicode; diff --git a/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch b/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch index f89093f3..c7a97ebb 100644 --- a/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch +++ b/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch @@ -3,7 +3,7 @@ --- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc +++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc -@@ -553,7 +553,8 @@ void StartupBrowserCreatorImpl::AddInfoB +@@ -607,7 +607,8 @@ void StartupBrowserCreatorImpl::AddInfoB if (command_line_.HasSwitch(switches::kKioskMode)) return; diff --git a/patches/extra/ungoogled-chromium/add-flag-to-scroll-tabs.patch b/patches/extra/ungoogled-chromium/add-flag-to-scroll-tabs.patch index e45b4846..c3486f7b 100644 --- a/patches/extra/ungoogled-chromium/add-flag-to-scroll-tabs.patch +++ b/patches/extra/ungoogled-chromium/add-flag-to-scroll-tabs.patch @@ -38,7 +38,7 @@ BrowserRootView::~BrowserRootView() { // It's possible to destroy the browser while a drop is active. In this case, -@@ -263,7 +278,7 @@ bool BrowserRootView::OnMouseWheel(const +@@ -267,7 +282,7 @@ bool BrowserRootView::OnMouseWheel(const // Scroll-event-changes-tab is incompatible with scrolling tabstrip, so // disable it if the latter feature is enabled. @@ -49,7 +49,7 @@ // tabstrip, or the empty space beside the tabstrip. --- a/chrome/browser/ui/views/frame/browser_root_view.h +++ b/chrome/browser/ui/views/frame/browser_root_view.h -@@ -130,6 +130,8 @@ class BrowserRootView : public views::in +@@ -136,6 +136,8 @@ class BrowserRootView : public views::in int scroll_remainder_x_ = 0; int scroll_remainder_y_ = 0; diff --git a/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch b/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch index cc6e9147..1d974ac8 100644 --- a/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch +++ b/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/ui/views/toolbar/toolbar_view.cc +++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc -@@ -243,14 +243,30 @@ void ToolbarView::Init() { +@@ -250,14 +250,30 @@ void ToolbarView::Init() { std::unique_ptr toolbar_account_icon_container; diff --git a/patches/extra/ungoogled-chromium/add-ipv6-probing-option.patch b/patches/extra/ungoogled-chromium/add-ipv6-probing-option.patch index aef78c63..7a24a0d1 100644 --- a/patches/extra/ungoogled-chromium/add-ipv6-probing-option.patch +++ b/patches/extra/ungoogled-chromium/add-ipv6-probing-option.patch @@ -13,9 +13,9 @@ #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ --- a/net/base/features.cc +++ b/net/base/features.cc -@@ -205,5 +205,7 @@ const base::Feature kSameSiteCookiesBugf - const base::Feature kNoCookieChangeNotificationOnLoad{ - "NoCookieChangeNotificationOnLoad", base::FEATURE_DISABLED_BY_DEFAULT}; +@@ -233,5 +233,7 @@ const base::Feature kDocumentReporting{" + base::FEATURE_DISABLED_BY_DEFAULT}; + #endif // BUILDFLAG(ENABLE_REPORTING) +const base::Feature kSetIpv6ProbeFalse{"SetIpv6ProbeFalse", base::FEATURE_DISABLED_BY_DEFAULT}; + @@ -23,9 +23,9 @@ } // namespace net --- a/net/base/features.h +++ b/net/base/features.h -@@ -308,6 +308,8 @@ NET_EXPORT extern const base::Feature kS - // notifications are still dispatched as usual. - NET_EXPORT extern const base::Feature kNoCookieChangeNotificationOnLoad; +@@ -339,6 +339,8 @@ NET_EXPORT extern const base::Feature kN + NET_EXPORT extern const base::Feature kDocumentReporting; + #endif // BUILDFLAG(ENABLE_REPORTING) +NET_EXPORT extern const base::Feature kSetIpv6ProbeFalse; + @@ -34,7 +34,7 @@ --- a/net/dns/host_resolver_manager.cc +++ b/net/dns/host_resolver_manager.cc -@@ -132,11 +132,6 @@ const unsigned kMinimumTTLSeconds = kCac +@@ -134,11 +134,6 @@ const unsigned kMinimumTTLSeconds = kCac // cached. const int kIPv6ProbePeriodMs = 1000; @@ -46,7 +46,7 @@ enum DnsResolveStatus { RESOLVE_STATUS_DNS_SUCCESS = 0, RESOLVE_STATUS_PROC_SUCCESS, -@@ -3327,7 +3322,7 @@ bool HostResolverManager::IsIPv6Reachabl +@@ -3340,7 +3335,7 @@ bool HostResolverManager::IsIPv6Reachabl (tick_clock_->NowTicks() - last_ipv6_probe_time_).InMilliseconds() > kIPv6ProbePeriodMs) { SetLastIPv6ProbeResult( diff --git a/patches/extra/ungoogled-chromium/add-suggestions-url-field.patch b/patches/extra/ungoogled-chromium/add-suggestions-url-field.patch index c65c5670..91f4a4d2 100644 --- a/patches/extra/ungoogled-chromium/add-suggestions-url-field.patch +++ b/patches/extra/ungoogled-chromium/add-suggestions-url-field.patch @@ -78,7 +78,7 @@ }, --- a/chrome/browser/resources/settings/search_engines_page/search_engines_browser_proxy.js +++ b/chrome/browser/resources/settings/search_engines_page/search_engines_browser_proxy.js -@@ -28,6 +28,7 @@ +@@ -28,6 +28,7 @@ import {addSingletonGetter, sendWithProm * modelIndex: number, * name: string, * url: string, @@ -86,36 +86,35 @@ * urlLocked: boolean}} * @see chrome/browser/ui/webui/settings/search_engine_manager_handler.cc */ -@@ -60,8 +61,10 @@ cr.define('settings', function() { - * @param {string} searchEngine - * @param {string} keyword - * @param {string} queryUrl -+ * @param {string} suggestionsUrl - */ -- searchEngineEditCompleted(searchEngine, keyword, queryUrl) {} -+ searchEngineEditCompleted( -+ searchEngine, keyword, queryUrl, suggestionsUrl) {} +@@ -59,8 +60,9 @@ export class SearchEnginesBrowserProxy { + * @param {string} searchEngine + * @param {string} keyword + * @param {string} queryUrl ++ * @param {string} suggestionsUrl + */ +- searchEngineEditCompleted(searchEngine, keyword, queryUrl) {} ++ searchEngineEditCompleted(searchEngine, keyword, queryUrl, suggestionsUrl) {} - /** @return {!Promise} */ - getSearchEnginesList() {} -@@ -99,11 +102,12 @@ cr.define('settings', function() { - } + /** @return {!Promise} */ + getSearchEnginesList() {} +@@ -98,11 +100,12 @@ export class SearchEnginesBrowserProxyIm + } - /** @override */ -- searchEngineEditCompleted(searchEngine, keyword, queryUrl) { -+ searchEngineEditCompleted(searchEngine, keyword, queryUrl, suggestionsUrl) { - chrome.send('searchEngineEditCompleted', [ - searchEngine, - keyword, - queryUrl, -+ suggestionsUrl - ]); - } + /** @override */ +- searchEngineEditCompleted(searchEngine, keyword, queryUrl) { ++ searchEngineEditCompleted(searchEngine, keyword, queryUrl, suggestionsUrl) { + chrome.send('searchEngineEditCompleted', [ + searchEngine, + keyword, + queryUrl, ++ suggestionsUrl, + ]); + } --- a/chrome/browser/ui/search_engines/edit_search_engine_controller.cc +++ b/chrome/browser/ui/search_engines/edit_search_engine_controller.cc -@@ -66,6 +66,15 @@ bool EditSearchEngineController::IsURLVa - service->search_terms_data())).is_valid(); +@@ -67,6 +67,15 @@ bool EditSearchEngineController::IsURLVa + .is_valid(); } +bool EditSearchEngineController::IsSuggestionsURLValid( @@ -128,12 +127,12 @@ +} + bool EditSearchEngineController::IsKeywordValid( - const base::string16& keyword_input) const { - base::string16 keyword_input_trimmed( -@@ -88,10 +97,12 @@ bool EditSearchEngineController::IsKeywo + const std::u16string& keyword_input) const { + std::u16string keyword_input_trimmed( +@@ -89,10 +98,12 @@ bool EditSearchEngineController::IsKeywo void EditSearchEngineController::AcceptAddOrEdit( - const base::string16& title_input, - const base::string16& keyword_input, + const std::u16string& title_input, + const std::u16string& keyword_input, - const std::string& url_input) { + const std::string& url_input, + const std::string& suggestions_url_input) { @@ -144,7 +143,7 @@ TemplateURLService* template_url_service = TemplateURLServiceFactory::GetForProfile(profile_); -@@ -119,7 +130,8 @@ void EditSearchEngineController::AcceptA +@@ -120,7 +131,8 @@ void EditSearchEngineController::AcceptA } else { // Adding or modifying an entry via the Delegate. edit_keyword_delegate_->OnEditedKeyword(template_url_, title_input, @@ -156,17 +155,17 @@ --- a/chrome/browser/ui/search_engines/edit_search_engine_controller.h +++ b/chrome/browser/ui/search_engines/edit_search_engine_controller.h -@@ -24,7 +24,8 @@ class EditSearchEngineControllerDelegate +@@ -23,7 +23,8 @@ class EditSearchEngineControllerDelegate virtual void OnEditedKeyword(TemplateURL* template_url, - const base::string16& title, - const base::string16& keyword, + const std::u16string& title, + const std::u16string& keyword, - const std::string& url) = 0; + const std::string& url, + const std::string& suggestions_url) = 0; protected: virtual ~EditSearchEngineControllerDelegate() {} -@@ -50,6 +51,8 @@ class EditSearchEngineController { +@@ -49,6 +50,8 @@ class EditSearchEngineController { // character results in a valid url. bool IsURLValid(const std::string& url_input) const; @@ -175,10 +174,10 @@ // Returns true if the value of |keyword_input| represents a valid keyword. // The keyword is valid if it is non-empty and does not conflict with an // existing entry. NOTE: this is just the keyword, not the title and url. -@@ -58,7 +61,8 @@ class EditSearchEngineController { +@@ -57,7 +60,8 @@ class EditSearchEngineController { // Completes the add or edit of a search engine. - void AcceptAddOrEdit(const base::string16& title_input, - const base::string16& keyword_input, + void AcceptAddOrEdit(const std::u16string& title_input, + const std::u16string& keyword_input, - const std::string& url_input); + const std::string& url_input, + const std::string& suggestions_url_input); @@ -191,12 +190,12 @@ KeywordEditorController::~KeywordEditorController() { } --int KeywordEditorController::AddTemplateURL(const base::string16& title, -- const base::string16& keyword, +-int KeywordEditorController::AddTemplateURL(const std::u16string& title, +- const std::u16string& keyword, - const std::string& url) { +int KeywordEditorController::AddTemplateURL( -+ const base::string16& title, -+ const base::string16& keyword, ++ const std::u16string& title, ++ const std::u16string& keyword, + const std::string& url, + const std::string& suggestions_url) { DCHECK(!url.empty()); @@ -211,13 +210,13 @@ } -void KeywordEditorController::ModifyTemplateURL(TemplateURL* template_url, -- const base::string16& title, -- const base::string16& keyword, +- const std::u16string& title, +- const std::u16string& keyword, - const std::string& url) { +void KeywordEditorController::ModifyTemplateURL( + TemplateURL* template_url, -+ const base::string16& title, -+ const base::string16& keyword, ++ const std::u16string& title, ++ const std::u16string& keyword, + const std::string& url, + const std::string& suggestions_url) { DCHECK(!url.empty()); @@ -240,10 +239,10 @@ } --- a/chrome/browser/ui/search_engines/keyword_editor_controller.h +++ b/chrome/browser/ui/search_engines/keyword_editor_controller.h -@@ -26,14 +26,16 @@ class KeywordEditorController { +@@ -25,14 +25,16 @@ class KeywordEditorController { // model. Returns the index of the added URL. - int AddTemplateURL(const base::string16& title, - const base::string16& keyword, + int AddTemplateURL(const std::u16string& title, + const std::u16string& keyword, - const std::string& url); + const std::string& url, + const std::string& suggestions_url); @@ -251,8 +250,8 @@ // Invoked when the user modifies a TemplateURL. Updates the // TemplateURLService and table model appropriately. void ModifyTemplateURL(TemplateURL* template_url, - const base::string16& title, - const base::string16& keyword, + const std::u16string& title, + const std::u16string& keyword, - const std::string& url); + const std::string& url, + const std::string& suggestions_url); @@ -263,8 +262,8 @@ +++ b/chrome/browser/ui/search_engines/template_url_table_model.cc @@ -98,20 +98,24 @@ void TemplateURLTableModel::Remove(int i void TemplateURLTableModel::Add(int index, - const base::string16& short_name, - const base::string16& keyword, + const std::u16string& short_name, + const std::u16string& keyword, - const std::string& url) { + const std::string& url, + const std::string& suggestions_url) { @@ -279,13 +278,13 @@ } -void TemplateURLTableModel::ModifyTemplateURL(int index, -- const base::string16& title, -- const base::string16& keyword, +- const std::u16string& title, +- const std::u16string& keyword, - const std::string& url) { +void TemplateURLTableModel::ModifyTemplateURL( + int index, -+ const base::string16& title, -+ const base::string16& keyword, ++ const std::u16string& title, ++ const std::u16string& keyword, + const std::string& url, + const std::string& suggestions_url) { DCHECK(index >= 0 && index <= RowCount()); @@ -303,18 +302,18 @@ TemplateURL* TemplateURLTableModel::GetTemplateURL(int index) { --- a/chrome/browser/ui/search_engines/template_url_table_model.h +++ b/chrome/browser/ui/search_engines/template_url_table_model.h -@@ -52,13 +52,15 @@ class TemplateURLTableModel : public ui: +@@ -51,13 +51,15 @@ class TemplateURLTableModel : public ui: void Add(int index, - const base::string16& short_name, - const base::string16& keyword, + const std::u16string& short_name, + const std::u16string& keyword, - const std::string& url); + const std::string& url, + const std::string& suggestions_url); // Update the entry at the specified index. void ModifyTemplateURL(int index, - const base::string16& title, - const base::string16& keyword, + const std::u16string& title, + const std::u16string& keyword, - const std::string& url); + const std::string& url, + const std::string& suggestions_url); @@ -343,8 +342,8 @@ if (icon_url.is_valid()) @@ -290,12 +294,14 @@ void SearchEnginesHandler::HandleSearchE void SearchEnginesHandler::OnEditedKeyword(TemplateURL* template_url, - const base::string16& title, - const base::string16& keyword, + const std::u16string& title, + const std::u16string& keyword, - const std::string& url) { + const std::string& url, + const std::string& suggestions_url) { @@ -396,8 +395,8 @@ +++ b/chrome/browser/ui/webui/settings/search_engines_handler.h @@ -46,7 +46,8 @@ class SearchEnginesHandler : public Sett void OnEditedKeyword(TemplateURL* template_url, - const base::string16& title, - const base::string16& keyword, + const std::u16string& title, + const std::u16string& keyword, - const std::string& url) override; + const std::string& url, + const std::string& suggestions_url) override; @@ -417,17 +416,17 @@ --- a/components/search_engines/template_url_service.cc +++ b/components/search_engines/template_url_service.cc -@@ -643,7 +643,8 @@ void TemplateURLService::IncrementUsageC +@@ -644,7 +644,8 @@ void TemplateURLService::IncrementUsageC void TemplateURLService::ResetTemplateURL(TemplateURL* url, - const base::string16& title, - const base::string16& keyword, + const std::u16string& title, + const std::u16string& keyword, - const std::string& search_url) { + const std::string& search_url, + const std::string& suggestions_url) { DCHECK(!IsCreatedByExtension(url)); DCHECK(!keyword.empty()); DCHECK(!search_url.empty()); -@@ -657,6 +658,7 @@ void TemplateURLService::ResetTemplateUR +@@ -658,6 +659,7 @@ void TemplateURLService::ResetTemplateUR } data.safe_for_autoreplace = false; data.last_modified = clock_->Now(); @@ -439,8 +438,8 @@ +++ b/components/search_engines/template_url_service.h @@ -252,7 +252,8 @@ class TemplateURLService : public WebDat void ResetTemplateURL(TemplateURL* url, - const base::string16& title, - const base::string16& keyword, + const std::u16string& title, + const std::u16string& keyword, - const std::string& search_url); + const std::string& search_url, + const std::string& suggestions_url); diff --git a/patches/extra/ungoogled-chromium/add-ungoogled-flag-headers.patch b/patches/extra/ungoogled-chromium/add-ungoogled-flag-headers.patch index 4e46a5c2..8d42738c 100644 --- a/patches/extra/ungoogled-chromium/add-ungoogled-flag-headers.patch +++ b/patches/extra/ungoogled-chromium/add-ungoogled-flag-headers.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -2606,7 +2606,13 @@ constexpr char kWallpaperWebUIInternalNa +@@ -2587,7 +2587,13 @@ const FeatureEntry::FeatureVariation kPa // calculate and verify checksum. // // When adding a new choice, add it to the end of the list. diff --git a/patches/extra/ungoogled-chromium/disable-dial-repeating-discovery.patch b/patches/extra/ungoogled-chromium/disable-dial-repeating-discovery.patch index 2915542c..93c2d060 100644 --- a/patches/extra/ungoogled-chromium/disable-dial-repeating-discovery.patch +++ b/patches/extra/ungoogled-chromium/disable-dial-repeating-discovery.patch @@ -8,7 +8,7 @@ dial_ = CreateDialService(); dial_->AddObserver(this); - DoDiscovery(); -- repeating_timer_.reset(new base::RepeatingTimer()); +- repeating_timer_ = std::make_unique(); - repeating_timer_->Start(FROM_HERE, refresh_interval_delta_, this, - &DialRegistry::DoDiscovery); } diff --git a/patches/extra/ungoogled-chromium/disable-download-quarantine.patch b/patches/extra/ungoogled-chromium/disable-download-quarantine.patch index a0ea848f..a9c6db3c 100644 --- a/patches/extra/ungoogled-chromium/disable-download-quarantine.patch +++ b/patches/extra/ungoogled-chromium/disable-download-quarantine.patch @@ -6,11 +6,11 @@ #include "components/download/public/common/download_interrupt_reasons_utils.h" #include "components/download/public/common/download_item.h" #include "components/download/public/common/download_stats.h" --#include "components/download/quarantine/quarantine.h" +-#include "components/services/quarantine/quarantine.h" #include "crypto/secure_hash.h" #if defined(OS_WIN) -@@ -533,133 +532,12 @@ DownloadInterruptReason BaseFile::Publis +@@ -533,105 +532,6 @@ DownloadInterruptReason BaseFile::Publis } #endif // defined(OS_ANDROID) @@ -88,34 +88,6 @@ - -} // namespace - --#if defined(OS_WIN) || defined(OS_APPLE) || defined(OS_LINUX) || \ -- defined(OS_CHROMEOS) -- --DownloadInterruptReason BaseFile::AnnotateWithSourceInformationSync( -- const std::string& client_guid, -- const GURL& source_url, -- const GURL& referrer_url) { -- DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); -- DCHECK(!detached_); -- DCHECK(!full_path_.empty()); -- -- CONDITIONAL_TRACE(BEGIN0("download", "DownloadFileAnnotate")); -- QuarantineFileResult result = QuarantineFile( -- full_path_, GetEffectiveAuthorityURL(source_url, referrer_url), -- referrer_url, client_guid); -- CONDITIONAL_TRACE(END0("download", "DownloadFileAnnotate")); -- -- return QuarantineFileResultToReason(result); --} --#else // !OS_WIN && !OS_APPLE && !OS_LINUX && !OS_CHROMEOS - DownloadInterruptReason BaseFile::AnnotateWithSourceInformationSync( - const std::string& client_guid, - const GURL& source_url, - const GURL& referrer_url) { - return DOWNLOAD_INTERRUPT_REASON_NONE; - } --#endif -- -void BaseFile::OnFileQuarantined( - bool connection_error, - quarantine::mojom::QuarantineFileResult result) { @@ -144,17 +116,19 @@ void BaseFile::AnnotateWithSourceInformation( const std::string& client_guid, -@@ -667,30 +545,8 @@ void BaseFile::AnnotateWithSourceInforma +@@ -639,32 +539,8 @@ void BaseFile::AnnotateWithSourceInforma const GURL& referrer_url, mojo::PendingRemote remote_quarantine, OnAnnotationDoneCallback on_annotation_done_callback) { - GURL authority_url = GetEffectiveAuthorityURL(source_url, referrer_url); - if (!remote_quarantine) { -#if defined(OS_WIN) -- QuarantineFileResult result = quarantine::SetInternetZoneIdentifierDirectly( -- full_path_, authority_url, referrer_url); +- quarantine::mojom::QuarantineFileResult result = +- quarantine::SetInternetZoneIdentifierDirectly(full_path_, authority_url, +- referrer_url); -#else -- QuarantineFileResult result = QuarantineFileResult::ANNOTATION_FAILED; +- quarantine::mojom::QuarantineFileResult result = +- quarantine::mojom::QuarantineFileResult::ANNOTATION_FAILED; -#endif - std::move(on_annotation_done_callback) - .Run(QuarantineFileResultToReason(result)); @@ -179,17 +153,17 @@ } // namespace download --- a/content/browser/BUILD.gn +++ b/content/browser/BUILD.gn -@@ -64,7 +64,6 @@ source_set("browser") { - "//components/discardable_memory/service", - "//components/download/database", - "//components/download/public/common:public", -- "//components/download/quarantine", - "//components/filename_generation", - "//components/link_header_util", - "//components/metrics", +@@ -78,7 +78,6 @@ source_set("browser") { + "//components/payments/mojom", + "//components/power_scheduler", + "//components/services/filesystem:lib", +- "//components/services/quarantine:quarantine", + "//components/services/storage", + "//components/services/storage:filesystem_proxy_factory", + "//components/services/storage/dom_storage:local_storage_proto", --- a/content/browser/renderer_host/pepper/pepper_file_io_host.cc +++ b/content/browser/renderer_host/pepper/pepper_file_io_host.cc -@@ -437,7 +437,7 @@ void PepperFileIOHost::OnLocalFileOpened +@@ -438,7 +438,7 @@ void PepperFileIOHost::OnLocalFileOpened ppapi::host::ReplyMessageContext reply_context, const base::FilePath& path, base::File::Error error_code) { @@ -198,7 +172,7 @@ // Quarantining a file before its contents are available is only supported on // Windows and Linux. if (!FileOpenForWrite(open_flags_) || error_code != base::File::FILE_OK) { -@@ -458,7 +458,7 @@ void PepperFileIOHost::OnLocalFileOpened +@@ -472,7 +472,7 @@ void PepperFileIOHost::OnLocalFileOpened #endif } @@ -213,17 +187,19 @@ #include "base/macros.h" #include "base/memory/ref_counted.h" #include "base/memory/weak_ptr.h" --#include "components/download/quarantine/quarantine.h" +-#include "components/services/quarantine/public/mojom/quarantine.mojom.h" #include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h" #include "ipc/ipc_listener.h" #include "ipc/ipc_platform_file.h" -@@ -90,10 +89,6 @@ class PepperFileIOHost : public ppapi::h +@@ -91,12 +90,6 @@ class PepperFileIOHost : public ppapi::h const base::FilePath& path, base::File::Error error_code); -- void OnLocalFileQuarantined(ppapi::host::ReplyMessageContext reply_context, -- const base::FilePath& path, -- download::QuarantineFileResult quarantine_result); +- void OnLocalFileQuarantined( +- ppapi::host::ReplyMessageContext reply_context, +- const base::FilePath& path, +- mojo::Remote quarantine_remote, +- quarantine::mojom::QuarantineFileResult quarantine_result); - void SendFileOpenReply(ppapi::host::ReplyMessageContext reply_context, base::File::Error error_code); diff --git a/patches/extra/ungoogled-chromium/disable-formatting-in-omnibox.patch b/patches/extra/ungoogled-chromium/disable-formatting-in-omnibox.patch index 51468568..e7be84f0 100644 --- a/patches/extra/ungoogled-chromium/disable-formatting-in-omnibox.patch +++ b/patches/extra/ungoogled-chromium/disable-formatting-in-omnibox.patch @@ -2,7 +2,7 @@ --- a/components/url_formatter/url_formatter.cc +++ b/components/url_formatter/url_formatter.cc -@@ -471,14 +471,14 @@ ComponentResult IDNToUnicodeOneComponent +@@ -465,14 +465,14 @@ ComponentResult IDNToUnicodeOneComponent } // namespace const FormatUrlType kFormatUrlOmitNothing = 0; diff --git a/patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch b/patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch index 4b8929bd..c8f8f13a 100644 --- a/patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch +++ b/patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch @@ -3,7 +3,7 @@ --- a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc +++ b/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc -@@ -3552,8 +3552,7 @@ ScriptValue WebGLRenderingContextBase::g +@@ -3572,8 +3572,7 @@ ScriptValue WebGLRenderingContextBase::g pname, IdentifiabilityBenignStringToken( String(ContextGL()->GetString(GL_RENDERER)))); } @@ -13,7 +13,7 @@ } SynthesizeGLError( GL_INVALID_ENUM, "getParameter", -@@ -3567,8 +3566,7 @@ ScriptValue WebGLRenderingContextBase::g +@@ -3587,8 +3586,7 @@ ScriptValue WebGLRenderingContextBase::g pname, IdentifiabilityBenignStringToken( String(ContextGL()->GetString(GL_VENDOR)))); } diff --git a/patches/extra/ungoogled-chromium/enable-default-prefetch-privacy-changes.patch b/patches/extra/ungoogled-chromium/enable-default-prefetch-privacy-changes.patch index 04428dfa..992e5f93 100644 --- a/patches/extra/ungoogled-chromium/enable-default-prefetch-privacy-changes.patch +++ b/patches/extra/ungoogled-chromium/enable-default-prefetch-privacy-changes.patch @@ -2,7 +2,7 @@ --- a/third_party/blink/common/features.cc +++ b/third_party/blink/common/features.cc -@@ -334,7 +334,7 @@ const base::Feature kComputePressure{"Co +@@ -375,7 +375,7 @@ const base::Feature kComputePressure{"Co // Prefetch request properties are updated to be privacy-preserving. See // crbug.com/988956. const base::Feature kPrefetchPrivacyChanges{"PrefetchPrivacyChanges", diff --git a/patches/extra/ungoogled-chromium/enable-menu-on-reload-button.patch b/patches/extra/ungoogled-chromium/enable-menu-on-reload-button.patch index 70660142..915b3be1 100644 --- a/patches/extra/ungoogled-chromium/enable-menu-on-reload-button.patch +++ b/patches/extra/ungoogled-chromium/enable-menu-on-reload-button.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/ui/views/toolbar/reload_button.cc +++ b/chrome/browser/ui/views/toolbar/reload_button.cc -@@ -94,7 +94,7 @@ bool ReloadButton::GetMenuEnabled() cons +@@ -83,7 +83,7 @@ bool ReloadButton::GetMenuEnabled() cons } void ReloadButton::SetMenuEnabled(bool enable) { @@ -10,4 +10,4 @@ + menu_enabled_ = true; } - void ReloadButton::OnThemeChanged() { + void ReloadButton::OnMouseExited(const ui::MouseEvent& event) { diff --git a/patches/extra/ungoogled-chromium/enable-page-saving-on-more-pages.patch b/patches/extra/ungoogled-chromium/enable-page-saving-on-more-pages.patch index 49b75f22..d541a11b 100644 --- a/patches/extra/ungoogled-chromium/enable-page-saving-on-more-pages.patch +++ b/patches/extra/ungoogled-chromium/enable-page-saving-on-more-pages.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/ui/browser_commands.cc +++ b/chrome/browser/ui/browser_commands.cc -@@ -411,11 +411,6 @@ int GetContentRestrictions(const Browser +@@ -415,11 +415,6 @@ int GetContentRestrictions(const Browser CoreTabHelper* core_tab_helper = CoreTabHelper::FromWebContents(current_tab); content_restrictions = core_tab_helper->content_restrictions(); @@ -14,7 +14,7 @@ } return content_restrictions; } -@@ -1249,8 +1244,7 @@ bool CanSavePage(const Browser* browser) +@@ -1272,8 +1267,7 @@ bool CanSavePage(const Browser* browser) prefs::kAllowFileSelectionDialogs)) { return false; } diff --git a/patches/extra/ungoogled-chromium/enable-paste-and-go-new-tab-button.patch b/patches/extra/ungoogled-chromium/enable-paste-and-go-new-tab-button.patch index 2edf7463..a9d3d23e 100644 --- a/patches/extra/ungoogled-chromium/enable-paste-and-go-new-tab-button.patch +++ b/patches/extra/ungoogled-chromium/enable-paste-and-go-new-tab-button.patch @@ -13,7 +13,7 @@ AddChildView(std::make_unique()); --- a/chrome/browser/ui/views/tabs/tab_strip.cc +++ b/chrome/browser/ui/views/tabs/tab_strip.cc -@@ -2664,8 +2664,6 @@ void TabStrip::NewTabButtonPressed(const +@@ -2651,8 +2651,6 @@ void TabStrip::NewTabButtonPressed(const const ui::MouseEvent& mouse = static_cast(event); if (mouse.IsOnlyMiddleMouseButton()) { @@ -21,8 +21,8 @@ - ui::ClipboardBuffer::kSelection)) { ui::Clipboard* clipboard = ui::Clipboard::GetForCurrentThread(); CHECK(clipboard); - base::string16 clipboard_text; -@@ -2673,7 +2671,6 @@ void TabStrip::NewTabButtonPressed(const + std::u16string clipboard_text; +@@ -2660,7 +2658,6 @@ void TabStrip::NewTabButtonPressed(const /* data_dst = */ nullptr, &clipboard_text); if (!clipboard_text.empty()) controller_->CreateNewTabWithLocation(clipboard_text); diff --git a/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch b/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch index df8b114f..6727d6f1 100644 --- a/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch +++ b/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch @@ -27,7 +27,7 @@ href="chrome://settings/clearBrowserData" --- a/chrome/browser/resources/settings/a11y_page/a11y_page.html +++ b/chrome/browser/resources/settings/a11y_page/a11y_page.html -@@ -57,10 +57,6 @@ +@@ -51,10 +51,6 @@ sub-label="$i18n{accessibleImageLabelsSubtitle}"> @@ -36,11 +36,11 @@ - external> - - -