mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Compare commits
95 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b06b34b5e9 | |||
| b102956f52 | |||
| 1676a4071e | |||
| 9b49458bc2 | |||
| b3733ec6aa | |||
| ac863716dd | |||
| 05ab79d610 | |||
| e67c0db58f | |||
| 8041351f2b | |||
| 2fd8ab8736 | |||
| bb720ee09f | |||
| 3175ba89bd | |||
| 1d218c894b | |||
| 3e07bd785f | |||
| a3072fedab | |||
| a749a3e3e2 | |||
| d145111dd0 | |||
| 2ce45ab9f2 | |||
| ab9a39c516 | |||
| 7b77584e8c | |||
| bcf3330b42 | |||
| a2d63db83b | |||
| b3f08938ce | |||
| 4a95606bfa | |||
| 76462eb66c | |||
| ec8480c3f5 | |||
| c94c96e62e | |||
| fa41ca5fca | |||
| 9df88459b8 | |||
| 7e1d9dd767 | |||
| ccb227dc03 | |||
| 94fa070851 | |||
| 1a266da9a3 | |||
| 6312142913 | |||
| 64ef95a6eb | |||
| a7e5433e7c | |||
| 4f803de791 | |||
| aebf0a4387 | |||
| be8ba95803 | |||
| c3ba3d8999 | |||
| 403e3fe01d | |||
| 5ee42465ab | |||
| aa487a75cd | |||
| 24b594f89e | |||
| 6a1cd43391 | |||
| 675cf80cde | |||
| 0008cd2cec | |||
| fece071fb4 | |||
| 43dfac4447 | |||
| 5d33305095 | |||
| 52dc69ac18 | |||
| 633d41748b | |||
| c8a824ec85 | |||
| 1fe645253d | |||
| a4f89dfb1c | |||
| 13f49f28cc | |||
| e9a04a2ccf | |||
| 80dfd780db | |||
| c9a0eaf2c0 | |||
| 9f7755dbd7 | |||
| 110cab3432 | |||
| 0f9df28d13 | |||
| 060fa834e5 | |||
| be47d96c1f | |||
| f049404ad5 | |||
| 232f940dbd | |||
| b3d929f6e2 | |||
| 5f296ba37d | |||
| 3668280470 | |||
| 673aaf7698 | |||
| 9113a4cda7 | |||
| e9de843abe | |||
| 367118d103 | |||
| 8da7b370f7 | |||
| 06a3ebf3d3 | |||
| 4991dcc364 | |||
| 7222174274 | |||
| 2315522ef2 | |||
| dc61f5cf4f | |||
| 8486eb8436 | |||
| 537ba368e9 | |||
| 61c7f706eb | |||
| ee6294e217 | |||
| e3bcfa4148 | |||
| 4700d1bc7e | |||
| 617bd4b75e | |||
| 7b31f0b137 | |||
| 7815dd5522 | |||
| 48577b920b | |||
| a264ac047d | |||
| eaf2714853 | |||
| cc1db76e65 | |||
| ae476a674c | |||
| 74779ebab4 | |||
| 70627f67f4 |
@@ -0,0 +1 @@
|
||||
*.patch linguist-language=C++
|
||||
@@ -0,0 +1 @@
|
||||
https://helium.computer/funding.json
|
||||
@@ -13,6 +13,14 @@ runs:
|
||||
shell: bash
|
||||
run: sudo apt install quilt
|
||||
|
||||
- name: Clear disk space
|
||||
shell: bash
|
||||
run: |
|
||||
sudo rm -rf /usr/lib/jvm \
|
||||
/usr/lib/google-cloud-sdk \
|
||||
/usr/lib/dotnet \
|
||||
/usr/share/swift
|
||||
|
||||
- name: Bump revision and make PR
|
||||
shell: bash
|
||||
env:
|
||||
|
||||
@@ -1 +1 @@
|
||||
142.0.7444.59
|
||||
143.0.7499.40
|
||||
|
||||
+26
-4
@@ -16,6 +16,10 @@ def _read_text(path):
|
||||
return filter(str, f.read().splitlines())
|
||||
|
||||
|
||||
def _read_patch(path):
|
||||
return unidiff.PatchSet('\n'.join(_read_text(path)))
|
||||
|
||||
|
||||
def _init(root):
|
||||
global patches_dir
|
||||
global series
|
||||
@@ -59,8 +63,7 @@ def c_all_new_files_have_license_header():
|
||||
if 'helium' not in patch:
|
||||
continue
|
||||
|
||||
patch_set = unidiff.PatchSet('\n'.join(_read_text(patch)))
|
||||
added_files = filter(lambda f: f.is_added_file, patch_set)
|
||||
added_files = filter(lambda f: f.is_added_file, _read_patch(patch))
|
||||
|
||||
for file in added_files:
|
||||
if any(p in file.path.lower() for p in LICENSE_HEADER_IGNORES):
|
||||
@@ -75,8 +78,8 @@ def c_all_new_headers_have_correct_guard():
|
||||
if 'helium' not in patch:
|
||||
continue
|
||||
|
||||
patch_set = unidiff.PatchSet('\n'.join(_read_text(patch)))
|
||||
added_files = filter(lambda f: f.is_added_file and f.path.endswith('.h'), patch_set)
|
||||
added_files = filter(lambda f: f.is_added_file and f.path.endswith('.h'),
|
||||
_read_patch(patch))
|
||||
|
||||
for file in added_files:
|
||||
expected_macro_name = file.path.upper() \
|
||||
@@ -112,3 +115,22 @@ def c_all_new_headers_have_correct_guard():
|
||||
assert value == f"+{expected[macro_type]}\n", \
|
||||
f"Patch {patch} has unexpected {macro_type} in {file.path}:" \
|
||||
f"{value_print}, expecting: {expected[macro_type]}"
|
||||
|
||||
|
||||
def d_no_whitespace_only_changes():
|
||||
for patch in series:
|
||||
if 'helium' not in patch:
|
||||
continue
|
||||
|
||||
for file in _read_patch(patch):
|
||||
for hunk in file:
|
||||
seen_nonws = False
|
||||
for line in hunk:
|
||||
line = str(line)
|
||||
|
||||
if line.startswith('+') or line.startswith('-'):
|
||||
seen_nonws = seen_nonws or len(line.rstrip()) > 1
|
||||
|
||||
assert seen_nonws, \
|
||||
f"Patch {patch} contains hunk consisting of "\
|
||||
f"only whitespace characters in {file.path}: {hunk}"
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2025 The Helium Authors
|
||||
# You can use, redistribute, and/or modify this source code under
|
||||
# the terms of the GPL-3.0 license that can be found in the LICENSE file.
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
@@ -67,19 +63,19 @@ def _dir_empty(path):
|
||||
return False
|
||||
|
||||
|
||||
def _rename_files_with_dirs(root_dir, sorted_file_iter):
|
||||
def _rename_files_with_dirs(root_dir, source_dir, sorted_file_iter):
|
||||
'''
|
||||
Moves a list of sorted files back to the upstream repo, removing empty directories along the way
|
||||
Moves a list of sorted files back to their original location,
|
||||
removing empty directories along the way
|
||||
'''
|
||||
past_parent = None
|
||||
upstream_path = Path(os.path.dirname(os.path.realpath(__file__))) / '../patches'
|
||||
for partial_path in sorted_file_iter:
|
||||
complete_path = Path(root_dir, partial_path)
|
||||
complete_upstream_path = Path(upstream_path, partial_path)
|
||||
complete_source_path = Path(source_dir, partial_path)
|
||||
try:
|
||||
complete_path.rename(complete_upstream_path)
|
||||
complete_path.rename(complete_source_path)
|
||||
except FileNotFoundError:
|
||||
get_logger().warning('Could not remove prepended patch: %s', complete_path)
|
||||
get_logger().warning('Could not move prepended patch: %s', complete_path)
|
||||
if past_parent != complete_path.parent:
|
||||
while past_parent and _dir_empty(past_parent):
|
||||
past_parent.rmdir()
|
||||
@@ -91,7 +87,7 @@ def _rename_files_with_dirs(root_dir, sorted_file_iter):
|
||||
complete_path = complete_path.parent
|
||||
|
||||
|
||||
def unmerge_platform_patches(platform_patches_dir):
|
||||
def unmerge_platform_patches(platform_patches_dir, prepend_patches_dir):
|
||||
'''
|
||||
Undo merge_platform_patches(), adding any new patches from series.merged as necessary
|
||||
|
||||
@@ -105,8 +101,8 @@ def unmerge_platform_patches(platform_patches_dir):
|
||||
filter(len,
|
||||
(platform_patches_dir / _SERIES_PREPEND).read_text(encoding=ENCODING).splitlines()))
|
||||
|
||||
# Move prepended files to original location, preserving changes, and clean up
|
||||
_rename_files_with_dirs(platform_patches_dir, sorted(prepend_series))
|
||||
# Move prepended files back to original location, preserving changes
|
||||
_rename_files_with_dirs(platform_patches_dir, prepend_patches_dir, sorted(prepend_series))
|
||||
|
||||
# Determine positions of blank spaces in series.orig
|
||||
if not (platform_patches_dir / _SERIES_ORIG).exists():
|
||||
@@ -175,10 +171,11 @@ def main():
|
||||
repo_dir = Path(__file__).resolve().parent.parent
|
||||
|
||||
success = False
|
||||
prepend_patches_dir = repo_dir / 'patches'
|
||||
if args.command == 'merge':
|
||||
success = merge_platform_patches(args.platform_patches, repo_dir / 'patches')
|
||||
success = merge_platform_patches(args.platform_patches, prepend_patches_dir)
|
||||
elif args.command == 'unmerge':
|
||||
success = unmerge_platform_patches(args.platform_patches)
|
||||
success = unmerge_platform_patches(args.platform_patches, prepend_patches_dir)
|
||||
else:
|
||||
raise NotImplementedError(args.command)
|
||||
|
||||
|
||||
+134
-65
@@ -56,7 +56,6 @@ ash/login/ui/auth_icon_view.cc
|
||||
ash/login/ui/login_remove_account_dialog_unittest.cc
|
||||
ash/metrics/demo_session_metrics_recorder_unittest.cc
|
||||
ash/projector/projector_metadata_model.cc
|
||||
ash/public/cpp/android_intent_helper_unittest.cc
|
||||
ash/public/cpp/system_notification_builder_unittest.cc
|
||||
ash/quick_insert/model/quick_insert_link_suggester.cc
|
||||
ash/quick_insert/model/quick_insert_link_suggester_unittest.cc
|
||||
@@ -515,8 +514,9 @@ cc/input/scroll_state.h
|
||||
cc/input/scrollbar_controller.h
|
||||
cc/metrics/average_lag_tracker.h
|
||||
cc/metrics/event_metrics.h
|
||||
cc/metrics/scroll_jank_dropped_frame_tracker.cc
|
||||
cc/metrics/scroll_jank_dropped_frame_tracker.h
|
||||
cc/metrics/scroll_jank_v4_decider.cc
|
||||
cc/metrics/scroll_jank_v4_decider.h
|
||||
cc/metrics/scroll_jank_v4_processor.h
|
||||
cc/paint/paint_image.h
|
||||
cc/paint/tone_map_util.cc
|
||||
cc/scheduler/scheduler_state_machine.cc
|
||||
@@ -552,6 +552,8 @@ chrome/app/theme/PRESUBMIT.py
|
||||
chrome/browser/PRESUBMIT.py
|
||||
chrome/browser/about_flags.cc
|
||||
chrome/browser/accessibility/live_caption/live_caption_speech_recognition_host_browsertest.cc
|
||||
chrome/browser/actor/safety_list_manager.cc
|
||||
chrome/browser/actor/safety_list_manager_unittest.cc
|
||||
chrome/browser/actor/site_policy_browsertest.cc
|
||||
chrome/browser/ai/ai_data_keyed_service.cc
|
||||
chrome/browser/ai/ai_language_model.cc
|
||||
@@ -599,7 +601,6 @@ chrome/browser/apps/app_service/publishers/arc_apps.cc
|
||||
chrome/browser/apps/app_service/publishers/arc_apps_unittest.cc
|
||||
chrome/browser/apps/app_service/publishers/publisher_unittest.cc
|
||||
chrome/browser/apps/app_service/web_contents_app_id_utils.h
|
||||
chrome/browser/apps/app_service/webapk/webapk_install_task.cc
|
||||
chrome/browser/apps/digital_goods/digital_goods_factory_impl.cc
|
||||
chrome/browser/apps/guest_view/web_view_browsertest.cc
|
||||
chrome/browser/apps/intent_helper/intent_chip_display_prefs_unittest.cc
|
||||
@@ -649,6 +650,7 @@ chrome/browser/ash/app_restore/full_restore_service_unittest.cc
|
||||
chrome/browser/ash/app_restore/informed_restore_browsertest.cc
|
||||
chrome/browser/ash/apps/apk_web_app_installer_browsertest.cc
|
||||
chrome/browser/ash/apps/apk_web_app_installer_unittest.cc
|
||||
chrome/browser/ash/apps/webapk/webapk_install_task.cc
|
||||
chrome/browser/ash/arc/adbd/arc_adbd_monitor_bridge_unittest.cc
|
||||
chrome/browser/ash/arc/arc_util_unittest.cc
|
||||
chrome/browser/ash/arc/auth/arc_auth_service_browsertest.cc
|
||||
@@ -670,7 +672,6 @@ 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/arc/tracing/overview_tracing_handler.cc
|
||||
chrome/browser/ash/assistant/assistant_util.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
|
||||
@@ -946,8 +947,13 @@ chrome/browser/content_settings/content_settings_pref_provider_unittest.cc
|
||||
chrome/browser/content_settings/host_content_settings_map_unittest.cc
|
||||
chrome/browser/content_settings/javascript_optimizer_provider_android_unittest.cc
|
||||
chrome/browser/content_settings/sound_content_setting_observer_unittest.cc
|
||||
chrome/browser/contextual_cueing/caching_zero_state_suggestions_manager_unittest.cc
|
||||
chrome/browser/contextual_cueing/zero_state_suggestions_browsertest.cc
|
||||
chrome/browser/contextual_tasks/contextual_tasks_context_controller_impl_unittest.cc
|
||||
chrome/browser/contextual_tasks/contextual_tasks_ui.cc
|
||||
chrome/browser/contextual_tasks/contextual_tasks_ui_service.cc
|
||||
chrome/browser/contextual_tasks/contextual_tasks_ui_service_unittest.cc
|
||||
chrome/browser/contextual_tasks/tab_strip_context_decorator_unittest.cc
|
||||
chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc
|
||||
chrome/browser/data_sharing/desktop/data_sharing_conversion_utils_unittest.cc
|
||||
chrome/browser/data_sharing/desktop/data_sharing_service_browsertest.cc
|
||||
@@ -1101,6 +1107,7 @@ chrome/browser/extensions/extension_context_menu_model_browsertest.cc
|
||||
chrome/browser/extensions/extension_keybinding_browsertest.cc
|
||||
chrome/browser/extensions/extension_loading_browsertest.cc
|
||||
chrome/browser/extensions/extension_management.cc
|
||||
chrome/browser/extensions/extension_management_unittest.cc
|
||||
chrome/browser/extensions/extension_override_apitest.cc
|
||||
chrome/browser/extensions/extension_prefs_unittest.cc
|
||||
chrome/browser/extensions/extension_service_test_base.cc
|
||||
@@ -1115,7 +1122,6 @@ chrome/browser/extensions/external_pref_loader.cc
|
||||
chrome/browser/extensions/external_provider_impl_chromeos_unittest.cc
|
||||
chrome/browser/extensions/file_handlers/web_file_handlers_permission_handler.cc
|
||||
chrome/browser/extensions/forced_extensions/force_installed_test_base.cc
|
||||
chrome/browser/extensions/install_signer.cc
|
||||
chrome/browser/extensions/installed_loader_unittest.cc
|
||||
chrome/browser/extensions/lazy_background_page_apitest.cc
|
||||
chrome/browser/extensions/menu_manager_unittest.cc
|
||||
@@ -1160,7 +1166,7 @@ chrome/browser/file_system_access/cloud_identifier/cloud_identifier_util_ash_bro
|
||||
chrome/browser/first_run/bookmark_importer_unittest.cc
|
||||
chrome/browser/first_run/first_run_unittest.cc
|
||||
chrome/browser/flag-metadata.json
|
||||
chrome/browser/flag_descriptions.cc
|
||||
chrome/browser/flag_descriptions.h
|
||||
chrome/browser/flags/android/chrome_session_state.h
|
||||
chrome/browser/font_prewarmer_tab_helper_browsertest.cc
|
||||
chrome/browser/glic/e2e_test/glic_e2e_test.cc
|
||||
@@ -1171,6 +1177,7 @@ chrome/browser/glic/fre/glic_fre_page_handler.cc
|
||||
chrome/browser/glic/glic_metrics_unittest.cc
|
||||
chrome/browser/glic/glic_user_status_browsertest.cc
|
||||
chrome/browser/glic/host/glic_annotation_manager_interactive_uitest.cc
|
||||
chrome/browser/glic/host/glic_api_browsertest.cc
|
||||
chrome/browser/glic/host/glic_cookie_synchronizer.cc
|
||||
chrome/browser/glic/host/glic_cookie_synchronizer_unittest.cc
|
||||
chrome/browser/glic/host/glic_page_handler.cc
|
||||
@@ -1332,6 +1339,7 @@ chrome/browser/page_load_metrics/observers/gws_abandoned_page_load_metrics_obser
|
||||
chrome/browser/page_load_metrics/observers/gws_hp_page_load_metrics_observer_browsertest.cc
|
||||
chrome/browser/page_load_metrics/observers/gws_page_load_metrics_observer_browsertest.cc
|
||||
chrome/browser/page_load_metrics/observers/gws_page_load_metrics_observer_unittest.cc
|
||||
chrome/browser/page_load_metrics/observers/initial_webui_page_load_metrics_observer.h
|
||||
chrome/browser/page_load_metrics/observers/loading_predictor_page_load_metrics_observer_unittest.cc
|
||||
chrome/browser/page_load_metrics/observers/local_network_requests_page_load_metrics_observer_unittest.cc
|
||||
chrome/browser/page_load_metrics/observers/multi_tab_loading_page_load_metrics_observer_unittest.cc
|
||||
@@ -1378,6 +1386,7 @@ chrome/browser/policy/cloud/cloud_policy_browsertest.cc
|
||||
chrome/browser/policy/cloud/cloud_policy_invalidator.h
|
||||
chrome/browser/policy/cloud/device_management_service_browsertest.cc
|
||||
chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc
|
||||
chrome/browser/policy/developer_tools_policy_checker_unittest.cc
|
||||
chrome/browser/policy/extension_policy_browsertest.cc
|
||||
chrome/browser/policy/messaging_layer/upload/file_upload_impl.cc
|
||||
chrome/browser/policy/policy_prefs_browsertest.cc
|
||||
@@ -1527,8 +1536,6 @@ chrome/browser/resources/chromeos/accessibility/common/testing/mock_tts.js
|
||||
chrome/browser/resources/chromeos/accessibility/common/tutorial/chromevox_tutorial.js
|
||||
chrome/browser/resources/chromeos/accessibility/definitions/command_line_private.d.ts
|
||||
chrome/browser/resources/chromeos/accessibility/select_to_speak/mv2/select_to_speak.ts
|
||||
chrome/browser/resources/chromeos/accessibility/select_to_speak/mv2/select_to_speak_navigation_control_test.js
|
||||
chrome/browser/resources/chromeos/accessibility/select_to_speak/mv2/select_to_speak_unittest.js
|
||||
chrome/browser/resources/chromeos/accessibility/select_to_speak/mv3/select_to_speak.ts
|
||||
chrome/browser/resources/chromeos/accessibility/select_to_speak/mv3/select_to_speak_navigation_control_test.js
|
||||
chrome/browser/resources/chromeos/accessibility/select_to_speak/mv3/select_to_speak_unittest.js
|
||||
@@ -1572,6 +1579,7 @@ chrome/browser/resources/default_apps/external_extensions.json
|
||||
chrome/browser/resources/downloads/icons.html
|
||||
chrome/browser/resources/extensions/detail_view.ts
|
||||
chrome/browser/resources/extensions/mv2_deprecation_panel.ts
|
||||
chrome/browser/resources/extensions_zero_state_promo/zero_state_promo_app.html.ts
|
||||
chrome/browser/resources/feedback/js/feedback_util.ts
|
||||
chrome/browser/resources/gaia_auth_host/PRESUBMIT.py
|
||||
chrome/browser/resources/gaia_auth_host/authenticator.js
|
||||
@@ -1815,6 +1823,7 @@ chrome/browser/tab_contents/navigation_metrics_recorder_browsertest.cc
|
||||
chrome/browser/tab_ui/android/java/strings/android_tab_ui_strings.grd
|
||||
chrome/browser/task_manager/sampling/shared_sampler_win_defines.h
|
||||
chrome/browser/themes/theme_syncable_service.cc
|
||||
chrome/browser/touch_to_fill/autofill/android/touch_to_fill_payment_method_controller_unittest.cc
|
||||
chrome/browser/translate/translate_manager_browsertest.cc
|
||||
chrome/browser/trusted_vault/trusted_vault_encryption_keys_tab_helper_browsertest.cc
|
||||
chrome/browser/ui/accelerator_table.cc
|
||||
@@ -1865,7 +1874,6 @@ chrome/browser/ui/ash/wallpaper/wallpaper_controller_client_impl.cc
|
||||
chrome/browser/ui/ash/web_view/ash_web_view_impl_browsertest.cc
|
||||
chrome/browser/ui/ash/wm/coral_browsertest.cc
|
||||
chrome/browser/ui/autofill/address_editor_controller_unittest.cc
|
||||
chrome/browser/ui/autofill/autofill_ai/save_or_update_autofill_ai_data_controller_impl.cc
|
||||
chrome/browser/ui/autofill/autofill_keyboard_accessory_controller_impl.cc
|
||||
chrome/browser/ui/autofill/chrome_autofill_client.cc
|
||||
chrome/browser/ui/autofill/delete_address_profile_dialog_controller_impl_browsertest.cc
|
||||
@@ -1934,6 +1942,7 @@ chrome/browser/ui/managed_ui_browsertest.cc
|
||||
chrome/browser/ui/media_router/media_router_ui_helper_unittest.cc
|
||||
chrome/browser/ui/media_router/media_router_ui_unittest.cc
|
||||
chrome/browser/ui/media_router/query_result_manager.h
|
||||
chrome/browser/ui/omnibox/omnibox_context_menu_controller_browsertest.cc
|
||||
chrome/browser/ui/omnibox/omnibox_edit_model.cc
|
||||
chrome/browser/ui/omnibox/omnibox_edit_model.h
|
||||
chrome/browser/ui/omnibox/omnibox_edit_model_unittest.cc
|
||||
@@ -1986,6 +1995,7 @@ chrome/browser/ui/tabs/pinned_tab_service_browsertest.cc
|
||||
chrome/browser/ui/tabs/saved_tab_groups/collaboration_messaging_page_action_controller_unittest.cc
|
||||
chrome/browser/ui/tabs/saved_tab_groups/collaboration_messaging_tab_data_unittest.cc
|
||||
chrome/browser/ui/tabs/saved_tab_groups/instant_message_queue_processor_unittest.cc
|
||||
chrome/browser/ui/tabs/saved_tab_groups/tab_group_menu_utils_unittest.cc
|
||||
chrome/browser/ui/tabs/saved_tab_groups/tab_group_sync_delegate_browsertest.cc
|
||||
chrome/browser/ui/tabs/tab_list_interface_observer.h
|
||||
chrome/browser/ui/tabs/tab_strip_api/tab_strip_service_impl_browsertest.cc
|
||||
@@ -1996,7 +2006,7 @@ chrome/browser/ui/toolbar/cast/cast_toolbar_button_util.cc
|
||||
chrome/browser/ui/toolbar/location_bar_model_unittest.cc
|
||||
chrome/browser/ui/url_identity_unittest.cc
|
||||
chrome/browser/ui/views/apps/app_dialog/app_uninstall_dialog_view.cc
|
||||
chrome/browser/ui/views/autofill/autofill_ai/save_or_update_autofill_ai_data_bubble_view_browsertest.cc
|
||||
chrome/browser/ui/views/autofill/autofill_ai/autofill_ai_import_data_bubble_view_browsertest.cc
|
||||
chrome/browser/ui/views/autofill/payments/filled_card_information_bubble_views_interactive_uitest.cc
|
||||
chrome/browser/ui/views/autofill/payments/iban_bubble_view_uitest.cc
|
||||
chrome/browser/ui/views/autofill/payments/offer_notification_bubble_views_test_base.cc
|
||||
@@ -2032,7 +2042,6 @@ chrome/browser/ui/views/frame/browser_view.h
|
||||
chrome/browser/ui/views/frame/browser_view_browsertest.cc
|
||||
chrome/browser/ui/views/frame/multi_contents_drop_target_view_unittest.cc
|
||||
chrome/browser/ui/views/frame/multi_contents_view_browsertest.cc
|
||||
chrome/browser/ui/views/frame/multi_contents_view_drop_target_controller_browsertest.cc
|
||||
chrome/browser/ui/views/frame/multi_contents_view_drop_target_controller_unittest.cc
|
||||
chrome/browser/ui/views/frame/webui_tab_strip_interactive_uitest.cc
|
||||
chrome/browser/ui/views/intent_picker_bubble_view_browsertest.cc
|
||||
@@ -2075,6 +2084,8 @@ chrome/browser/ui/views/profiles/profiles_pixel_test_utils.cc
|
||||
chrome/browser/ui/views/profiles/sync_confirmation_ui_browsertest.cc
|
||||
chrome/browser/ui/views/promos/ios_promo_constants.h
|
||||
chrome/browser/ui/views/qrcode_generator/qrcode_generator_bubble_unittest.cc
|
||||
chrome/browser/ui/views/search_engines/dse_reset_dialog.cc
|
||||
chrome/browser/ui/views/search_engines/dse_reset_dialog_view_browsertest.cc
|
||||
chrome/browser/ui/views/select_file_dialog_extension/select_file_dialog_extension_browsertest.cc
|
||||
chrome/browser/ui/views/session_crashed_bubble_view.cc
|
||||
chrome/browser/ui/views/sharing/click_to_call_browsertest.cc
|
||||
@@ -2144,6 +2155,7 @@ chrome/browser/ui/webui/management/management_ui_handler_unittest.cc
|
||||
chrome/browser/ui/webui/media_router/cast_feedback_ui.cc
|
||||
chrome/browser/ui/webui/nearby_internals/quick_pair/quick_pair_handler.cc
|
||||
chrome/browser/ui/webui/new_tab_footer/new_tab_footer_handler_browsertest.cc
|
||||
chrome/browser/ui/webui/new_tab_page/action_chips/action_chips_handler_unittest.cc
|
||||
chrome/browser/ui/webui/new_tab_page/foo/foo_handler.cc
|
||||
chrome/browser/ui/webui/new_tab_page/new_tab_page_handler_unittest.cc
|
||||
chrome/browser/ui/webui/new_tab_page/new_tab_page_ui.cc
|
||||
@@ -2163,6 +2175,7 @@ chrome/browser/ui/webui/sanitized_image_source_unittest.cc
|
||||
chrome/browser/ui/webui/searchbox/contextual_searchbox_handler_unittest.cc
|
||||
chrome/browser/ui/webui/searchbox/contextual_searchbox_test_utils.cc
|
||||
chrome/browser/ui/webui/searchbox/searchbox_handler.cc
|
||||
chrome/browser/ui/webui/searchbox/webui_omnibox_interactive_uitest.cc
|
||||
chrome/browser/ui/webui/settings/about_handler_unittest.cc
|
||||
chrome/browser/ui/webui/settings/on_startup_handler_unittest.cc
|
||||
chrome/browser/ui/webui/settings/people_handler_unittest.cc
|
||||
@@ -2239,13 +2252,14 @@ chrome/browser/web_applications/preinstalled_web_apps/google_slides.cc
|
||||
chrome/browser/web_applications/preinstalled_web_apps/messages_dogfood.cc
|
||||
chrome/browser/web_applications/preinstalled_web_apps/notebook_lm.cc
|
||||
chrome/browser/web_applications/preinstalled_web_apps/preinstalled_web_apps.cc
|
||||
chrome/browser/web_applications/preinstalled_web_apps/vids.cc
|
||||
chrome/browser/web_applications/preinstalled_web_apps/youtube.cc
|
||||
chrome/browser/web_applications/preinstalled_web_apps_browsertest.cc
|
||||
chrome/browser/web_applications/web_app_command_scheduler.cc
|
||||
chrome/browser/web_applications/web_app_helpers_unittest.cc
|
||||
chrome/browser/web_applications/web_app_install_utils_unittest.cc
|
||||
chrome/browser/web_applications/web_app_provider.cc
|
||||
chrome/browser/web_applications/web_contents/web_app_icon_downloader_unittest.cc
|
||||
chrome/browser/web_applications/web_install_browsertest.cc
|
||||
chrome/browser/webapps/installable/installable_manager_browsertest.cc
|
||||
chrome/browser/webauthn/authenticator_request_dialog_controller.cc
|
||||
chrome/browser/webauthn/cablev2_devices.h
|
||||
@@ -2259,15 +2273,20 @@ chrome/browser/webauthn/chrome_web_authentication_delegate_unittest.cc
|
||||
chrome/browser/webauthn/chrome_webauthn_autofill_interactive_uitest.cc
|
||||
chrome/browser/webauthn/enclave_authenticator_browsertest.cc
|
||||
chrome/browser/webauthn/enclave_manager.cc
|
||||
chrome/browser/webauthn/enclave_manager.h
|
||||
chrome/browser/webauthn/enclave_manager_unittest.cc
|
||||
chrome/browser/webauthn/fake_magic_arch.h
|
||||
chrome/browser/webauthn/fake_recovery_key_store.h
|
||||
chrome/browser/webauthn/fake_security_domain_service.cc
|
||||
chrome/browser/webauthn/gpm_enclave_controller.h
|
||||
chrome/browser/webauthn/passkey_unlock_manager_browsertest.cc
|
||||
chrome/browser/webauthn/test_util.h
|
||||
chrome/browser/webshare/win/fake_random_access_stream.cc
|
||||
chrome/browser/webshare/win/share_operation.cc
|
||||
chrome/browser/win/chrome_process_finder.cc
|
||||
chrome/browser/win/conflicts/enumerate_shell_extensions.cc
|
||||
chrome/browser/win/installer_downloader/installer_downloader_controller.cc
|
||||
chrome/browser/win/installer_downloader/installer_downloader_feature.h
|
||||
chrome/browser/win/jumplist.cc
|
||||
chrome/browser/win/jumplist_update_util_unittest.cc
|
||||
chrome/browser/win/parental_controls.cc
|
||||
@@ -2699,7 +2718,6 @@ chromeos/ash/services/device_sync/remote_device_provider_impl_unittest.cc
|
||||
chromeos/ash/services/device_sync/remote_device_v2_loader_impl_unittest.cc
|
||||
chromeos/ash/services/device_sync/switches.cc
|
||||
chromeos/ash/services/ime/input_method_user_data_service_impl_unittest.cc
|
||||
chromeos/ash/services/libassistant/public/cpp/assistant_suggestion.h
|
||||
chromeos/ash/services/quick_pair/fast_pair_data_parser.cc
|
||||
chromeos/ash/services/quick_pair/fast_pair_decryption.cc
|
||||
chromeos/ash/services/quick_pair/public/cpp/account_key_filter.cc
|
||||
@@ -2772,6 +2790,7 @@ components/autofill/core/browser/metrics/form_interactions_ukm_logger_unittest.c
|
||||
components/autofill/core/browser/metrics/prediction_quality_metrics_unittest.cc
|
||||
components/autofill/core/browser/metrics/quality_metrics_unittest.cc
|
||||
components/autofill/core/browser/ml_model/field_classification_model_handler.cc
|
||||
components/autofill/core/browser/payments/amount_extraction_manager_unittest.cc
|
||||
components/autofill/core/browser/payments/autofill_offer_manager_unittest.cc
|
||||
components/autofill/core/browser/payments/constants.h
|
||||
components/autofill/core/browser/payments/credit_card_access_manager_test_base.cc
|
||||
@@ -2874,7 +2893,6 @@ components/components_google_chrome_strings.grd
|
||||
components/content_relationship_verification/digital_asset_links_handler.cc
|
||||
components/content_relationship_verification/digital_asset_links_handler.h
|
||||
components/content_settings/browser/page_specific_content_settings_unittest.cc
|
||||
components/content_settings/core/browser/content_settings_partitioned_origin_value_map_unittest.cc
|
||||
components/content_settings/core/browser/content_settings_provider_unittest.cc
|
||||
components/content_settings/core/browser/content_settings_uma_util.cc
|
||||
components/content_settings/core/common/content_settings_pattern.cc
|
||||
@@ -2882,10 +2900,13 @@ components/content_settings/core/common/content_settings_pattern.h
|
||||
components/content_settings/core/common/content_settings_pattern_parser_unittest.cc
|
||||
components/content_settings/core/common/content_settings_pattern_unittest.cc
|
||||
components/content_settings/renderer/content_settings_agent_impl.cc
|
||||
components/contextual_search/core/browser/contextual_search_context.h
|
||||
components/contextual_search/core/browser/contextual_search_delegate_impl.cc
|
||||
components/contextual_search/core/browser/contextual_search_delegate_impl_unittest.cc
|
||||
components/contextual_search/internal/composebox_query_controller.cc
|
||||
components/contextual_search/internal/composebox_query_controller_unittest.cc
|
||||
components/contextual_tasks/internal/account_utils_unittest.cc
|
||||
components/contextual_tasks/internal/contextual_tasks_service_impl_unittest.cc
|
||||
components/contextual_tasks/internal/fallback_title_context_decorator_unittest.cc
|
||||
components/contextual_tasks/internal/favicon_context_decorator_unittest.cc
|
||||
components/contextual_tasks/internal/history_context_decorator_unittest.cc
|
||||
components/contextual_tasks/public/contextual_task_context_unittest.cc
|
||||
components/contextual_tasks/public/contextual_task_unittest.cc
|
||||
components/continuous_search/browser/search_result_extractor_client_unittest.cc
|
||||
@@ -2957,6 +2978,7 @@ components/enterprise/data_controls/core/browser/rule_unittest.cc
|
||||
components/enterprise/data_controls/core/browser/rules_service_base_unittest.cc
|
||||
components/enterprise/obfuscation/core/utils.h
|
||||
components/enterprise/signin/enterprise_identity_service_unittest.cc
|
||||
components/enterprise_strings.grdp
|
||||
components/error_page/common/localized_error.cc
|
||||
components/error_page_strings.grdp
|
||||
components/exo/keyboard_unittest.cc
|
||||
@@ -3183,6 +3205,7 @@ components/omnibox/browser/on_device_head_provider_unittest.cc
|
||||
components/omnibox/browser/on_device_tail_model_service_unittest.cc
|
||||
components/omnibox/browser/open_tab_provider_unittest.cc
|
||||
components/omnibox/browser/recently_closed_tabs_provider.cc
|
||||
components/omnibox/browser/remote_suggestions_service.h
|
||||
components/omnibox/browser/remote_suggestions_service_unittest.cc
|
||||
components/omnibox/browser/scored_history_match.cc
|
||||
components/omnibox/browser/scored_history_match_unittest.cc
|
||||
@@ -3201,8 +3224,6 @@ components/omnibox/browser/zero_suggest_cache_service_unittest.cc
|
||||
components/omnibox/browser/zero_suggest_provider_unittest.cc
|
||||
components/omnibox/browser/zero_suggest_verbatim_match_provider_unittest.cc
|
||||
components/omnibox/common/omnibox_feature_configs.h
|
||||
components/omnibox/composebox/composebox_query_controller.cc
|
||||
components/omnibox/composebox/composebox_query_controller_unittest.cc
|
||||
components/omnibox/resources/omnibox_pedal_synonyms.grd
|
||||
components/omnibox_pedal_ui_strings.grdp
|
||||
components/omnibox_strings.grdp
|
||||
@@ -3294,6 +3315,7 @@ components/password_manager/core/browser/old_google_credentials_cleaner.cc
|
||||
components/password_manager/core/browser/old_google_credentials_cleaner.h
|
||||
components/password_manager/core/browser/old_google_credentials_cleaner_unittest.cc
|
||||
components/password_manager/core/browser/os_crypt_async_migrator.h
|
||||
components/password_manager/core/browser/password_autofill_manager_unittest.cc
|
||||
components/password_manager/core/browser/password_feature_manager_impl_unittest.cc
|
||||
components/password_manager/core/browser/password_form_filling_unittest.cc
|
||||
components/password_manager/core/browser/password_form_manager_unittest.cc
|
||||
@@ -3397,7 +3419,6 @@ components/permissions/prediction_service/prediction_model_handler.cc
|
||||
components/permissions/prediction_service/prediction_service_base.h
|
||||
components/permissions/test/mock_permission_request.h
|
||||
components/permissions_strings.grdp
|
||||
components/persistent_cache/backend_params_manager.h
|
||||
components/persistent_cache/sqlite/vfs/sandboxed_file.cc
|
||||
components/plus_addresses/core/browser/metrics/plus_address_submission_logger_unittest.cc
|
||||
components/plus_addresses/core/browser/plus_address_http_client_impl.cc
|
||||
@@ -3623,6 +3644,7 @@ components/resources/terms/terms_zh-TW.html
|
||||
components/rlz/rlz_tracker.h
|
||||
components/safe_browsing/android/real_time_url_checks_allowlist_resource_file_unittest.cc
|
||||
components/safe_browsing/android/real_time_url_checks_allowlist_unittest.cc
|
||||
components/safe_browsing/android/safe_browsing_api_handler_util.h
|
||||
components/safe_browsing/content/browser/client_side_detection_service.cc
|
||||
components/safe_browsing/content/browser/notification_content_detection/notifications_global_cache_list_unittest.cc
|
||||
components/safe_browsing/content/browser/password_protection/password_protection_service_unittest.cc
|
||||
@@ -3664,6 +3686,7 @@ components/safe_search_api/stub_url_checker.cc
|
||||
components/safety_check/update_check_helper.h
|
||||
components/safety_check/url_constants.cc
|
||||
components/saved_tab_groups/internal/android/tab_group_sync_service_android_unittest.cc
|
||||
components/saved_tab_groups/internal/migration/tab_group_entity_converter_unittest.cc
|
||||
components/saved_tab_groups/internal/saved_tab_group_sync_bridge_unittest.cc
|
||||
components/saved_tab_groups/internal/shared_tab_group_account_data_sync_bridge_unittest.cc
|
||||
components/saved_tab_groups/internal/shared_tab_group_data_sync_bridge_unittest.cc
|
||||
@@ -3713,8 +3736,6 @@ components/services/app_service/public/cpp/app_capability_access_cache_wrapper_u
|
||||
components/services/app_service/public/cpp/app_launch_util.h
|
||||
components/services/app_service/public/cpp/app_registry_cache_unittest.cc
|
||||
components/services/app_service/public/cpp/app_registry_cache_wrapper_unittest.cc
|
||||
components/services/app_service/public/cpp/app_storage/app_storage_file_handler_unittest.cc
|
||||
components/services/app_service/public/cpp/app_storage/app_storage_unittest.cc
|
||||
components/services/app_service/public/cpp/app_types.h
|
||||
components/services/app_service/public/cpp/app_update_unittest.cc
|
||||
components/services/app_service/public/cpp/capability_access_update_unittest.cc
|
||||
@@ -3848,6 +3869,9 @@ components/sync_sessions/session_sync_bridge.h
|
||||
components/sync_sessions/synced_session_unittest.cc
|
||||
components/system_cpu/cpu_probe_win.cc
|
||||
components/themes/ntp_background_service.cc
|
||||
components/touch_to_search/core/browser/contextual_search_context.h
|
||||
components/touch_to_search/core/browser/contextual_search_delegate_impl.cc
|
||||
components/touch_to_search/core/browser/contextual_search_delegate_impl_unittest.cc
|
||||
components/tpcd/enterprise_reporting/enterprise_reporting_tab_helper_unittest.cc
|
||||
components/tpcd/metadata/browser/parser_unittest.cc
|
||||
components/tracing/common/etw_consumer_win.cc
|
||||
@@ -3936,6 +3960,7 @@ components/viz/common/features.h
|
||||
components/viz/common/quads/render_pass_io_unittest.cc
|
||||
components/viz/common/resources/shared_image_format.h
|
||||
components/viz/common/switches.cc
|
||||
components/viz/host/persistent_cache_sandboxed_file_factory.cc
|
||||
components/viz/service/display/output_surface.h
|
||||
components/viz/service/display/overlay_candidate.h
|
||||
components/viz/service/display/overlay_processor_using_strategy.cc
|
||||
@@ -3950,10 +3975,12 @@ components/webapps/browser/android/webapk/webapk_icons_hasher_unittest.cc
|
||||
components/webapps/browser/android/webapk/webapk_single_icon_hasher_unittest.cc
|
||||
components/webapps/browser/banners/app_banner_settings_helper_unittest.cc
|
||||
components/webapps/browser/installable/installable_evaluator_unittest.cc
|
||||
components/webapps/common/manifest_id_constants.h
|
||||
components/webapps/isolated_web_apps/types/source_unittest.cc
|
||||
components/webauthn/content/browser/internal_authenticator_impl_unittest.cc
|
||||
components/webauthn/core/browser/client_data_json.cc
|
||||
components/webauthn/core/browser/passkey_change_quota_tracker_unittest.cc
|
||||
components/webauthn/json/value_conversions.h
|
||||
components/webui/flags/flags_test_helpers.cc
|
||||
components/webui/flags/resources/app.html.ts
|
||||
components/webxr/android/arcore_install_helper.cc
|
||||
@@ -4068,6 +4095,7 @@ content/browser/preloading/prefetch/prefetch_match_resolver.cc
|
||||
content/browser/preloading/prefetch/prefetch_params.cc
|
||||
content/browser/preloading/prefetch/prefetch_scheduler.cc
|
||||
content/browser/preloading/prefetch/prefetch_scheduler.h
|
||||
content/browser/preloading/prefetch/prefetch_servable_state.h
|
||||
content/browser/preloading/prefetch/prefetch_service.cc
|
||||
content/browser/preloading/prefetch/prefetch_status.h
|
||||
content/browser/preloading/prefetch/prefetch_streaming_url_loader_common_types.h
|
||||
@@ -4117,10 +4145,10 @@ content/browser/renderer_host/render_view_host_unittest.cc
|
||||
content/browser/renderer_host/render_widget_host_impl.h
|
||||
content/browser/renderer_host/render_widget_host_view_aura.h
|
||||
content/browser/renderer_host/should_swap_browsing_instance.h
|
||||
content/browser/renderer_host/text_input_client_mac.h
|
||||
content/browser/renderer_host/virtual_keyboard_controller_win.h
|
||||
content/browser/resources/PRESUBMIT.py
|
||||
content/browser/resources/gpu/info_view.ts
|
||||
content/browser/resources/media/client_renderer.js
|
||||
content/browser/resources/traces_internals/icons.html
|
||||
content/browser/sandbox_ipc_linux.h
|
||||
content/browser/sandbox_support_win_impl.cc
|
||||
@@ -4332,9 +4360,9 @@ content/zygote/zygote_linux.cc
|
||||
content/zygote/zygote_linux.h
|
||||
content/zygote/zygote_main_linux.cc
|
||||
crypto/chaps_support.cc
|
||||
crypto/ecdsa_utils.h
|
||||
crypto/hkdf.h
|
||||
crypto/hmac.h
|
||||
crypto/hmac_unittest.cc
|
||||
crypto/kdf.h
|
||||
crypto/nss_util.cc
|
||||
crypto/secure_hash.h
|
||||
@@ -4406,6 +4434,7 @@ extensions/browser/event_listener_map.h
|
||||
extensions/browser/event_listener_map_unittest.cc
|
||||
extensions/browser/event_router_unittest.cc
|
||||
extensions/browser/extension_prefs_observer.h
|
||||
extensions/browser/install_signer.cc
|
||||
extensions/browser/permissions_manager.h
|
||||
extensions/browser/script_injection_tracker.cc
|
||||
extensions/browser/suggest_permission_util.cc
|
||||
@@ -4593,7 +4622,6 @@ gpu/command_buffer/service/shared_image/d3d_image_backing_factory.cc
|
||||
gpu/command_buffer/service/shared_image/dcomp_image_backing_factory.cc
|
||||
gpu/command_buffer/service/shared_image/dcomp_surface_image_backing.cc
|
||||
gpu/command_buffer/service/shared_image/dxgi_swap_chain_image_representation.cc
|
||||
gpu/command_buffer/service/shared_image/gpu_memory_buffer_factory_dxgi.cc
|
||||
gpu/command_buffer/service/shared_image/ozone_image_backing_factory.cc
|
||||
gpu/command_buffer/service/shared_image/shared_image_factory.cc
|
||||
gpu/command_buffer/service/shared_image/video_image_reader_image_backing.cc
|
||||
@@ -4704,7 +4732,6 @@ media/gpu/vaapi/test/vp8_decoder.cc
|
||||
media/gpu/vaapi/test/vp9_decoder.cc
|
||||
media/gpu/vaapi/vaapi_image_decoder_test_common.h
|
||||
media/gpu/vaapi/vaapi_unittest.cc
|
||||
media/gpu/vaapi/vaapi_webp_decoder_unittest.cc
|
||||
media/gpu/windows/d3d11_video_decoder_wrapper.cc
|
||||
media/gpu/windows/d3d12_copy_command_list_wrapper.cc
|
||||
media/gpu/windows/d3d12_video_encode_h264_delegate.cc
|
||||
@@ -4808,7 +4835,6 @@ net/disk_cache/disk_cache.h
|
||||
net/disk_cache/simple/simple_backend_impl.h
|
||||
net/disk_cache/simple/simple_file_enumerator.h
|
||||
net/disk_cache/simple/simple_index.cc
|
||||
net/disk_cache/sql/sql_entry_impl.cc
|
||||
net/dns/address_sorter_posix.cc
|
||||
net/dns/context_host_resolver_unittest.cc
|
||||
net/dns/dns_config_service_linux_unittest.cc
|
||||
@@ -4834,6 +4860,7 @@ net/dns/mapped_host_resolver_unittest.cc
|
||||
net/dns/mdns_cache_unittest.cc
|
||||
net/dns/mdns_client.h
|
||||
net/dns/notify_watcher_mac.cc
|
||||
net/dns/platform_dns_query_executor_android.h
|
||||
net/dns/public/doh_provider_entry.cc
|
||||
net/dns/record_parsed_unittest.cc
|
||||
net/dns/record_rdata_unittest.cc
|
||||
@@ -4892,7 +4919,7 @@ net/ntlm/ntlm_client.cc
|
||||
net/ntlm/ntlm_client.h
|
||||
net/ntlm/ntlm_test_data.h
|
||||
net/ntlm/ntlm_unittest.cc
|
||||
net/proxy_resolution/configured_proxy_resolution_service.cc
|
||||
net/proxy_resolution/configured_proxy_resolution_service.h
|
||||
net/proxy_resolution/configured_proxy_resolution_service_unittest.cc
|
||||
net/proxy_resolution/pac_file_decider.cc
|
||||
net/proxy_resolution/pac_file_decider_unittest.cc
|
||||
@@ -4969,6 +4996,7 @@ net/third_party/quiche/src/quiche/quic/core/quic_dispatcher_test.cc
|
||||
net/third_party/quiche/src/quiche/quic/core/quic_packet_creator_test.cc
|
||||
net/third_party/quiche/src/quiche/quic/core/quic_server_id_test.cc
|
||||
net/third_party/quiche/src/quiche/quic/core/quic_session_test.cc
|
||||
net/third_party/quiche/src/quiche/quic/core/tls_client_handshaker.h
|
||||
net/third_party/quiche/src/quiche/quic/tools/quic_client_bin.cc
|
||||
net/third_party/quiche/src/quiche/quic/tools/quic_memory_cache_backend.cc
|
||||
net/third_party/quiche/src/quiche/quic/tools/quic_memory_cache_backend_test.cc
|
||||
@@ -5089,7 +5117,6 @@ sandbox/win/src/security_level.h
|
||||
sandbox/win/src/startup_information_helper.cc
|
||||
sandbox/win/src/win_utils.cc
|
||||
services/BUILD.gn
|
||||
services/accessibility/features/javascript/event.js
|
||||
services/device/generic_sensor/platform_sensor_and_provider_unittest_win.cc
|
||||
services/device/generic_sensor/platform_sensor_provider_chromeos.cc
|
||||
services/device/generic_sensor/platform_sensor_reader_win.cc
|
||||
@@ -5177,7 +5204,6 @@ services/webnn/dml/graph_builder_dml.h
|
||||
services/webnn/dml/graph_impl_dml.cc
|
||||
services/webnn/dml/tensor_desc.cc
|
||||
services/webnn/dml/utils.cc
|
||||
services/webnn/ort/platform_functions_ort.cc
|
||||
services/webnn/tflite/graph_builder_tflite.cc
|
||||
services/webnn/webnn_graph_impl_backend_test.cc
|
||||
skia/config/SkUserConfig.h
|
||||
@@ -5351,6 +5377,7 @@ third_party/angle/extensions/EGL_ANGLE_global_fence_sync.txt
|
||||
third_party/angle/extensions/EGL_ANGLE_iosurface_client_buffer.txt
|
||||
third_party/angle/extensions/EGL_ANGLE_keyed_mutex.txt
|
||||
third_party/angle/extensions/EGL_ANGLE_memory_usage_report.txt
|
||||
third_party/angle/extensions/EGL_ANGLE_metal_commands_scheduled_sync.txt
|
||||
third_party/angle/extensions/EGL_ANGLE_metal_texture_client_buffer.txt
|
||||
third_party/angle/extensions/EGL_ANGLE_no_error.txt
|
||||
third_party/angle/extensions/EGL_ANGLE_platform_angle_d3d_luid.txt
|
||||
@@ -5558,6 +5585,7 @@ third_party/blink/renderer/core/css/properties/css_parsing_utils.cc
|
||||
third_party/blink/renderer/core/css/properties/longhands/longhands_custom.cc
|
||||
third_party/blink/renderer/core/css/remote_font_face_source.cc
|
||||
third_party/blink/renderer/core/css/resolver/style_adjuster.cc
|
||||
third_party/blink/renderer/core/css/rule_set_test.cc
|
||||
third_party/blink/renderer/core/css/style_engine.cc
|
||||
third_party/blink/renderer/core/css/style_engine_test.cc
|
||||
third_party/blink/renderer/core/css/style_rule_import.cc
|
||||
@@ -5572,6 +5600,7 @@ third_party/blink/renderer/core/dom/class_collection.cc
|
||||
third_party/blink/renderer/core/dom/class_collection.h
|
||||
third_party/blink/renderer/core/dom/comment.idl
|
||||
third_party/blink/renderer/core/dom/container_node.cc
|
||||
third_party/blink/renderer/core/dom/document.h
|
||||
third_party/blink/renderer/core/dom/dom_implementation.idl
|
||||
third_party/blink/renderer/core/dom/element.cc
|
||||
third_party/blink/renderer/core/dom/element.idl
|
||||
@@ -5676,6 +5705,7 @@ third_party/blink/renderer/core/frame/web_local_frame_impl.cc
|
||||
third_party/blink/renderer/core/frame/web_remote_frame_impl.cc
|
||||
third_party/blink/renderer/core/geolocation/geolocation.h
|
||||
third_party/blink/renderer/core/html/anchor_element_metrics_test.cc
|
||||
third_party/blink/renderer/core/html/canvas/canvas_rendering_context.cc
|
||||
third_party/blink/renderer/core/html/custom/element_internals.idl
|
||||
third_party/blink/renderer/core/html/custom/validity_state_flags.idl
|
||||
third_party/blink/renderer/core/html/forms/base_text_input_type.cc
|
||||
@@ -5688,8 +5718,10 @@ third_party/blink/renderer/core/html/forms/html_input_element.idl
|
||||
third_party/blink/renderer/core/html/forms/html_input_element_test.cc
|
||||
third_party/blink/renderer/core/html/forms/html_label_element.idl
|
||||
third_party/blink/renderer/core/html/forms/html_legend_element.idl
|
||||
third_party/blink/renderer/core/html/forms/html_option_element.cc
|
||||
third_party/blink/renderer/core/html/forms/html_option_element.idl
|
||||
third_party/blink/renderer/core/html/forms/html_options_collection.idl
|
||||
third_party/blink/renderer/core/html/forms/html_select_element.cc
|
||||
third_party/blink/renderer/core/html/forms/html_select_element.idl
|
||||
third_party/blink/renderer/core/html/forms/html_text_area_element.idl
|
||||
third_party/blink/renderer/core/html/forms/select_type.cc
|
||||
@@ -5731,6 +5763,7 @@ third_party/blink/renderer/core/html/parser/html_document_parser.cc
|
||||
third_party/blink/renderer/core/input/event_handler.cc
|
||||
third_party/blink/renderer/core/input/event_handling_util.cc
|
||||
third_party/blink/renderer/core/input/pointer_event_manager.cc
|
||||
third_party/blink/renderer/core/inspector/console_message.h
|
||||
third_party/blink/renderer/core/inspector/devtools_session.h
|
||||
third_party/blink/renderer/core/intersection_observer/intersection_observer_controller.h
|
||||
third_party/blink/renderer/core/layout/adjust_for_absolute_zoom.h
|
||||
@@ -5892,7 +5925,6 @@ third_party/blink/renderer/modules/accessibility/ax_object_cache_impl.cc
|
||||
third_party/blink/renderer/modules/accessibility/ax_object_cache_impl.h
|
||||
third_party/blink/renderer/modules/accessibility/testing/internals_accessibility.h
|
||||
third_party/blink/renderer/modules/bluetooth/bluetooth_error.cc
|
||||
third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.cc
|
||||
third_party/blink/renderer/modules/clipboard/clipboard.idl
|
||||
third_party/blink/renderer/modules/content_extraction/ai_page_content_agent_unittest.cc
|
||||
third_party/blink/renderer/modules/credentialmanagement/authentication_credentials_container.cc
|
||||
@@ -5999,10 +6031,12 @@ third_party/blink/renderer/platform/graphics/paint/region_capture_data.h
|
||||
third_party/blink/renderer/platform/heap/collection_support/heap_linked_stack.h
|
||||
third_party/blink/renderer/platform/image-decoders/bmp/bmp_image_decoder.cc
|
||||
third_party/blink/renderer/platform/image-decoders/bmp/bmp_image_decoder_test.cc
|
||||
third_party/blink/renderer/platform/image-decoders/bmp/bmp_image_reader.h
|
||||
third_party/blink/renderer/platform/image-decoders/jpeg/jpeg_image_decoder.cc
|
||||
third_party/blink/renderer/platform/image-decoders/webp/webp_image_decoder.cc
|
||||
third_party/blink/renderer/platform/instrumentation/use_counter.h
|
||||
third_party/blink/renderer/platform/loader/fetch/client_hints_preferences_test.cc
|
||||
third_party/blink/renderer/platform/loader/fetch/console_logger.h
|
||||
third_party/blink/renderer/platform/loader/fetch/fetch_utils.h
|
||||
third_party/blink/renderer/platform/loader/fetch/raw_resource.h
|
||||
third_party/blink/renderer/platform/loader/fetch/resource.cc
|
||||
@@ -6356,6 +6390,7 @@ third_party/catapult/dashboard/sandwich_verification/Makefile
|
||||
third_party/catapult/dashboard/sandwich_verification/common/dashboard_service.py
|
||||
third_party/catapult/dashboard/sandwich_verification/common/pinpoint_service.py
|
||||
third_party/catapult/dashboard/sandwich_verification/common/request.py
|
||||
third_party/catapult/dashboard/skia_export/skia_export/skia_converter.py
|
||||
third_party/catapult/devil/PRESUBMIT.py
|
||||
third_party/catapult/devil/devil/android/device_utils.py
|
||||
third_party/catapult/devil/devil/android/device_utils_test.py
|
||||
@@ -6397,6 +6432,7 @@ third_party/catapult/perf_issue_service/application/clients/monorail_client.py
|
||||
third_party/catapult/perf_issue_service/application/clients/sheriff_config_client.py
|
||||
third_party/catapult/perf_issue_service/application/utils.py
|
||||
third_party/catapult/skia_bridge/application/perf_api/alert_group.py
|
||||
third_party/catapult/skia_bridge/application/perf_api/anomalies.py
|
||||
third_party/catapult/skia_bridge/application/perf_api/auth_helper.py
|
||||
third_party/catapult/skia_bridge/application/perf_api/skia_perf_upload.py
|
||||
third_party/catapult/skia_bridge/common/cloud_metric.py
|
||||
@@ -7424,11 +7460,11 @@ third_party/crossbench/crossbench/cli/exception_formatter.py
|
||||
third_party/crossbench/crossbench/plt/android_adb.py
|
||||
third_party/crossbench/crossbench/probes/chrome_histograms.py
|
||||
third_party/crossbench/crossbench/probes/perfetto/downloader.py
|
||||
third_party/crossbench/crossbench/probes/perfetto/trace_processor/queries/loadline/breakdown.sql
|
||||
third_party/crossbench/crossbench/probes/performance_entries.py
|
||||
third_party/crossbench/crossbench/probes/profiling/browser_profiling.py
|
||||
third_party/crossbench/crossbench/probes/profiling/context/base.py
|
||||
third_party/crossbench/crossbench/probes/profiling/enum.py
|
||||
third_party/crossbench/crossbench/probes/trace_processor/queries/loadline/breakdown.sql
|
||||
third_party/crossbench/crossbench/probes/web_page_replay/recorder.py
|
||||
third_party/crossbench/protoc/compile.py
|
||||
third_party/crossbench/tests/crossbench/benchmarks/loading/action_runner/test_default_bond_action_runner.py
|
||||
@@ -7436,6 +7472,7 @@ third_party/crossbench/tests/crossbench/benchmarks/loading/config/test_example_c
|
||||
third_party/crossbench/tests/crossbench/benchmarks/loading/config/test_login.py
|
||||
third_party/crossbench/tests/crossbench/benchmarks/loading/config/test_pages.py
|
||||
third_party/crossbench/tests/crossbench/benchmarks/loading/test_loading.py
|
||||
third_party/crossbench/tests/crossbench/network/test_web_page_replay.py
|
||||
third_party/crossbench/tests/crossbench/plt/test_chromeos_ssh.py
|
||||
third_party/crossbench/tests/crossbench/probes/test_js.py
|
||||
third_party/crossbench/tests/crossbench/probes/test_meminfo.py
|
||||
@@ -7459,6 +7496,7 @@ third_party/dawn/infra/specs/PRESUBMIT.py
|
||||
third_party/dawn/src/dawn/common/Constants.h
|
||||
third_party/dawn/src/dawn/common/SystemUtils.cpp
|
||||
third_party/dawn/src/dawn/dawn.json
|
||||
third_party/dawn/src/dawn/native/BindGroupLayoutInternal.h
|
||||
third_party/dawn/src/dawn/native/CommandAllocator.cpp
|
||||
third_party/dawn/src/dawn/native/CopyTextureForBrowserHelper.cpp
|
||||
third_party/dawn/src/dawn/native/Features.cpp
|
||||
@@ -7515,8 +7553,8 @@ third_party/dawn/src/dawn/tests/end2end/VideoViewsTests_win.cpp
|
||||
third_party/dawn/src/dawn/tests/perf_tests/DawnPerfTestPlatform.h
|
||||
third_party/dawn/src/dawn/tests/unittests/validation/ComputeValidationTests.cpp
|
||||
third_party/dawn/src/dawn/tests/unittests/validation/CopyCommandsValidationTests.cpp
|
||||
third_party/dawn/src/dawn/tests/unittests/validation/DynamicBindingArrayValidationTests.cpp
|
||||
third_party/dawn/src/dawn/tests/unittests/validation/RenderPassDescriptorValidationTests.cpp
|
||||
third_party/dawn/src/dawn/tests/white_box/SharedBufferMemoryTests_win.cpp
|
||||
third_party/dawn/src/dawn/tests/white_box/SharedTextureMemoryTests_dmabuf.cpp
|
||||
third_party/dawn/src/dawn/tests/white_box/VulkanImageWrappingTests_DmaBuf.cpp
|
||||
third_party/dawn/src/dawn/utils/WindowsDebugLogger.cpp
|
||||
@@ -7679,10 +7717,6 @@ third_party/dawn/third_party/khronos/OpenGL-Registry/extensions/MESA/MESA_frameb
|
||||
third_party/dawn/third_party/khronos/OpenGL-Registry/extensions/MESA/MESA_framebuffer_swap_xy.txt
|
||||
third_party/dawn/third_party/khronos/OpenGL-Registry/extensions/OES/OES_primitive_bounding_box.txt
|
||||
third_party/dawn/third_party/khronos/OpenGL-Registry/extensions/OES/OES_tessellation_shader.txt
|
||||
third_party/dawn/third_party/khronos/OpenGL-Registry/specs/es/3.2/GLSL_ES_Specification_3.20.html
|
||||
third_party/dawn/third_party/khronos/OpenGL-Registry/specs/es/katex/katex.js
|
||||
third_party/dawn/third_party/khronos/OpenGL-Registry/specs/gl/GLSLangSpec.4.60.html
|
||||
third_party/dawn/third_party/khronos/OpenGL-Registry/specs/katex/katex.js
|
||||
third_party/dawn/third_party/khronos/OpenGL-Registry/xml/vendors.txt
|
||||
third_party/dawn/third_party/webgpu-cts/src/webgpu/api/operation/command_buffer/queries/occlusionQuery.spec.ts
|
||||
third_party/dawn/third_party/webgpu-cts/src/webgpu/api/operation/render_pipeline/sample_mask.spec.ts
|
||||
@@ -7692,6 +7726,7 @@ third_party/dawn/third_party/webgpu-cts/src/webgpu/multisample_info.ts
|
||||
third_party/dawn/third_party/webgpu-cts/src/webgpu/shader/execution/shader_io/fragment_builtins.spec.ts
|
||||
third_party/dawn/third_party/webgpu-cts/standalone/index.html
|
||||
third_party/dawn/third_party/webgpu-headers/src/webgpu.h
|
||||
third_party/dawn/third_party/webgpu-headers/src/webgpu.json
|
||||
third_party/dawn/tools/src/cmd/cts/config.json
|
||||
third_party/dawn/tools/src/cmd/cts/treemap/treemap.html
|
||||
third_party/depot_tools/PRESUBMIT.py
|
||||
@@ -7709,16 +7744,19 @@ third_party/depot_tools/fetch_configs/chromium.py
|
||||
third_party/depot_tools/fetch_configs/crashpad.py
|
||||
third_party/depot_tools/fetch_configs/crossbench.py
|
||||
third_party/depot_tools/fetch_configs/dart.py
|
||||
third_party/depot_tools/fetch_configs/dawn.py
|
||||
third_party/depot_tools/fetch_configs/depot_tools.py
|
||||
third_party/depot_tools/fetch_configs/devtools-frontend.py
|
||||
third_party/depot_tools/fetch_configs/gn.py
|
||||
third_party/depot_tools/fetch_configs/gyp.py
|
||||
third_party/depot_tools/fetch_configs/infra_superproject.py
|
||||
third_party/depot_tools/fetch_configs/inspector_protocol.py
|
||||
third_party/depot_tools/fetch_configs/libyuv.py
|
||||
third_party/depot_tools/fetch_configs/nacl.py
|
||||
third_party/depot_tools/fetch_configs/naclports.py
|
||||
third_party/depot_tools/fetch_configs/node-ci.py
|
||||
third_party/depot_tools/fetch_configs/node.py
|
||||
third_party/depot_tools/fetch_configs/openscreen.py
|
||||
third_party/depot_tools/fetch_configs/pdfium.py
|
||||
third_party/depot_tools/fetch_configs/skia.py
|
||||
third_party/depot_tools/fetch_configs/skia_buildbot.py
|
||||
@@ -8053,8 +8091,6 @@ third_party/devtools-frontend/src/front_end/models/badges/StarterBadge.ts
|
||||
third_party/devtools-frontend/src/front_end/models/bindings/ResourceUtils.ts
|
||||
third_party/devtools-frontend/src/front_end/models/crux-manager/CrUXManager.test.ts
|
||||
third_party/devtools-frontend/src/front_end/models/crux-manager/CrUXManager.ts
|
||||
third_party/devtools-frontend/src/front_end/models/extensions/ExtensionServer.test.ts
|
||||
third_party/devtools-frontend/src/front_end/models/extensions/ExtensionServer.ts
|
||||
third_party/devtools-frontend/src/front_end/models/extensions/HostUrlPattern.test.ts
|
||||
third_party/devtools-frontend/src/front_end/models/issues_manager/ContentSecurityPolicyIssue.ts
|
||||
third_party/devtools-frontend/src/front_end/models/issues_manager/CookieDeprecationMetadataIssue.ts
|
||||
@@ -8087,20 +8123,27 @@ third_party/devtools-frontend/src/front_end/models/trace/handlers/helpers.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/helpers/Network.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/helpers/Trace.test.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/CLSCulprits.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/Cache.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/Common.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/DOMSize.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/DocumentLatency.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/DuplicatedJavaScript.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/FontDisplay.test.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/FontDisplay.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/ForcedReflow.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/INPBreakdown.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/ImageDelivery.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/LCPBreakdown.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/LCPDiscovery.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/LegacyJavaScript.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/ModernHTTP.test.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/ModernHTTP.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/NetworkDependencyTree.test.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/NetworkDependencyTree.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/RenderBlocking.test.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/RenderBlocking.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/SlowCSSSelector.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/ThirdParties.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/insights/Viewport.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/lantern/core/NetworkAnalyzer.test.ts
|
||||
third_party/devtools-frontend/src/front_end/models/trace/lantern/graph/NetworkNode.ts
|
||||
@@ -8145,8 +8188,11 @@ third_party/devtools-frontend/src/front_end/panels/browser_debugger/DOMBreakpoin
|
||||
third_party/devtools-frontend/src/front_end/panels/changes/ChangesView.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/common/AiCodeCompletionTeaser.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/common/BadgeNotification.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/common/ExtensionServer.test.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/common/ExtensionServer.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/common/GdpSignUpDialog.test.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/common/GdpSignUpDialog.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/console/ConsoleInsightTeaser.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/console/ConsoleViewMessage.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/console/ErrorStackParser.test.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/coverage/CoverageView.ts
|
||||
@@ -8166,10 +8212,10 @@ third_party/devtools-frontend/src/front_end/panels/lighthouse/LighthouseControll
|
||||
third_party/devtools-frontend/src/front_end/panels/linear_memory_inspector/LinearMemoryInspectorPane.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/media/MainView.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/mobile_throttling/CalibrationController.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/network/BlockedURLsPane.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/network/NetworkConfigView.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/network/NetworkDataGridNode.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/network/NetworkLogView.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/network/RequestConditionsDrawer.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/network/RequestCookiesView.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/network/RequestTimingView.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/network/ResourceWebSocketFrameView.ts
|
||||
@@ -8352,6 +8398,7 @@ third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/lib/cj
|
||||
third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/QueryHandler.js
|
||||
third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Viewport.d.ts
|
||||
third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/util.js
|
||||
third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserLauncher.js
|
||||
third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/FirefoxLauncher.js
|
||||
third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts
|
||||
third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/PuppeteerNode.d.ts
|
||||
@@ -8389,6 +8436,7 @@ 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/common/QueryHandler.js
|
||||
third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Viewport.d.ts
|
||||
third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/util.js
|
||||
third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserLauncher.js
|
||||
third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/FirefoxLauncher.js
|
||||
third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts
|
||||
third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/PuppeteerNode.d.ts
|
||||
@@ -8415,6 +8463,7 @@ third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/src/co
|
||||
third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/src/common/QueryHandler.ts
|
||||
third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/src/common/Viewport.ts
|
||||
third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/src/common/util.ts
|
||||
third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/src/node/BrowserLauncher.ts
|
||||
third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/src/node/FirefoxLauncher.ts
|
||||
third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/src/node/LaunchOptions.ts
|
||||
third_party/devtools-frontend/src/front_end/third_party/puppeteer/package/src/node/PuppeteerNode.ts
|
||||
@@ -8454,6 +8503,7 @@ third_party/devtools-frontend/src/front_end/ui/legacy/SearchableView.ts
|
||||
third_party/devtools-frontend/src/front_end/ui/legacy/UIUtils.test.ts
|
||||
third_party/devtools-frontend/src/front_end/ui/legacy/UIUtils.ts
|
||||
third_party/devtools-frontend/src/front_end/ui/legacy/Widget.ts
|
||||
third_party/devtools-frontend/src/front_end/ui/legacy/components/cookie_table/CookiesTable.ts
|
||||
third_party/devtools-frontend/src/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts
|
||||
third_party/devtools-frontend/src/front_end/ui/legacy/components/perf_ui/FlameChart.ts
|
||||
third_party/devtools-frontend/src/front_end/ui/legacy/components/utils/JSPresentationUtils.test.ts
|
||||
@@ -8883,6 +8933,13 @@ third_party/devtools-frontend/src/node_modules/normalize-package-data/package.js
|
||||
third_party/devtools-frontend/src/node_modules/normalize-path/index.js
|
||||
third_party/devtools-frontend/src/node_modules/object-assign/index.js
|
||||
third_party/devtools-frontend/src/node_modules/object-assign/package.json
|
||||
third_party/devtools-frontend/src/node_modules/object-deep-merge/node_modules/type-fest/package.json
|
||||
third_party/devtools-frontend/src/node_modules/object-deep-merge/node_modules/type-fest/source/basic.d.ts
|
||||
third_party/devtools-frontend/src/node_modules/object-deep-merge/node_modules/type-fest/source/entries.d.ts
|
||||
third_party/devtools-frontend/src/node_modules/object-deep-merge/node_modules/type-fest/source/entry.d.ts
|
||||
third_party/devtools-frontend/src/node_modules/object-deep-merge/node_modules/type-fest/source/join.d.ts
|
||||
third_party/devtools-frontend/src/node_modules/object-deep-merge/node_modules/type-fest/source/primitive.d.ts
|
||||
third_party/devtools-frontend/src/node_modules/object-deep-merge/node_modules/type-fest/source/typed-array.d.ts
|
||||
third_party/devtools-frontend/src/node_modules/object-keys/package.json
|
||||
third_party/devtools-frontend/src/node_modules/object.fromentries/package.json
|
||||
third_party/devtools-frontend/src/node_modules/object.groupby/package.json
|
||||
@@ -8890,7 +8947,6 @@ third_party/devtools-frontend/src/node_modules/object.values/package.json
|
||||
third_party/devtools-frontend/src/node_modules/onetime/package.json
|
||||
third_party/devtools-frontend/src/node_modules/ora/node_modules/ansi-regex/package.json
|
||||
third_party/devtools-frontend/src/node_modules/ora/node_modules/is-unicode-supported/package.json
|
||||
third_party/devtools-frontend/src/node_modules/ora/node_modules/log-symbols/node_modules/is-unicode-supported/package.json
|
||||
third_party/devtools-frontend/src/node_modules/ora/node_modules/log-symbols/package.json
|
||||
third_party/devtools-frontend/src/node_modules/ora/node_modules/string-width/package.json
|
||||
third_party/devtools-frontend/src/node_modules/ora/node_modules/strip-ansi/package.json
|
||||
@@ -9332,6 +9388,7 @@ third_party/devtools-frontend/src/node_modules/yargs/node_modules/strip-ansi/pac
|
||||
third_party/devtools-frontend/src/node_modules/yauzl/package.json
|
||||
third_party/devtools-frontend/src/node_modules/yocto-queue/index.d.ts
|
||||
third_party/devtools-frontend/src/node_modules/yocto-queue/package.json
|
||||
third_party/devtools-frontend/src/node_modules/yoctocolors/package.json
|
||||
third_party/devtools-frontend/src/node_modules/zod/src/v3/tests/refine.test.ts
|
||||
third_party/devtools-frontend/src/node_modules/zod/src/v3/tests/string.test.ts
|
||||
third_party/devtools-frontend/src/node_modules/zod/src/v4/classic/tests/refine.test.ts
|
||||
@@ -9343,6 +9400,7 @@ third_party/devtools-frontend/src/package.json
|
||||
third_party/devtools-frontend/src/scripts/ai_assistance/suite/helpers/gemini.ts
|
||||
third_party/devtools-frontend/src/scripts/build/compress_files.js
|
||||
third_party/devtools-frontend/src/scripts/check_external_links.js
|
||||
third_party/devtools-frontend/src/scripts/component_docs/component_docs.css
|
||||
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/eslint_rules/lib/no-customized-builtin-elements.ts
|
||||
@@ -9360,6 +9418,7 @@ third_party/devtools-frontend/src/test/e2e_non_hosted/lighthouse/devtools-settin
|
||||
third_party/devtools-frontend/src/test/e2e_non_hosted/lighthouse/navigation_test.ts
|
||||
third_party/devtools-frontend/src/test/e2e_non_hosted/lighthouse/snapshot_test.ts
|
||||
third_party/devtools-frontend/src/test/e2e_non_hosted/lighthouse/timespan_test.ts
|
||||
third_party/devtools-frontend/src/test/e2e_non_hosted/performance/trace-app_test.ts
|
||||
third_party/devtools-frontend/src/test/e2e_non_hosted/shared/frontend-helper.ts
|
||||
third_party/devtools-frontend/src/test/perf/report/report.ts
|
||||
third_party/devtools-frontend/src/third_party/blink/public/devtools_protocol/browser_protocol.json
|
||||
@@ -9440,6 +9499,7 @@ third_party/eigen3/src/Eigen/src/Core/Product.h
|
||||
third_party/eigen3/src/Eigen/src/Core/ProductEvaluators.h
|
||||
third_party/eigen3/src/Eigen/src/Core/Random.h
|
||||
third_party/eigen3/src/Eigen/src/Core/RandomImpl.h
|
||||
third_party/eigen3/src/Eigen/src/Core/RealView.h
|
||||
third_party/eigen3/src/Eigen/src/Core/Redux.h
|
||||
third_party/eigen3/src/Eigen/src/Core/Ref.h
|
||||
third_party/eigen3/src/Eigen/src/Core/Replicate.h
|
||||
@@ -9853,6 +9913,7 @@ third_party/eigen3/src/test/random_matrix.cpp
|
||||
third_party/eigen3/src/test/random_matrix_helper.h
|
||||
third_party/eigen3/src/test/random_without_cast_overflow.h
|
||||
third_party/eigen3/src/test/real_qz.cpp
|
||||
third_party/eigen3/src/test/realview.cpp
|
||||
third_party/eigen3/src/test/redux.cpp
|
||||
third_party/eigen3/src/test/ref.cpp
|
||||
third_party/eigen3/src/test/reshape.cpp
|
||||
@@ -11344,8 +11405,8 @@ third_party/icu/source/test/intltest/strcase.cpp
|
||||
third_party/icu/source/test/intltest/uobjtest.cpp
|
||||
third_party/icu/source/test/perf/collationperf/collperf.cpp
|
||||
third_party/icu/source/test/perf/collationperf/readme.html
|
||||
third_party/icu/source/test/perf/ubrkperf/ubrkperfold.cpp
|
||||
third_party/icu/source/test/testdata/numberformattestspecification.txt
|
||||
third_party/icu/source/tools/toolutil/json-json.hpp
|
||||
third_party/icu/source/tools/toolutil/pkg_genc.cpp
|
||||
third_party/inspector_protocol/crdtp/cbor.cc
|
||||
third_party/inspector_protocol/crdtp/json.cc
|
||||
@@ -11435,9 +11496,6 @@ third_party/libc++/src/src/print.cpp
|
||||
third_party/libc++/src/test/libcxx/containers/sequences/deque/asan_turning_off.pass.cpp
|
||||
third_party/libc++/src/test/libcxx/containers/sequences/vector/asan_turning_off.pass.cpp
|
||||
third_party/libc++/src/test/libcxx/containers/strings/basic.string/asan_turning_off.pass.cpp
|
||||
third_party/libc++/src/test/std/input.output/filesystems/class.rec.dir.itr/cache_refresh_iter.pass.cpp
|
||||
third_party/libc++/src/test/std/time/time.zone/time.zone.db/time.zone.db.access/current_zone.pass.cpp
|
||||
third_party/libc++/src/test/std/time/time.zone/time.zone.db/time.zone.db.tzdb/current_zone.pass.cpp
|
||||
third_party/libc++/src/utils/ci/BOT_OWNERS.txt
|
||||
third_party/libc++abi/src/CREDITS.TXT
|
||||
third_party/libdrm/src/android/gralloc_handle.h
|
||||
@@ -12152,6 +12210,7 @@ third_party/node/node_modules/domutils/lib/esm/stringify.js
|
||||
third_party/node/node_modules/domutils/lib/stringify.js
|
||||
third_party/node/node_modules/eslint-plugin-jsdoc/node_modules/escape-string-regexp/package.json
|
||||
third_party/node/node_modules/eslint-plugin-jsdoc/src/tagNames.js
|
||||
third_party/node/node_modules/eslint-plugin-lit/lib/rules/no-native-attributes.js
|
||||
third_party/node/node_modules/eslint-scope/lib/definition.js
|
||||
third_party/node/node_modules/eslint-scope/lib/index.js
|
||||
third_party/node/node_modules/eslint-scope/lib/pattern-visitor.js
|
||||
@@ -12212,6 +12271,9 @@ third_party/node/node_modules/p-limit/package.json
|
||||
third_party/node/node_modules/p-locate/package.json
|
||||
third_party/node/node_modules/parent-module/package.json
|
||||
third_party/node/node_modules/parse-imports/package.json
|
||||
third_party/node/node_modules/parse5-htmlparser2-tree-adapter/package.json
|
||||
third_party/node/node_modules/parse5/lib/tokenizer/index.js
|
||||
third_party/node/node_modules/parse5/package.json
|
||||
third_party/node/node_modules/path-exists/package.json
|
||||
third_party/node/node_modules/path-key/package.json
|
||||
third_party/node/node_modules/postcss-selector-parser/package.json
|
||||
@@ -12327,7 +12389,6 @@ third_party/openscreen/src/cast/streaming/encoded_frame.h
|
||||
third_party/openscreen/src/cast/streaming/environment.h
|
||||
third_party/openscreen/src/cast/streaming/frame_id.h
|
||||
third_party/openscreen/src/cast/streaming/impl/clock_offset_estimator.h
|
||||
third_party/openscreen/src/cast/streaming/impl/compound_rtcp_parser.cc
|
||||
third_party/openscreen/src/cast/streaming/impl/rtcp_common.cc
|
||||
third_party/openscreen/src/cast/streaming/impl/rtp_defines.h
|
||||
third_party/openscreen/src/cast/streaming/impl/sender_session_unittest.cc
|
||||
@@ -13010,8 +13071,8 @@ third_party/perfetto/ui/src/frontend/permalink.ts
|
||||
third_party/perfetto/ui/src/frontend/post_message_handler.ts
|
||||
third_party/perfetto/ui/src/frontend/post_message_handler_unittest.ts
|
||||
third_party/perfetto/ui/src/frontend/sidebar.ts
|
||||
third_party/perfetto/ui/src/frontend/timeline_page/wasd_navigation_handler.ts
|
||||
third_party/perfetto/ui/src/frontend/trace_url_handler.ts
|
||||
third_party/perfetto/ui/src/frontend/viewer_page/wasd_navigation_handler.ts
|
||||
third_party/perfetto/ui/src/open_perfetto_trace/index.html
|
||||
third_party/perfetto/ui/src/plugins/dev.perfetto.ProcessSummary/index.ts
|
||||
third_party/perfetto/ui/src/plugins/dev.perfetto.RecordTraceV2/adb/adb_msg.ts
|
||||
@@ -13019,6 +13080,7 @@ third_party/perfetto/ui/src/plugins/dev.perfetto.RecordTraceV2/adb/web_device_pr
|
||||
third_party/perfetto/ui/src/plugins/dev.perfetto.RecordTraceV2/pages/android.ts
|
||||
third_party/perfetto/ui/src/plugins/dev.perfetto.RecordTraceV2/pages/record_page.ts
|
||||
third_party/perfetto/ui/src/plugins/dev.perfetto.TraceInfoPage/trace_info_page.ts
|
||||
third_party/perfetto/ui/src/plugins/org.kernel.Wattson/index.ts
|
||||
third_party/perfetto/ui/src/trace_processor/engine.ts
|
||||
third_party/perfetto/ui/src/widgets/hotkey_context.ts
|
||||
third_party/polymer/v3_0/BUILD.gn
|
||||
@@ -14372,6 +14434,7 @@ third_party/readability/src/test/test-pages/yahoo-1/source.html
|
||||
third_party/readability/src/test/test-pages/yahoo-2/source.html
|
||||
third_party/readability/src/test/test-pages/yahoo-3/source.html
|
||||
third_party/readability/src/test/test-pages/yahoo-4/source.html
|
||||
third_party/readability/test_extension/viewer.html
|
||||
third_party/rust/PRESUBMIT.py
|
||||
third_party/rust/adler2/v2/BUILD.gn
|
||||
third_party/rust/anyhow/v1/BUILD.gn
|
||||
@@ -14390,6 +14453,7 @@ third_party/rust/diplomat_core/v0_13/BUILD.gn
|
||||
third_party/rust/diplomat_runtime/v0_13/BUILD.gn
|
||||
third_party/rust/foldhash/v0_2/BUILD.gn
|
||||
third_party/rust/hashbrown/v0_15/BUILD.gn
|
||||
third_party/rust/hashbrown/v0_16/BUILD.gn
|
||||
third_party/rust/itoa/v1/BUILD.gn
|
||||
third_party/rust/lazy_static/v1/BUILD.gn
|
||||
third_party/rust/memchr/v2/BUILD.gn
|
||||
@@ -14402,7 +14466,6 @@ third_party/rust/quote/v1/BUILD.gn
|
||||
third_party/rust/regex_automata/v0_4/BUILD.gn
|
||||
third_party/rust/regex_syntax/v0_8/BUILD.gn
|
||||
third_party/rust/rustc_demangle_capi/v0_1/BUILD.gn
|
||||
third_party/rust/rustversion/v1/BUILD.gn
|
||||
third_party/rust/ryu/v1/BUILD.gn
|
||||
third_party/rust/serde/v1/BUILD.gn
|
||||
third_party/rust/serde_core/v1/BUILD.gn
|
||||
@@ -14521,7 +14584,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_pathkit.py
|
||||
third_party/skia/infra/bots/recipes/perf_skottietrace.py
|
||||
third_party/skia/infra/bots/recipes/perf_skottiewasm_lottieweb.py
|
||||
third_party/skia/infra/bots/recipes/sync_and_compile.expected/Build-Debian10-Clang-arm-Release-NoPatch (tryjob).json
|
||||
@@ -14531,7 +14593,6 @@ 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
|
||||
third_party/skia/infra/bots/recipes/upload_buildstats_results.py
|
||||
third_party/skia/infra/bots/recipes/upload_dm_results.py
|
||||
third_party/skia/infra/bots/recipes/upload_nano_results.py
|
||||
@@ -14550,10 +14611,6 @@ third_party/skia/modules/canvaskit/tests/core_test.js
|
||||
third_party/skia/modules/canvaskit/tests/font_test.js
|
||||
third_party/skia/modules/canvaskit/tests/skottie_test.js
|
||||
third_party/skia/modules/canvaskit/webgl.js
|
||||
third_party/skia/modules/pathkit/chaining.js
|
||||
third_party/skia/modules/pathkit/helper.js
|
||||
third_party/skia/modules/pathkit/npm-asmjs/package.json
|
||||
third_party/skia/modules/pathkit/npm-wasm/package.json
|
||||
third_party/skia/modules/skottie/src/effects/SkSLEffect.cpp
|
||||
third_party/skia/modules/skottie/src/layers/TextLayer.cpp
|
||||
third_party/skia/modules/skunicode/BUILD.gn
|
||||
@@ -14646,6 +14703,8 @@ third_party/skia/tests/SkXmpTest.cpp
|
||||
third_party/skia/tests/StringTest.cpp
|
||||
third_party/skia/tests/TriangulatingPathRendererTests.cpp
|
||||
third_party/skia/tests/TypefaceTest.cpp
|
||||
third_party/skia/third_party/dawn/BUILD.gn
|
||||
third_party/skia/third_party/dawn/build_dawn.py
|
||||
third_party/skia/third_party/etc1/etc1.cpp
|
||||
third_party/skia/third_party/etc1/etc1.h
|
||||
third_party/skia/third_party/freetype2/include/freetype-android/freetype/config/ftoption.h
|
||||
@@ -15024,8 +15083,12 @@ third_party/tflite/src/tensorflow/tools/android/test/jni/rgb2yuv.cc
|
||||
third_party/tflite/src/tensorflow/tools/compatibility/tf_upgrade_v2_safety_test.py
|
||||
third_party/tflite/src/tensorflow/tools/pip_package/THIRD_PARTY_NOTICES.txt
|
||||
third_party/tflite/src/third_party/xla/xla/backends/gpu/codegen/emitters/transpose.h
|
||||
third_party/tflite/src/third_party/xla/xla/error/debug_me_context_util.h
|
||||
third_party/tflite/src/third_party/xla/xla/pjrt/c/pjrt_c_api.h
|
||||
third_party/tflite/src/third_party/xla/xla/pjrt/pjrt_api.cc
|
||||
third_party/tflite/src/third_party/xla/xla/python/ifrt/user_context_status_util.cc
|
||||
third_party/tflite/src/third_party/xla/xla/python/ifrt/user_context_status_util_test.cc
|
||||
third_party/tflite/src/third_party/xla/xla/python/ifrt_proxy/contrib/pathways/status_annotator_util.cc
|
||||
third_party/tflite/src/third_party/xla/xla/service/hlo_graph_dumper.cc
|
||||
third_party/tflite/src/third_party/xla/xla/service/hlo_verifier.cc
|
||||
third_party/tflite/src/third_party/xla/xla/tools/benchmarks/utils/generate_benchmark_matrices_main.cc
|
||||
@@ -15083,9 +15146,9 @@ third_party/vulkan-tools/src/cube/cube.c
|
||||
third_party/vulkan-tools/src/cube/gettime.h
|
||||
third_party/vulkan-tools/src/icd/generated/vk_typemap_helper.h
|
||||
third_party/vulkan-tools/src/scripts/android.py
|
||||
third_party/vulkan-tools/src/scripts/generators/mock_icd_generator.py
|
||||
third_party/vulkan-tools/src/scripts/generators/vulkan_tools_helper_file_generator.py
|
||||
third_party/vulkan-tools/src/scripts/gn/gn.py
|
||||
third_party/vulkan-tools/src/scripts/mock_icd_generator.py
|
||||
third_party/vulkan-tools/src/scripts/vulkan_tools_helper_file_generator.py
|
||||
third_party/vulkan-utility-libraries/src/scripts/gn/gn.py
|
||||
third_party/vulkan-validation-layers/src/layers/CMakeLists.txt
|
||||
third_party/vulkan-validation-layers/src/layers/external/inplace_function.h
|
||||
@@ -15168,6 +15231,7 @@ third_party/webrtc/BUILD.gn
|
||||
third_party/webrtc/PRESUBMIT.py
|
||||
third_party/webrtc/api/audio_codecs/opus/audio_encoder_opus_config.h
|
||||
third_party/webrtc/api/data_channel_event_observer_interface.h
|
||||
third_party/webrtc/api/jsep.cc
|
||||
third_party/webrtc/api/location.h
|
||||
third_party/webrtc/api/scoped_refptr.h
|
||||
third_party/webrtc/api/uma_metrics.h
|
||||
@@ -15178,6 +15242,8 @@ third_party/webrtc/api/video/i422_buffer.h
|
||||
third_party/webrtc/api/video/i444_buffer.h
|
||||
third_party/webrtc/api/video/nv12_buffer.h
|
||||
third_party/webrtc/api/video_codecs/video_encoder.h
|
||||
third_party/webrtc/api/webrtc_sdp.cc
|
||||
third_party/webrtc/api/webrtc_sdp_unittest.cc
|
||||
third_party/webrtc/call/adaptation/resource_adaptation_processor.h
|
||||
third_party/webrtc/call/call.cc
|
||||
third_party/webrtc/common_audio/resampler/sinc_resampler.cc
|
||||
@@ -15235,7 +15301,6 @@ third_party/webrtc/p2p/base/turn_port_unittest.cc
|
||||
third_party/webrtc/p2p/client/basic_port_allocator.cc
|
||||
third_party/webrtc/p2p/client/basic_port_allocator_unittest.cc
|
||||
third_party/webrtc/pc/channel.cc
|
||||
third_party/webrtc/pc/jsep_session_description.cc
|
||||
third_party/webrtc/pc/media_session_unittest.cc
|
||||
third_party/webrtc/pc/peer_connection_bundle_unittest.cc
|
||||
third_party/webrtc/pc/peer_connection_crypto_unittest.cc
|
||||
@@ -15248,8 +15313,6 @@ third_party/webrtc/pc/peer_connection_integrationtest.cc
|
||||
third_party/webrtc/pc/peer_connection_interface_unittest.cc
|
||||
third_party/webrtc/pc/scenario_tests/goog_cc_test.cc
|
||||
third_party/webrtc/pc/sdp_offer_answer.cc
|
||||
third_party/webrtc/pc/webrtc_sdp.cc
|
||||
third_party/webrtc/pc/webrtc_sdp_unittest.cc
|
||||
third_party/webrtc/presubmit_test_mocks.py
|
||||
third_party/webrtc/rtc_base/async_dns_resolver.cc
|
||||
third_party/webrtc/rtc_base/byte_buffer.h
|
||||
@@ -15294,6 +15357,7 @@ third_party/webrtc/sdk/objc/api/peerconnection/RTCConfiguration.h
|
||||
third_party/webrtc/sdk/objc/components/renderer/metal/RTCMTLI420Renderer.mm
|
||||
third_party/webrtc/test/android/native_test_launcher.cc
|
||||
third_party/webrtc/test/android/native_test_util.cc
|
||||
third_party/webrtc/test/peer_scenario/tests/l4s_test.cc
|
||||
third_party/webrtc/test/test_flags.cc
|
||||
third_party/webrtc/test/test_main_lib.cc
|
||||
third_party/webrtc/test/testsupport/perf_test.h
|
||||
@@ -15461,7 +15525,6 @@ tools/android/dependency_analysis/js/src/package_view.html
|
||||
tools/android/dependency_analysis/js/src/target_view.html
|
||||
tools/android/dependency_analysis/upload_html_viewer.py
|
||||
tools/android/generate_java_test/generate_java_test.py
|
||||
tools/android/logcat_filtering/index.html
|
||||
tools/android/memtrack_helper/memtrack_helper.c
|
||||
tools/android/modularization/convenience/touch_resources.py
|
||||
tools/android/native_lib_memory/PRESUBMIT.py
|
||||
@@ -15568,6 +15631,7 @@ tools/download_optimization_profile.py
|
||||
tools/dromaeo_benchmark_runner/dromaeo_benchmark_runner.py
|
||||
tools/emacs/trybot-mac.txt
|
||||
tools/find_runtime_symbols/PRESUBMIT.py
|
||||
tools/flags/generate_clank_feature_flag.py
|
||||
tools/flags/list_flags.py
|
||||
tools/fuchsia/3pp/gn-sdk/3pp/fetch.py
|
||||
tools/fuchsia/3pp/test-scripts/3pp/fetch.py
|
||||
@@ -15616,7 +15680,6 @@ tools/json_schema_compiler/test/content_settings.json
|
||||
tools/json_schema_compiler/test/tabs.json
|
||||
tools/json_schema_compiler/test/windows.json
|
||||
tools/json_to_struct/PRESUBMIT.py
|
||||
tools/licenses/licenses_test.py
|
||||
tools/linux/PRESUBMIT.py
|
||||
tools/mac/download_symbols.py
|
||||
tools/mac/icons/compile_car.py
|
||||
@@ -15705,6 +15768,9 @@ tools/metrics/histograms/metadata/content/histograms.xml
|
||||
tools/metrics/histograms/metadata/content_extraction/histograms.xml
|
||||
tools/metrics/histograms/metadata/contextual_cueing/enums.xml
|
||||
tools/metrics/histograms/metadata/contextual_cueing/histograms.xml
|
||||
tools/metrics/histograms/metadata/contextual_search/enums.xml
|
||||
tools/metrics/histograms/metadata/contextual_search/histograms.xml
|
||||
tools/metrics/histograms/metadata/contextual_tasks/histograms.xml
|
||||
tools/metrics/histograms/metadata/cookie/enums.xml
|
||||
tools/metrics/histograms/metadata/cookie/histograms.xml
|
||||
tools/metrics/histograms/metadata/cras/enums.xml
|
||||
@@ -15966,6 +16032,7 @@ tools/metrics/histograms/metadata/xr/histograms.xml
|
||||
tools/metrics/histograms/name_expansion_metadata.py
|
||||
tools/metrics/histograms/populate_enums.py
|
||||
tools/metrics/histograms/pretty_print_test.py
|
||||
tools/metrics/histograms/print_expanded_histograms_test.py
|
||||
tools/metrics/histograms/split_enums.py
|
||||
tools/metrics/histograms/split_xml.py
|
||||
tools/metrics/histograms/test_data/components/histograms.xml
|
||||
@@ -15982,7 +16049,6 @@ tools/metrics/histograms/test_data/ukm.xml
|
||||
tools/metrics/md2xml.py
|
||||
tools/metrics/private_metrics/PRESUBMIT.py
|
||||
tools/metrics/private_metrics/dwa.xml
|
||||
tools/metrics/private_metrics/dwa_test.xml
|
||||
tools/metrics/private_metrics/private_metrics_model_shared_test.py
|
||||
tools/metrics/private_metrics/private_metrics_validations_test.py
|
||||
tools/metrics/structured/PRESUBMIT.py
|
||||
@@ -16073,6 +16139,7 @@ tools/perf/core/shard_maps/timing_data/mac-laptop_high_end-perf_timing.json
|
||||
tools/perf/core/shard_maps/timing_data/mac-laptop_low_end-perf_timing.json
|
||||
tools/perf/core/shard_maps/timing_data/mac-m1_mini_2020-perf_timing.json
|
||||
tools/perf/core/shard_maps/timing_data/mac-m2-pro-perf_timing.json
|
||||
tools/perf/core/shard_maps/timing_data/mac-m4-mini-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/shard_maps/timing_data/win-11-perf_timing.json
|
||||
@@ -16178,6 +16245,7 @@ tools/typescript/PRESUBMIT.py
|
||||
tools/typescript/definitions/command_line_private.d.ts
|
||||
tools/typescript/definitions/pending.d.ts
|
||||
tools/typescript/definitions/system_display.d.ts
|
||||
tools/ubsan/array_bounds_ignorelist.txt
|
||||
tools/usb_gadget/gadget.py
|
||||
tools/usb_gadget/msos20_descriptors.py
|
||||
tools/utr/builders.py
|
||||
@@ -16312,12 +16380,12 @@ ui/gfx/font.h
|
||||
ui/gfx/font_fallback_win.h
|
||||
ui/gfx/font_names_testing.h
|
||||
ui/gfx/geometry/matrix44.cc
|
||||
ui/gfx/icon_util.cc
|
||||
ui/gfx/icon_util.h
|
||||
ui/gfx/render_text.cc
|
||||
ui/gfx/render_text_unittest.cc
|
||||
ui/gfx/text_elider_unittest.cc
|
||||
ui/gfx/win/hwnd_util.cc
|
||||
ui/gfx/win/icon_util.cc
|
||||
ui/gfx/win/icon_util.h
|
||||
ui/gfx/win/physical_size.cc
|
||||
ui/gfx/win/singleton_hwnd_hot_key_observer.cc
|
||||
ui/gl/android/scoped_a_native_window.cc
|
||||
@@ -16368,6 +16436,7 @@ ui/views/view_unittest.cc
|
||||
ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
|
||||
ui/views/win/hwnd_message_handler.cc
|
||||
ui/views/window/non_client_view.cc
|
||||
ui/webui/resources/cr_components/composebox/composebox_voice_search.ts
|
||||
ui/webui/resources/cr_components/cr_shortcut_input/cr_shortcut_input.ts
|
||||
ui/webui/resources/cr_components/help_bubble/help_bubble_icons.html
|
||||
ui/webui/resources/cr_elements/icons.html.ts
|
||||
|
||||
+2
-2
@@ -7,10 +7,10 @@ sha256 = 00a87050fa3f941d04d67fb5763991e0b8ea399a88b505ab0e56dd263f06864c
|
||||
output_path = ./third_party/search_engines_data/resources_internal
|
||||
|
||||
[onboarding]
|
||||
version = 202509241653
|
||||
version = 202511061712
|
||||
url = https://github.com/imputnet/helium-onboarding/releases/download/%(version)s/helium-onboarding-%(version)s.tar.gz
|
||||
download_filename = onboarding-page-%(version)s.tar.gz
|
||||
sha256 = fb23110d391419fbbbe2c8f7c3d96765b9b50aa1c20025343ab7f8bd59f9e7ab
|
||||
sha256 = 5728d2c6806f3f918f7fd0b358935fd4daa34c1117703c564917ede1dac8e199
|
||||
output_path = ./components/helium_onboarding
|
||||
|
||||
# If you are bumping this, you *NEED* to re-strip the assets.json
|
||||
|
||||
+2
-3
@@ -2735,7 +2735,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+#endif // BRAVE_UTILITY_IMPORTER_BRAVE_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_
|
||||
--- /dev/null
|
||||
+++ b/chrome/utility/importer/chrome_importer.cc
|
||||
@@ -0,0 +1,437 @@
|
||||
@@ -0,0 +1,436 @@
|
||||
+/* Copyright (c) 2019 The Brave Authors. All rights reserved.
|
||||
+ * This Source Code Form is subject to the terms of the Mozilla Public
|
||||
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
@@ -3103,8 +3103,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ if (!usage.favicon_url.is_valid())
|
||||
+ continue; // Don't bother importing favicons with invalid URLs.
|
||||
+
|
||||
+ std::vector<uint8_t> data;
|
||||
+ s.ColumnBlobAsVector(1, &data);
|
||||
+ std::vector<uint8_t> data = s.ColumnBlobAsVector(1);
|
||||
+ if (data.empty())
|
||||
+ continue; // Data definitely invalid.
|
||||
+
|
||||
@@ -177,7 +177,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
} // namespace user_data_importer
|
||||
--- a/tools/metrics/histograms/metadata/sql/histograms.xml
|
||||
+++ b/tools/metrics/histograms/metadata/sql/histograms.xml
|
||||
@@ -40,6 +40,7 @@ chromium-metrics-reviews@google.com.
|
||||
@@ -42,6 +42,7 @@ chromium-metrics-reviews@google.com.
|
||||
<variant name="DBSCSessions" summary="DBSCSessions"/>
|
||||
<variant name="DIPS" summary="DIPS"/>
|
||||
<variant name="DownloadRecord" summary="DownloadRecord"/>
|
||||
@@ -207,7 +207,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
} // namespace user_data_importer
|
||||
--- a/chrome/common/importer/profile_import_process_param_traits_macros.h
|
||||
+++ b/chrome/common/importer/profile_import_process_param_traits_macros.h
|
||||
@@ -20,11 +20,11 @@
|
||||
@@ -23,11 +23,11 @@
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImporterType,
|
||||
user_data_importer::TYPE_UNKNOWN,
|
||||
@@ -244,7 +244,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
}
|
||||
--- a/chrome/common/pref_names.h
|
||||
+++ b/chrome/common/pref_names.h
|
||||
@@ -4266,6 +4266,9 @@ inline constexpr char kServiceWorkerToCo
|
||||
@@ -4281,6 +4281,9 @@ inline constexpr char kServiceWorkerToCo
|
||||
inline constexpr char kSharedWorkerBlobURLFixEnabled[] =
|
||||
"worker.shared_worker_blob_url_fix_enabled";
|
||||
|
||||
@@ -256,7 +256,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
inline constexpr char kClearWindowNameForNewBrowsingContextGroup[] =
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -1164,6 +1164,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -1147,6 +1147,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kImportDialogSearchEngine] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -267,7 +267,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
// Supervised Users. This setting is queried in our Tast tests (b/241943380).
|
||||
--- a/chrome/browser/ui/webui/settings/settings_ui.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_ui.cc
|
||||
@@ -62,6 +62,7 @@
|
||||
@@ -63,6 +63,7 @@
|
||||
#include "chrome/browser/ui/webui/settings/font_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/hats_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/import_data_handler.h"
|
||||
@@ -275,7 +275,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "chrome/browser/ui/webui/settings/metrics_reporting_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/on_startup_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/password_manager_handler.h"
|
||||
@@ -201,6 +202,7 @@ void SettingsUI::RegisterProfilePrefs(
|
||||
@@ -203,6 +204,7 @@ void SettingsUI::RegisterProfilePrefs(
|
||||
registry->RegisterBooleanPref(prefs::kImportDialogHistory, true);
|
||||
registry->RegisterBooleanPref(prefs::kImportDialogSavedPasswords, true);
|
||||
registry->RegisterBooleanPref(prefs::kImportDialogSearchEngine, true);
|
||||
@@ -283,7 +283,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
}
|
||||
|
||||
SettingsUI::SettingsUI(content::WebUI* web_ui)
|
||||
@@ -230,7 +232,7 @@ SettingsUI::SettingsUI(content::WebUI* w
|
||||
@@ -232,7 +234,7 @@ SettingsUI::SettingsUI(content::WebUI* w
|
||||
AddSettingsPageUIHandler(std::make_unique<DownloadsHandler>(profile));
|
||||
AddSettingsPageUIHandler(std::make_unique<ExtensionControlHandler>());
|
||||
AddSettingsPageUIHandler(std::make_unique<FontHandler>(profile));
|
||||
@@ -294,7 +294,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -900,6 +900,8 @@ void AddImportDataStrings(content::WebUI
|
||||
@@ -999,6 +999,8 @@ void AddImportDataStrings(content::WebUI
|
||||
{"importHistory", IDS_SETTINGS_IMPORT_HISTORY_CHECKBOX},
|
||||
{"importFavorites", IDS_SETTINGS_IMPORT_FAVORITES_CHECKBOX},
|
||||
{"importPasswords", IDS_SETTINGS_IMPORT_PASSWORDS_CHECKBOX},
|
||||
@@ -319,7 +319,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
</div>
|
||||
--- a/chrome/browser/ui/BUILD.gn
|
||||
+++ b/chrome/browser/ui/BUILD.gn
|
||||
@@ -1237,6 +1237,10 @@ static_library("ui") {
|
||||
@@ -1252,6 +1252,10 @@ static_library("ui") {
|
||||
"webui/settings/accessibility_main_handler.h",
|
||||
"webui/settings/appearance_handler.cc",
|
||||
"webui/settings/appearance_handler.h",
|
||||
@@ -330,7 +330,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"webui/settings/browser_lifetime_handler.cc",
|
||||
"webui/settings/browser_lifetime_handler.h",
|
||||
"webui/settings/captions_handler.cc",
|
||||
@@ -1391,6 +1395,13 @@ static_library("ui") {
|
||||
@@ -1408,6 +1412,13 @@ static_library("ui") {
|
||||
]
|
||||
}
|
||||
|
||||
@@ -412,7 +412,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
// Corresponds to the "id" column of the "visits" SQL table.
|
||||
--- a/components/history/core/browser/visit_database.cc
|
||||
+++ b/components/history/core/browser/visit_database.cc
|
||||
@@ -119,6 +119,8 @@ VisitSource VisitSourceFromInt(int value
|
||||
@@ -120,6 +120,8 @@ VisitSource VisitSourceFromInt(int value
|
||||
case SOURCE_SAFARI_IMPORTED:
|
||||
case SOURCE_ACTOR:
|
||||
case SOURCE_OS_MIGRATION_IMPORTED:
|
||||
@@ -434,7 +434,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
}
|
||||
--- a/chrome/utility/BUILD.gn
|
||||
+++ b/chrome/utility/BUILD.gn
|
||||
@@ -92,6 +92,12 @@ static_library("utility") {
|
||||
@@ -90,6 +90,12 @@ static_library("utility") {
|
||||
sources += [
|
||||
"importer/bookmarks_file_importer.cc",
|
||||
"importer/bookmarks_file_importer.h",
|
||||
@@ -459,7 +459,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "components/mirroring/service/mirroring_service.h"
|
||||
#include "services/passage_embeddings/passage_embeddings_service.h"
|
||||
#include "services/proxy_resolver/proxy_resolver_factory_impl.h" // nogncheck
|
||||
@@ -144,6 +146,13 @@ static_assert(BUILDFLAG(ENABLE_PRINTING)
|
||||
@@ -138,6 +140,13 @@ static_assert(BUILDFLAG(ENABLE_PRINTING)
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -473,7 +473,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
auto RunFilePatcher(mojo::PendingReceiver<patch::mojom::FilePatcher> receiver) {
|
||||
return std::make_unique<patch::FilePatcherImpl>(std::move(receiver));
|
||||
}
|
||||
@@ -456,6 +465,7 @@ void RegisterMainThreadServices(mojo::Se
|
||||
@@ -434,6 +443,7 @@ void RegisterMainThreadServices(mojo::Se
|
||||
services.Add(ContentBookmarkParser);
|
||||
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
@@ -583,7 +583,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
// entire group has been collected and is ready to be written to the profile.
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -11171,6 +11171,15 @@ Check your passwords anytime in <ph name
|
||||
@@ -11279,6 +11279,15 @@ Check your passwords anytime in <ph name
|
||||
Microsoft Edge
|
||||
</message>
|
||||
</if>
|
||||
@@ -0,0 +1,260 @@
|
||||
Based on Brave's MRU tab cycling implementation, adapted for Helium.
|
||||
|
||||
This Source Code Form is subject to the terms of the Mozilla Public
|
||||
License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
|
||||
Copyright (c) 2025, The Brave Authors
|
||||
Copyright (c) 2025, The Helium Authors
|
||||
|
||||
Alternatively, the contents of this file may be used under the terms
|
||||
of the GNU General Public License Version 3, as described below:
|
||||
|
||||
Copyright (C) 2025 The Helium Authors
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
--- a/chrome/browser/ui/tabs/tab_strip_model.cc
|
||||
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc
|
||||
@@ -54,6 +54,7 @@
|
||||
#include "chrome/browser/ui/browser_commands.h"
|
||||
#include "chrome/browser/ui/browser_finder.h"
|
||||
#include "chrome/browser/ui/browser_window.h"
|
||||
+#include "chrome/browser/ui/views/frame/browser_view.h"
|
||||
#include "chrome/browser/ui/commerce/ui_utils.h"
|
||||
#include "chrome/browser/ui/send_tab_to_self/send_tab_to_self_bubble.h"
|
||||
#include "chrome/browser/ui/tabs/features.h"
|
||||
@@ -3703,6 +3704,44 @@ TabStripSelectionChange TabStripModel::S
|
||||
return selection;
|
||||
}
|
||||
|
||||
+void TabStripModel::SelectMRUTab(TabRelativeDirection direction,
|
||||
+ TabStripUserGestureDetails detail) {
|
||||
+ if (mru_cycle_list_.empty()) {
|
||||
+ Browser* browser = chrome::FindBrowserWithTab(GetWebContentsAt(0));
|
||||
+ if (!browser) {
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ for (int i = 0; i < count(); ++i) {
|
||||
+ mru_cycle_list_.push_back(i);
|
||||
+ }
|
||||
+
|
||||
+ std::sort(mru_cycle_list_.begin(), mru_cycle_list_.end(),
|
||||
+ [this](int a, int b) {
|
||||
+ return GetWebContentsAt(a)->GetLastActiveTimeTicks() >
|
||||
+ GetWebContentsAt(b)->GetLastActiveTimeTicks();
|
||||
+ });
|
||||
+
|
||||
+ if (BrowserView* browser_view = browser->window()->AsBrowserView()) {
|
||||
+ browser_view->StartTabCycling();
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ if (direction == TabRelativeDirection::kNext) {
|
||||
+ std::rotate(mru_cycle_list_.begin(), mru_cycle_list_.begin() + 1,
|
||||
+ mru_cycle_list_.end());
|
||||
+ } else {
|
||||
+ std::rotate(mru_cycle_list_.rbegin(), mru_cycle_list_.rbegin() + 1,
|
||||
+ mru_cycle_list_.rend());
|
||||
+ }
|
||||
+
|
||||
+ ActivateTabAt(mru_cycle_list_[0], detail);
|
||||
+}
|
||||
+
|
||||
+void TabStripModel::StopMRUCycling() {
|
||||
+ mru_cycle_list_.clear();
|
||||
+}
|
||||
+
|
||||
void TabStripModel::SelectRelativeTab(TabRelativeDirection direction,
|
||||
TabStripUserGestureDetails detail) {
|
||||
// This may happen during automated testing or if a user somehow buffers
|
||||
--- a/chrome/browser/ui/tabs/tab_strip_model.h
|
||||
+++ b/chrome/browser/ui/tabs/tab_strip_model.h
|
||||
@@ -611,6 +611,10 @@ class TabStripModel {
|
||||
TabStripUserGestureDetails detail = TabStripUserGestureDetails(
|
||||
TabStripUserGestureDetails::GestureType::kOther));
|
||||
|
||||
+ // Stops cycling through tabs in MRU order when Ctrl is released.
|
||||
+ // Used in BrowserView::StopTabCycling().
|
||||
+ void StopMRUCycling();
|
||||
+
|
||||
// Moves the active in the specified direction. Respects group boundaries.
|
||||
void MoveTabNext();
|
||||
void MoveTabPrevious();
|
||||
@@ -1139,6 +1143,11 @@ class TabStripModel {
|
||||
kPrevious,
|
||||
};
|
||||
|
||||
+ // Selects either the most recently used tab
|
||||
+ // or the least recently used tab.
|
||||
+ void SelectMRUTab(TabRelativeDirection direction,
|
||||
+ TabStripUserGestureDetails detail);
|
||||
+
|
||||
// Selects either the next tab (kNext), or the previous tab (kPrevious).
|
||||
void SelectRelativeTab(TabRelativeDirection direction,
|
||||
TabStripUserGestureDetails detail);
|
||||
@@ -1393,6 +1402,9 @@ class TabStripModel {
|
||||
// Tracks whether a modal UI is showing.
|
||||
bool showing_modal_ui_ = false;
|
||||
|
||||
+ // List of tabs for MRU cycling
|
||||
+ std::vector<int> mru_cycle_list_;
|
||||
+
|
||||
base::WeakPtrFactory<TabStripModel> weak_factory_{this};
|
||||
};
|
||||
|
||||
--- a/chrome/browser/ui/views/frame/browser_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_view.cc
|
||||
@@ -291,7 +291,10 @@
|
||||
#include "ui/compositor/paint_recorder.h"
|
||||
#include "ui/content_accelerators/accelerator_util.h"
|
||||
#include "ui/display/screen.h"
|
||||
+#include "ui/events/event.h"
|
||||
+#include "ui/events/event_handler.h"
|
||||
#include "ui/events/event_utils.h"
|
||||
+#include "ui/events/keycodes/keyboard_codes.h"
|
||||
#include "ui/gfx/animation/animation_runner.h"
|
||||
#include "ui/gfx/canvas.h"
|
||||
#include "ui/gfx/color_utils.h"
|
||||
@@ -309,6 +312,7 @@
|
||||
#include "ui/views/controls/button/menu_button.h"
|
||||
#include "ui/views/controls/textfield/textfield.h"
|
||||
#include "ui/views/controls/webview/webview.h"
|
||||
+#include "ui/views/event_monitor.h"
|
||||
#include "ui/views/interaction/element_tracker_views.h"
|
||||
#include "ui/views/layout/fill_layout.h"
|
||||
#include "ui/views/view.h"
|
||||
@@ -809,6 +813,83 @@ class BrowserView::ExclusiveAccessContex
|
||||
base::WeakPtrFactory<ExclusiveAccessContextImpl> weak_ptr_factory_{this};
|
||||
};
|
||||
|
||||
+// Handles events during MRU tab cycling to start/stop tab cycling.
|
||||
+class TabCyclingEventHandler : public ui::EventObserver,
|
||||
+ public views::WidgetObserver {
|
||||
+ public:
|
||||
+ explicit TabCyclingEventHandler(BrowserView* browser_view)
|
||||
+ : browser_view_(browser_view) {
|
||||
+ Start();
|
||||
+ }
|
||||
+
|
||||
+ ~TabCyclingEventHandler() override { Stop(); }
|
||||
+
|
||||
+ TabCyclingEventHandler(const TabCyclingEventHandler&) = delete;
|
||||
+ TabCyclingEventHandler& operator=(const TabCyclingEventHandler&) = delete;
|
||||
+
|
||||
+ private:
|
||||
+ // ui::EventObserver overrides:
|
||||
+ void OnEvent(const ui::Event& event) override {
|
||||
+ if (event.type() == ui::EventType::kKeyReleased &&
|
||||
+ event.AsKeyEvent()->key_code() == ui::VKEY_CONTROL) {
|
||||
+ // Ctrl key was released, stop the tab cycling.
|
||||
+ Stop();
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ if (event.type() == ui::EventType::kMousePressed) {
|
||||
+ Stop();
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ // views::WidgetObserver overrides:
|
||||
+ void OnWidgetActivationChanged(views::Widget* widget, bool active) override {
|
||||
+ // We should stop cycling if other application gets active state.
|
||||
+ if (!active) {
|
||||
+ Stop();
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ // Handle browser widget closing while tab cycling is in-progress.
|
||||
+ void OnWidgetClosing(views::Widget* widget) override { Stop(); }
|
||||
+
|
||||
+ void Start() {
|
||||
+ // Add the event handler.
|
||||
+ auto* widget = browser_view_->GetWidget();
|
||||
+ if (widget->GetNativeWindow()) {
|
||||
+ monitor_ = views::EventMonitor::CreateWindowMonitor(
|
||||
+ this, widget->GetNativeWindow(),
|
||||
+ {ui::EventType::kMousePressed, ui::EventType::kKeyReleased});
|
||||
+ }
|
||||
+ widget->AddObserver(this);
|
||||
+ }
|
||||
+
|
||||
+ void Stop() {
|
||||
+ if (!monitor_) {
|
||||
+ // Already stopped.
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ // Remove event handler.
|
||||
+ auto* widget = browser_view_->GetWidget();
|
||||
+ monitor_.reset();
|
||||
+ widget->RemoveObserver(this);
|
||||
+ browser_view_->StopTabCycling();
|
||||
+ }
|
||||
+
|
||||
+ raw_ptr<BrowserView> browser_view_;
|
||||
+ std::unique_ptr<views::EventMonitor> monitor_;
|
||||
+};
|
||||
+
|
||||
+void BrowserView::StartTabCycling() {
|
||||
+ tab_cycling_event_handler_ = std::make_unique<TabCyclingEventHandler>(this);
|
||||
+}
|
||||
+
|
||||
+void BrowserView::StopTabCycling() {
|
||||
+ tab_cycling_event_handler_.reset();
|
||||
+ browser()->tab_strip_model()->StopMRUCycling();
|
||||
+}
|
||||
+
|
||||
class BrowserView::AccessibilityModeObserver : public ui::AXModeObserver {
|
||||
public:
|
||||
explicit AccessibilityModeObserver(BrowserView* browser_view)
|
||||
--- a/chrome/browser/ui/views/frame/browser_view.h
|
||||
+++ b/chrome/browser/ui/views/frame/browser_view.h
|
||||
@@ -80,6 +80,7 @@ class LocationBarView;
|
||||
class MultiContentsView;
|
||||
class ScrimView;
|
||||
class SidePanel;
|
||||
+class TabCyclingEventHandler;
|
||||
class TabDragDelegate;
|
||||
class TabSearchBubbleHost;
|
||||
class TabStrip;
|
||||
@@ -555,6 +556,10 @@ class BrowserView : public BrowserWindow
|
||||
bool IsBorderlessModeEnabled() const override;
|
||||
void ShowChromeLabs() override;
|
||||
BrowserView* AsBrowserView() override;
|
||||
+
|
||||
+ void StartTabCycling();
|
||||
+ void StopTabCycling();
|
||||
+
|
||||
SharingDialog* ShowSharingDialog(content::WebContents* contents,
|
||||
SharingDialogData data) override;
|
||||
void ShowUpdateChromeDialog() override;
|
||||
@@ -860,6 +865,7 @@ class BrowserView : public BrowserWindow
|
||||
friend class BrowserViewLayoutDelegateImpl;
|
||||
friend class BrowserViewLayoutDelegateImplOld;
|
||||
friend class BrowserViewLayoutDelegateImplBrowsertest;
|
||||
+ friend class TabCyclingEventHandler;
|
||||
friend class TopControlsSlideControllerTest;
|
||||
FRIEND_TEST_ALL_PREFIXES(BrowserViewTest, BrowserView);
|
||||
FRIEND_TEST_ALL_PREFIXES(BrowserViewTest, AccessibleWindowTitle);
|
||||
@@ -1387,6 +1393,8 @@ class BrowserView : public BrowserWindow
|
||||
|
||||
base::CallbackListSubscription vertical_tab_subscription_;
|
||||
|
||||
+ std::unique_ptr<TabCyclingEventHandler> tab_cycling_event_handler_;
|
||||
+
|
||||
mutable base::WeakPtrFactory<BrowserView> weak_ptr_factory_{this};
|
||||
};
|
||||
|
||||
+5
-5
@@ -10,7 +10,7 @@ Subject: Disable fetching of all field trials
|
||||
|
||||
--- a/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java
|
||||
+++ b/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java
|
||||
@@ -60,7 +60,7 @@ public abstract class ChromeFeatureList
|
||||
@@ -61,7 +61,7 @@ public abstract class ChromeFeatureList
|
||||
* |kFeaturesExposedToJava| in chrome/browser/flags/android/chrome_feature_list.cc
|
||||
*/
|
||||
public static String getFieldTrialParamByFeature(String featureName, String paramName) {
|
||||
@@ -19,7 +19,7 @@ Subject: Disable fetching of all field trials
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -72,8 +72,7 @@ public abstract class ChromeFeatureList
|
||||
@@ -73,8 +73,7 @@ public abstract class ChromeFeatureList
|
||||
*/
|
||||
public static boolean getFieldTrialParamByFeatureAsBoolean(
|
||||
String featureName, String paramName, boolean defaultValue) {
|
||||
@@ -29,7 +29,7 @@ Subject: Disable fetching of all field trials
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -85,8 +84,7 @@ public abstract class ChromeFeatureList
|
||||
@@ -86,8 +85,7 @@ public abstract class ChromeFeatureList
|
||||
*/
|
||||
public static int getFieldTrialParamByFeatureAsInt(
|
||||
String featureName, String paramName, int defaultValue) {
|
||||
@@ -39,7 +39,7 @@ Subject: Disable fetching of all field trials
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -98,8 +96,7 @@ public abstract class ChromeFeatureList
|
||||
@@ -99,8 +97,7 @@ public abstract class ChromeFeatureList
|
||||
*/
|
||||
public static double getFieldTrialParamByFeatureAsDouble(
|
||||
String featureName, String paramName, double defaultValue) {
|
||||
@@ -51,7 +51,7 @@ Subject: Disable fetching of all field trials
|
||||
/**
|
||||
--- a/components/variations/service/variations_service.cc
|
||||
+++ b/components/variations/service/variations_service.cc
|
||||
@@ -224,22 +224,7 @@ bool GetInstanceManipulations(const net:
|
||||
@@ -223,22 +223,7 @@ bool GetInstanceManipulations(const net:
|
||||
// Variations seed fetching is only enabled in official Chrome builds, if a URL
|
||||
// is specified on the command line, and for testing.
|
||||
bool IsFetchingEnabled() {
|
||||
+27
-35
@@ -9,7 +9,7 @@
|
||||
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -2609,6 +2609,7 @@ static_library("browser") {
|
||||
@@ -2596,6 +2596,7 @@ static_library("browser") {
|
||||
"//third_party/libyuv",
|
||||
"//third_party/metrics_proto",
|
||||
"//third_party/re2",
|
||||
@@ -44,7 +44,7 @@
|
||||
#endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
|
||||
--- a/content/browser/BUILD.gn
|
||||
+++ b/content/browser/BUILD.gn
|
||||
@@ -302,6 +302,7 @@ source_set("browser") {
|
||||
@@ -299,6 +299,7 @@ source_set("browser") {
|
||||
"//third_party/re2",
|
||||
"//third_party/snappy",
|
||||
"//third_party/sqlite",
|
||||
@@ -62,7 +62,7 @@
|
||||
#include "components/viz/common/switches.h"
|
||||
#include "components/viz/host/gpu_client.h"
|
||||
#include "components/viz/host/host_frame_sink_manager.h"
|
||||
@@ -3591,6 +3592,8 @@ void RenderProcessHostImpl::PropagateBro
|
||||
@@ -3698,6 +3699,8 @@ void RenderProcessHostImpl::PropagateBro
|
||||
switches::kEnableWebGLImageChromium,
|
||||
switches::kEnableWebGPUDeveloperFeatures,
|
||||
switches::kFileUrlPathAlias,
|
||||
@@ -73,7 +73,7 @@
|
||||
switches::kForceHighContrast,
|
||||
--- a/content/child/BUILD.gn
|
||||
+++ b/content/child/BUILD.gn
|
||||
@@ -110,6 +110,7 @@ target(link_target_type, "child") {
|
||||
@@ -109,6 +109,7 @@ target(link_target_type, "child") {
|
||||
"//third_party/blink/public/common:buildflags",
|
||||
"//third_party/blink/public/strings",
|
||||
"//third_party/ced",
|
||||
@@ -83,7 +83,7 @@
|
||||
"//ui/events/blink",
|
||||
--- a/content/child/runtime_features.cc
|
||||
+++ b/content/child/runtime_features.cc
|
||||
@@ -41,6 +41,7 @@
|
||||
@@ -42,6 +42,7 @@
|
||||
#include "third_party/blink/public/common/loader/referrer_utils.h"
|
||||
#include "third_party/blink/public/common/switches.h"
|
||||
#include "third_party/blink/public/platform/web_runtime_features.h"
|
||||
@@ -91,7 +91,7 @@
|
||||
#include "ui/accessibility/accessibility_features.h"
|
||||
#include "ui/base/ui_base_features.h"
|
||||
#include "ui/events/blink/blink_features.h"
|
||||
@@ -483,6 +484,10 @@ void SetRuntimeFeaturesFromCommandLine(c
|
||||
@@ -485,6 +486,10 @@ void SetRuntimeFeaturesFromCommandLine(c
|
||||
true},
|
||||
{wrf::EnableWebAudioBypassOutputBufferingOptOut,
|
||||
blink::switches::kWebAudioBypassOutputBufferingOptOut, true},
|
||||
@@ -124,7 +124,7 @@
|
||||
#include "base/task/single_thread_task_runner.h"
|
||||
#include "base/time/time.h"
|
||||
#include "base/trace_event/trace_event.h"
|
||||
@@ -1087,6 +1088,11 @@ Document::Document(const DocumentInit& i
|
||||
@@ -1089,6 +1090,11 @@ Document::Document(const DocumentInit& i
|
||||
TRACE_EVENT_WITH_FLOW0("blink", "Document::Document", TRACE_ID_LOCAL(this),
|
||||
TRACE_EVENT_FLAG_FLOW_OUT);
|
||||
DCHECK(agent_);
|
||||
@@ -136,7 +136,7 @@
|
||||
if (base::FeatureList::IsEnabled(features::kDelayAsyncScriptExecution) &&
|
||||
features::kDelayAsyncScriptExecutionDelayByDefaultParam.Get()) {
|
||||
script_runner_delayer_->Activate();
|
||||
@@ -1224,6 +1230,14 @@ const Position Document::PositionAdjuste
|
||||
@@ -1226,6 +1232,14 @@ const Position Document::PositionAdjuste
|
||||
return Position::BeforeNode(*shadow_host);
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@
|
||||
V8VisibilityState visibilityState() const;
|
||||
String visibilityStateAsString() const;
|
||||
bool IsPageVisible() const;
|
||||
@@ -2795,6 +2799,9 @@ class CORE_EXPORT Document : public Cont
|
||||
@@ -2810,6 +2814,9 @@ class CORE_EXPORT Document : public Cont
|
||||
|
||||
base::ElapsedTimer start_time_;
|
||||
|
||||
@@ -176,19 +176,17 @@
|
||||
// - ScriptSchedulingType::kInOrder
|
||||
--- a/third_party/blink/renderer/core/dom/element.cc
|
||||
+++ b/third_party/blink/renderer/core/dom/element.cc
|
||||
@@ -3190,6 +3190,11 @@ DOMRectList* Element::getClientRects() {
|
||||
DCHECK(element_layout_object);
|
||||
GetDocument().AdjustQuadsForScrollAndAbsoluteZoom(quads,
|
||||
*element_layout_object);
|
||||
+ if (RuntimeEnabledFeatures::FingerprintingClientRectsNoiseEnabled()) {
|
||||
+ for (gfx::QuadF& quad : quads) {
|
||||
@@ -3195,6 +3195,9 @@ Vector<gfx::RectF> Element::GetClientRec
|
||||
}
|
||||
Vector<gfx::RectF> result;
|
||||
for (auto& quad : quads) {
|
||||
+ if (RuntimeEnabledFeatures::FingerprintingClientRectsNoiseEnabled()) {
|
||||
+ quad.Scale(GetDocument().GetNoiseFactorX(), GetDocument().GetNoiseFactorY());
|
||||
+ }
|
||||
+ }
|
||||
return MakeGarbageCollected<DOMRectList>(quads);
|
||||
}
|
||||
|
||||
@@ -3217,6 +3222,9 @@ gfx::RectF Element::GetBoundingClientRec
|
||||
result.emplace_back(quad.BoundingBox());
|
||||
}
|
||||
return result;
|
||||
@@ -3224,6 +3227,9 @@ gfx::RectF Element::GetBoundingClientRec
|
||||
DCHECK(element_layout_object);
|
||||
GetDocument().AdjustRectForScrollAndAbsoluteZoom(result,
|
||||
*element_layout_object);
|
||||
@@ -228,9 +226,9 @@
|
||||
// TODO(editing-dev): We should make
|
||||
--- a/third_party/blink/renderer/core/html/canvas/text_metrics.cc
|
||||
+++ b/third_party/blink/renderer/core/html/canvas/text_metrics.cc
|
||||
@@ -106,6 +106,24 @@ const ShapeResult* ShapeWord(const TextR
|
||||
@@ -89,6 +89,24 @@ TextMetrics::TextMetrics(const Font* fon
|
||||
Update(font, direction, baseline, align, text, text_painter);
|
||||
}
|
||||
} // namespace
|
||||
|
||||
+void TextMetrics::Shuffle(const double factor) {
|
||||
+ // x-direction
|
||||
@@ -255,7 +253,7 @@
|
||||
const V8CanvasTextBaseline::Enum baseline,
|
||||
--- a/third_party/blink/renderer/core/html/canvas/text_metrics.h
|
||||
+++ b/third_party/blink/renderer/core/html/canvas/text_metrics.h
|
||||
@@ -111,6 +111,8 @@ class CORE_EXPORT TextMetrics final : pu
|
||||
@@ -109,6 +109,8 @@ class CORE_EXPORT TextMetrics final : pu
|
||||
float x_position_;
|
||||
};
|
||||
|
||||
@@ -266,7 +264,7 @@
|
||||
const TextDirection& direction,
|
||||
--- 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
|
||||
@@ -108,6 +108,9 @@
|
||||
@@ -107,6 +107,9 @@
|
||||
// https://github.com/include-what-you-use/include-what-you-use/issues/1122
|
||||
// IWYU pragma: no_include "base/numerics/clamped_math.h"
|
||||
|
||||
@@ -276,20 +274,14 @@
|
||||
namespace blink {
|
||||
|
||||
class MemoryManagedPaintCanvas;
|
||||
@@ -1252,13 +1255,26 @@ TextMetrics* BaseRenderingContext2D::mea
|
||||
@@ -1233,9 +1236,22 @@ TextMetrics* BaseRenderingContext2D::mea
|
||||
TextDirection direction =
|
||||
ToTextDirection(state.GetDirection(), host, computed_style);
|
||||
|
||||
- return MakeGarbageCollected<TextMetrics>(
|
||||
- font, direction, state.GetTextBaseline().AsEnum(),
|
||||
- state.GetTextAlign().AsEnum(), text,
|
||||
+ TextMetrics* text_metrics = MakeGarbageCollected<TextMetrics>(
|
||||
+ font, direction, GetState().GetTextBaseline().AsEnum(),
|
||||
+ GetState().GetTextAlign().AsEnum(), text,
|
||||
RuntimeEnabledFeatures::CanvasTextNgEnabled(
|
||||
host->GetTopExecutionContext())
|
||||
? &host->GetPlainTextPainter()
|
||||
: nullptr);
|
||||
font, direction, state.GetTextBaseline().AsEnum(),
|
||||
state.GetTextAlign().AsEnum(), text, host->GetPlainTextPainter());
|
||||
+
|
||||
+ // Scale text metrics if enabled
|
||||
+ if (RuntimeEnabledFeatures::FingerprintingCanvasMeasureTextNoiseEnabled()) {
|
||||
@@ -308,7 +300,7 @@
|
||||
String BaseRenderingContext2D::lang() const {
|
||||
--- a/third_party/blink/renderer/platform/BUILD.gn
|
||||
+++ b/third_party/blink/renderer/platform/BUILD.gn
|
||||
@@ -1815,6 +1815,7 @@ component("platform") {
|
||||
@@ -1811,6 +1811,7 @@ component("platform") {
|
||||
"//components/paint_preview/common",
|
||||
"//components/search_engines:search_engine_utils",
|
||||
"//components/translate/core/language_detection",
|
||||
@@ -343,7 +335,7 @@
|
||||
#include "third_party/skia/include/core/SkImage.h"
|
||||
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
@@ -2344,6 +2344,12 @@
|
||||
@@ -2441,6 +2441,12 @@
|
||||
status: "stable",
|
||||
},
|
||||
{
|
||||
+6
-6
@@ -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
|
||||
@@ -3594,6 +3594,7 @@ void RenderProcessHostImpl::PropagateBro
|
||||
@@ -3701,6 +3701,7 @@ void RenderProcessHostImpl::PropagateBro
|
||||
switches::kFileUrlPathAlias,
|
||||
switches::kFingerprintingClientRectsNoise,
|
||||
switches::kFingerprintingCanvasMeasureTextNoise,
|
||||
@@ -44,7 +44,7 @@ approach to change color components.
|
||||
switches::kForceHighContrast,
|
||||
--- a/content/child/runtime_features.cc
|
||||
+++ b/content/child/runtime_features.cc
|
||||
@@ -488,6 +488,8 @@ void SetRuntimeFeaturesFromCommandLine(c
|
||||
@@ -490,6 +490,8 @@ void SetRuntimeFeaturesFromCommandLine(c
|
||||
switches::kFingerprintingClientRectsNoise, true},
|
||||
{wrf::EnableFingerprintingCanvasMeasureTextNoise,
|
||||
switches::kFingerprintingCanvasMeasureTextNoise, true},
|
||||
@@ -65,7 +65,7 @@ approach to change color components.
|
||||
};
|
||||
--- 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
|
||||
@@ -558,6 +558,9 @@ ImageData* BaseRenderingContext2D::getIm
|
||||
@@ -557,6 +557,9 @@ ImageData* BaseRenderingContext2D::getIm
|
||||
snapshot->PaintImageForCurrentFrame().GetSkImageInfo().bounds();
|
||||
DCHECK(!bounds.intersect(SkIRect::MakeXYWH(sx, sy, sw, sh)));
|
||||
}
|
||||
@@ -77,7 +77,7 @@ approach to change color components.
|
||||
return image_data;
|
||||
--- a/third_party/blink/renderer/platform/BUILD.gn
|
||||
+++ b/third_party/blink/renderer/platform/BUILD.gn
|
||||
@@ -1757,7 +1757,9 @@ component("platform") {
|
||||
@@ -1753,7 +1753,9 @@ component("platform") {
|
||||
"//third_party/blink/renderer:non_test_config",
|
||||
]
|
||||
|
||||
@@ -281,7 +281,7 @@ approach to change color components.
|
||||
} // namespace blink
|
||||
--- a/third_party/blink/renderer/platform/graphics/static_bitmap_image.h
|
||||
+++ b/third_party/blink/renderer/platform/graphics/static_bitmap_image.h
|
||||
@@ -39,6 +39,8 @@ class PLATFORM_EXPORT StaticBitmapImage
|
||||
@@ -38,6 +38,8 @@ class PLATFORM_EXPORT StaticBitmapImage
|
||||
|
||||
StaticBitmapImage(ImageOrientation orientation) : orientation_(orientation) {}
|
||||
|
||||
@@ -314,7 +314,7 @@ approach to change color components.
|
||||
SkJpegEncoder::Options options;
|
||||
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
@@ -2350,6 +2350,9 @@
|
||||
@@ -2447,6 +2447,9 @@
|
||||
name: "FingerprintingCanvasMeasureTextNoise",
|
||||
},
|
||||
{
|
||||
+9
-21
@@ -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
|
||||
@@ -2283,6 +2283,7 @@ static_library("browser") {
|
||||
@@ -2269,6 +2269,7 @@ static_library("browser") {
|
||||
"//components/net_log",
|
||||
"//components/network_hints/common:mojo_bindings",
|
||||
"//components/network_session_configurator/browser",
|
||||
@@ -81,7 +81,7 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
#include "printing/buildflags/buildflags.h"
|
||||
#include "services/network/public/cpp/features.h"
|
||||
#include "services/network/public/cpp/network_switches.h"
|
||||
@@ -417,6 +421,18 @@ void BrowserProcessImpl::Init() {
|
||||
@@ -432,6 +436,18 @@ void BrowserProcessImpl::Init() {
|
||||
pref_change_registrar_.Add(metrics::prefs::kMetricsReportingEnabled,
|
||||
base::BindRepeating(&ApplyMetricsReportingPolicy));
|
||||
|
||||
@@ -100,31 +100,19 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
DCHECK(!webrtc_event_log_manager_);
|
||||
webrtc_event_log_manager_ = WebRtcEventLogManager::CreateSingletonInstance();
|
||||
|
||||
--- a/chrome/browser/flag_descriptions.cc
|
||||
+++ b/chrome/browser/flag_descriptions.cc
|
||||
@@ -2671,6 +2671,10 @@ const char kLogJsConsoleMessagesDescript
|
||||
--- a/chrome/browser/flag_descriptions.h
|
||||
+++ b/chrome/browser/flag_descriptions.h
|
||||
@@ -2753,6 +2753,10 @@ inline constexpr char kLogJsConsoleMessa
|
||||
"Enable logging JS console messages in system logs, please note that they "
|
||||
"may contain PII.";
|
||||
|
||||
+const char kMaxConnectionsPerHostName[] = "Maximum connections per host";
|
||||
+const char kMaxConnectionsPerHostDescription[] =
|
||||
+inline constexpr char kMaxConnectionsPerHostName[] = "Maximum connections per host";
|
||||
+inline constexpr char kMaxConnectionsPerHostDescription[] =
|
||||
+ "Customize maximum allowed connections per host. ungoogled-chromium flag, Bromite feature.";
|
||||
+
|
||||
const char kMediaRouterCastAllowAllIPsName[] =
|
||||
inline constexpr char kMediaRouterCastAllowAllIPsName[] =
|
||||
"Connect to Cast devices on all IP addresses";
|
||||
const char kMediaRouterCastAllowAllIPsDescription[] =
|
||||
--- a/chrome/browser/flag_descriptions.h
|
||||
+++ b/chrome/browser/flag_descriptions.h
|
||||
@@ -1567,6 +1567,9 @@ extern const char kLockTopControlsOnLarg
|
||||
extern const char kLogJsConsoleMessagesName[];
|
||||
extern const char kLogJsConsoleMessagesDescription[];
|
||||
|
||||
+extern const char kMaxConnectionsPerHostName[];
|
||||
+extern const char kMaxConnectionsPerHostDescription[];
|
||||
+
|
||||
extern const char kMediaRouterCastAllowAllIPsName[];
|
||||
extern const char kMediaRouterCastAllowAllIPsDescription[];
|
||||
|
||||
inline constexpr char kMediaRouterCastAllowAllIPsDescription[] =
|
||||
--- a/components/network_session_configurator/common/network_features.cc
|
||||
+++ b/components/network_session_configurator/common/network_features.cc
|
||||
@@ -8,4 +8,7 @@
|
||||
-34
@@ -1,34 +0,0 @@
|
||||
From c89ce946e5328ca8a7df923d421e904bb6bfe9b6 Mon Sep 17 00:00:00 2001
|
||||
From: Jan Engelhardt <jengelh@inai.de>
|
||||
Date: Tue, 7 Jul 2015 18:28:46 +0200
|
||||
Subject: [PATCH 63/76] safe_browsing: disable reporting of safebrowsing
|
||||
override
|
||||
|
||||
Disables reporting of the safebrowsing override, i.e. the report sent
|
||||
if a user decides to visit a page that was flagged as "insecure".
|
||||
This prevents trk:148 (phishing) and trk:149 (malware).
|
||||
---
|
||||
components/safe_browsing/content/browser/client_side_detection_service.cc | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
--- a/components/safe_browsing/content/browser/client_side_detection_service.cc
|
||||
+++ b/components/safe_browsing/content/browser/client_side_detection_service.cc
|
||||
@@ -281,6 +281,10 @@ void ClientSideDetectionService::StartCl
|
||||
return;
|
||||
}
|
||||
|
||||
+#if 1
|
||||
+ if (!callback.is_null())
|
||||
+ std::move(callback).Run(GURL(request->url()), false, std::nullopt, std::nullopt);
|
||||
+#else
|
||||
std::string request_data;
|
||||
request->SerializeToString(&request_data);
|
||||
|
||||
@@ -363,6 +367,7 @@ void ClientSideDetectionService::StartCl
|
||||
&WebUIContentInfoSingleton::AddToClientPhishingRequestsSent,
|
||||
base::Unretained(WebUIContentInfoSingleton::GetInstance()),
|
||||
std::move(request), access_token));
|
||||
+#endif
|
||||
}
|
||||
|
||||
void ClientSideDetectionService::HandlePhishingVerdict(
|
||||
@@ -1,17 +0,0 @@
|
||||
--- a/sandbox/linux/BUILD.gn
|
||||
+++ b/sandbox/linux/BUILD.gn
|
||||
@@ -299,6 +299,14 @@ if (is_linux || is_chromeos) {
|
||||
"suid/process_util_linux.c",
|
||||
"suid/sandbox.c",
|
||||
]
|
||||
+
|
||||
+ cflags = [
|
||||
+ "-fPIE",
|
||||
+ ]
|
||||
+
|
||||
+ ldflags = [
|
||||
+ "-pie",
|
||||
+ ]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
From d32e222a2706cb59f9855b9cf4330f88d1af5435 Mon Sep 17 00:00:00 2001
|
||||
From: Jan Engelhardt <jengelh@inai.de>
|
||||
Date: Thu, 2 Apr 2015 12:44:23 +0200
|
||||
Subject: [PATCH 41/66] Remove EV certificates
|
||||
|
||||
The team chose to let EV certificates appear just like normal
|
||||
certificates. The web of trust is considered a failure in itself, so
|
||||
do not give users a false sense of extra security with EV certs.
|
||||
Instead, let them appear just like regular ones.
|
||||
|
||||
--- a/net/cert/ev_root_ca_metadata.cc
|
||||
+++ b/net/cert/ev_root_ca_metadata.cc
|
||||
@@ -36,7 +36,17 @@ struct EVMetadata {
|
||||
const std::string_view policy_oids[kMaxOIDsPerCA];
|
||||
};
|
||||
|
||||
-#include "net/data/ssl/chrome_root_store/chrome-ev-roots-inc.cc"
|
||||
+static const EVMetadata kEvRootCaMetadata[] = {
|
||||
+ // need some dummy thing to make compiler happy, because
|
||||
+ // arraysize() is implemented as a convoluted template rather than
|
||||
+ // the traditional sizeof(x)/sizeof(*x)
|
||||
+ { { { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
+ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff } },
|
||||
+ {
|
||||
+ "0",
|
||||
+ }
|
||||
+ }
|
||||
+};
|
||||
|
||||
#endif // defined(PLATFORM_USES_CHROMIUM_EV_METADATA)
|
||||
} // namespace
|
||||
@@ -1,21 +0,0 @@
|
||||
From d3dcad96b3c2091026c3a81054bb3ce56538a702 Mon Sep 17 00:00:00 2001
|
||||
From: Jan Engelhardt <jengelh@inai.de>
|
||||
Date: Thu, 29 Jan 2015 10:46:40 +0100
|
||||
Subject: [PATCH 16/66] mime_util: force text/x-suse-ymp to be downloaded
|
||||
|
||||
YMP files (YaST One Click Install) are plaintext XML, but also not
|
||||
very interesting in themselves. Force them to be stored.
|
||||
---
|
||||
components/mime_util/mime_util.cc | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
--- a/third_party/blink/common/mime_util/mime_util.cc
|
||||
+++ b/third_party/blink/common/mime_util/mime_util.cc
|
||||
@@ -88,6 +88,7 @@ constexpr auto kUnsupportedTextTypes =
|
||||
"text/x-csv",
|
||||
"text/x-vcf",
|
||||
"text/rtf",
|
||||
+ "text/x-suse-ymp",
|
||||
"text/comma-separated-values",
|
||||
"text/csv",
|
||||
"text/tab-separated-values",
|
||||
@@ -1,34 +0,0 @@
|
||||
--- a/chrome/browser/ui/views/frame/tab_strip_region_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/tab_strip_region_view.cc
|
||||
@@ -302,12 +302,10 @@ TabStripRegionView::TabStripRegionView(s
|
||||
new_tab_button_->GetViewAccessibility().SetName(
|
||||
l10n_util::GetStringUTF16(IDS_ACCNAME_NEWTAB));
|
||||
|
||||
-#if BUILDFLAG(IS_LINUX)
|
||||
// The New Tab Button can be middle-clicked on Linux.
|
||||
new_tab_button_->SetTriggerableEventFlags(
|
||||
new_tab_button_->GetTriggerableEventFlags() |
|
||||
ui::EF_MIDDLE_MOUSE_BUTTON);
|
||||
-#endif
|
||||
}
|
||||
|
||||
reserved_grab_handle_space_ =
|
||||
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
|
||||
@@ -2274,8 +2274,6 @@ void TabStrip::NewTabButtonPressed(const
|
||||
|
||||
const ui::MouseEvent& mouse = static_cast<const ui::MouseEvent&>(event);
|
||||
if (mouse.IsOnlyMiddleMouseButton()) {
|
||||
- if (ui::Clipboard::IsSupportedClipboardBuffer(
|
||||
- ui::ClipboardBuffer::kSelection)) {
|
||||
ui::Clipboard* clipboard = ui::Clipboard::GetForCurrentThread();
|
||||
CHECK(clipboard)
|
||||
<< "Clipboard instance is not available, cannot proceed with "
|
||||
@@ -2286,7 +2284,6 @@ void TabStrip::NewTabButtonPressed(const
|
||||
if (!clipboard_text.empty()) {
|
||||
controller_->CreateNewTabWithLocation(clipboard_text);
|
||||
}
|
||||
- }
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -189,7 +189,7 @@
|
||||
base::FilePath GetComputedHashesPath(const base::FilePath& extension_path);
|
||||
--- a/extensions/common/file_util.cc
|
||||
+++ b/extensions/common/file_util.cc
|
||||
@@ -593,6 +593,25 @@ MessageBundle* LoadMessageBundle(
|
||||
@@ -597,6 +597,25 @@ MessageBundle* LoadMessageBundle(
|
||||
return message_bundle;
|
||||
}
|
||||
|
||||
@@ -217,7 +217,7 @@
|
||||
.Append(kVerifiedContentsFilename);
|
||||
--- a/extensions/browser/renderer_startup_helper.cc
|
||||
+++ b/extensions/browser/renderer_startup_helper.cc
|
||||
@@ -608,6 +608,18 @@ void RendererStartupHelper::GetMessageBu
|
||||
@@ -688,6 +688,18 @@ void RendererStartupHelper::GetMessageBu
|
||||
paths_to_load.push_back(imported_extension->path());
|
||||
}
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
|
||||
--- a/chrome/common/extensions/BUILD.gn
|
||||
+++ b/chrome/common/extensions/BUILD.gn
|
||||
@@ -83,6 +83,7 @@ source_set("extensions") {
|
||||
@@ -82,6 +82,7 @@ source_set("extensions") {
|
||||
"//components/url_formatter",
|
||||
"//components/version_info",
|
||||
"//extensions:extensions_resources",
|
||||
@@ -134,7 +134,7 @@
|
||||
"//extensions/common",
|
||||
"//extensions/common:common_constants",
|
||||
"//extensions/common:core_api_provider",
|
||||
@@ -90,6 +91,7 @@ source_set("extensions") {
|
||||
@@ -89,6 +90,7 @@ source_set("extensions") {
|
||||
"//extensions/strings",
|
||||
"//ui/gfx/geometry",
|
||||
"//ui/message_center/public/cpp",
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
inline constexpr char kDefaultBrowserLastDeclined[] =
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -77,6 +77,8 @@ void RegisterBrowserPrefs(PrefRegistrySi
|
||||
@@ -80,6 +80,8 @@ void RegisterBrowserPrefs(PrefRegistrySi
|
||||
registry->RegisterIntegerPref(prefs::kDefaultBrowserDeclinedCount, 0);
|
||||
registry->RegisterTimePref(prefs::kDefaultBrowserFirstShownTime,
|
||||
base::Time());
|
||||
@@ -82,7 +82,7 @@
|
||||
}
|
||||
|
||||
bool DefaultBrowserInfoBarDelegate::Accept() {
|
||||
@@ -155,6 +157,22 @@ bool DefaultBrowserInfoBarDelegate::Acce
|
||||
@@ -156,6 +158,22 @@ bool DefaultBrowserInfoBarDelegate::Acce
|
||||
return ConfirmInfoBarDelegate::Accept();
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
raw_ptr<Profile> profile_;
|
||||
--- a/chrome/browser/ui/views/infobars/confirm_infobar.cc
|
||||
+++ b/chrome/browser/ui/views/infobars/confirm_infobar.cc
|
||||
@@ -126,7 +126,9 @@ void ConfirmInfoBar::Layout(PassKey) {
|
||||
@@ -137,7 +137,9 @@ void ConfirmInfoBar::Layout(PassKey) {
|
||||
}
|
||||
|
||||
if constexpr (!views::PlatformStyle::kIsOkButtonLeading) {
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#include "base/containers/to_vector.h"
|
||||
#include "base/feature_list.h"
|
||||
#include "base/functional/bind.h"
|
||||
@@ -263,6 +264,10 @@ network::mojom::SSLConfigPtr SSLConfigSe
|
||||
@@ -265,6 +266,10 @@ network::mojom::SSLConfigPtr SSLConfigSe
|
||||
|
||||
config->ech_enabled = ech_enabled_.GetValue();
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kReducedSystemInfo);
|
||||
--- a/third_party/blink/common/features.cc
|
||||
+++ b/third_party/blink/common/features.cc
|
||||
@@ -23,6 +23,15 @@ BASE_FEATURE(kAudioContextJitter,
|
||||
@@ -24,6 +24,15 @@ BASE_FEATURE(kAudioContextJitter,
|
||||
"AudioContextJitter",
|
||||
base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
BASE_FEATURE(kRemoveClientHints, "RemoveClientHints", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
--- a/third_party/blink/renderer/core/exported/web_view_impl.cc
|
||||
+++ b/third_party/blink/renderer/core/exported/web_view_impl.cc
|
||||
@@ -1905,9 +1905,9 @@ void WebView::ApplyWebPreferences(const
|
||||
@@ -1903,9 +1903,9 @@ void WebView::ApplyWebPreferences(const
|
||||
prefs.default_maximum_page_scale_factor);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
#include "url/gurl.h"
|
||||
#include "url/origin.h"
|
||||
#include "url/third_party/mozilla/url_parse.h"
|
||||
@@ -582,6 +587,7 @@ class TemplateURLService::PreLoadingProv
|
||||
@@ -581,6 +586,7 @@ class TemplateURLService::PreLoadingProv
|
||||
// TemplateURLService ---------------------------------------------------------
|
||||
TemplateURLService::TemplateURLService(
|
||||
PrefService& prefs,
|
||||
@@ -119,7 +119,7 @@
|
||||
search_engines::SearchEngineChoiceService& search_engine_choice_service,
|
||||
TemplateURLPrepopulateData::Resolver& prepopulate_data_resolver,
|
||||
std::unique_ptr<SearchTermsData> search_terms_data,
|
||||
@@ -594,6 +600,8 @@ TemplateURLService::TemplateURLService(
|
||||
@@ -593,6 +599,8 @@ TemplateURLService::TemplateURLService(
|
||||
prepopulate_data_resolver_(prepopulate_data_resolver),
|
||||
search_terms_data_(std::move(search_terms_data)),
|
||||
web_data_service_(web_data_service),
|
||||
@@ -128,7 +128,7 @@
|
||||
client_(std::move(client)),
|
||||
dsp_change_callback_(dsp_change_callback),
|
||||
pre_loading_providers_(std::make_unique<PreLoadingProviders>()),
|
||||
@@ -610,11 +618,13 @@ TemplateURLService::TemplateURLService(
|
||||
@@ -609,11 +617,13 @@ TemplateURLService::TemplateURLService(
|
||||
|
||||
TemplateURLService::TemplateURLService(
|
||||
PrefService& prefs,
|
||||
@@ -142,7 +142,7 @@
|
||||
search_engine_choice_service,
|
||||
prepopulate_data_resolver,
|
||||
/*search_terms_data=*/std::make_unique<SearchTermsData>(),
|
||||
@@ -695,6 +705,10 @@ bool TemplateURLService::ShowInActivesLi
|
||||
@@ -694,6 +704,10 @@ bool TemplateURLService::ShowInActivesLi
|
||||
}
|
||||
|
||||
bool TemplateURLService::HiddenFromLists(const TemplateURL* t_url) const {
|
||||
@@ -153,7 +153,7 @@
|
||||
switch (t_url->policy_origin()) {
|
||||
case TemplateURLData::PolicyOrigin::kDefaultSearchProvider:
|
||||
return false;
|
||||
@@ -1524,11 +1538,37 @@ void TemplateURLService::Load() {
|
||||
@@ -1527,11 +1541,37 @@ void TemplateURLService::Load() {
|
||||
|
||||
if (web_data_service_) {
|
||||
load_handle_ = web_data_service_->GetKeywords(this);
|
||||
@@ -191,7 +191,7 @@
|
||||
base::CallbackListSubscription TemplateURLService::RegisterOnLoadedCallback(
|
||||
base::OnceClosure callback) {
|
||||
return loaded_ ? base::CallbackListSubscription()
|
||||
@@ -2512,6 +2552,13 @@ void TemplateURLService::Init() {
|
||||
@@ -2515,6 +2555,13 @@ void TemplateURLService::Init() {
|
||||
&TemplateURLService::OnDefaultSearchProviderGUIDChanged,
|
||||
base::Unretained(this)));
|
||||
|
||||
@@ -236,7 +236,7 @@
|
||||
search_engines::SearchEngineChoiceService& search_engine_choice_service,
|
||||
TemplateURLPrepopulateData::Resolver& prepopulate_data_resolver,
|
||||
base::span<const TemplateURLService::Initializer> initializers = {});
|
||||
@@ -479,6 +483,8 @@ class TemplateURLService final : public
|
||||
@@ -482,6 +486,8 @@ class TemplateURLService final : public
|
||||
// OnTemplateURLServiceChanged.
|
||||
void Load();
|
||||
|
||||
@@ -245,7 +245,7 @@
|
||||
// Registers a callback to be called when the service has loaded.
|
||||
//
|
||||
// If the service has already loaded, this function does nothing.
|
||||
@@ -717,6 +723,8 @@ class TemplateURLService final : public
|
||||
@@ -720,6 +726,8 @@ class TemplateURLService final : public
|
||||
|
||||
void Init();
|
||||
|
||||
@@ -254,7 +254,7 @@
|
||||
// Simulate a loaded `TemplateURLService`.
|
||||
void ApplyInitializersForTesting(
|
||||
base::span<const TemplateURLService::Initializer> initializers);
|
||||
@@ -919,6 +927,10 @@ class TemplateURLService final : public
|
||||
@@ -922,6 +930,10 @@ class TemplateURLService final : public
|
||||
// Service used to store entries.
|
||||
scoped_refptr<KeywordWebDataService> web_data_service_;
|
||||
|
||||
@@ -565,7 +565,7 @@
|
||||
+
|
||||
--- a/components/omnibox/browser/autocomplete_input.cc
|
||||
+++ b/components/omnibox/browser/autocomplete_input.cc
|
||||
@@ -739,9 +739,9 @@ bool AutocompleteInput::HasHTTPSScheme(c
|
||||
@@ -741,9 +741,9 @@ bool AutocompleteInput::HasHTTPSScheme(c
|
||||
// static
|
||||
AutocompleteInput::FeaturedKeywordMode
|
||||
AutocompleteInput::GetFeaturedKeywordMode(std::u16string_view text) {
|
||||
@@ -577,7 +577,7 @@
|
||||
return FeaturedKeywordMode::kPrefix;
|
||||
return FeaturedKeywordMode::kFalse;
|
||||
}
|
||||
@@ -909,6 +909,7 @@ std::u16string AutocompleteInput::Autoco
|
||||
@@ -911,6 +911,7 @@ std::u16string AutocompleteInput::Autoco
|
||||
const std::u16string& input,
|
||||
bool trim_leading_whitespace,
|
||||
std::u16string* remaining_input) {
|
||||
@@ -585,7 +585,7 @@
|
||||
// Find end of first token. The AutocompleteController has trimmed leading
|
||||
// whitespace, so we need not skip over that.
|
||||
const size_t first_white(input.find_first_of(base::kWhitespaceUTF16));
|
||||
@@ -917,6 +918,39 @@ std::u16string AutocompleteInput::Autoco
|
||||
@@ -919,6 +920,39 @@ std::u16string AutocompleteInput::Autoco
|
||||
return input; // Only one token provided.
|
||||
}
|
||||
|
||||
@@ -678,7 +678,7 @@
|
||||
|
||||
--- a/components/search_engines/template_url.cc
|
||||
+++ b/components/search_engines/template_url.cc
|
||||
@@ -1693,6 +1693,8 @@ bool TemplateURL::IsBetterThanConflictin
|
||||
@@ -1700,6 +1700,8 @@ bool TemplateURL::IsBetterThanConflictin
|
||||
: base::Time(),
|
||||
// Prefer engines that CANNOT be auto-replaced.
|
||||
!engine->safe_for_autoreplace(),
|
||||
@@ -724,7 +724,7 @@
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetDummyURL();
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1973,6 +1973,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -2125,6 +2125,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"heliumServicesToggle", IDS_SETTINGS_HELIUM_SERVICES_TOGGLE},
|
||||
{"heliumServicesToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION},
|
||||
@@ -736,7 +736,7 @@
|
||||
{"heliumExtProxyToggleDescription",
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1945,6 +1945,12 @@
|
||||
@@ -1981,6 +1981,12 @@
|
||||
<message name="IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of downloading and proxying extensions">
|
||||
When enabled, Helium will proxy extension downloads and updates to protect your privacy. When disabled, downloading and updating extensions will not work.
|
||||
</message>
|
||||
@@ -765,7 +765,7 @@
|
||||
</template>
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -208,6 +208,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -211,6 +211,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
|
||||
{
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
|
||||
@@ -775,7 +775,7 @@
|
||||
registry->RegisterBooleanPref(prefs::kHeliumDidOnboarding, false);
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -357,6 +357,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -360,6 +360,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kHeliumExtProxyEnabled] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -796,9 +796,68 @@
|
||||
} // namespace prefs
|
||||
|
||||
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
|
||||
--- a/third_party/metrics_proto/omnibox_event.proto
|
||||
+++ b/third_party/metrics_proto/omnibox_event.proto
|
||||
@@ -774,6 +774,8 @@ message OmniboxEventProto {
|
||||
// or tabbing to it.
|
||||
TOOLBELT = 9; // Select and activate a search shortcuts action
|
||||
// from the omnibox toolbelt.
|
||||
+ RETURN_BANG = 10; // Accept a bang at the end of the query by pressing
|
||||
+ // the Return/Enter key.
|
||||
}
|
||||
|
||||
optional KeywordModeEntryMethod keyword_mode_entry_method = 20;
|
||||
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.h
|
||||
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.h
|
||||
@@ -300,6 +300,9 @@ class OmniboxEditModel {
|
||||
return !is_keyword_hint_ && !keyword_.empty();
|
||||
}
|
||||
|
||||
+ // Accepts the bang at the end of the user query.
|
||||
+ void MaybeAcceptTrailingBang();
|
||||
+
|
||||
// Accepts the current keyword hint as a keyword. It always returns true for
|
||||
// caller convenience. |entry_method| indicates how the user entered
|
||||
// keyword mode.
|
||||
@@ -655,6 +658,10 @@ class OmniboxEditModel {
|
||||
// triggering is enabled, false otherwise.
|
||||
bool AllowKeywordSpaceTriggering() const;
|
||||
|
||||
+ // Checks whether the user text contains a bang at the end of it
|
||||
+ // that can be accepted by pressing the Return key.
|
||||
+ bool HasTrailingBangKeyword() const;
|
||||
+
|
||||
// Accepts current keyword if the user just typed a space at the end of
|
||||
// |new_text|. This handles both of the following cases:
|
||||
// (assume "foo" is a keyword, | is the input caret, [] is selected text)
|
||||
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc
|
||||
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
|
||||
@@ -840,6 +840,17 @@ bool OmniboxEditModel::AcceptKeyword(
|
||||
@@ -859,6 +859,24 @@ void OmniboxEditModel::OpenSelectionForT
|
||||
OpenSelection(popup_selection_, timestamp, disposition, via_keyboard);
|
||||
}
|
||||
|
||||
+void OmniboxEditModel::MaybeAcceptTrailingBang() {
|
||||
+ if (!HasTrailingBangKeyword()) {
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ AcceptKeyword(OmniboxEventProto::RETURN_BANG);
|
||||
+
|
||||
+ const AutocompleteResult& result = autocomplete_controller()->result();
|
||||
+ for (size_t i = 0; i < result.size(); i++) {
|
||||
+ const AutocompleteMatch& match = result.match_at(i);
|
||||
+
|
||||
+ if (input_.text() == match.fill_into_edit) {
|
||||
+ SetPopupSelection(OmniboxPopupSelection(i));
|
||||
+ return;
|
||||
+ }
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
bool OmniboxEditModel::AcceptKeyword(
|
||||
OmniboxEventProto::KeywordModeEntryMethod entry_method) {
|
||||
TRACE_EVENT0("omnibox", "OmniboxEditModel::AcceptKeyword");
|
||||
@@ -867,6 +885,17 @@ bool OmniboxEditModel::AcceptKeyword(
|
||||
|
||||
controller_->StopAutocomplete(/*clear_result=*/false);
|
||||
|
||||
@@ -807,16 +866,16 @@
|
||||
+ keyword_);
|
||||
+
|
||||
+ if (turl && turl->bang_id() > 0 && !user_text_.starts_with(u'!')) {
|
||||
+ AutocompleteMatch match = CurrentMatch(nullptr);
|
||||
+ AutocompleteMatch match = CurrentMatch();
|
||||
+ if (!match.fill_into_edit.empty()) {
|
||||
+ user_text_ = match.fill_into_edit;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
is_keyword_hint_ = false;
|
||||
SetIsKeywordHint(false);
|
||||
keyword_mode_entry_method_ = entry_method;
|
||||
if (original_user_text_with_keyword_.empty()) {
|
||||
@@ -882,9 +893,6 @@ bool OmniboxEditModel::AcceptKeyword(
|
||||
@@ -909,9 +938,6 @@ bool OmniboxEditModel::AcceptKeyword(
|
||||
}
|
||||
|
||||
base::RecordAction(base::UserMetricsAction("AcceptedKeywordHint"));
|
||||
@@ -826,7 +885,7 @@
|
||||
EmitEnteredKeywordModeHistogram(entry_method, turl, !user_text_.empty());
|
||||
return true;
|
||||
}
|
||||
@@ -1543,7 +1551,13 @@ void OmniboxEditModel::InternalSetUserTe
|
||||
@@ -1561,7 +1587,13 @@ void OmniboxEditModel::InternalSetUserTe
|
||||
|
||||
std::u16string OmniboxEditModel::MaybeStripKeyword(
|
||||
const std::u16string& text) const {
|
||||
@@ -841,7 +900,28 @@
|
||||
? AutocompleteInput::SplitReplacementStringFromInput(text, false)
|
||||
: text;
|
||||
}
|
||||
@@ -2756,10 +2770,12 @@ bool OmniboxEditModel::MaybeAcceptKeywor
|
||||
@@ -2735,16 +2767,33 @@ bool OmniboxEditModel::AllowKeywordSpace
|
||||
return GetPrefService()->GetBoolean(omnibox::kKeywordSpaceTriggeringEnabled);
|
||||
}
|
||||
|
||||
+bool OmniboxEditModel::HasTrailingBangKeyword() const {
|
||||
+ if (!is_keyword_hint_ || input_.InKeywordMode()
|
||||
+ || !keyword_.starts_with('!')
|
||||
+ || !AutocompleteMatch::IsSearchType(current_match_.type)
|
||||
+ || !GetText().ends_with(keyword_)) {
|
||||
+ return false;
|
||||
+ }
|
||||
+
|
||||
+ const TemplateURL* turl =
|
||||
+ controller_->client()->GetTemplateURLService()->GetTemplateURLForKeyword(
|
||||
+ keyword_);
|
||||
+
|
||||
+ return turl && turl->bang_id() > 0;
|
||||
+}
|
||||
+
|
||||
bool OmniboxEditModel::MaybeAcceptKeywordBySpace(
|
||||
const std::u16string& new_text) {
|
||||
if (!AllowKeywordSpaceTriggering()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -856,3 +936,13 @@
|
||||
AcceptKeyword(OmniboxEventProto::SPACE_AT_END);
|
||||
}
|
||||
|
||||
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
|
||||
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
|
||||
@@ -1956,6 +1956,7 @@ bool OmniboxViewViews::HandleKeyEvent(vi
|
||||
metric_value);
|
||||
if (controller()->IsPopupOpen() && !control) {
|
||||
// Normal case of pressing <return> when the popup is open.
|
||||
+ controller()->edit_model()->MaybeAcceptTrailingBang();
|
||||
controller()->edit_model()->OpenSelection(
|
||||
controller()->edit_model()->GetPopupSelection(), event.time_stamp(),
|
||||
disposition,
|
||||
|
||||
@@ -90,12 +90,12 @@
|
||||
"Configures the frame rate the browser is throttled to when Energy Saver is enabled. Helium flag.",
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -264,6 +264,8 @@ static_library("browser") {
|
||||
"btm/btm_browser_signin_detector_factory.h",
|
||||
"btm/stateful_bounce_counter.cc",
|
||||
"btm/stateful_bounce_counter.h",
|
||||
+ "channel_selection.cc",
|
||||
+ "channel_selection.h",
|
||||
@@ -255,6 +255,8 @@ static_library("browser") {
|
||||
"browsing_topics/browsing_topics_service_factory.h",
|
||||
"chained_back_navigation_tracker.cc",
|
||||
"chained_back_navigation_tracker.h",
|
||||
+ "channel_selection.cc",
|
||||
+ "channel_selection.h",
|
||||
"child_process_host_flags.h",
|
||||
"chrome_browser_field_trials.cc",
|
||||
"chrome_browser_field_trials.h",
|
||||
|
||||
@@ -102,7 +102,7 @@ TODO: guard services_page.html with is_mac
|
||||
</template>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1983,6 +1983,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -2135,6 +2135,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE},
|
||||
{"heliumExtProxyToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE_DESCRIPTION},
|
||||
@@ -115,7 +115,7 @@ TODO: guard services_page.html with is_mac
|
||||
IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION},
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -367,6 +367,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -364,6 +364,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kHeliumSpellcheckEnabled] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -126,7 +126,7 @@ TODO: guard services_page.html with is_mac
|
||||
(*s_allowlist)[::prefs::kHeliumServicesConsented] =
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -219,6 +219,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -217,6 +217,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterStringPref(prefs::kHeliumServicesOrigin, "");
|
||||
registry->RegisterBooleanPref(prefs::kHeliumDidOnboarding, false);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesConsented, false);
|
||||
@@ -136,7 +136,7 @@ TODO: guard services_page.html with is_mac
|
||||
registry->RegisterBooleanPref(
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1957,6 +1957,12 @@
|
||||
@@ -1996,6 +1996,12 @@
|
||||
<message name="IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE_DESCRIPTION" desc="Description of the for enabling/disabling of downloading spellcheck files">
|
||||
Helium will fetch dictionary files used for spell checking when requested. When disabled, spell checking will not work.
|
||||
</message>
|
||||
|
||||
@@ -480,7 +480,7 @@
|
||||
private:
|
||||
--- a/chrome/common/importer/profile_import_process_param_traits_macros.h
|
||||
+++ b/chrome/common/importer/profile_import_process_param_traits_macros.h
|
||||
@@ -20,11 +20,11 @@
|
||||
@@ -23,11 +23,11 @@
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImporterType,
|
||||
user_data_importer::TYPE_UNKNOWN,
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
--- a/chrome/browser/ui/views/frame/system_menu_model_builder.cc
|
||||
+++ b/chrome/browser/ui/views/frame/system_menu_model_builder.cc
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
#include "build/build_config.h"
|
||||
#include "chrome/app/chrome_command_ids.h"
|
||||
+#include "chrome/browser/profiles/profile.h"
|
||||
#include "chrome/browser/ui/browser_commands.h"
|
||||
#include "chrome/browser/ui/browser_window/public/browser_window_features.h"
|
||||
#include "chrome/browser/ui/tabs/features.h"
|
||||
@@ -25,7 +26,6 @@
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
#include "ash/multi_user/multi_user_window_manager.h"
|
||||
#include "ash/shell.h"
|
||||
-#include "chrome/browser/profiles/profile.h"
|
||||
#include "chrome/browser/ui/ash/multi_user/multi_user_util.h"
|
||||
#include "chrome/browser/ui/browser_window.h"
|
||||
#include "chrome/browser/ui/settings_window_manager_chromeos.h"
|
||||
@@ -97,6 +97,12 @@ void SystemMenuModelBuilder::BuildSystem
|
||||
|
||||
model->AddItemWithStringId(IDC_BOOKMARK_ALL_TABS, IDS_BOOKMARK_ALL_TABS);
|
||||
model->AddItemWithStringId(IDC_NAME_WINDOW, IDS_NAME_WINDOW);
|
||||
+
|
||||
+ if (!browser()->profile()->IsOffTheRecord()) {
|
||||
+ model->AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
+ model->AddItemWithStringId(IDC_SHOW_CUSTOMIZE_CHROME_SIDE_PANEL,
|
||||
+ IDS_SHOW_CUSTOMIZE_CHROME_SIDE_PANEL);
|
||||
+ }
|
||||
#if BUILDFLAG(ENABLE_GLIC)
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
// On Windows we can not remove an item when showing the menu. So only add
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
@@ -1127,11 +1127,6 @@ void RenderViewContextMenu::InitMenu() {
|
||||
@@ -1146,11 +1146,6 @@ void RenderViewContextMenu::InitMenu() {
|
||||
AppendSpellingAndSearchSuggestionItems();
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
if (editable) {
|
||||
AppendOtherEditableItems();
|
||||
}
|
||||
@@ -2214,7 +2209,6 @@ void RenderViewContextMenu::AppendPageIt
|
||||
@@ -2245,7 +2240,6 @@ void RenderViewContextMenu::AppendPageIt
|
||||
IDS_CONTENT_CONTEXT_SAVEPAGEAS);
|
||||
menu_model_.AddItemWithStringId(IDC_PRINT, IDS_CONTENT_CONTEXT_PRINT);
|
||||
AppendLiveCaptionItem();
|
||||
@@ -20,7 +20,7 @@
|
||||
if (IsRegionSearchEnabled()) {
|
||||
AppendRegionSearchItem();
|
||||
}
|
||||
@@ -2343,8 +2337,7 @@ void RenderViewContextMenu::AppendMediaR
|
||||
@@ -2374,8 +2368,7 @@ void RenderViewContextMenu::AppendMediaR
|
||||
|
||||
void RenderViewContextMenu::AppendReadAnythingItem() {
|
||||
// Show Read Anything option if it's not already open in the side panel.
|
||||
@@ -30,7 +30,7 @@
|
||||
menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_OPEN_IN_READING_MODE,
|
||||
IDS_CONTENT_CONTEXT_READING_MODE);
|
||||
}
|
||||
@@ -3620,10 +3613,12 @@ void RenderViewContextMenu::ExecuteComma
|
||||
@@ -3657,10 +3650,12 @@ void RenderViewContextMenu::ExecuteComma
|
||||
}
|
||||
|
||||
void RenderViewContextMenu::AddSpellCheckServiceItem(bool is_checked) {
|
||||
@@ -43,7 +43,7 @@
|
||||
if (is_checked) {
|
||||
menu_model_.AddCheckItemWithStringId(
|
||||
IDC_CONTENT_CONTEXT_ACCESSIBILITY_LABELS_TOGGLE,
|
||||
@@ -4000,6 +3995,8 @@ bool RenderViewContextMenu::IsVideoFrame
|
||||
@@ -4038,6 +4033,8 @@ bool RenderViewContextMenu::IsVideoFrame
|
||||
bool RenderViewContextMenu::AppendQRCodeGeneratorItem(bool for_image,
|
||||
bool draw_icon,
|
||||
bool add_separator) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/services/network/public/cpp/features.cc
|
||||
+++ b/services/network/public/cpp/features.cc
|
||||
@@ -421,7 +421,7 @@ BASE_FEATURE(kUpdateRequestForCorsRedire
|
||||
@@ -439,7 +439,7 @@ BASE_FEATURE(kUpdateRequestForCorsRedire
|
||||
|
||||
// https://github.com/patcg-individual-drafts/topics
|
||||
// Kill switch for the Topics API.
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
// Enable the shared storage API. Note that enabling this feature does not
|
||||
// automatically expose this API to the web, it only allows the element to be
|
||||
@@ -500,7 +500,7 @@ BASE_FEATURE(kSharedStorageTransactional
|
||||
@@ -518,7 +518,7 @@ BASE_FEATURE(kSharedStorageTransactional
|
||||
|
||||
// Kill switch for the Interest Group API, i.e. if disabled, the
|
||||
// API exposure will be disabled regardless of the OT config.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/webid/fedcm_account_selection_view_desktop.cc
|
||||
+++ b/chrome/browser/ui/views/webid/fedcm_account_selection_view_desktop.cc
|
||||
@@ -1272,6 +1272,9 @@ gfx::Rect FedCmAccountSelectionView::Get
|
||||
@@ -1282,6 +1282,9 @@ gfx::Rect FedCmAccountSelectionView::Get
|
||||
|
||||
void FedCmAccountSelectionView::ShouldShowDialog(bool& should_show) {
|
||||
if (dialog_type_ == DialogType::BUBBLE) {
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/components/search/ntp_features.cc
|
||||
+++ b/components/search/ntp_features.cc
|
||||
@@ -240,7 +240,7 @@ BASE_FEATURE(kNtpNextFeatures, base::FEA
|
||||
BASE_FEATURE(kNtpOneGoogleBarAsyncBarParts, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
// If enabled, a footer will show on the NTP.
|
||||
-BASE_FEATURE(kNtpFooter, base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
+BASE_FEATURE(kNtpFooter, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
// If enabled, tab groups module will be shown.
|
||||
BASE_FEATURE(kNtpTabGroupsModule,
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/upgrade_detector/upgrade_detector_impl.cc
|
||||
+++ b/chrome/browser/upgrade_detector/upgrade_detector_impl.cc
|
||||
@@ -214,6 +214,8 @@ void UpgradeDetectorImpl::DoCalculateThr
|
||||
@@ -220,6 +220,8 @@ void UpgradeDetectorImpl::DoCalculateThr
|
||||
|
||||
void UpgradeDetectorImpl::StartOutdatedBuildDetector() {
|
||||
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -627,7 +627,7 @@ bool HasTabSearchToolbarButton() {
|
||||
@@ -670,7 +670,7 @@ bool HasTabSearchToolbarButton() {
|
||||
return is_tab_search_moving;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -285,13 +285,7 @@ bool IsTabGroupMenuMoreEntryPointsEnable
|
||||
@@ -307,13 +307,7 @@ bool IsTabGroupMenuMoreEntryPointsEnable
|
||||
|
||||
// Enables preview images in tab-hover cards.
|
||||
// https://crbug.com/928954
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
if (tab_search_action.has_value()) {
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -577,7 +577,7 @@ BASE_FEATURE(kByDateHistoryInSidePanel,
|
||||
@@ -620,7 +620,7 @@ BASE_FEATURE(kByDateHistoryInSidePanel,
|
||||
|
||||
BASE_FEATURE(kTabStripBrowserApi, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
// This serves as a "kill-switch" for migrating the Tab Search feature to be a
|
||||
// toolbar button for non-ChromeOS users in the US.
|
||||
@@ -612,6 +612,8 @@ bool HasTabSearchToolbarButton() {
|
||||
@@ -655,6 +655,8 @@ bool HasTabSearchToolbarButton() {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -13399,11 +13399,295 @@ const FeatureEntry kFeatureEntries[] = {
|
||||
@@ -13643,11 +13643,328 @@ const FeatureEntry kFeatureEntries[] = {
|
||||
// AboutFlagsHistogramTest unit test to verify this process).
|
||||
};
|
||||
|
||||
@@ -26,6 +26,11 @@
|
||||
+ // Google's experimental APIs that don't work in Helium
|
||||
+ // due to missing model binaries
|
||||
+ "translation-api",
|
||||
+ "translation-api-streaming-by-sentence",
|
||||
+
|
||||
+ // Misc features not relevant to Helium
|
||||
+ "extensions-menu-access-control",
|
||||
+ "extensions-collapse-main-menu",
|
||||
+
|
||||
+ // NTP
|
||||
+ "omnibox-zero-suggest-prefetching",
|
||||
@@ -40,6 +45,8 @@
|
||||
+ "ntp-tab-groups-module-zero-state",
|
||||
+ "ntp-microsoft-authentication-module",
|
||||
+ "ntp-realbox-next",
|
||||
+ "ntp-next-features",
|
||||
+ "ntp-customize-chrome-auto-open",
|
||||
+
|
||||
+ // Google Account & Sync
|
||||
+ "use-sync-sandbox",
|
||||
@@ -54,14 +61,18 @@
|
||||
+ "enable-bookmarks-selected-type-on-signin-for-testing",
|
||||
+ "enable-cross-device-pref-tracker",
|
||||
+ "pdf-save-to-drive",
|
||||
+ "mdm-errors-for-dasher-accounts-handling",
|
||||
+ "profile-creation-decline-signin-cta-experiment",
|
||||
+ "show-profile-picker-to-all-users-experiment",
|
||||
+
|
||||
+ // Gemini Nano
|
||||
+ // Gemini Nano / Other Google models
|
||||
+ "prompt-api-for-gemini-nano",
|
||||
+ "prompt-api-for-gemini-nano-multimodal-input",
|
||||
+ "summarization-api-for-gemini-nano",
|
||||
+ "writer-api-for-gemini-nano",
|
||||
+ "rewriter-api-for-gemini-nano",
|
||||
+ "proofreader-api-for-gemini-nano",
|
||||
+ "omnibox-on-device-tail-suggestions",
|
||||
+
|
||||
+ // AI Mode
|
||||
+ "ai-mode-omnibox-entry-point",
|
||||
@@ -75,6 +86,17 @@
|
||||
+ "composebox-uses-chrome-compose-client",
|
||||
+ "compose-selection-nudge",
|
||||
+ "contextual-tasks",
|
||||
+ "web-app-migrate-preinstalled-chat",
|
||||
+ "webui-omnibox-aim-popup",
|
||||
+
|
||||
+ // Contextual AI stuff (AI Mode entrypoints?)
|
||||
+ "contextual-search-box-uses-contextual-search-provider",
|
||||
+ "contextual-suggestions-ablate-others-when-present",
|
||||
+ "omnibox-contextual-search-on-focus-suggestions",
|
||||
+ "omnibox-contextual-suggestions",
|
||||
+ "contextual-cueing",
|
||||
+ "contextual-suggestion-ui-improvements",
|
||||
+ "contextual-tasks-context",
|
||||
+
|
||||
+ // Shopping stuff
|
||||
+ "product-specifications",
|
||||
@@ -126,6 +148,10 @@
|
||||
+ "lens-search-zero-state-csb",
|
||||
+ "lens-updated-feedback-entrypoint",
|
||||
+ "lens-video-citations",
|
||||
+ "lens-aim-suggestions",
|
||||
+ "lens-aim-gradient-suggest-background",
|
||||
+ "lens-overlay-optimization-filter",
|
||||
+ "lens-overlay-non-blocking-privacy-notice",
|
||||
+
|
||||
+ // Google Assistant
|
||||
+ "enable-assistant-dsp",
|
||||
@@ -150,6 +176,8 @@
|
||||
+ "enable-ntp-browser-promos",
|
||||
+ "mobile-promo-on-desktop",
|
||||
+ "in-product-help-demo-mode-choice",
|
||||
+ "iph-extensions-menu-feature",
|
||||
+ "iph-extensions-request-access-button-feature",
|
||||
+
|
||||
+ // GLIC (AI agent stuff)
|
||||
+ "glic",
|
||||
@@ -204,6 +232,7 @@
|
||||
+ "apply-clientside-model-predictions-for-password-types",
|
||||
+ "enable-site-isolation-for-password-sites",
|
||||
+ "pwm-show-suggestions-on-autofocus",
|
||||
+ "web-authentication-passkey-upgrade",
|
||||
+
|
||||
+ // Reading Mode
|
||||
+ "read-anything-read-aloud",
|
||||
@@ -211,6 +240,8 @@
|
||||
+ "read-anything-images-via-algorithm",
|
||||
+ "read-anything-docs-integration",
|
||||
+ "read-anything-docs-load-more-button",
|
||||
+ "read-anything-read-aloud-ts-text-segmentation",
|
||||
+ "read-anything-with-readability-enabled",
|
||||
+
|
||||
+ // Autofill
|
||||
+ "reintroduce-hybrid-passkey-entry-point",
|
||||
@@ -274,6 +305,8 @@
|
||||
+ "autofill-and-passwords-in-same-surface",
|
||||
+ "autofill-enable-ai-based-amount-extraction",
|
||||
+ "autofill-prefer-buy-now-pay-later-blocklists",
|
||||
+ "mark-all-credentials-as-leaked",
|
||||
+ "apply-clientside-model-predictions-for-otps",
|
||||
+
|
||||
+ // Add new entries above this line and categorize them accordingly.
|
||||
+});
|
||||
@@ -297,7 +330,7 @@
|
||||
FlagsStateSingleton(const FlagsStateSingleton&) = delete;
|
||||
FlagsStateSingleton& operator=(const FlagsStateSingleton&) = delete;
|
||||
~FlagsStateSingleton() override = default;
|
||||
@@ -13422,7 +13706,7 @@ class FlagsStateSingleton : public flags
|
||||
@@ -13666,7 +13983,7 @@ class FlagsStateSingleton : public flags
|
||||
|
||||
void RestoreDefaultState() {
|
||||
flags_state_ =
|
||||
@@ -306,7 +339,7 @@
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -13747,7 +14031,7 @@ base::span<const FeatureEntry> GetFeatur
|
||||
@@ -13990,7 +14307,7 @@ base::span<const FeatureEntry> GetFeatur
|
||||
!entries_for_testing->empty()) {
|
||||
return *entries_for_testing;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
--- a/extensions/browser/extension_registrar.cc
|
||||
+++ b/extensions/browser/extension_registrar.cc
|
||||
@@ -532,9 +532,12 @@ void ExtensionRegistrar::AddComponentExt
|
||||
if (old_version.IsValid()) {
|
||||
UnregisterServiceWorkerWithRootScope(extension);
|
||||
}
|
||||
+
|
||||
+ base::flat_set<int> disable_reasons = GetDisableReasonsOnInstalled(extension);
|
||||
+
|
||||
// TODO(crbug.com/40508457): If needed, add support for Declarative Net
|
||||
// Request to component extensions and pass the ruleset install prefs here.
|
||||
- AddNewOrUpdatedExtension(extension, {}, kInstallFlagNone,
|
||||
+ AddNewOrUpdatedExtension(extension, std::move(disable_reasons), kInstallFlagNone,
|
||||
syncer::StringOrdinal(), std::string(),
|
||||
/*ruleset_install_prefs=*/{});
|
||||
return;
|
||||
@@ -0,0 +1,12 @@
|
||||
--- a/components/gcm_driver/instance_id/instance_id_impl.cc
|
||||
+++ b/components/gcm_driver/instance_id/instance_id_impl.cc
|
||||
@@ -263,9 +263,6 @@ gcm::InstanceIDHandler* InstanceIDImpl::
|
||||
}
|
||||
|
||||
void InstanceIDImpl::RunWhenReady(base::OnceClosure task) {
|
||||
- if (!delayed_task_controller_.CanRunTaskWithoutDelay())
|
||||
- delayed_task_controller_.AddTask(std::move(task));
|
||||
- else
|
||||
base::SingleThreadTaskRunner::GetCurrentDefault()->PostTask(
|
||||
FROM_HERE, std::move(task));
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/tabs/saved_tab_groups/saved_tab_group_model_listener.cc
|
||||
+++ b/chrome/browser/ui/tabs/saved_tab_groups/saved_tab_group_model_listener.cc
|
||||
@@ -188,17 +188,7 @@ void SavedTabGroupModelListener::OnTabSt
|
||||
@@ -193,17 +193,7 @@ void SavedTabGroupModelListener::OnTabSt
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,21 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -4990,11 +4990,13 @@ const FeatureEntry::FeatureVariation kSe
|
||||
@@ -390,11 +390,11 @@ namespace about_flags {
|
||||
|
||||
namespace {
|
||||
|
||||
-const unsigned kOsAll = kOsMac | kOsWin | kOsLinux | kOsCrOS | kOsAndroid;
|
||||
-const unsigned kOsDesktop = kOsMac | kOsWin | kOsLinux | kOsCrOS;
|
||||
+const unsigned kOsAll = kOsMac | kOsWin | kOsLinux;
|
||||
+const unsigned kOsDesktop = kOsMac | kOsWin | kOsLinux;
|
||||
|
||||
#if defined(USE_AURA)
|
||||
-const unsigned kOsAura = kOsWin | kOsLinux | kOsCrOS;
|
||||
+const unsigned kOsAura = kOsWin | kOsLinux;
|
||||
#endif // USE_AURA
|
||||
|
||||
#if defined(USE_AURA)
|
||||
@@ -5200,11 +5200,13 @@ const FeatureEntry::FeatureVariation kPr
|
||||
// calculate and verify checksum.
|
||||
//
|
||||
// When adding a new choice, add it to the end of the list.
|
||||
|
||||
@@ -1,224 +0,0 @@
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -230,6 +230,10 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
(*s_allowlist)[::prefs::kSplitViewDragAndDropEnabled] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
|
||||
+ // Custom toolbar button settings.
|
||||
+ (*s_allowlist)[::prefs::kShowAvatarButton] =
|
||||
+ settings_api::PrefType::kBoolean;
|
||||
+
|
||||
// Appearance settings.
|
||||
(*s_allowlist)[::prefs::kCurrentThemeID] = settings_api::PrefType::kString;
|
||||
(*s_allowlist)[::prefs::kPinnedActions] = settings_api::PrefType::kList;
|
||||
--- a/chrome/browser/ui/actions/chrome_action_id.h
|
||||
+++ b/chrome/browser/ui/actions/chrome_action_id.h
|
||||
@@ -558,6 +558,7 @@
|
||||
#define TOOLBAR_PINNABLE_ACTION_IDS \
|
||||
E(kActionHome, IDC_HOME) \
|
||||
E(kActionForward, IDC_FORWARD) \
|
||||
+ E(kActionAvatar, IDC_SHOW_AVATAR_MENU) \
|
||||
E(kActionNewIncognitoWindow, IDC_NEW_INCOGNITO_WINDOW) \
|
||||
E(kActionSendSharedTabGroupFeedback, IDC_SEND_SHARED_TAB_GROUP_FEEDBACK) \
|
||||
E(kActionShowPasswordManager, IDC_SHOW_PASSWORD_MANAGER) \
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -123,6 +123,9 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterBooleanPref(prefs::kPinSplitTabButton, false,
|
||||
pref_registration_flags);
|
||||
|
||||
+ registry->RegisterBooleanPref(
|
||||
+ prefs::kShowAvatarButton, true);
|
||||
+
|
||||
registry->RegisterInt64Pref(prefs::kDefaultBrowserLastDeclined, 0);
|
||||
registry->RegisterBooleanPref(prefs::kWebAppCreateOnDesktop, true);
|
||||
registry->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, true);
|
||||
--- a/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
|
||||
+++ b/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
|
||||
@@ -216,6 +216,7 @@ void PinnedToolbarActionsModel::UpdatePi
|
||||
void PinnedToolbarActionsModel::ResetToDefault() {
|
||||
pref_service_->ClearPref(prefs::kShowHomeButton);
|
||||
pref_service_->ClearPref(prefs::kShowForwardButton);
|
||||
+ pref_service_->ClearPref(prefs::kShowAvatarButton);
|
||||
pref_service_->ClearPref(prefs::kPinnedActions);
|
||||
}
|
||||
|
||||
@@ -229,7 +230,10 @@ bool PinnedToolbarActionsModel::IsDefaul
|
||||
const bool forward_is_default =
|
||||
pref_service_->GetDefaultPrefValue(prefs::kShowForwardButton)
|
||||
->GetBool() == pref_service_->GetBoolean(prefs::kShowForwardButton);
|
||||
- return action_are_default && home_is_default && forward_is_default;
|
||||
+ const bool avatar_is_default =
|
||||
+ pref_service_->GetDefaultPrefValue(prefs::kShowAvatarButton)
|
||||
+ ->GetBool() == pref_service_->GetBoolean(prefs::kShowAvatarButton);
|
||||
+ return action_are_default && home_is_default && forward_is_default && avatar_is_default;
|
||||
}
|
||||
|
||||
void PinnedToolbarActionsModel::MaybeMigrateExistingPinnedStates() {
|
||||
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
@@ -463,8 +463,7 @@ void ToolbarView::Init() {
|
||||
#else
|
||||
// DevTools profiles are OffTheRecord, so hide it there.
|
||||
show_avatar_toolbar_button = browser_->profile()->IsIncognitoProfile() ||
|
||||
- browser_->profile()->IsGuestSession() ||
|
||||
- browser_->profile()->IsRegularProfile();
|
||||
+ browser_->profile()->IsGuestSession();
|
||||
#endif
|
||||
|
||||
const std::string sab_value = base::CommandLine::ForCurrentProcess()->
|
||||
@@ -533,6 +532,17 @@ void ToolbarView::Init() {
|
||||
|
||||
home_->SetVisible(show_home_button_.GetValue());
|
||||
|
||||
+ show_avatar_button_.Init(
|
||||
+ prefs::kShowAvatarButton, prefs,
|
||||
+ base::BindRepeating(&ToolbarView::OnShowAvatarButtonChanged,
|
||||
+ base::Unretained(this)));
|
||||
+
|
||||
+ // avatar is always shown in incognito and guest profiles,
|
||||
+ // but in regular profiles it's managed by the kShowAvatarButton pref
|
||||
+ if (browser_->profile()->IsRegularProfile()) {
|
||||
+ avatar_->SetVisible(show_avatar_button_.GetValue());
|
||||
+ }
|
||||
+
|
||||
InitLayout();
|
||||
|
||||
for (auto* button : std::array<views::Button*, 5>{back_, forward_, reload_,
|
||||
@@ -1253,6 +1263,10 @@ void ToolbarView::OnShowHomeButtonChange
|
||||
home_->SetVisible(show_home_button_.GetValue());
|
||||
}
|
||||
|
||||
+void ToolbarView::OnShowAvatarButtonChanged() {
|
||||
+ avatar_->SetVisible(show_avatar_button_.GetValue());
|
||||
+}
|
||||
+
|
||||
void ToolbarView::OnTouchUiChanged() {
|
||||
if (display_mode_ == DisplayMode::NORMAL) {
|
||||
// Update the internal margins for touch layout.
|
||||
--- a/chrome/browser/ui/views/toolbar/toolbar_view.h
|
||||
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.h
|
||||
@@ -268,6 +268,8 @@ class ToolbarView : public views::Access
|
||||
|
||||
void OnShowHomeButtonChanged();
|
||||
|
||||
+ void OnShowAvatarButtonChanged();
|
||||
+
|
||||
void OnTouchUiChanged();
|
||||
|
||||
void UpdateClipPath();
|
||||
@@ -318,6 +320,8 @@ class ToolbarView : public views::Access
|
||||
// Controls whether or not a home button should be shown on the toolbar.
|
||||
BooleanPrefMember show_home_button_;
|
||||
|
||||
+ BooleanPrefMember show_avatar_button_;
|
||||
+
|
||||
BooleanPrefMember show_chrome_labs_button_;
|
||||
|
||||
// The display mode used when laying out the toolbar.
|
||||
--- a/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar.mojom
|
||||
+++ b/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar.mojom
|
||||
@@ -16,6 +16,7 @@ enum ActionId {
|
||||
kShowSearchCompanion,
|
||||
kHome,
|
||||
kForward,
|
||||
+ kAvatar,
|
||||
kNewIncognitoWindow,
|
||||
kShowPasswordManager,
|
||||
kShowPaymentMethods,
|
||||
--- a/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.cc
|
||||
+++ b/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.cc
|
||||
@@ -50,6 +50,8 @@ MojoActionForChromeAction(actions::Actio
|
||||
return side_panel::customize_chrome::mojom::ActionId::kHome;
|
||||
case kActionForward:
|
||||
return side_panel::customize_chrome::mojom::ActionId::kForward;
|
||||
+ case kActionAvatar:
|
||||
+ return side_panel::customize_chrome::mojom::ActionId::kAvatar;
|
||||
case kActionNewIncognitoWindow:
|
||||
return side_panel::customize_chrome::mojom::ActionId::kNewIncognitoWindow;
|
||||
case kActionShowPasswordsBubbleOrPage:
|
||||
@@ -109,6 +111,8 @@ std::optional<actions::ActionId> ChromeA
|
||||
return kActionHome;
|
||||
case side_panel::customize_chrome::mojom::ActionId::kForward:
|
||||
return kActionForward;
|
||||
+ case side_panel::customize_chrome::mojom::ActionId::kAvatar:
|
||||
+ return kActionAvatar;
|
||||
case side_panel::customize_chrome::mojom::ActionId::kNewIncognitoWindow:
|
||||
return kActionNewIncognitoWindow;
|
||||
case side_panel::customize_chrome::mojom::ActionId::kShowPasswordManager:
|
||||
@@ -174,6 +178,10 @@ CustomizeToolbarHandler::CustomizeToolba
|
||||
prefs::kPinSplitTabButton,
|
||||
base::BindRepeating(&CustomizeToolbarHandler::OnPinSplitTabButtonChanged,
|
||||
base::Unretained(this)));
|
||||
+ pref_change_registrar_.Add(
|
||||
+ prefs::kShowAvatarButton,
|
||||
+ base::BindRepeating(&CustomizeToolbarHandler::OnShowAvatarButtonChanged,
|
||||
+ base::Unretained(this)));
|
||||
}
|
||||
|
||||
CustomizeToolbarHandler::~CustomizeToolbarHandler() = default;
|
||||
@@ -219,6 +227,19 @@ void CustomizeToolbarHandler::ListAction
|
||||
actions.push_back(std::move(home_action));
|
||||
actions.push_back(std::move(forward_action));
|
||||
|
||||
+ auto avatar_action = side_panel::customize_chrome::mojom::Action::New(
|
||||
+ MojoActionForChromeAction(kActionAvatar).value(),
|
||||
+ base::UTF16ToUTF8(l10n_util::GetStringUTF16(IDS_PROFILES_MENU_NAME)),
|
||||
+ prefs()->GetBoolean(prefs::kShowAvatarButton), false,
|
||||
+ side_panel::customize_chrome::mojom::CategoryId::kYourChrome,
|
||||
+ GURL(webui::EncodePNGAndMakeDataURI(
|
||||
+ ui::ImageModel::FromVectorIcon(
|
||||
+ vector_icons::kAccountCircleChromeRefreshIcon, icon_color_id)
|
||||
+ .Rasterize(&provider),
|
||||
+ scale_factor)));
|
||||
+
|
||||
+ actions.push_back(std::move(avatar_action));
|
||||
+
|
||||
if (base::FeatureList::IsEnabled(features::kSideBySide)) {
|
||||
auto split_tab_action = side_panel::customize_chrome::mojom::Action::New(
|
||||
MojoActionForChromeAction(kActionSplitTab).value(),
|
||||
@@ -367,6 +388,9 @@ void CustomizeToolbarHandler::PinAction(
|
||||
case kActionSplitTab:
|
||||
prefs()->SetBoolean(prefs::kPinSplitTabButton, pin);
|
||||
break;
|
||||
+ case kActionAvatar:
|
||||
+ prefs()->SetBoolean(prefs::kShowAvatarButton, pin);
|
||||
+ break;
|
||||
default:
|
||||
model_->UpdatePinnedState(chrome_action.value(), pin);
|
||||
const std::optional<std::string> metrics_name =
|
||||
@@ -420,6 +444,11 @@ void CustomizeToolbarHandler::OnPinSplit
|
||||
prefs()->GetBoolean(prefs::kPinSplitTabButton));
|
||||
}
|
||||
|
||||
+void CustomizeToolbarHandler::OnShowAvatarButtonChanged() {
|
||||
+ OnActionPinnedChanged(kActionAvatar,
|
||||
+ prefs()->GetBoolean(prefs::kShowAvatarButton));
|
||||
+}
|
||||
+
|
||||
void CustomizeToolbarHandler::OnActionItemChanged() {
|
||||
client_->NotifyActionsUpdated();
|
||||
}
|
||||
--- a/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.h
|
||||
+++ b/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.h
|
||||
@@ -54,6 +54,7 @@ class CustomizeToolbarHandler
|
||||
void OnShowHomeButtonChanged();
|
||||
void OnShowForwardButtonChanged();
|
||||
void OnPinSplitTabButtonChanged();
|
||||
+ void OnShowAvatarButtonChanged();
|
||||
void OnActionItemChanged();
|
||||
|
||||
PrefService* prefs() const;
|
||||
--- a/chrome/common/pref_names.h
|
||||
+++ b/chrome/common/pref_names.h
|
||||
@@ -1332,6 +1332,10 @@ inline constexpr char kSplitViewDragAndD
|
||||
inline constexpr char kSplitViewDragAndDropNudgeUsedCount[] =
|
||||
"browser.split_view_drag_and_drop_nudge_used_count";
|
||||
|
||||
+// A boolean pref set to true if the Avatar button should be visible on the
|
||||
+// toolbar.
|
||||
+inline constexpr char kShowAvatarButton[] = "helium.browser.show_avatar_button";
|
||||
+
|
||||
// A boolean pref set to true if Gemini integration be enabled. This is managed
|
||||
// by enterprise policy.
|
||||
inline constexpr char kGeminiSettings[] = "browser.gemini_settings";
|
||||
@@ -1,234 +0,0 @@
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -233,6 +233,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
// Custom toolbar button settings.
|
||||
(*s_allowlist)[::prefs::kShowAvatarButton] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
+ (*s_allowlist)[::prefs::kShowExtensionsButton] =
|
||||
+ settings_api::PrefType::kBoolean;
|
||||
|
||||
// Appearance settings.
|
||||
(*s_allowlist)[::prefs::kCurrentThemeID] = settings_api::PrefType::kString;
|
||||
--- a/chrome/browser/ui/actions/chrome_action_id.h
|
||||
+++ b/chrome/browser/ui/actions/chrome_action_id.h
|
||||
@@ -559,6 +559,7 @@
|
||||
E(kActionHome, IDC_HOME) \
|
||||
E(kActionForward, IDC_FORWARD) \
|
||||
E(kActionAvatar, IDC_SHOW_AVATAR_MENU) \
|
||||
+ E(kActionExtensions) \
|
||||
E(kActionNewIncognitoWindow, IDC_NEW_INCOGNITO_WINDOW) \
|
||||
E(kActionSendSharedTabGroupFeedback, IDC_SEND_SHARED_TAB_GROUP_FEEDBACK) \
|
||||
E(kActionShowPasswordManager, IDC_SHOW_PASSWORD_MANAGER) \
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -125,6 +125,8 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
|
||||
registry->RegisterBooleanPref(
|
||||
prefs::kShowAvatarButton, true);
|
||||
+ registry->RegisterBooleanPref(
|
||||
+ prefs::kShowExtensionsButton, true);
|
||||
|
||||
registry->RegisterInt64Pref(prefs::kDefaultBrowserLastDeclined, 0);
|
||||
registry->RegisterBooleanPref(prefs::kWebAppCreateOnDesktop, true);
|
||||
--- a/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
|
||||
+++ b/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
|
||||
@@ -217,6 +217,7 @@ void PinnedToolbarActionsModel::ResetToD
|
||||
pref_service_->ClearPref(prefs::kShowHomeButton);
|
||||
pref_service_->ClearPref(prefs::kShowForwardButton);
|
||||
pref_service_->ClearPref(prefs::kShowAvatarButton);
|
||||
+ pref_service_->ClearPref(prefs::kShowExtensionsButton);
|
||||
pref_service_->ClearPref(prefs::kPinnedActions);
|
||||
}
|
||||
|
||||
@@ -233,7 +234,12 @@ bool PinnedToolbarActionsModel::IsDefaul
|
||||
const bool avatar_is_default =
|
||||
pref_service_->GetDefaultPrefValue(prefs::kShowAvatarButton)
|
||||
->GetBool() == pref_service_->GetBoolean(prefs::kShowAvatarButton);
|
||||
- return action_are_default && home_is_default && forward_is_default && avatar_is_default;
|
||||
+ const bool extensions_is_default =
|
||||
+ pref_service_->GetDefaultPrefValue(prefs::kShowExtensionsButton)
|
||||
+ ->GetBool() == pref_service_->GetBoolean(prefs::kShowExtensionsButton);
|
||||
+ return action_are_default && home_is_default &&
|
||||
+ forward_is_default && avatar_is_default &&
|
||||
+ extensions_is_default;
|
||||
}
|
||||
|
||||
void PinnedToolbarActionsModel::MaybeMigrateExistingPinnedStates() {
|
||||
--- a/chrome/browser/ui/views/extensions/extensions_toolbar_container.cc
|
||||
+++ b/chrome/browser/ui/views/extensions/extensions_toolbar_container.cc
|
||||
@@ -552,7 +552,9 @@ void ExtensionsToolbarContainer::AnchorA
|
||||
|
||||
// Fix the position of widgets. Without this fix, extension-installed-bubble
|
||||
// and extension-uninstall-dialog may be out of the window border on Linux.
|
||||
- if (base::CommandLine::ForCurrentProcess()->HasSwitch("hide-extensions-menu"))
|
||||
+ if (!browser_->profile()->GetPrefs()->GetBoolean(
|
||||
+ prefs::kShowExtensionsButton) ||
|
||||
+ base::CommandLine::ForCurrentProcess()->HasSwitch("hide-extensions-menu"))
|
||||
{
|
||||
views::View* anchor_view = BrowserView::GetBrowserViewForBrowser(browser_)
|
||||
->toolbar_button_provider()->GetAppMenuButton();
|
||||
@@ -962,7 +964,9 @@ void ExtensionsToolbarContainer::UpdateC
|
||||
}
|
||||
|
||||
bool ExtensionsToolbarContainer::ShouldContainerBeVisible() const {
|
||||
- if (base::CommandLine::ForCurrentProcess()->HasSwitch("hide-extensions-menu"))
|
||||
+ if (!browser_->profile()->GetPrefs()->GetBoolean(
|
||||
+ prefs::kShowExtensionsButton) ||
|
||||
+ base::CommandLine::ForCurrentProcess()->HasSwitch("hide-extensions-menu"))
|
||||
return false;
|
||||
|
||||
// The container (and extensions-menu button) should not be visible if we have
|
||||
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
@@ -543,6 +543,14 @@ void ToolbarView::Init() {
|
||||
avatar_->SetVisible(show_avatar_button_.GetValue());
|
||||
}
|
||||
|
||||
+ if (extensions_container_) {
|
||||
+ show_extensions_button_.Init(
|
||||
+ prefs::kShowExtensionsButton, prefs,
|
||||
+ base::BindRepeating(&ToolbarView::OnShowExtensionsButtonChanged,
|
||||
+ base::Unretained(this)));
|
||||
+ extensions_container_->SetVisible(show_extensions_button_.GetValue());
|
||||
+ }
|
||||
+
|
||||
InitLayout();
|
||||
|
||||
for (auto* button : std::array<views::Button*, 5>{back_, forward_, reload_,
|
||||
@@ -1267,6 +1275,10 @@ void ToolbarView::OnShowAvatarButtonChan
|
||||
avatar_->SetVisible(show_avatar_button_.GetValue());
|
||||
}
|
||||
|
||||
+void ToolbarView::OnShowExtensionsButtonChanged() {
|
||||
+ extensions_container_->SetVisible(show_extensions_button_.GetValue());
|
||||
+}
|
||||
+
|
||||
void ToolbarView::OnTouchUiChanged() {
|
||||
if (display_mode_ == DisplayMode::NORMAL) {
|
||||
// Update the internal margins for touch layout.
|
||||
--- a/chrome/browser/ui/views/toolbar/toolbar_view.h
|
||||
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.h
|
||||
@@ -270,6 +270,8 @@ class ToolbarView : public views::Access
|
||||
|
||||
void OnShowAvatarButtonChanged();
|
||||
|
||||
+ void OnShowExtensionsButtonChanged();
|
||||
+
|
||||
void OnTouchUiChanged();
|
||||
|
||||
void UpdateClipPath();
|
||||
@@ -322,6 +324,8 @@ class ToolbarView : public views::Access
|
||||
|
||||
BooleanPrefMember show_avatar_button_;
|
||||
|
||||
+ BooleanPrefMember show_extensions_button_;
|
||||
+
|
||||
BooleanPrefMember show_chrome_labs_button_;
|
||||
|
||||
// The display mode used when laying out the toolbar.
|
||||
--- a/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar.mojom
|
||||
+++ b/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar.mojom
|
||||
@@ -17,6 +17,7 @@ enum ActionId {
|
||||
kHome,
|
||||
kForward,
|
||||
kAvatar,
|
||||
+ kExtensions,
|
||||
kNewIncognitoWindow,
|
||||
kShowPasswordManager,
|
||||
kShowPaymentMethods,
|
||||
--- a/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.cc
|
||||
+++ b/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.cc
|
||||
@@ -52,6 +52,8 @@ MojoActionForChromeAction(actions::Actio
|
||||
return side_panel::customize_chrome::mojom::ActionId::kForward;
|
||||
case kActionAvatar:
|
||||
return side_panel::customize_chrome::mojom::ActionId::kAvatar;
|
||||
+ case kActionExtensions:
|
||||
+ return side_panel::customize_chrome::mojom::ActionId::kExtensions;
|
||||
case kActionNewIncognitoWindow:
|
||||
return side_panel::customize_chrome::mojom::ActionId::kNewIncognitoWindow;
|
||||
case kActionShowPasswordsBubbleOrPage:
|
||||
@@ -113,6 +115,8 @@ std::optional<actions::ActionId> ChromeA
|
||||
return kActionForward;
|
||||
case side_panel::customize_chrome::mojom::ActionId::kAvatar:
|
||||
return kActionAvatar;
|
||||
+ case side_panel::customize_chrome::mojom::ActionId::kExtensions:
|
||||
+ return kActionExtensions;
|
||||
case side_panel::customize_chrome::mojom::ActionId::kNewIncognitoWindow:
|
||||
return kActionNewIncognitoWindow;
|
||||
case side_panel::customize_chrome::mojom::ActionId::kShowPasswordManager:
|
||||
@@ -182,6 +186,10 @@ CustomizeToolbarHandler::CustomizeToolba
|
||||
prefs::kShowAvatarButton,
|
||||
base::BindRepeating(&CustomizeToolbarHandler::OnShowAvatarButtonChanged,
|
||||
base::Unretained(this)));
|
||||
+ pref_change_registrar_.Add(
|
||||
+ prefs::kShowExtensionsButton,
|
||||
+ base::BindRepeating(&CustomizeToolbarHandler::OnShowExtensionsButtonChanged,
|
||||
+ base::Unretained(this)));
|
||||
}
|
||||
|
||||
CustomizeToolbarHandler::~CustomizeToolbarHandler() = default;
|
||||
@@ -240,6 +248,19 @@ void CustomizeToolbarHandler::ListAction
|
||||
|
||||
actions.push_back(std::move(avatar_action));
|
||||
|
||||
+ auto extensions_action = side_panel::customize_chrome::mojom::Action::New(
|
||||
+ MojoActionForChromeAction(kActionExtensions).value(),
|
||||
+ base::UTF16ToUTF8(l10n_util::GetStringUTF16(IDS_TOOLTIP_EXTENSIONS_BUTTON)),
|
||||
+ prefs()->GetBoolean(prefs::kShowExtensionsButton), false,
|
||||
+ side_panel::customize_chrome::mojom::CategoryId::kYourChrome,
|
||||
+ GURL(webui::EncodePNGAndMakeDataURI(
|
||||
+ ui::ImageModel::FromVectorIcon(
|
||||
+ vector_icons::kExtensionChromeRefreshIcon, icon_color_id)
|
||||
+ .Rasterize(&provider),
|
||||
+ scale_factor)));
|
||||
+
|
||||
+ actions.push_back(std::move(extensions_action));
|
||||
+
|
||||
if (base::FeatureList::IsEnabled(features::kSideBySide)) {
|
||||
auto split_tab_action = side_panel::customize_chrome::mojom::Action::New(
|
||||
MojoActionForChromeAction(kActionSplitTab).value(),
|
||||
@@ -391,6 +412,9 @@ void CustomizeToolbarHandler::PinAction(
|
||||
case kActionAvatar:
|
||||
prefs()->SetBoolean(prefs::kShowAvatarButton, pin);
|
||||
break;
|
||||
+ case kActionExtensions:
|
||||
+ prefs()->SetBoolean(prefs::kShowExtensionsButton, pin);
|
||||
+ break;
|
||||
default:
|
||||
model_->UpdatePinnedState(chrome_action.value(), pin);
|
||||
const std::optional<std::string> metrics_name =
|
||||
@@ -449,6 +473,11 @@ void CustomizeToolbarHandler::OnShowAvat
|
||||
prefs()->GetBoolean(prefs::kShowAvatarButton));
|
||||
}
|
||||
|
||||
+void CustomizeToolbarHandler::OnShowExtensionsButtonChanged() {
|
||||
+ OnActionPinnedChanged(kActionExtensions,
|
||||
+ prefs()->GetBoolean(prefs::kShowExtensionsButton));
|
||||
+}
|
||||
+
|
||||
void CustomizeToolbarHandler::OnActionItemChanged() {
|
||||
client_->NotifyActionsUpdated();
|
||||
}
|
||||
--- a/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.h
|
||||
+++ b/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.h
|
||||
@@ -55,6 +55,7 @@ class CustomizeToolbarHandler
|
||||
void OnShowForwardButtonChanged();
|
||||
void OnPinSplitTabButtonChanged();
|
||||
void OnShowAvatarButtonChanged();
|
||||
+ void OnShowExtensionsButtonChanged();
|
||||
void OnActionItemChanged();
|
||||
|
||||
PrefService* prefs() const;
|
||||
--- a/chrome/common/pref_names.h
|
||||
+++ b/chrome/common/pref_names.h
|
||||
@@ -1336,6 +1336,10 @@ inline constexpr char kSplitViewDragAndD
|
||||
// toolbar.
|
||||
inline constexpr char kShowAvatarButton[] = "helium.browser.show_avatar_button";
|
||||
|
||||
+// A boolean pref set to true if the Extensions button should be visible on the
|
||||
+// toolbar.
|
||||
+inline constexpr char kShowExtensionsButton[] = "helium.browser.show_extensions_button";
|
||||
+
|
||||
// A boolean pref set to true if Gemini integration be enabled. This is managed
|
||||
// by enterprise policy.
|
||||
inline constexpr char kGeminiSettings[] = "browser.gemini_settings";
|
||||
@@ -29,7 +29,7 @@
|
||||
// asking the user to set up automatic updates when Keystone promotion is
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -146,6 +146,8 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -149,6 +149,8 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterListPref(prefs::kWebRtcLocalIpsAllowedUrls);
|
||||
registry->RegisterBooleanPref(prefs::kWebRtcTextLogCollectionAllowed, false);
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
registry->RegisterBooleanPref(policy::policy_prefs::kHideWebStoreIcon, false);
|
||||
--- a/chrome/browser/ui/browser_command_controller.cc
|
||||
+++ b/chrome/browser/ui/browser_command_controller.cc
|
||||
@@ -388,7 +388,9 @@ bool BrowserCommandController::IsReserve
|
||||
@@ -389,7 +389,9 @@ bool BrowserCommandController::IsReserve
|
||||
command_id == IDC_NEW_INCOGNITO_WINDOW || command_id == IDC_NEW_TAB ||
|
||||
command_id == IDC_NEW_WINDOW || command_id == IDC_RESTORE_TAB ||
|
||||
command_id == IDC_SELECT_NEXT_TAB ||
|
||||
@@ -51,7 +51,7 @@
|
||||
}
|
||||
|
||||
void BrowserCommandController::TabStateChanged() {
|
||||
@@ -1160,6 +1162,14 @@ bool BrowserCommandController::ExecuteCo
|
||||
@@ -1176,6 +1178,14 @@ bool BrowserCommandController::ExecuteCo
|
||||
case IDC_DUPLICATE_TARGET_TAB:
|
||||
DuplicateKeyboardFocusedTab(browser_);
|
||||
break;
|
||||
@@ -66,7 +66,7 @@
|
||||
// Hosted App commands
|
||||
case IDC_COPY_URL:
|
||||
CopyURL(browser_, browser_->tab_strip_model()->GetActiveWebContents());
|
||||
@@ -1912,6 +1922,12 @@ void BrowserCommandController::UpdateCom
|
||||
@@ -1926,6 +1936,12 @@ void BrowserCommandController::UpdateCom
|
||||
|
||||
bool dev_tools_enabled = DevToolsWindow::AllowDevToolsFor(
|
||||
profile(), browser_->tab_strip_model()->GetActiveWebContents());
|
||||
@@ -142,7 +142,7 @@
|
||||
"G", IDC_FIND_NEXT, VIRTKEY, CONTROL
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -584,6 +584,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -587,6 +587,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
|
||||
(*s_allowlist)[::prefs::kCaretBrowsingEnabled] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -153,7 +153,7 @@
|
||||
// Accounts / Users / People.
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -193,6 +193,16 @@
|
||||
@@ -190,6 +190,16 @@
|
||||
Shows a confirmation when you copy links, images, or videos
|
||||
</message>
|
||||
</if>
|
||||
@@ -172,7 +172,7 @@
|
||||
<message name="IDS_SETTINGS_APPEARANCE" desc="Name of the settings page which displays appearance preferences.">
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -276,6 +276,7 @@ void AddA11yStrings(content::WebUIDataSo
|
||||
@@ -282,6 +282,7 @@ void AddA11yStrings(content::WebUIDataSo
|
||||
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC)
|
||||
{"axTreeFixingTitle", IDS_SETTINGS_AX_TREE_FIXING_TITLE},
|
||||
{"axTreeFixingSubtitle", IDS_SETTINGS_AX_TREE_FIXING_SUBTITLE},
|
||||
@@ -180,18 +180,20 @@
|
||||
};
|
||||
html_source->AddLocalizedStrings(kLocalizedStrings);
|
||||
|
||||
--- a/chrome/browser/resources/settings/a11y_page/a11y_page.html
|
||||
+++ b/chrome/browser/resources/settings/a11y_page/a11y_page.html
|
||||
@@ -99,5 +99,9 @@
|
||||
sub-label="$i18n{toastAlertLevelDescription}">
|
||||
</settings-toggle-button>
|
||||
</if>
|
||||
+ <settings-toggle-button id="CopyPageUrlShortcut" class="hr"
|
||||
+ pref="{{prefs.helium.settings.a11y.copy_page_url_shortcut}}"
|
||||
+ label="$i18n{copyPageUrlShortcut}">
|
||||
+ </settings-toggle-button>
|
||||
</div>
|
||||
</settings-section>
|
||||
--- a/chrome/browser/resources/settings/appearance_page/appearance_behavior_page.html
|
||||
+++ b/chrome/browser/resources/settings/appearance_page/appearance_behavior_page.html
|
||||
@@ -1,6 +1,11 @@
|
||||
<style include="cr-shared-style settings-shared"></style>
|
||||
<settings-section page-title="$i18n{behaviorPageTitle}">
|
||||
|
||||
+ <settings-toggle-button class="hr" id="copyPageUrlShortcut"
|
||||
+ pref="{{prefs.helium.settings.a11y.copy_page_url_shortcut}}"
|
||||
+ label="$i18n{copyPageUrlShortcut}">
|
||||
+ </settings-toggle-button>
|
||||
+
|
||||
<settings-toggle-button class="hr" id="autoPinNewTabGroups"
|
||||
pref="{{prefs.auto_pin_new_tab_groups}}"
|
||||
label="$i18n{autoPinNewTabGroups}">
|
||||
--- a/third_party/devtools-frontend/src/front_end/panels/elements/elements-meta.ts
|
||||
+++ b/third_party/devtools-frontend/src/front_end/panels/elements/elements-meta.ts
|
||||
@@ -446,11 +446,11 @@ UI.ActionRegistration.registerActionExte
|
||||
|
||||
@@ -24,7 +24,7 @@ https://github.com/uazo/cromite/blob/b2824377/build/patches/AudioBuffer-Analyser
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
--- a/third_party/blink/common/features.cc
|
||||
+++ b/third_party/blink/common/features.cc
|
||||
@@ -19,6 +19,10 @@
|
||||
@@ -20,6 +20,10 @@
|
||||
|
||||
namespace blink::features {
|
||||
|
||||
@@ -79,7 +79,7 @@ https://github.com/uazo/cromite/blob/b2824377/build/patches/AudioBuffer-Analyser
|
||||
ExceptionState& exception_state) {
|
||||
--- a/third_party/blink/renderer/modules/webaudio/audio_buffer.h
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/audio_buffer.h
|
||||
@@ -116,6 +116,8 @@ class MODULES_EXPORT AudioBuffer final :
|
||||
@@ -115,6 +115,8 @@ class MODULES_EXPORT AudioBuffer final :
|
||||
|
||||
std::unique_ptr<SharedAudioBuffer> CreateSharedAudioBuffer();
|
||||
|
||||
@@ -90,7 +90,7 @@ https://github.com/uazo/cromite/blob/b2824377/build/patches/AudioBuffer-Analyser
|
||||
uint32_t length,
|
||||
--- a/third_party/blink/renderer/modules/webaudio/audio_context.cc
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/audio_context.cc
|
||||
@@ -850,7 +850,12 @@ double AudioContext::baseLatency() const
|
||||
@@ -863,7 +863,12 @@ double AudioContext::baseLatency() const
|
||||
DCHECK_CALLED_ON_VALID_SEQUENCE(main_thread_sequence_checker_);
|
||||
DCHECK(destination());
|
||||
|
||||
@@ -106,7 +106,7 @@ https://github.com/uazo/cromite/blob/b2824377/build/patches/AudioBuffer-Analyser
|
||||
double AudioContext::outputLatency() const {
|
||||
--- a/third_party/blink/renderer/modules/webaudio/base_audio_context.cc
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/base_audio_context.cc
|
||||
@@ -774,6 +774,13 @@ LocalDOMWindow* BaseAudioContext::GetWin
|
||||
@@ -776,6 +776,13 @@ LocalDOMWindow* BaseAudioContext::GetWin
|
||||
return To<LocalDOMWindow>(GetExecutionContext());
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ https://github.com/uazo/cromite/blob/b2824377/build/patches/AudioBuffer-Analyser
|
||||
|
||||
--- a/third_party/blink/renderer/modules/webaudio/offline_audio_context.cc
|
||||
+++ b/third_party/blink/renderer/modules/webaudio/offline_audio_context.cc
|
||||
@@ -375,6 +375,8 @@ void OfflineAudioContext::FireCompletion
|
||||
@@ -396,6 +396,8 @@ void OfflineAudioContext::FireCompletion
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -237,7 +237,7 @@ https://github.com/uazo/cromite/blob/b2824377/build/patches/AudioBuffer-Analyser
|
||||
|
||||
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
@@ -599,7 +599,6 @@
|
||||
@@ -622,7 +622,6 @@
|
||||
// AudioContext.playoutStats interface.
|
||||
// https://chromestatus.com/feature/5172818344148992
|
||||
name: "AudioContextPlayoutStats",
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -205,6 +205,8 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -208,6 +208,8 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
{
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
|
||||
registry->RegisterStringPref(prefs::kHeliumServicesOrigin, "");
|
||||
@@ -60,7 +60,7 @@
|
||||
whats_new::LogStartupType(whats_new::StartupType::kIneligible);
|
||||
--- a/tools/gritsettings/resource_ids.spec
|
||||
+++ b/tools/gritsettings/resource_ids.spec
|
||||
@@ -1216,6 +1216,10 @@
|
||||
@@ -1228,6 +1228,10 @@
|
||||
"META": {"sizes": {"includes": [30],}},
|
||||
"includes": [7480],
|
||||
},
|
||||
@@ -73,7 +73,7 @@
|
||||
# START ios/ section.
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -8621,6 +8621,7 @@ static_library("browser_generated_files"
|
||||
@@ -8586,6 +8586,7 @@ static_library("browser_generated_files"
|
||||
"//chrome/browser/v8_compile_hints/proto",
|
||||
"//chrome/browser/web_applications/mojom:mojom_web_apps_enum",
|
||||
"//chrome/common/request_header_integrity:buildflags",
|
||||
@@ -83,7 +83,7 @@
|
||||
"//components/webui/chrome_urls/mojom:mojo_bindings",
|
||||
--- a/chrome/chrome_paks.gni
|
||||
+++ b/chrome/chrome_paks.gni
|
||||
@@ -468,11 +468,13 @@ template("chrome_extra_paks") {
|
||||
@@ -470,11 +470,13 @@ template("chrome_extra_paks") {
|
||||
if (!is_android && !is_chromeos) {
|
||||
sources += [
|
||||
"$root_gen_dir/chrome/intro_resources.pak",
|
||||
@@ -104,12 +104,12 @@
|
||||
kChromeUIProfileInternalsHost,
|
||||
content::kChromeUIQuotaInternalsHost,
|
||||
+ kHeliumSetupHost,
|
||||
kChromeUISignInInternalsHost,
|
||||
kChromeUISiteEngagementHost,
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
kChromeUIReloadButtonHost,
|
||||
#endif
|
||||
--- a/chrome/common/webui_url_constants.h
|
||||
+++ b/chrome/common/webui_url_constants.h
|
||||
@@ -597,6 +597,8 @@ inline constexpr char kChromeUIProfilePi
|
||||
@@ -604,6 +604,8 @@ inline constexpr char kChromeUIProfilePi
|
||||
inline constexpr char kChromeUIProfilePickerStartupQuery[] = "startup";
|
||||
inline constexpr char kChromeUIProfilePickerGlicQuery[] = "glic";
|
||||
inline constexpr char kChromeUIProfilePickerUrl[] = "chrome://profile-picker/";
|
||||
@@ -141,7 +141,7 @@
|
||||
#include "chrome/browser/ui/webui/omnibox/omnibox_ui.h"
|
||||
#include "chrome/browser/ui/webui/policy/policy_ui.h"
|
||||
#include "chrome/browser/ui/webui/predictors/predictors_ui.h"
|
||||
@@ -417,6 +418,7 @@ void RegisterChromeWebUIConfigs() {
|
||||
@@ -419,6 +420,7 @@ void RegisterChromeWebUIConfigs() {
|
||||
#if !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_ANDROID)
|
||||
map.AddWebUIConfig(std::make_unique<ManagedUserProfileNoticeUIConfig>());
|
||||
map.AddWebUIConfig(std::make_unique<IntroUIConfig>());
|
||||
@@ -524,16 +524,16 @@
|
||||
--- a/chrome/browser/favicon/favicon_utils.cc
|
||||
+++ b/chrome/browser/favicon/favicon_utils.cc
|
||||
@@ -189,6 +189,7 @@ bool ShouldThemifyFavicon(GURL url) {
|
||||
url.host_piece() != chrome::kChromeUIVersionHost &&
|
||||
url.host_piece() != chrome::kChromeUINetExportHost &&
|
||||
url.host_piece() != chrome::kChromeUINewTabHost &&
|
||||
+ url.host_piece() != chrome::kHeliumSetupHost &&
|
||||
url.host_piece() != password_manager::kChromeUIPasswordManagerHost;
|
||||
url.host() != chrome::kChromeUIVersionHost &&
|
||||
url.host() != chrome::kChromeUINetExportHost &&
|
||||
url.host() != chrome::kChromeUINewTabHost &&
|
||||
+ url.host() != chrome::kHeliumSetupHost &&
|
||||
url.host() != password_manager::kChromeUIPasswordManagerHost;
|
||||
}
|
||||
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1917,6 +1917,12 @@
|
||||
@@ -1947,6 +1947,12 @@
|
||||
<message name="IDS_SETTINGS_HELIUM_SERVICES_DESCRIPTION" desc="Description of the controls available on the Helium services settings page">
|
||||
Manage what Helium services are allowed in your browser
|
||||
</message>
|
||||
@@ -548,7 +548,7 @@
|
||||
</message>
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -357,6 +357,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -360,6 +360,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kHeliumServicesOrigin] =
|
||||
settings_api::PrefType::kString;
|
||||
@@ -612,7 +612,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1969,6 +1969,8 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -2119,6 +2119,8 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"securityPageDescription", IDS_SETTINGS_SECURITY_DESCRIPTION},
|
||||
{"heliumServicesTitle", IDS_SETTINGS_HELIUM_SERVICES},
|
||||
{"heliumServicesDescription", IDS_SETTINGS_HELIUM_SERVICES_DESCRIPTION},
|
||||
|
||||
@@ -1,45 +1,19 @@
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -267,6 +267,9 @@
|
||||
<message name="IDS_SETTINGS_COLOR_SCHEME_MODE" desc="Text of the label for selecting a color scheme mode for the browser.">
|
||||
Mode
|
||||
</message>
|
||||
+ <message name="IDS_SETTINGS_NEW_TAB_NEXT_TO_ACTIVE_BUTTON" desc="Label for the checkbox which enables or disables behaviour of opening new tabs next to current active tab.">
|
||||
+ Open new tabs next to the active tab
|
||||
+ </message>
|
||||
<message name="IDS_SETTINGS_SHOW_HOME_BUTTON" desc="Label for the checkbox which enables or disables showing the home button in the toolbar.">
|
||||
Show home button
|
||||
</message>
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -222,6 +222,10 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
(*s_allowlist)[::prefs::kUseCustomChromeFrame] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
#endif
|
||||
+
|
||||
+ (*s_allowlist)[::prefs::kNewTabNextToActive] =
|
||||
+ settings_api::PrefType::kBoolean;
|
||||
+
|
||||
(*s_allowlist)[::prefs::kShowHomeButton] = settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kShowForwardButton] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
--- a/chrome/browser/resources/settings/appearance_page/appearance_page.html
|
||||
+++ b/chrome/browser/resources/settings/appearance_page/appearance_page.html
|
||||
@@ -173,6 +173,11 @@
|
||||
label="$i18n{showBookmarksBar}">
|
||||
</settings-toggle-button>
|
||||
--- a/chrome/common/pref_names.h
|
||||
+++ b/chrome/common/pref_names.h
|
||||
@@ -1306,6 +1306,10 @@ inline constexpr char
|
||||
"restricted_managed_guest_session_extension_cleanup_exempt_list";
|
||||
#endif // BUILDFLAG(IS_CHROMEOS)
|
||||
|
||||
+ <settings-toggle-button class="hr" id="newTabNextToActive"
|
||||
+ pref="{{prefs.helium.browser.new_tab_next_to_active}}"
|
||||
+ label="$i18n{openNewTabNextToActive}">
|
||||
+ </settings-toggle-button>
|
||||
+// A boolean pref set to true if new tabs should be created to the next of current active one,
|
||||
+// instead of tab strip end.
|
||||
+inline constexpr char kNewTabNextToActive[] = "helium.browser.new_tab_next_to_active";
|
||||
+
|
||||
<settings-toggle-button class="hr" id="showSavedTabGroups"
|
||||
pref="{{prefs.bookmark_bar.show_tab_groups}}"
|
||||
label="$i18n{showTabGroupsInBookmarksBar}">
|
||||
// A boolean pref set to true if a Home button to open the Home pages should be
|
||||
// visible on the toolbar.
|
||||
inline constexpr char kShowHomeButton[] = "browser.show_home_button";
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -110,6 +110,8 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -113,6 +113,8 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterIntegerPref(prefs::kSessionRestoreInfoBarTimesShown, 0);
|
||||
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
|
||||
|
||||
@@ -50,7 +24,7 @@
|
||||
registry->RegisterBooleanPref(prefs::kShowHomeButton, false,
|
||||
--- a/chrome/browser/ui/tabs/tab_strip_model.cc
|
||||
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc
|
||||
@@ -81,12 +81,14 @@
|
||||
@@ -82,12 +82,14 @@
|
||||
#include "chrome/browser/web_applications/policy/web_app_policy_manager.h"
|
||||
#include "chrome/browser/web_applications/web_app_provider.h"
|
||||
#include "chrome/browser/web_applications/web_app_tab_helper.h"
|
||||
@@ -65,7 +39,7 @@
|
||||
#include "components/reading_list/core/reading_list_model.h"
|
||||
#include "components/tab_groups/tab_group_id.h"
|
||||
#include "components/tab_groups/tab_group_visual_data.h"
|
||||
@@ -1548,7 +1550,11 @@ void TabStripModel::AddTab(std::unique_p
|
||||
@@ -1605,7 +1607,11 @@ void TabStripModel::AddTab(std::unique_p
|
||||
// For all other types, respect what was passed to us, normalizing -1s and
|
||||
// values that are too large.
|
||||
if (index < 0 || index > count()) {
|
||||
@@ -78,9 +52,21 @@
|
||||
}
|
||||
}
|
||||
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -270,6 +270,9 @@
|
||||
<message name="IDS_SETTINGS_COLOR_SCHEME_MODE" desc="Text of the label for selecting a color scheme mode for the browser.">
|
||||
Mode
|
||||
</message>
|
||||
+ <message name="IDS_SETTINGS_NEW_TAB_NEXT_TO_ACTIVE_BUTTON" desc="Label for the checkbox which enables or disables behaviour of opening new tabs next to current active tab.">
|
||||
+ Open new tabs next to the active tab
|
||||
+ </message>
|
||||
<message name="IDS_SETTINGS_SHOW_HOME_BUTTON" desc="Label for the checkbox which enables or disables showing the home button in the toolbar.">
|
||||
Show home button
|
||||
</message>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -513,6 +513,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
@@ -521,6 +521,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
{"lightMode", IDS_NTP_CUSTOMIZE_CHROME_COLOR_SCHEME_MODE_LIGHT_LABEL},
|
||||
{"darkMode", IDS_NTP_CUSTOMIZE_CHROME_COLOR_SCHEME_MODE_DARK_LABEL},
|
||||
{"systemMode", IDS_NTP_CUSTOMIZE_CHROME_COLOR_SCHEME_MODE_SYSTEM_LABEL},
|
||||
@@ -88,16 +74,30 @@
|
||||
{"showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON},
|
||||
{"showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR},
|
||||
{"allowSplitViewDragAndDrop",
|
||||
--- a/chrome/common/pref_names.h
|
||||
+++ b/chrome/common/pref_names.h
|
||||
@@ -1306,6 +1306,10 @@ inline constexpr char
|
||||
"restricted_managed_guest_session_extension_cleanup_exempt_list";
|
||||
#endif // BUILDFLAG(IS_CHROMEOS)
|
||||
|
||||
+// A boolean pref set to true if new tabs should be created to the next of current active one,
|
||||
+// instead of tab strip end.
|
||||
+inline constexpr char kNewTabNextToActive[] = "helium.browser.new_tab_next_to_active";
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -225,6 +225,10 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
(*s_allowlist)[::prefs::kUseCustomChromeFrame] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
#endif
|
||||
+
|
||||
// A boolean pref set to true if a Home button to open the Home pages should be
|
||||
// visible on the toolbar.
|
||||
inline constexpr char kShowHomeButton[] = "browser.show_home_button";
|
||||
+ (*s_allowlist)[::prefs::kNewTabNextToActive] =
|
||||
+ settings_api::PrefType::kBoolean;
|
||||
+
|
||||
(*s_allowlist)[::prefs::kShowHomeButton] = settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kShowForwardButton] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
--- a/chrome/browser/resources/settings/appearance_page/appearance_behavior_page.html
|
||||
+++ b/chrome/browser/resources/settings/appearance_page/appearance_behavior_page.html
|
||||
@@ -1,6 +1,11 @@
|
||||
<style include="cr-shared-style settings-shared"></style>
|
||||
<settings-section page-title="$i18n{behaviorPageTitle}">
|
||||
|
||||
+ <settings-toggle-button id="newTabNextToActive"
|
||||
+ pref="{{prefs.helium.browser.new_tab_next_to_active}}"
|
||||
+ label="$i18n{openNewTabNextToActive}">
|
||||
+ </settings-toggle-button>
|
||||
+
|
||||
<settings-toggle-button class="hr" id="copyPageUrlShortcut"
|
||||
pref="{{prefs.helium.settings.a11y.copy_page_url_shortcut}}"
|
||||
label="$i18n{copyPageUrlShortcut}">
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
inline constexpr char kViewSourceScheme[] = "view-source";
|
||||
--- a/chrome/browser/profiles/profile_io_data.cc
|
||||
+++ b/chrome/browser/profiles/profile_io_data.cc
|
||||
@@ -44,6 +44,7 @@ bool ProfileIOData::IsHandledProtocol(co
|
||||
@@ -44,6 +44,7 @@ bool ProfileIOData::IsHandledProtocol(st
|
||||
extensions::kExtensionScheme,
|
||||
#endif
|
||||
content::kChromeUIScheme,
|
||||
@@ -62,7 +62,7 @@
|
||||
// Prevent future modification of the scheme lists. This is to prevent
|
||||
--- a/content/renderer/render_thread_impl.cc
|
||||
+++ b/content/renderer/render_thread_impl.cc
|
||||
@@ -887,10 +887,18 @@ void RenderThreadImpl::RegisterSchemes()
|
||||
@@ -879,10 +879,18 @@ void RenderThreadImpl::RegisterSchemes()
|
||||
chrome_scheme);
|
||||
WebSecurityPolicy::RegisterURLSchemeAsWebUI(chrome_scheme);
|
||||
|
||||
@@ -95,21 +95,21 @@
|
||||
+++ b/chrome/browser/ui/incognito_allowed_url.cc
|
||||
@@ -19,7 +19,8 @@ namespace {
|
||||
bool IsHostAllowedInIncognito(const GURL& url) {
|
||||
std::string scheme = url.scheme();
|
||||
std::string_view host = url.host_piece();
|
||||
std::string scheme = url.GetScheme();
|
||||
std::string_view host = url.host();
|
||||
- if (scheme != content::kChromeUIScheme) {
|
||||
+ if (scheme != content::kChromeUIScheme
|
||||
+ && scheme != content::kHeliumUIScheme) {
|
||||
+ if (scheme != content::kChromeUIScheme &&
|
||||
+ scheme != content::kHeliumUIScheme) {
|
||||
return true;
|
||||
}
|
||||
|
||||
--- a/chrome/browser/ui/browser_navigator.cc
|
||||
+++ b/chrome/browser/ui/browser_navigator.cc
|
||||
@@ -544,6 +544,12 @@ base::WeakPtr<content::NavigationHandle>
|
||||
@@ -562,6 +562,12 @@ base::WeakPtr<content::NavigationHandle>
|
||||
}
|
||||
}
|
||||
|
||||
+ if (params->url.scheme_piece() == content::kHeliumUIScheme) {
|
||||
+ if (params->url.scheme() == content::kHeliumUIScheme) {
|
||||
+ GURL::Replacements replacements;
|
||||
+ replacements.SetSchemeStr(content::kChromeUIScheme);
|
||||
+ params->url = params->url.ReplaceComponents(replacements);
|
||||
@@ -120,7 +120,7 @@
|
||||
// handling.
|
||||
--- a/chrome/browser/extensions/extension_tab_util.cc
|
||||
+++ b/chrome/browser/extensions/extension_tab_util.cc
|
||||
@@ -1297,7 +1297,8 @@ bool ExtensionTabUtil::IsKillURL(const G
|
||||
@@ -1274,7 +1274,8 @@ bool ExtensionTabUtil::IsKillURL(const G
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/browser.cc
|
||||
+++ b/chrome/browser/ui/browser.cc
|
||||
@@ -2287,6 +2287,13 @@ void Browser::SetContentsBounds(WebConte
|
||||
@@ -2240,6 +2240,13 @@ void Browser::SetContentsBounds(WebConte
|
||||
}
|
||||
|
||||
void Browser::UpdateTargetURL(WebContents* source, const GURL& url) {
|
||||
@@ -146,7 +146,7 @@
|
||||
std::vector<StatusBubble*> status_bubbles = GetStatusBubbles();
|
||||
for (StatusBubble* status_bubble : status_bubbles) {
|
||||
StatusBubbleViews* status_bubble_views =
|
||||
@@ -2294,7 +2301,7 @@ void Browser::UpdateTargetURL(WebContent
|
||||
@@ -2247,7 +2254,7 @@ void Browser::UpdateTargetURL(WebContent
|
||||
ContentsWebView* anchor =
|
||||
static_cast<ContentsWebView*>(status_bubble_views->base_view());
|
||||
if (source == anchor->GetWebContents()) {
|
||||
@@ -185,9 +185,9 @@
|
||||
#include "base/threading/thread_local_storage.h"
|
||||
#include "build/build_config.h"
|
||||
+#include "content/public/common/url_constants.h"
|
||||
#include "components/url_formatter/spoof_checks/idn_spoof_checker.h"
|
||||
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
|
||||
#include "third_party/icu/source/common/unicode/uidna.h"
|
||||
#include "third_party/icu/source/common/unicode/utypes.h"
|
||||
@@ -564,6 +565,7 @@ const FormatUrlType kFormatUrlTrimAfterH
|
||||
const FormatUrlType kFormatUrlOmitFileScheme = 1 << 7;
|
||||
const FormatUrlType kFormatUrlOmitMailToScheme = 1 << 8;
|
||||
@@ -303,14 +303,76 @@
|
||||
bool devtools_url = (scheme == kDevToolsScheme);
|
||||
if (chrome_url || devtools_url || url::IsStandard(scheme)) {
|
||||
// Replace the about: scheme with the chrome: scheme.
|
||||
@@ -754,7 +759,9 @@ bool IsEquivalentScheme(const std::strin
|
||||
@@ -754,7 +759,11 @@ bool IsEquivalentScheme(const std::strin
|
||||
const std::string& scheme2) {
|
||||
return scheme1 == scheme2 ||
|
||||
(scheme1 == url::kAboutScheme && scheme2 == kChromeUIScheme) ||
|
||||
- (scheme1 == kChromeUIScheme && scheme2 == url::kAboutScheme);
|
||||
+ (scheme1 == kChromeUIScheme && scheme2 == url::kAboutScheme) ||
|
||||
+ (scheme1 == kHeliumUIScheme && scheme2 == url::kAboutScheme) ||
|
||||
+ (scheme1 == url::kAboutScheme && scheme2 == kHeliumUIScheme);
|
||||
+ (scheme1 == url::kAboutScheme && scheme2 == kHeliumUIScheme) ||
|
||||
+ (scheme1 == kHeliumUIScheme && scheme2 == kChromeUIScheme) ||
|
||||
+ (scheme1 == kChromeUIScheme && scheme2 == kHeliumUIScheme);
|
||||
}
|
||||
|
||||
} // namespace url_formatter
|
||||
--- a/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc
|
||||
+++ b/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc
|
||||
@@ -372,7 +372,7 @@ std::string ChromeAutocompleteProviderCl
|
||||
std::string
|
||||
ChromeAutocompleteProviderClient::GetEmbedderRepresentationOfAboutScheme()
|
||||
const {
|
||||
- return content::kChromeUIScheme;
|
||||
+ return content::kHeliumUIScheme;
|
||||
}
|
||||
|
||||
std::vector<std::u16string> ChromeAutocompleteProviderClient::GetBuiltinURLs() {
|
||||
--- a/components/omnibox/browser/builtin_provider.cc
|
||||
+++ b/components/omnibox/browser/builtin_provider.cc
|
||||
@@ -73,7 +73,9 @@ void BuiltinProvider::DoBuiltinAutocompl
|
||||
// Include some common builtin URLs as the user types the scheme.
|
||||
for (const std::u16string& url :
|
||||
client_->GetBuiltinsToProvideAsUserTypes()) {
|
||||
- AddBuiltinMatch(url, std::u16string(), styles);
|
||||
+ DCHECK(url.starts_with(u"chrome://"));
|
||||
+ AddBuiltinMatch(std::u16string(url).replace(0, 6, u"helium"),
|
||||
+ std::u16string(), styles);
|
||||
}
|
||||
} else {
|
||||
// Match input about: or |embedderAbout| URL input against builtin URLs.
|
||||
--- a/chrome/browser/ui/browser_commands.cc
|
||||
+++ b/chrome/browser/ui/browser_commands.cc
|
||||
@@ -169,6 +169,7 @@
|
||||
#include "components/tabs/public/tab_interface.h"
|
||||
#include "components/translate/core/browser/language_state.h"
|
||||
#include "components/translate/core/browser/translate_manager.h"
|
||||
+#include "components/url_formatter/url_formatter.h"
|
||||
#include "components/user_education/common/feature_promo/feature_promo_controller.h"
|
||||
#include "components/web_modal/web_contents_modal_dialog_manager.h"
|
||||
#include "components/webapps/common/web_app_id.h"
|
||||
@@ -2441,7 +2442,12 @@ bool IsDebuggerAttachedToCurrentTab(Brow
|
||||
|
||||
void CopyURL(BrowserWindowInterface* bwi, content::WebContents* web_contents) {
|
||||
ui::ScopedClipboardWriter scw(ui::ClipboardBuffer::kCopyPaste);
|
||||
- scw.WriteText(base::UTF8ToUTF16(web_contents->GetVisibleURL().spec()));
|
||||
+ const std::u16string formatted_url =
|
||||
+ url_formatter::FormatUrl(web_contents->GetVisibleURL(),
|
||||
+ url_formatter::kFormatReplaceChromeProtocol,
|
||||
+ base::UnescapeRule::NORMAL, nullptr,
|
||||
+ nullptr, nullptr);
|
||||
+ scw.WriteText(formatted_url);
|
||||
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
if (toast_features::IsEnabled(toast_features::kLinkCopiedToast)) {
|
||||
--- a/chrome/browser/ui/views/tabs/tab_hover_card_bubble_view.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/tab_hover_card_bubble_view.cc
|
||||
@@ -562,7 +562,8 @@ void TabHoverCardBubbleView::UpdateCardC
|
||||
url_formatter::kFormatUrlOmitDefaults |
|
||||
url_formatter::kFormatUrlOmitHTTPS |
|
||||
url_formatter::kFormatUrlOmitTrivialSubdomains |
|
||||
- url_formatter::kFormatUrlTrimAfterHost,
|
||||
+ url_formatter::kFormatUrlTrimAfterHost |
|
||||
+ url_formatter::kFormatReplaceChromeProtocol,
|
||||
base::UnescapeRule::NORMAL, nullptr, nullptr, nullptr);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/common/chrome_features.cc
|
||||
+++ b/chrome/common/chrome_features.cc
|
||||
@@ -969,7 +969,7 @@ BASE_FEATURE(kHttpsFirstBalancedMode, ba
|
||||
@@ -1181,7 +1181,7 @@ BASE_FEATURE(kHttpsFirstBalancedMode, ba
|
||||
// Automatically enables HTTPS-First Mode in a balanced configuration when
|
||||
// possible.
|
||||
BASE_FEATURE(kHttpsFirstBalancedModeAutoEnable,
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
const char kChromeWebstoreApiURL[] = "trk:07:https://chromewebstore.googleapis.com/";
|
||||
|
||||
const char kAppMenuUtmSource[] = "ext_app_menu";
|
||||
@@ -72,6 +72,7 @@ GURL GetNewWebstoreLaunchURL() {
|
||||
@@ -77,6 +77,7 @@ GURL GetNewWebstoreLaunchURL() {
|
||||
}
|
||||
|
||||
GURL AppendUtmSource(const GURL& url, std::string_view utm_source_value) {
|
||||
@@ -24,7 +24,7 @@
|
||||
return net::AppendQueryParameter(url, "utm_source", utm_source_value);
|
||||
}
|
||||
|
||||
@@ -85,6 +86,8 @@ std::string GetWebstoreItemDetailURLPref
|
||||
@@ -90,6 +91,8 @@ std::string GetWebstoreItemDetailURLPref
|
||||
}
|
||||
|
||||
GURL GetWebstoreItemSnippetURL(const extensions::ExtensionId& extension_id) {
|
||||
@@ -33,7 +33,7 @@
|
||||
if (g_item_snippet_url_for_test_) {
|
||||
// Return `<base URL><extension_id>`. There is no suffix if the URL is
|
||||
// overridden by a test.
|
||||
@@ -114,9 +117,6 @@ GURL GetDefaultWebstoreUpdateUrl() {
|
||||
@@ -119,9 +122,6 @@ GURL GetDefaultWebstoreUpdateUrl() {
|
||||
}
|
||||
|
||||
GURL GetWebstoreUpdateUrl() {
|
||||
@@ -95,12 +95,12 @@
|
||||
+
|
||||
+bool CanPatchUpdateUrl(const GURL& url) {
|
||||
+ GURL chrome_webstore = GetOriginalWebstoreUpdateUrl();
|
||||
+ return chrome_webstore.host_piece() == url.host_piece();
|
||||
+ return chrome_webstore.host() == url.host();
|
||||
+}
|
||||
+
|
||||
+GURL PatchUpdateUrl(const GURL& url) {
|
||||
+ GURL chrome_webstore = GetOriginalWebstoreUpdateUrl();
|
||||
+ if (chrome_webstore.host_piece() == url.host_piece()) {
|
||||
+ if (chrome_webstore.host() == url.host()) {
|
||||
+ return GetDefaultWebstoreUpdateUrl();
|
||||
+ }
|
||||
+
|
||||
@@ -133,7 +133,7 @@
|
||||
+#endif // EXTENSIONS_COMMON_MANIFEST_URL_PATCHER_H_
|
||||
--- a/extensions/common/BUILD.gn
|
||||
+++ b/extensions/common/BUILD.gn
|
||||
@@ -457,6 +457,8 @@ static_library("common") {
|
||||
@@ -456,6 +456,8 @@ static_library("common") {
|
||||
"manifest_handlers/webview_info.h",
|
||||
"manifest_url_handlers.cc",
|
||||
"manifest_url_handlers.h",
|
||||
@@ -166,7 +166,7 @@
|
||||
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -355,6 +355,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -358,6 +358,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
// Helium services page
|
||||
(*s_allowlist)[::prefs::kHeliumServicesEnabled] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -177,7 +177,7 @@
|
||||
(*s_allowlist)[::prefs::kHeliumServicesConsented] =
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -208,6 +208,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -211,6 +211,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
|
||||
{
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
|
||||
@@ -201,7 +201,7 @@
|
||||
</template>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1973,6 +1973,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -2125,6 +2125,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"heliumServicesToggle", IDS_SETTINGS_HELIUM_SERVICES_TOGGLE},
|
||||
{"heliumServicesToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION},
|
||||
@@ -214,7 +214,7 @@
|
||||
IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION},
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1939,6 +1939,12 @@
|
||||
@@ -1975,6 +1975,12 @@
|
||||
<message name="IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of all Helium services">
|
||||
When enabled, Helium will be able to connect to anonymous web services to provide additional functionality. When disabled, additional features will not work.
|
||||
</message>
|
||||
@@ -330,7 +330,7 @@
|
||||
continue;
|
||||
}
|
||||
|
||||
+ if (it.second.update_url().host_piece() == baseUrl.host_piece()) {
|
||||
+ if (it.second.update_url().host() == baseUrl.host()) {
|
||||
+ Profile* profile = Profile::FromBrowserContext(context_.get());
|
||||
+ PrefService* prefs = profile->GetPrefs();
|
||||
+
|
||||
@@ -391,7 +391,7 @@
|
||||
|
||||
// In Kiosk mode extensions are downloaded and updated by the ExternalCache.
|
||||
// Therefore we skip updates here to avoid conflicts.
|
||||
@@ -461,7 +469,7 @@ void ExtensionUpdater::CheckNow(CheckPar
|
||||
@@ -468,7 +476,7 @@ void ExtensionUpdater::CheckNow(CheckPar
|
||||
// Add fetch records for extensions that should be fetched by an update URL.
|
||||
// These extensions are not yet installed. They come from group policy
|
||||
// and external install sources.
|
||||
@@ -400,7 +400,7 @@
|
||||
PendingExtensionManager::Get(profile_);
|
||||
|
||||
ExtensionUpdateCheckParams update_check_params;
|
||||
@@ -595,7 +603,7 @@ void ExtensionUpdater::CheckNow(CheckPar
|
||||
@@ -602,7 +610,7 @@ void ExtensionUpdater::CheckNow(CheckPar
|
||||
// OnExtensionDownloadFinished for each extension that was checked.
|
||||
downloader_->StartAllPending(extension_cache_);
|
||||
|
||||
@@ -409,7 +409,7 @@
|
||||
update_check_params.priority =
|
||||
params.fetch_priority == DownloadFetchPriority::kBackground
|
||||
? ExtensionUpdateCheckParams::UpdateCheckPriority::BACKGROUND
|
||||
@@ -816,6 +824,10 @@ void ExtensionUpdater::CleanUpCrxFileIfN
|
||||
@@ -823,6 +831,10 @@ void ExtensionUpdater::CleanUpCrxFileIfN
|
||||
|
||||
bool ExtensionUpdater::CanUseUpdateService(
|
||||
const ExtensionId& extension_id) const {
|
||||
@@ -422,7 +422,7 @@
|
||||
}
|
||||
--- a/chrome/browser/extensions/webstore_installer.cc
|
||||
+++ b/chrome/browser/extensions/webstore_installer.cc
|
||||
@@ -45,6 +45,7 @@
|
||||
@@ -43,6 +43,7 @@
|
||||
#include "components/crx_file/id_util.h"
|
||||
#include "components/download/public/common/download_url_parameters.h"
|
||||
#include "components/update_client/update_query_params.h"
|
||||
@@ -430,7 +430,7 @@
|
||||
#include "content/public/browser/browser_thread.h"
|
||||
#include "content/public/browser/download_manager.h"
|
||||
#include "content/public/browser/navigation_controller.h"
|
||||
@@ -206,7 +207,7 @@ GURL WebstoreInstaller::GetWebstoreInsta
|
||||
@@ -207,7 +208,7 @@ GURL WebstoreInstaller::GetWebstoreInsta
|
||||
if (!install_source.empty())
|
||||
params.push_back(installsource_param);
|
||||
params.push_back("uc");
|
||||
@@ -474,7 +474,7 @@
|
||||
// Note that both |global_settings_| and |default_settings_| will be null
|
||||
// before first call to Refresh(), so in order to resolve this, Refresh() must
|
||||
// be called in the initialization of ExtensionManagement.
|
||||
@@ -282,12 +290,20 @@ GURL ExtensionManagement::GetEffectiveUp
|
||||
@@ -287,12 +295,20 @@ GURL ExtensionManagement::GetEffectiveUp
|
||||
<< "Update URL cannot be overridden to be the webstore URL!";
|
||||
return update_url;
|
||||
}
|
||||
@@ -483,7 +483,7 @@
|
||||
+ const GURL& original_url = ManifestURL::GetUpdateURL(&extension);
|
||||
+ const GURL& dummy_url = extension_urls::GetDefaultWebstoreUpdateUrl();
|
||||
+
|
||||
+ if (dummy_url.host_piece() == original_url.host_piece()) {
|
||||
+ if (dummy_url.host() == original_url.host()) {
|
||||
+ return helium::GetExtensionUpdateURL(*profile_->GetPrefs());
|
||||
+ }
|
||||
+
|
||||
@@ -575,7 +575,7 @@
|
||||
max_auto_retries_ = max_retries;
|
||||
--- a/chrome/browser/extensions/webstore_standalone_installer.cc
|
||||
+++ b/chrome/browser/extensions/webstore_standalone_installer.cc
|
||||
@@ -20,6 +20,7 @@
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "chrome/browser/extensions/webstore_data_fetcher.h"
|
||||
#include "chrome/browser/profiles/profile.h"
|
||||
#include "components/crx_file/id_util.h"
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -8264,6 +8264,8 @@ static_library("browser") {
|
||||
@@ -8261,6 +8261,8 @@ static_library("browser") {
|
||||
deps += [
|
||||
"//components/spellcheck/browser",
|
||||
"//components/spellcheck/common",
|
||||
@@ -107,7 +107,7 @@
|
||||
if (!is_android) {
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -359,6 +359,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -362,6 +362,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kHeliumBangsEnabled] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -118,7 +118,7 @@
|
||||
(*s_allowlist)[::prefs::kHeliumServicesConsented] =
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -210,6 +210,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -213,6 +213,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumBangsEnabled, true);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumExtProxyEnabled, true);
|
||||
@@ -144,7 +144,17 @@
|
||||
</template>
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1951,6 +1951,12 @@
|
||||
@@ -1291,6 +1291,9 @@
|
||||
<message name="IDS_SETTINGS_LANGUAGES_DICTIONARY_DOWNLOAD_FAILED_HELP" desc="Error message when spell dictionary download fails more than once possibly due to a network policy or configuration.">
|
||||
Please check with your network administrator to make sure that the firewall is not blocking downloads from Google servers.
|
||||
</message>
|
||||
+ <message name="IDS_SETTINGS_LANGUAGES_DICTIONARY_DOWNLOAD_FAILED_HELP_HELIUM" desc="Error message when spell dictionary download fails more than once possibly due to a network policy or configuration.">
|
||||
+ Please check that Helium services are enabled (including spell check downloads) and make sure that the firewall is not blocking downloads from Helium servers.
|
||||
+ </message>
|
||||
</if>
|
||||
</if>
|
||||
<if expr="is_chromeos">
|
||||
@@ -1987,6 +1990,12 @@
|
||||
<message name="IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of downloading bangs">
|
||||
Helium will fetch a list of bangs that help you browse the Internet faster, such as !w or !gh. When disabled, bangs will not work.
|
||||
</message>
|
||||
@@ -159,7 +169,16 @@
|
||||
</message>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1976,6 +1976,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -1241,7 +1241,7 @@ void AddLanguagesStrings(content::WebUID
|
||||
{"languagesDictionaryDownloadError",
|
||||
IDS_SETTINGS_LANGUAGES_DICTIONARY_DOWNLOAD_FAILED},
|
||||
{"languagesDictionaryDownloadErrorHelp",
|
||||
- IDS_SETTINGS_LANGUAGES_DICTIONARY_DOWNLOAD_FAILED_HELP},
|
||||
+ IDS_SETTINGS_LANGUAGES_DICTIONARY_DOWNLOAD_FAILED_HELP_HELIUM},
|
||||
#endif
|
||||
#endif // !BUILDFLAG(IS_CHROMEOS)
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
@@ -2128,6 +2128,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"heliumBangsToggle", IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE},
|
||||
{"heliumBangsToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE_DESCRIPTION},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.cc
|
||||
+++ b/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.cc
|
||||
@@ -37,15 +37,6 @@ MojoActionForChromeAction(actions::Actio
|
||||
@@ -37,28 +37,12 @@ MojoActionForChromeAction(actions::Actio
|
||||
return side_panel::customize_chrome::mojom::ActionId::kShowBookmarks;
|
||||
case kActionSidePanelShowHistoryCluster:
|
||||
return side_panel::customize_chrome::mojom::ActionId::kShowHistoryCluster;
|
||||
@@ -16,8 +16,7 @@
|
||||
case kActionHome:
|
||||
return side_panel::customize_chrome::mojom::ActionId::kHome;
|
||||
case kActionForward:
|
||||
@@ -56,13 +47,6 @@ MojoActionForChromeAction(actions::Actio
|
||||
return side_panel::customize_chrome::mojom::ActionId::kExtensions;
|
||||
return side_panel::customize_chrome::mojom::ActionId::kForward;
|
||||
case kActionNewIncognitoWindow:
|
||||
return side_panel::customize_chrome::mojom::ActionId::kNewIncognitoWindow;
|
||||
- case kActionShowPasswordsBubbleOrPage:
|
||||
@@ -30,7 +29,7 @@
|
||||
case kActionShowDownloads:
|
||||
return side_panel::customize_chrome::mojom::ActionId::kShowDownloads;
|
||||
case kActionClearBrowsingData:
|
||||
@@ -101,14 +85,6 @@ std::optional<actions::ActionId> ChromeA
|
||||
@@ -97,26 +81,12 @@ std::optional<actions::ActionId> ChromeA
|
||||
return kActionSidePanelShowBookmarks;
|
||||
case side_panel::customize_chrome::mojom::ActionId::kShowHistoryCluster:
|
||||
return kActionSidePanelShowHistoryCluster;
|
||||
@@ -45,8 +44,7 @@
|
||||
case side_panel::customize_chrome::mojom::ActionId::kHome:
|
||||
return kActionHome;
|
||||
case side_panel::customize_chrome::mojom::ActionId::kForward:
|
||||
@@ -119,12 +95,6 @@ std::optional<actions::ActionId> ChromeA
|
||||
return kActionExtensions;
|
||||
return kActionForward;
|
||||
case side_panel::customize_chrome::mojom::ActionId::kNewIncognitoWindow:
|
||||
return kActionNewIncognitoWindow;
|
||||
- case side_panel::customize_chrome::mojom::ActionId::kShowPasswordManager:
|
||||
@@ -58,7 +56,7 @@
|
||||
case side_panel::customize_chrome::mojom::ActionId::kShowDownloads:
|
||||
return kActionShowDownloads;
|
||||
case side_panel::customize_chrome::mojom::ActionId::kClearBrowsingData:
|
||||
@@ -322,16 +292,8 @@ void CustomizeToolbarHandler::ListAction
|
||||
@@ -291,16 +261,8 @@ void CustomizeToolbarHandler::ListAction
|
||||
add_action(kActionNewIncognitoWindow,
|
||||
side_panel::customize_chrome::mojom::CategoryId::kNavigation);
|
||||
|
||||
@@ -75,7 +73,7 @@
|
||||
add_action(kActionSidePanelShowHistoryCluster,
|
||||
side_panel::customize_chrome::mojom::CategoryId::kYourChrome);
|
||||
add_action(kActionShowDownloads,
|
||||
@@ -345,18 +307,12 @@ void CustomizeToolbarHandler::ListAction
|
||||
@@ -314,18 +276,12 @@ void CustomizeToolbarHandler::ListAction
|
||||
}
|
||||
add_action(kActionPrint,
|
||||
side_panel::customize_chrome::mojom::CategoryId::kTools);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
--- a/components/search_engines/template_url_prepopulate_data.cc
|
||||
+++ b/components/search_engines/template_url_prepopulate_data.cc
|
||||
@@ -261,7 +261,7 @@ std::unique_ptr<TemplateURLData> GetPrep
|
||||
std::vector<const TemplateURLPrepopulateData::PrepopulatedEngine*>
|
||||
@@ -258,7 +258,7 @@ std::unique_ptr<TemplateURLData> GetPrep
|
||||
const std::vector<const PrepopulatedEngine*>&
|
||||
regional_prepopulated_engines) {
|
||||
return FindPrepopulatedEngineInternal(prefs, regional_prepopulated_engines,
|
||||
- google.id,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
--- a/build/config/chrome_build.gni
|
||||
+++ b/build/config/chrome_build.gni
|
||||
@@ -92,4 +92,4 @@ declare_args() {
|
||||
@@ -101,4 +101,4 @@ declare_args() {
|
||||
|
||||
# Whether to enable built-in branding assets (logos & marketing snippets) for
|
||||
# search providers in choice UIs.
|
||||
-enable_builtin_search_provider_assets = is_chrome_branded
|
||||
-enable_builtin_search_provider_assets = is_internal_chrome_branded
|
||||
+enable_builtin_search_provider_assets = true
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "chrome/browser/signin/account_consistency_mode_manager.h"
|
||||
#include "chrome/browser/signin/account_consistency_mode_manager_factory.h"
|
||||
#include "chrome/browser/signin/chrome_signin_client_factory.h"
|
||||
@@ -84,7 +83,6 @@
|
||||
@@ -83,7 +82,6 @@
|
||||
#include "components/plus_addresses/core/browser/plus_address_service.h"
|
||||
#include "components/plus_addresses/core/common/features.h"
|
||||
#include "components/prefs/pref_service.h"
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "components/safe_browsing/core/common/features.h"
|
||||
#include "components/safe_browsing/core/common/hashprefix_realtime/hash_realtime_utils.h"
|
||||
#include "components/saved_tab_groups/public/features.h"
|
||||
@@ -2505,14 +2503,9 @@ void AddSearchStrings(content::WebUIData
|
||||
@@ -2662,14 +2660,9 @@ void AddSearchStrings(content::WebUIData
|
||||
html_source->AddString("searchExplanationLearnMoreURL",
|
||||
chrome::kOmniboxLearnMoreURL);
|
||||
|
||||
@@ -43,7 +43,24 @@
|
||||
static constexpr Program kCountryDerivedPrograms[] = {
|
||||
#if BUILDFLAG(IS_IOS)
|
||||
// Only iOS can derive Taiyaki scope directly from the country.
|
||||
@@ -351,6 +353,7 @@ RegionalCapabilitiesService::GetChoiceSc
|
||||
@@ -290,14 +292,13 @@ RegionalCapabilitiesService::GetRegional
|
||||
}
|
||||
|
||||
bool RegionalCapabilitiesService::IsInSearchEngineChoiceScreenRegion() {
|
||||
- return GetChoiceScreenEligibilityConfig().has_value();
|
||||
+ return true;
|
||||
}
|
||||
|
||||
// static
|
||||
bool RegionalCapabilitiesService::IsInSearchEngineChoiceScreenRegion(
|
||||
const country_codes::CountryId& tested_country_id) {
|
||||
- return GetSettingsForProgram(CountryIdToProgram(tested_country_id))
|
||||
- .choice_screen_eligibility_config.has_value();
|
||||
+ return true;
|
||||
}
|
||||
|
||||
bool RegionalCapabilitiesService::
|
||||
@@ -358,6 +359,7 @@ RegionalCapabilitiesService::GetChoiceSc
|
||||
}
|
||||
|
||||
bool RegionalCapabilitiesService::IsInEeaCountry() {
|
||||
@@ -51,21 +68,10 @@
|
||||
// Feature behaviour was directly based on the current country, as a
|
||||
// decentralised way to express a concept we are now framing as "program
|
||||
// settings". Here we check for the program reference directly as command line
|
||||
--- a/components/regional_capabilities/regional_capabilities_utils.cc
|
||||
+++ b/components/regional_capabilities/regional_capabilities_utils.cc
|
||||
@@ -55,7 +55,7 @@ void ShufflePrepopulatedEngines(std::vec
|
||||
} // namespace
|
||||
|
||||
bool IsEeaCountry(country_codes::CountryId country_id) {
|
||||
- return kEeaChoiceCountriesIds.contains(country_id);
|
||||
+ return true;
|
||||
}
|
||||
|
||||
std::optional<SearchEngineCountryOverride> GetSearchEngineCountryOverride() {
|
||||
--- a/components/search_engine_choice_strings.grdp
|
||||
+++ b/components/search_engine_choice_strings.grdp
|
||||
@@ -106,6 +106,10 @@
|
||||
These search engines are popular in your region
|
||||
@@ -19,6 +19,10 @@
|
||||
<ph name="SEARCH_ENGINE_NAME">$1<ex>Google</ex></ph> is now your default search engine
|
||||
</message>
|
||||
|
||||
+ <message name="IDS_SEARCH_ENGINE_CHOICE_SETTINGS_SUBTITLE_HELIUM" desc="This is the body text of a dialog where the user can change their default search engine. This string explains that the list of search engines is randomized (not in order of recommendation).">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/chrome_repack_locales.gni
|
||||
+++ b/chrome/chrome_repack_locales.gni
|
||||
@@ -100,12 +100,6 @@ template("chrome_repack_locales") {
|
||||
@@ -99,12 +99,6 @@ template("chrome_repack_locales") {
|
||||
}
|
||||
compress = true
|
||||
}
|
||||
@@ -26,7 +26,7 @@
|
||||
namespace {
|
||||
|
||||
const bool kEnableBuiltinSearchProviderAssets =
|
||||
@@ -1878,18 +1874,6 @@ std::string TemplateURL::GetBuiltinDescr
|
||||
@@ -1885,18 +1881,6 @@ std::string TemplateURL::GetBuiltinDescr
|
||||
}
|
||||
|
||||
std::optional<std::u16string> TemplateURL::GetBuiltinMarketingSnippet() const {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1911,6 +1911,31 @@
|
||||
@@ -1941,6 +1941,31 @@
|
||||
<message name="IDS_SETTINGS_SECURITY_DESCRIPTION" desc="Description of the controls available on the security settings page">
|
||||
Safe Browsing (protection from dangerous sites) and other security settings
|
||||
</message>
|
||||
@@ -34,8 +34,8 @@
|
||||
Google Advanced Protection Program
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1967,6 +1967,18 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"permissionsPageDescription", IDS_SETTINGS_PERMISSIONS_DESCRIPTION},
|
||||
@@ -2117,6 +2117,18 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"siteSettingsSublabel", IDS_SETTINGS_PERMISSIONS_DESCRIPTION},
|
||||
{"securityPageTitle", IDS_SETTINGS_SECURITY},
|
||||
{"securityPageDescription", IDS_SETTINGS_SECURITY_DESCRIPTION},
|
||||
+ {"heliumServicesTitle", IDS_SETTINGS_HELIUM_SERVICES},
|
||||
@@ -56,8 +56,8 @@
|
||||
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.html
|
||||
@@ -67,6 +67,11 @@
|
||||
sub-label="$i18n{permissionsPageDescription}"
|
||||
on-click="onPermissionsPageClick_"
|
||||
sub-label="$i18n{siteSettingsSublabel}"
|
||||
on-click="onSiteSettingsLinkRowClick_"
|
||||
role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
|
||||
+ <cr-link-row id="heliumServicesLinkRow" start-icon="cr:chrome-product"
|
||||
+ class="hr" label="$i18n{heliumServicesTitle}"
|
||||
@@ -69,7 +69,7 @@
|
||||
</cr-toast>
|
||||
--- a/chrome/browser/resources/settings/privacy_page/privacy_page_index.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page_index.html
|
||||
@@ -45,6 +45,14 @@
|
||||
@@ -47,6 +47,14 @@
|
||||
</settings-privacy-page>
|
||||
</template>
|
||||
|
||||
@@ -83,10 +83,10 @@
|
||||
+
|
||||
<template is="dom-if" if="[[isAdPrivacyAvailable_]]" restamp>
|
||||
<template is="dom-if" if="[[renderView_(
|
||||
routes_.PRIVACY_SANDBOX, currentRoute, inSearchMode)]]">
|
||||
routes_.PRIVACY_SANDBOX, currentRoute, inSearchMode)]]"
|
||||
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.ts
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.ts
|
||||
@@ -171,6 +171,12 @@ export class SettingsPrivacyPageElement
|
||||
@@ -172,6 +172,12 @@ export class SettingsPrivacyPageElement
|
||||
Router.getInstance().navigateTo(routes.SITE_SETTINGS);
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
private onSecurityPageClick_() {
|
||||
this.interactedWithPage_();
|
||||
this.metricsBrowserProxy_.recordAction(
|
||||
@@ -253,6 +259,10 @@ export class SettingsPrivacyPageElement
|
||||
@@ -254,6 +260,10 @@ export class SettingsPrivacyPageElement
|
||||
override getFocusConfig() {
|
||||
const map = new Map();
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
if (routes.COOKIES) {
|
||||
map.set(routes.COOKIES.path, '#thirdPartyCookiesLinkRow');
|
||||
}
|
||||
@@ -286,6 +296,9 @@ export class SettingsPrivacyPageElement
|
||||
@@ -287,6 +297,9 @@ export class SettingsPrivacyPageElement
|
||||
override getAssociatedControlFor(childViewId: string): HTMLElement {
|
||||
let triggerId: string|null = null;
|
||||
switch (childViewId) {
|
||||
@@ -143,10 +143,10 @@
|
||||
if (visibility.safetyHub !== false) {
|
||||
--- a/chrome/browser/resources/settings/BUILD.gn
|
||||
+++ b/chrome/browser/resources/settings/BUILD.gn
|
||||
@@ -155,6 +155,7 @@ build_webui("build") {
|
||||
"privacy_page/security_keys_subpage.ts",
|
||||
"privacy_page/security_page_v2.ts",
|
||||
"privacy_page/security_page.ts",
|
||||
@@ -156,6 +156,7 @@ build_webui("build") {
|
||||
"privacy_page/security/security_page_v2.ts",
|
||||
"privacy_page/security/security_page.ts",
|
||||
"privacy_page/security/security_page_feature_row.ts",
|
||||
+ "privacy_page/services_page.ts",
|
||||
"privacy_sandbox/privacy_sandbox_ad_measurement_subpage.ts",
|
||||
"privacy_sandbox/privacy_sandbox_fledge_subpage.ts",
|
||||
@@ -273,22 +273,22 @@
|
||||
+customElements.define(SettingsHeliumServicesPageElement.is, SettingsHeliumServicesPageElement);
|
||||
--- a/chrome/browser/resources/settings/lazy_load.ts
|
||||
+++ b/chrome/browser/resources/settings/lazy_load.ts
|
||||
@@ -35,6 +35,7 @@ import './privacy_sandbox/privacy_sandbo
|
||||
import './privacy_page/security_keys_subpage.js';
|
||||
import './privacy_page/security_page_v2.js';
|
||||
import './privacy_page/security_page.js';
|
||||
@@ -25,6 +25,7 @@ import './privacy_page/privacy_guide/pri
|
||||
import './privacy_page/security/security_keys_subpage.js';
|
||||
import './privacy_page/security/security_page_v2.js';
|
||||
import './privacy_page/security/security_page.js';
|
||||
+import './privacy_page/services_page.js';
|
||||
import './safety_hub/safety_hub_page.js';
|
||||
import './safety_hub/safety_hub_entry_point.js';
|
||||
import './site_settings/ads_page.js';
|
||||
@@ -243,6 +244,7 @@ export {ResetDialogPage, SettingsSecurit
|
||||
export {SetPinDialogPage, SettingsSecurityKeysSetPinDialogElement} from './privacy_page/security_keys_set_pin_dialog.js';
|
||||
export {SecurityKeysSubpageElement} from './privacy_page/security_keys_subpage.js';
|
||||
export {HttpsFirstModeSetting, SafeBrowsingSetting, SettingsSecurityPageElement} from './privacy_page/security_page.js';
|
||||
import './privacy_sandbox/privacy_sandbox_ad_measurement_subpage.js';
|
||||
import './privacy_sandbox/privacy_sandbox_fledge_subpage.js';
|
||||
import './privacy_sandbox/privacy_sandbox_interest_item.js';
|
||||
@@ -244,6 +245,7 @@ export {SecurityKeysSubpageElement} from
|
||||
export {HttpsFirstModeSetting, SafeBrowsingSetting, SettingsSecurityPageElement} from './privacy_page/security/security_page.js';
|
||||
export {SecurityPageFeatureRowElement} from './privacy_page/security/security_page_feature_row.js';
|
||||
export {SecuritySettingsBundleSetting, SettingsSecurityPageV2Element} from './privacy_page/security/security_page_v2.js';
|
||||
+export {SettingsHeliumServicesPageElement} from './privacy_page/services_page.js';
|
||||
export {SecuritySettingsBundleSetting, SettingsSecurityPageV2Element} from './privacy_page/security_page_v2.js';
|
||||
export {SettingsPrivacySandboxAdMeasurementSubpageElement} from './privacy_sandbox/privacy_sandbox_ad_measurement_subpage.js';
|
||||
export {SettingsPrivacySandboxFledgeSubpageElement} from './privacy_sandbox/privacy_sandbox_fledge_subpage.js';
|
||||
export {PrivacySandboxInterestItemElement} from './privacy_sandbox/privacy_sandbox_interest_item.js';
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -14,6 +14,7 @@
|
||||
@@ -299,7 +299,7 @@
|
||||
#include "components/policy/core/common/policy_pref_names.h"
|
||||
#include "components/pref_registry/pref_registry_syncable.h"
|
||||
#include "components/prefs/pref_registry_simple.h"
|
||||
@@ -201,6 +202,11 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -204,6 +205,11 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
false);
|
||||
#endif
|
||||
|
||||
@@ -321,7 +321,7 @@
|
||||
#include "components/language/core/browser/pref_names.h"
|
||||
#include "components/live_caption/pref_names.h"
|
||||
#include "components/media_router/common/pref_names.h"
|
||||
@@ -351,6 +352,12 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -354,6 +355,12 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kString;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -107,14 +107,14 @@ BASE_FEATURE(kReloadSelectionModel, base
|
||||
@@ -104,14 +104,14 @@ BASE_FEATURE(kReloadSelectionModel, base
|
||||
// Enforces close tab hotkey to only close the active view of a split tab,
|
||||
// when it is the only tab in selection model.
|
||||
BASE_FEATURE(kCloseActiveTabInSplitViewViaHotkey,
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
// The delay before showing the drop target for the side-by-side drag-and-drop
|
||||
// entrypoint.
|
||||
@@ -132,17 +132,17 @@ BASE_FEATURE_PARAM(int,
|
||||
@@ -149,17 +149,17 @@ BASE_FEATURE_PARAM(int,
|
||||
kSideBySideDropTargetMinWidth,
|
||||
&kSideBySide,
|
||||
"drop_target_min_width",
|
||||
@@ -36,9 +36,9 @@
|
||||
- 30);
|
||||
+ 10);
|
||||
BASE_FEATURE_PARAM(int,
|
||||
kSideBySideDropTargetHideForOSWidth,
|
||||
kSideBySideDropTargetForLinkTargetWidthPercentage,
|
||||
&kSideBySide,
|
||||
@@ -243,7 +243,7 @@ BASE_FEATURE_PARAM(int,
|
||||
@@ -265,7 +265,7 @@ BASE_FEATURE_PARAM(int,
|
||||
|
||||
// When enabled along with SideBySide flag, split tabs will be restored on
|
||||
// startup.
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
bool IsRestoringSplitViewEnabled() {
|
||||
return base::FeatureList::IsEnabled(features::kSideBySide) &&
|
||||
@@ -252,7 +252,7 @@ bool IsRestoringSplitViewEnabled() {
|
||||
@@ -274,7 +274,7 @@ bool IsRestoringSplitViewEnabled() {
|
||||
|
||||
BASE_FEATURE(kSideBySideLinkMenuNewBadge, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
@@ -181,7 +181,7 @@
|
||||
} else {
|
||||
CHECK(!contents_container_views_[1]->GetVisible());
|
||||
widths.start_width = available_space.width();
|
||||
@@ -686,10 +675,6 @@ void MultiContentsView::SetShouldShowTop
|
||||
@@ -675,10 +664,6 @@ void MultiContentsView::SetShouldShowTop
|
||||
return;
|
||||
}
|
||||
contents_separators_.should_show_top = should_show;
|
||||
@@ -192,7 +192,7 @@
|
||||
|
||||
InvalidateLayout();
|
||||
}
|
||||
@@ -699,8 +684,6 @@ void MultiContentsView::SetShouldShowLea
|
||||
@@ -688,8 +673,6 @@ void MultiContentsView::SetShouldShowLea
|
||||
return;
|
||||
}
|
||||
contents_separators_.should_show_leading = should_show;
|
||||
@@ -201,7 +201,7 @@
|
||||
|
||||
InvalidateLayout();
|
||||
}
|
||||
@@ -710,8 +693,6 @@ void MultiContentsView::SetShouldShowTra
|
||||
@@ -699,8 +682,6 @@ void MultiContentsView::SetShouldShowTra
|
||||
return;
|
||||
}
|
||||
contents_separators_.should_show_trailing = should_show;
|
||||
@@ -220,7 +220,7 @@
|
||||
#include "chrome/browser/ui/views/frame/scrim_view.h"
|
||||
#include "chrome/browser/ui/views/frame/tab_modal_dialog_host.h"
|
||||
#include "chrome/browser/ui/views/frame/top_container_view.h"
|
||||
@@ -51,10 +50,6 @@
|
||||
@@ -52,10 +51,6 @@
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
@@ -231,7 +231,7 @@
|
||||
constexpr int kNewTabFooterSeparatorHeight = 1;
|
||||
constexpr int kNewTabFooterHeight = 56;
|
||||
} // namespace
|
||||
@@ -122,14 +117,6 @@ ContentsContainerView::ContentsContainer
|
||||
@@ -133,14 +128,6 @@ ContentsContainerView::ContentsContainer
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -246,7 +246,7 @@
|
||||
view_bounds_observer_.Observe(contents_view_);
|
||||
}
|
||||
|
||||
@@ -152,110 +139,11 @@ std::vector<views::View*> ContentsContai
|
||||
@@ -163,120 +150,11 @@ std::vector<views::View*> ContentsContai
|
||||
void ContentsContainerView::UpdateBorderAndOverlay(bool is_in_split,
|
||||
bool is_active,
|
||||
bool is_highlighted) {
|
||||
@@ -320,6 +320,12 @@
|
||||
- content_lower_rounded_corners);
|
||||
- }
|
||||
-
|
||||
- if (actor_overlay_web_view_) {
|
||||
- // ActorOverlayWebView should use the same radii as the contents view since
|
||||
- // it acts as a full transparent layer directly over the main web content.
|
||||
- actor_overlay_web_view_->holder()->SetCornerRadii(radii);
|
||||
- }
|
||||
-
|
||||
-#if BUILDFLAG(ENABLE_GLIC)
|
||||
- if (glic_border_) {
|
||||
- glic_border_->SetRoundedCorners(content_rounded_corners);
|
||||
@@ -342,6 +348,10 @@
|
||||
-
|
||||
- contents_scrim_view_->SetRoundedCorners(kNoRoundedCorners);
|
||||
-
|
||||
- if (actor_overlay_web_view_) {
|
||||
- actor_overlay_web_view_->holder()->SetCornerRadii(kNoRoundedCorners);
|
||||
- }
|
||||
-
|
||||
-#if BUILDFLAG(ENABLE_GLIC)
|
||||
- if (glic_border_) {
|
||||
- glic_border_->SetRoundedCorners(kNoRoundedCorners);
|
||||
@@ -359,7 +369,7 @@
|
||||
}
|
||||
|
||||
void ContentsContainerView::Layout(PassKey pass_key) {
|
||||
@@ -269,9 +157,6 @@ void ContentsContainerView::Layout(PassK
|
||||
@@ -290,9 +168,6 @@ void ContentsContainerView::Layout(PassK
|
||||
void ContentsContainerView::OnViewBoundsChanged(View* observed_view) {
|
||||
if (observed_view == contents_view_) {
|
||||
UpdateDevToolsDockedPlacement();
|
||||
@@ -369,7 +379,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -523,30 +408,6 @@ views::ProposedLayout ContentsContainerV
|
||||
@@ -559,30 +434,6 @@ views::ProposedLayout ContentsContainerV
|
||||
non_devtools_contents_bounds, size_bounds);
|
||||
}
|
||||
|
||||
@@ -410,7 +420,7 @@
|
||||
ScrimView* contents_scrim_view() { return contents_scrim_view_; }
|
||||
views::WebView* devtools_web_view() { return devtools_web_view_; }
|
||||
ScrimView* devtools_scrim_view() { return devtools_scrim_view_; }
|
||||
@@ -91,9 +90,6 @@ class ContentsContainerView : public vie
|
||||
@@ -94,9 +93,6 @@ class ContentsContainerView : public vie
|
||||
enterprise_watermark::WatermarkView* watermark_view() {
|
||||
return watermark_view_;
|
||||
}
|
||||
@@ -420,7 +430,7 @@
|
||||
TabModalDialogHost* web_contents_modal_dialog_host() {
|
||||
return &web_contents_modal_dialog_host_;
|
||||
}
|
||||
@@ -131,9 +127,6 @@ class ContentsContainerView : public vie
|
||||
@@ -134,9 +130,6 @@ class ContentsContainerView : public vie
|
||||
// container that holds both contents_webview and devtools_webview.
|
||||
void UpdateDevToolsDockedPlacement();
|
||||
|
||||
@@ -430,9 +440,9 @@
|
||||
// views::View:
|
||||
void ChildVisibilityChanged(View* child) override;
|
||||
void Layout(PassKey) override;
|
||||
@@ -180,10 +173,6 @@ class ContentsContainerView : public vie
|
||||
@@ -187,10 +180,6 @@ class ContentsContainerView : public vie
|
||||
// The glic browser view that renders around the web contents area.
|
||||
raw_ptr<glic::GlicBorderView> glic_border_ = nullptr;
|
||||
raw_ptr<glic::ContextSharingBorderView> glic_border_ = nullptr;
|
||||
|
||||
- raw_ptr<MultiContentsViewMiniToolbar> mini_toolbar_ = nullptr;
|
||||
-
|
||||
@@ -457,7 +467,7 @@
|
||||
|
||||
} // namespace
|
||||
|
||||
@@ -61,19 +59,12 @@ MultiContentsDropTargetView::MultiConten
|
||||
@@ -61,17 +59,12 @@ MultiContentsDropTargetView::MultiConten
|
||||
->SetOrientation(views::LayoutOrientation::kVertical)
|
||||
.SetMainAxisAlignment(views::LayoutAlignment::kCenter)
|
||||
.SetCrossAxisAlignment(views::LayoutAlignment::kCenter)
|
||||
@@ -468,16 +478,14 @@
|
||||
views::MaximumFlexSizeRule::kUnbounded));
|
||||
|
||||
auto inner_container = std::make_unique<views::View>();
|
||||
- inner_container->SetPaintToLayer(ui::LAYER_SOLID_COLOR);
|
||||
- inner_container->layer()->SetName(
|
||||
- inner_container->SetBackground(views::CreateLayerBasedRoundedBackground(
|
||||
- ui::kColorSysSurface3, gfx::RoundedCornersF(kInnerCornerRadius)));
|
||||
- inner_container->background()->SetInternalName(
|
||||
- "MultiContentsDropTargetView/InnerContainer");
|
||||
- inner_container->layer()->SetRoundedCornerRadius(
|
||||
- gfx::RoundedCornersF(kInnerCornerRadius));
|
||||
- inner_container->layer()->SetIsFastRoundedCorner(true);
|
||||
|
||||
inner_container_layout_ =
|
||||
&inner_container->SetLayoutManager(std::make_unique<views::FlexLayout>())
|
||||
@@ -92,13 +83,13 @@ MultiContentsDropTargetView::MultiConten
|
||||
@@ -90,13 +83,13 @@ MultiContentsDropTargetView::MultiConten
|
||||
icon_view_->SetPaintToLayer(ui::LAYER_TEXTURED);
|
||||
icon_view_->layer()->SetFillsBoundsOpaquely(false);
|
||||
icon_view_->SetImage(ui::ImageModel::FromVectorIcon(
|
||||
@@ -493,48 +501,9 @@
|
||||
label_->SetElideBehavior(gfx::NO_ELIDE);
|
||||
label_->SetSubpixelRenderingEnabled(false);
|
||||
|
||||
@@ -279,8 +270,6 @@ void MultiContentsDropTargetView::Disabl
|
||||
|
||||
void MultiContentsDropTargetView::OnThemeChanged() {
|
||||
views::View::OnThemeChanged();
|
||||
- inner_container_->layer()->SetColor(
|
||||
- GetColorProvider()->GetColor(ui::kColorSysSurface3));
|
||||
}
|
||||
|
||||
bool MultiContentsDropTargetView::GetDropFormats(
|
||||
--- a/chrome/browser/ui/views/frame/browser_view_layout.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_view_layout.cc
|
||||
@@ -874,27 +874,6 @@ void BrowserViewLayout::LayoutContentsCo
|
||||
!layout_result.side_panel_right_aligned);
|
||||
left_aligned_side_panel_separator_->SetBoundsRect(
|
||||
layout_result.separator_bounds);
|
||||
-
|
||||
- SetViewVisibility(side_panel_rounded_corner_,
|
||||
- layout_result.side_panel_visible);
|
||||
- if (layout_result.side_panel_visible) {
|
||||
- // Adjust the rounded corner bounds based on the side panel bounds.
|
||||
- const int corner_size =
|
||||
- side_panel_rounded_corner_->GetPreferredSize().width();
|
||||
-
|
||||
- const int top_separator_height = views::Separator::kThickness;
|
||||
- if (layout_result.contents_container_after_side_panel) {
|
||||
- side_panel_rounded_corner_->SetBounds(
|
||||
- layout_result.side_panel_bounds.right(),
|
||||
- layout_result.side_panel_bounds.y() - top_separator_height,
|
||||
- corner_size, corner_size);
|
||||
- } else {
|
||||
- side_panel_rounded_corner_->SetBounds(
|
||||
- layout_result.side_panel_bounds.x() - corner_size,
|
||||
- layout_result.side_panel_bounds.y() - top_separator_height,
|
||||
- corner_size, corner_size);
|
||||
- }
|
||||
- }
|
||||
}
|
||||
}
|
||||
|
||||
--- a/chrome/browser/ui/views/frame/browser_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_view.cc
|
||||
@@ -136,7 +136,6 @@
|
||||
@@ -141,7 +141,6 @@
|
||||
#include "chrome/browser/ui/views/frame/multi_contents_view.h"
|
||||
#include "chrome/browser/ui/views/frame/multi_contents_view_delegate.h"
|
||||
#include "chrome/browser/ui/views/frame/multi_contents_view_drop_target_controller.h"
|
||||
@@ -542,7 +511,7 @@
|
||||
#include "chrome/browser/ui/views/frame/scrim_view.h"
|
||||
#include "chrome/browser/ui/views/frame/tab_modal_dialog_host.h"
|
||||
#include "chrome/browser/ui/views/frame/tab_strip_region_view.h"
|
||||
@@ -2209,12 +2208,6 @@ void BrowserView::UpdateToolbar(content:
|
||||
@@ -2281,12 +2280,6 @@ void BrowserView::UpdateToolbar(content:
|
||||
if (toolbar_) {
|
||||
toolbar_->Update(contents);
|
||||
}
|
||||
@@ -565,7 +534,7 @@
|
||||
#include "chrome/browser/profiles/profile.h"
|
||||
#include "chrome/browser/ui/browser.h"
|
||||
#include "chrome/browser/ui/browser_list.h"
|
||||
@@ -125,16 +124,6 @@ SplitTabMenuModel::SplitTabMenuModel(Tab
|
||||
@@ -130,16 +129,6 @@ SplitTabMenuModel::SplitTabMenuModel(Tab
|
||||
SetElementIdentifierAt(
|
||||
GetIndexOfCommandId(GetCommandIdInt(CommandId::kExitSplit)).value(),
|
||||
kExitSplitMenuItem);
|
||||
@@ -582,7 +551,7 @@
|
||||
}
|
||||
|
||||
SplitTabMenuModel::~SplitTabMenuModel() = default;
|
||||
@@ -216,9 +205,6 @@ void SplitTabMenuModel::ExecuteCommand(i
|
||||
@@ -221,9 +210,6 @@ void SplitTabMenuModel::ExecuteCommand(i
|
||||
case CommandId::kExitSplit:
|
||||
tab_strip_model_->RemoveSplit(split_id);
|
||||
break;
|
||||
@@ -592,13 +561,14 @@
|
||||
}
|
||||
|
||||
base::UmaHistogramEnumeration(
|
||||
@@ -260,10 +246,3 @@ void SplitTabMenuModel::CloseTabAtIndex(
|
||||
@@ -265,11 +251,3 @@ void SplitTabMenuModel::CloseTabAtIndex(
|
||||
index, TabCloseTypes::CLOSE_USER_GESTURE |
|
||||
TabCloseTypes::CLOSE_CREATE_HISTORICAL_TAB);
|
||||
}
|
||||
-
|
||||
-void SplitTabMenuModel::SendFeedback() {
|
||||
- Browser* const browser = GetBrowserWithTabStripModel(tab_strip_model_);
|
||||
- BrowserWindowInterface* const browser =
|
||||
- GetBrowserWithTabStripModel(tab_strip_model_);
|
||||
- CHECK(browser);
|
||||
- chrome::ShowFeedbackPage(browser, feedback::kFeedbackSourceSplitView, "", "",
|
||||
- "split_view", "");
|
||||
@@ -625,7 +595,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/browser_commands.cc
|
||||
+++ b/chrome/browser/ui/browser_commands.cc
|
||||
@@ -499,8 +499,12 @@ void ReloadInternal(BrowserWindowInterfa
|
||||
@@ -574,8 +574,12 @@ void ReloadInternal(BrowserWindowInterfa
|
||||
WebContents* const active_contents = tab_strip_model->GetActiveWebContents();
|
||||
|
||||
std::vector<WebContents*> tabs_to_reload;
|
||||
@@ -639,3 +609,16 @@
|
||||
tabs_to_reload.push_back(active_contents);
|
||||
} else {
|
||||
// Reloading a tab may change the selection (see crbug.com/339061099), so
|
||||
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
@@ -4983,8 +4983,8 @@ void RenderViewContextMenu::OpenLinkInSp
|
||||
|
||||
TabStripModel* const tab_strip_model = browser->tab_strip_model();
|
||||
tabs::TabInterface* const source_tab =
|
||||
- tabs::TabInterface::GetFromContents(source_web_contents_);
|
||||
- if (source_tab->IsSplit()) {
|
||||
+ tabs::TabInterface::MaybeGetFromContents(source_web_contents_);
|
||||
+ if (source_tab && source_tab->IsSplit()) {
|
||||
// Navigate the inactive tab to the URL
|
||||
const split_tabs::SplitTabId split_id = source_tab->GetSplit().value();
|
||||
for (tabs::TabInterface* tab :
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
--- a/components/embedder_support/user_agent_utils.cc
|
||||
+++ b/components/embedder_support/user_agent_utils.cc
|
||||
@@ -205,17 +205,12 @@ const blink::UserAgentBrandList GetUserA
|
||||
int major_version_number;
|
||||
bool parse_result = base::StringToInt(major_version, &major_version_number);
|
||||
DCHECK(parse_result);
|
||||
- std::optional<std::string> brand;
|
||||
-#if !BUILDFLAG(CHROMIUM_BRANDING)
|
||||
- brand = version_info::GetProductName();
|
||||
-#endif
|
||||
-
|
||||
std::string brand_version =
|
||||
output_version_type == blink::UserAgentBrandVersionType::kFullVersion
|
||||
? full_version
|
||||
: major_version;
|
||||
|
||||
- return GenerateBrandVersionList(major_version_number, brand, brand_version,
|
||||
+ return GenerateBrandVersionList(major_version_number, "Google Chrome", brand_version,
|
||||
output_version_type,
|
||||
additional_brand_version);
|
||||
}
|
||||
@@ -52,7 +52,7 @@
|
||||
if (command_line->HasSwitch(extensions::kSwitchTestRequestParam)) {
|
||||
--- a/chrome/browser/extensions/webstore_installer.cc
|
||||
+++ b/chrome/browser/extensions/webstore_installer.cc
|
||||
@@ -212,7 +212,7 @@ GURL WebstoreInstaller::GetWebstoreInsta
|
||||
@@ -213,7 +213,7 @@ GURL WebstoreInstaller::GetWebstoreInsta
|
||||
GURL url(
|
||||
url_string + "?response=redirect&" +
|
||||
update_client::UpdateQueryParams::Get(
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
--- a/chrome/common/pref_names.h
|
||||
+++ b/chrome/common/pref_names.h
|
||||
@@ -1310,6 +1310,10 @@ inline constexpr char
|
||||
// instead of tab strip end.
|
||||
inline constexpr char kNewTabNextToActive[] = "helium.browser.new_tab_next_to_active";
|
||||
|
||||
+// A boolean pref set to true if MRU (Most Recently Used) order should be used when
|
||||
+// cycling through tabs with Ctrl+Tab.
|
||||
+inline constexpr char kTabCyclingMRU[] = "helium.browser.mru_tab_cycling";
|
||||
+
|
||||
// A boolean pref set to true if a Home button to open the Home pages should be
|
||||
// visible on the toolbar.
|
||||
inline constexpr char kShowHomeButton[] = "browser.show_home_button";
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -115,6 +115,8 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
|
||||
registry->RegisterBooleanPref(prefs::kNewTabNextToActive, false);
|
||||
|
||||
+ registry->RegisterBooleanPref(prefs::kTabCyclingMRU, false);
|
||||
+
|
||||
registry->RegisterBooleanPref(prefs::kHomePageIsNewTabPage, true,
|
||||
pref_registration_flags);
|
||||
registry->RegisterBooleanPref(prefs::kShowHomeButton, false,
|
||||
--- a/chrome/browser/ui/tabs/tab_strip_model.cc
|
||||
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc
|
||||
@@ -1704,11 +1704,11 @@ void TabStripModel::CloseSelectedTabs()
|
||||
}
|
||||
|
||||
void TabStripModel::SelectNextTab(TabStripUserGestureDetails detail) {
|
||||
- SelectRelativeTab(TabRelativeDirection::kNext, detail);
|
||||
+ SelectRelativeTabCycle(TabRelativeDirection::kNext, detail);
|
||||
}
|
||||
|
||||
void TabStripModel::SelectPreviousTab(TabStripUserGestureDetails detail) {
|
||||
- SelectRelativeTab(TabRelativeDirection::kPrevious, detail);
|
||||
+ SelectRelativeTabCycle(TabRelativeDirection::kPrevious, detail);
|
||||
}
|
||||
|
||||
void TabStripModel::SelectLastTab(TabStripUserGestureDetails detail) {
|
||||
@@ -3710,6 +3710,18 @@ TabStripSelectionChange TabStripModel::S
|
||||
return selection;
|
||||
}
|
||||
|
||||
+void TabStripModel::SelectRelativeTabCycle(TabRelativeDirection direction,
|
||||
+ TabStripUserGestureDetails detail) {
|
||||
+ const bool enable_mru =
|
||||
+ profile_->GetPrefs()->GetBoolean(prefs::kTabCyclingMRU);
|
||||
+
|
||||
+ if (enable_mru) {
|
||||
+ SelectMRUTab(direction, detail);
|
||||
+ } else {
|
||||
+ SelectRelativeTab(direction, detail);
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
void TabStripModel::SelectMRUTab(TabRelativeDirection direction,
|
||||
TabStripUserGestureDetails detail) {
|
||||
if (mru_cycle_list_.empty()) {
|
||||
--- a/chrome/browser/ui/tabs/tab_strip_model.h
|
||||
+++ b/chrome/browser/ui/tabs/tab_strip_model.h
|
||||
@@ -1143,6 +1143,11 @@ class TabStripModel {
|
||||
kPrevious,
|
||||
};
|
||||
|
||||
+ // Selects either the next tab or the previous tab.
|
||||
+ // Uses MRU order if the user prefers it.
|
||||
+ void SelectRelativeTabCycle(TabRelativeDirection direction,
|
||||
+ TabStripUserGestureDetails detail);
|
||||
+
|
||||
// Selects either the most recently used tab
|
||||
// or the least recently used tab.
|
||||
void SelectMRUTab(TabRelativeDirection direction,
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -228,6 +228,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
|
||||
(*s_allowlist)[::prefs::kNewTabNextToActive] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
+ (*s_allowlist)[::prefs::kTabCyclingMRU] =
|
||||
+ settings_api::PrefType::kBoolean;
|
||||
|
||||
(*s_allowlist)[::prefs::kShowHomeButton] = settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kShowForwardButton] =
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -273,6 +273,9 @@
|
||||
<message name="IDS_SETTINGS_NEW_TAB_NEXT_TO_ACTIVE_BUTTON" desc="Label for the checkbox which enables or disables behaviour of opening new tabs next to current active tab.">
|
||||
Open new tabs next to the active tab
|
||||
</message>
|
||||
+ <message name="IDS_SETTINGS_CYCLE_TABS_IN_MRU_ORDER" desc="Label for the checkbox which enables or disables cycling through tabs in MRU order when using Ctrl+Tab.">
|
||||
+ Cycle through tabs in most recently used order with Ctrl+Tab
|
||||
+ </message>
|
||||
<message name="IDS_SETTINGS_SHOW_HOME_BUTTON" desc="Label for the checkbox which enables or disables showing the home button in the toolbar.">
|
||||
Show home button
|
||||
</message>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -522,6 +522,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
{"darkMode", IDS_NTP_CUSTOMIZE_CHROME_COLOR_SCHEME_MODE_DARK_LABEL},
|
||||
{"systemMode", IDS_NTP_CUSTOMIZE_CHROME_COLOR_SCHEME_MODE_SYSTEM_LABEL},
|
||||
{"openNewTabNextToActive", IDS_SETTINGS_NEW_TAB_NEXT_TO_ACTIVE_BUTTON},
|
||||
+ {"cycleTabsInMRUOrder", IDS_SETTINGS_CYCLE_TABS_IN_MRU_ORDER},
|
||||
{"showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON},
|
||||
{"showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR},
|
||||
{"allowSplitViewDragAndDrop",
|
||||
--- a/chrome/browser/resources/settings/appearance_page/appearance_behavior_page.html
|
||||
+++ b/chrome/browser/resources/settings/appearance_page/appearance_behavior_page.html
|
||||
@@ -6,6 +6,11 @@
|
||||
label="$i18n{openNewTabNextToActive}">
|
||||
</settings-toggle-button>
|
||||
|
||||
+ <settings-toggle-button class="hr" id="tabCyclingMRU"
|
||||
+ pref="{{prefs.helium.browser.mru_tab_cycling}}"
|
||||
+ label="$i18n{cycleTabsInMRUOrder}">
|
||||
+ </settings-toggle-button>
|
||||
+
|
||||
<settings-toggle-button class="hr" id="copyPageUrlShortcut"
|
||||
pref="{{prefs.helium.settings.a11y.copy_page_url_shortcut}}"
|
||||
label="$i18n{copyPageUrlShortcut}">
|
||||
@@ -57,7 +57,7 @@
|
||||
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -369,6 +369,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -366,6 +366,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kHeliumUpdateFetchingEnabled] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -68,7 +68,7 @@
|
||||
(*s_allowlist)[::prefs::kHeliumServicesConsented] =
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -220,6 +220,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -218,6 +218,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterBooleanPref(prefs::kHeliumDidOnboarding, false);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesConsented, false);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumUpdateFetchingEnabled, true);
|
||||
@@ -96,7 +96,7 @@
|
||||
#include "components/policy/core/common/policy_pref_names.h"
|
||||
#include "components/supervised_user/core/browser/supervised_user_preferences.h"
|
||||
#include "content/public/browser/browser_thread.h"
|
||||
@@ -205,6 +209,7 @@ ExtensionService::ExtensionService(
|
||||
@@ -206,6 +210,7 @@ ExtensionService::ExtensionService(
|
||||
ready_(ready),
|
||||
updater_(ExtensionUpdater::Get(profile)),
|
||||
component_loader_(ComponentLoader::Get(profile_)),
|
||||
@@ -104,7 +104,7 @@
|
||||
error_controller_(error_controller),
|
||||
external_install_manager_(ExternalInstallManager::Get(profile)),
|
||||
extension_registrar_delegate_(
|
||||
@@ -278,6 +283,33 @@ ExtensionService::ExtensionService(
|
||||
@@ -279,6 +284,33 @@ ExtensionService::ExtensionService(
|
||||
prefs::kExtensionsUIDeveloperMode,
|
||||
base::BindRepeating(&ExtensionService::OnDeveloperModePrefChanged,
|
||||
base::Unretained(this)));
|
||||
@@ -217,7 +217,7 @@
|
||||
if ( bin.assetSourceRegistry instanceof Object ) {
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1963,6 +1963,12 @@
|
||||
@@ -2002,6 +2002,12 @@
|
||||
<message name="IDS_SETTINGS_HELIUM_SERVICES_UPDATE_DESCRIPTION" desc="Description of the toggle for automatic update downloads">
|
||||
Helium will automatically download and install browser updates as they become available. We recommend keeping this setting enabled to ensure you get the latest security patches and features.
|
||||
</message>
|
||||
@@ -246,7 +246,7 @@
|
||||
</template>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1987,6 +1987,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -2139,6 +2139,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
IDS_SETTINGS_HELIUM_SERVICES_UPDATE},
|
||||
{"heliumUpdatesToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_UPDATE_DESCRIPTION},
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include "extensions/browser/delayed_install_manager.h"
|
||||
#include "extensions/browser/disable_reason.h"
|
||||
#include "extensions/browser/extension_file_task_runner.h"
|
||||
@@ -251,7 +255,85 @@ void ChromeExtensionRegistrarDelegate::P
|
||||
@@ -254,7 +258,85 @@ void ChromeExtensionRegistrarDelegate::P
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
location <= mojom::ManifestLocation::kMaxValue;
|
||||
--- a/chrome/browser/chrome_content_browser_client.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client.cc
|
||||
@@ -6264,7 +6264,8 @@ void AddChromeSchemeFactories(
|
||||
@@ -6194,7 +6194,8 @@ void AddChromeSchemeFactories(
|
||||
std::vector<std::string> allowed_webui_hosts;
|
||||
// Support for chrome:// scheme if appropriate.
|
||||
if ((extension->is_extension() || extension->is_platform_app()) &&
|
||||
@@ -82,7 +82,7 @@
|
||||
IsPolicyBlockedHostUnsafe(origin_url)) {
|
||||
if (error)
|
||||
*error = extension_misc::kPolicyBlockedScripting;
|
||||
@@ -617,7 +619,8 @@ PermissionsData::PageAccess PermissionsD
|
||||
@@ -618,7 +620,8 @@ PermissionsData::PageAccess PermissionsD
|
||||
const URLPatternSet* tab_url_patterns,
|
||||
std::string* error) const {
|
||||
runtime_lock_.AssertAcquired();
|
||||
@@ -92,7 +92,7 @@
|
||||
IsPolicyBlockedHostUnsafe(document_url)) {
|
||||
if (error)
|
||||
*error = extension_misc::kPolicyBlockedScripting;
|
||||
@@ -629,7 +632,8 @@ PermissionsData::PageAccess PermissionsD
|
||||
@@ -630,7 +633,8 @@ PermissionsData::PageAccess PermissionsD
|
||||
|
||||
if (base::FeatureList::IsEnabled(
|
||||
extensions_features::kExtensionsMenuAccessControl) &&
|
||||
@@ -104,7 +104,7 @@
|
||||
auto& context_permissions = GetContextPermissions(*context_id_);
|
||||
--- a/chrome/browser/extensions/extension_util.cc
|
||||
+++ b/chrome/browser/extensions/extension_util.cc
|
||||
@@ -189,7 +189,8 @@ void SetIsIncognitoEnabled(const std::st
|
||||
@@ -184,7 +184,8 @@ void SetIsIncognitoEnabled(const std::st
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
// TODO(treib,kalman): Should this be Manifest::IsComponentLocation(..)?
|
||||
// (which also checks for kExternalComponent).
|
||||
@@ -205,7 +205,7 @@
|
||||
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
|
||||
registry->RegisterListPref(pref_names::kDeletedComponentExtensions);
|
||||
registry->RegisterDictionaryPref(kExtensionsBlocklistUpdate);
|
||||
@@ -2295,14 +2307,14 @@ bool ExtensionPrefs::GetUserExtensionPre
|
||||
@@ -2299,14 +2311,14 @@ bool ExtensionPrefs::GetUserExtensionPre
|
||||
ExtensionIdContainer* id_container_out) const {
|
||||
DCHECK(id_container_out->empty());
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
+ ))
|
||||
--- a/tools/gritsettings/resource_ids.spec
|
||||
+++ b/tools/gritsettings/resource_ids.spec
|
||||
@@ -202,7 +202,7 @@
|
||||
@@ -206,7 +206,7 @@
|
||||
"META": {"sizes": {"includes": [500]}},
|
||||
"includes": [2850],
|
||||
},
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
--- a/tools/licenses/licenses.py
|
||||
+++ b/tools/licenses/licenses.py
|
||||
@@ -1072,8 +1072,8 @@ def GenerateCredits(file_template_file,
|
||||
reciprocal_template = codecs.open(reciprocal_template_file,
|
||||
encoding='utf-8').read()
|
||||
@@ -1093,8 +1093,8 @@ def GenerateCredits(args, metadatas):
|
||||
entries_contents = '\n'.join([entry['content'] for entry in entries])
|
||||
|
||||
reciprocal_contents = EvaluateTemplate(reciprocal_template, {
|
||||
- 'opensource_project': 'ungoogled-chromium',
|
||||
- 'opensource_link': 'https://github.com/ungoogled-software/ungoogled-chromium'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -66,7 +66,7 @@ void RegisterBrowserPrefs(PrefRegistrySi
|
||||
@@ -69,7 +69,7 @@ void RegisterBrowserPrefs(PrefRegistrySi
|
||||
|
||||
registry->RegisterBooleanPref(prefs::kHoverCardImagesEnabled, true);
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#if defined(USE_AURA)
|
||||
registry->RegisterBooleanPref(prefs::kOverscrollHistoryNavigationEnabled,
|
||||
@@ -150,7 +150,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -153,7 +153,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
|
||||
// We need to register the type of these preferences in order to query
|
||||
// them even though they're only typically controlled via policy.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -147,7 +147,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -145,7 +145,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
false);
|
||||
#endif
|
||||
registry->RegisterStringPref(prefs::kWebRTCIPHandlingPolicy,
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
std::unique_ptr<LocalTestPolicyProvider> local_test_provider_;
|
||||
--- a/chrome/browser/policy/profile_policy_connector.cc
|
||||
+++ b/chrome/browser/policy/profile_policy_connector.cc
|
||||
@@ -378,6 +378,10 @@ void ProfilePolicyConnector::Init(
|
||||
@@ -384,6 +384,10 @@ void ProfilePolicyConnector::Init(
|
||||
if (connector->command_line_policy_provider()) {
|
||||
policy_providers_.push_back(connector->command_line_policy_provider());
|
||||
}
|
||||
@@ -59,7 +59,7 @@
|
||||
local_test_policy_provider_ = connector->local_test_policy_provider();
|
||||
--- a/components/policy/core/common/BUILD.gn
|
||||
+++ b/components/policy/core/common/BUILD.gn
|
||||
@@ -154,6 +154,8 @@ source_set("internal") {
|
||||
@@ -153,6 +153,8 @@ source_set("internal") {
|
||||
"external_data_manager.h",
|
||||
"features.cc",
|
||||
"features.h",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -250,7 +250,7 @@
|
||||
@@ -253,7 +253,7 @@
|
||||
<message name="IDS_SETTINGS_RESET_TO_DEFAULT" desc="Name of the control which resets a browser setting back to the default value">
|
||||
Reset to default
|
||||
</message>
|
||||
@@ -9,7 +9,7 @@
|
||||
<message name="IDS_SETTINGS_RESET_TO_DEFAULT_THEME" desc="Accessibility label of the button which resets the browser theme back to the default value">
|
||||
Reset to default theme
|
||||
</message>
|
||||
@@ -285,6 +285,9 @@
|
||||
@@ -291,6 +291,9 @@
|
||||
<message name="IDS_SETTINGS_AUTO_PIN_NEW_TAB_GROUPS" desc="Label for the checkbox which enables or disables auto pin new tab groups.">
|
||||
Automatically pin new tab groups created on any device to the bookmarks bar
|
||||
</message>
|
||||
@@ -21,7 +21,7 @@
|
||||
</message>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -520,7 +520,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
@@ -529,7 +529,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
IDS_SETTINGS_ALLOW_SPLIT_VIEW_DRAG_AND_DROP},
|
||||
{"showTabGroupsInBookmarksBar",
|
||||
IDS_SETTINGS_SHOW_TAB_GROUPS_IN_BOOKMARKS_BAR},
|
||||
@@ -30,7 +30,7 @@
|
||||
{"hoverCardTitle", IDS_SETTINGS_HOVER_CARD_TITLE},
|
||||
{"showHoverCardImages", IDS_SETTINGS_SHOW_HOVER_CARD_IMAGES},
|
||||
{"showHoverCardMemoryUsage", IDS_SETTINGS_SHOW_HOVER_CARD_MEMORY_USAGE},
|
||||
@@ -552,9 +552,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
@@ -561,9 +561,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
{"classicTheme", IDS_SETTINGS_CLASSIC_THEME},
|
||||
{"useClassicTheme", IDS_SETTINGS_USE_CLASSIC_THEME},
|
||||
#endif
|
||||
@@ -40,47 +40,3 @@
|
||||
{"resetToolbarToDefault", IDS_SETTINGS_RESET_TOOLBAR_TO_DEFAULT},
|
||||
#if BUILDFLAG(IS_LINUX)
|
||||
{"showWindowDecorations", IDS_SHOW_WINDOW_DECORATIONS},
|
||||
--- a/chrome/browser/resources/settings/appearance_page/appearance_page.html
|
||||
+++ b/chrome/browser/resources/settings/appearance_page/appearance_page.html
|
||||
@@ -46,7 +46,6 @@
|
||||
hidden="[[!pageVisibility.setTheme]]"
|
||||
label="$i18n{themes}" sub-label="[[themeSublabel_]]"
|
||||
on-click="onThemeClick_" external></cr-link-row>
|
||||
-<if expr="not is_linux">
|
||||
<template is="dom-if" if="[[prefs.extensions.theme.id.value]]">
|
||||
<div class="separator"></div>
|
||||
<cr-button id="useDefault" on-click="onUseDefaultClick_"
|
||||
@@ -54,33 +53,6 @@
|
||||
$i18n{resetToDefault}
|
||||
</cr-button>
|
||||
</template>
|
||||
-</if>
|
||||
-<if expr="is_linux">
|
||||
- <div class="settings-row continuation"
|
||||
- hidden="[[!showThemesSecondary_(
|
||||
- prefs.extensions.theme.id.value, systemTheme_)]]"
|
||||
- id="themesSecondaryActions">
|
||||
- <div class="separator"></div>
|
||||
- <template is="dom-if" if="[[showUseClassic_(
|
||||
- prefs.extensions.theme.id.value, systemTheme_)]]" restamp>
|
||||
- <cr-button id="useDefault" on-click="onUseDefaultClick_">
|
||||
- $i18n{useClassicTheme}
|
||||
- </cr-button>
|
||||
- </template>
|
||||
- <template is="dom-if" if="[[showUseGtk_(
|
||||
- prefs.extensions.theme.id.value, systemTheme_)]]" restamp>
|
||||
- <cr-button id="useGtk" on-click="onUseGtkClick_">
|
||||
- $i18n{useGtkTheme}
|
||||
- </cr-button>
|
||||
- </template>
|
||||
- <template is="dom-if" if="[[showUseQt_(
|
||||
- prefs.extensions.theme.id.value, systemTheme_)]]" restamp>
|
||||
- <cr-button id="useQt" on-click="onUseQtClick_">
|
||||
- $i18n{useQtTheme}
|
||||
- </cr-button>
|
||||
- </template>
|
||||
- </div>
|
||||
-</if>
|
||||
</div>
|
||||
<div id="toolbarRow" class="settings-row">
|
||||
<cr-link-row id="customizeToolbar"
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
{"loading", IDS_HISTORY_LOADING},
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1811,7 +1811,7 @@ void AddSyncControlsStrings(content::Web
|
||||
@@ -1965,7 +1965,7 @@ void AddSyncControlsStrings(content::Web
|
||||
void AddPeopleStrings(content::WebUIDataSource* html_source, Profile* profile) {
|
||||
static constexpr webui::LocalizedString kLocalizedStrings[] = {
|
||||
// Top level people strings:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1908,6 +1908,9 @@
|
||||
@@ -1950,6 +1950,9 @@
|
||||
<message name="IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_TEXT" desc="The text of a confirmation dialog that confirms that the user want to send the 'Do Not Track' header">
|
||||
Enabling "Do Not Track" means that a request will be included with your browsing traffic. Any effect depends on whether a website responds to the request, and how the request is interpreted. For example, some websites may respond to this request by showing you ads that aren't based on other websites you've visited. Many websites will still collect and use your browsing data - for example to improve security, to provide content, services, ads and recommendations on their websites, and to generate reporting statistics.
|
||||
</message>
|
||||
@@ -10,7 +10,7 @@
|
||||
<message name="IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_LEARN_MORE_ACCESSIBILITY_LABEL" desc="The accessibility label for a link to learn more about Do Not Track">
|
||||
Learn more about Do Not Track
|
||||
</message>
|
||||
@@ -3144,6 +3147,9 @@
|
||||
@@ -3207,6 +3210,9 @@
|
||||
<message name="IDS_SETTINGS_TRACKING_PROTECTION_SITES_ALLOWED_COOKIES_DESCRIPTION" desc="Description of the section on the Tracking Protection settings page that lets users manage which sites are allowed to use third-party cookies. Explains how to use a wildcard to create an exception for an entire domain.">
|
||||
Affects the sites listed here. Inserting “[*.]” before a domain name creates an exception for the entire domain. For example, adding “[*.]google.com” means that third-party cookies can also be active for mail.google.com, because it’s part of google.com.
|
||||
</message>
|
||||
@@ -22,7 +22,7 @@
|
||||
</message>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1959,7 +1959,7 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -2112,7 +2112,7 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"privacyPageMore", IDS_SETTINGS_PRIVACY_MORE},
|
||||
{"doNotTrack", IDS_SETTINGS_ENABLE_DO_NOT_TRACK},
|
||||
{"doNotTrackDialogTitle", IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_TITLE},
|
||||
@@ -31,7 +31,7 @@
|
||||
{"doNotTrackDialogLearnMoreA11yLabel",
|
||||
IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_LEARN_MORE_ACCESSIBILITY_LABEL},
|
||||
// TODO(crbug.com/40122957): This string is no longer used. Remove.
|
||||
@@ -2668,7 +2668,7 @@ void AddSiteSettingsStrings(content::Web
|
||||
@@ -2829,7 +2829,7 @@ void AddSiteSettingsStrings(content::Web
|
||||
{"trackingProtectionSitesAllowedCookiesTitle",
|
||||
IDS_SETTINGS_TRACKING_PROTECTION_SITES_ALLOWED_COOKIES_TITLE},
|
||||
{"trackingProtectionSitesAllowedCookiesDescription",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
--- a/chrome/browser/resources/settings/people_page/people_page.html
|
||||
+++ b/chrome/browser/resources/settings/people_page/people_page.html
|
||||
@@ -124,12 +124,6 @@
|
||||
</template>
|
||||
</template> <!-- if="[[!shouldShowSyncAccountControl_()]]" -->
|
||||
@@ -123,12 +123,6 @@
|
||||
</div>
|
||||
</cr-link-row>
|
||||
|
||||
- <cr-link-row id="sync-setup"
|
||||
- label="$i18n{syncAndNonPersonalizedServices}"
|
||||
@@ -10,9 +10,9 @@
|
||||
- role-description="$i18n{subpageArrowRoleDescription}"
|
||||
- hidden="[[shouldHideSyncSetupLinkRow_(syncStatus)]]">
|
||||
- </cr-link-row>
|
||||
<template is="dom-if" if="[[shouldHideSyncSetupLinkRow_(syncStatus)]]"
|
||||
restamp>
|
||||
<cr-link-row id="google-services"
|
||||
<cr-link-row id="google-services"
|
||||
label="$i18n{googleServicesPageTitle}"
|
||||
on-click="onGoogleServicesClick_"
|
||||
--- a/chrome/browser/resources/settings/privacy_page/personalization_options.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/personalization_options.html
|
||||
@@ -113,15 +113,6 @@
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1921,6 +1921,12 @@
|
||||
@@ -1963,6 +1963,12 @@
|
||||
users to manage security settings">
|
||||
Security
|
||||
</message>
|
||||
@@ -15,12 +15,12 @@
|
||||
</message>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1964,9 +1964,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -2117,9 +2117,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_LEARN_MORE_ACCESSIBILITY_LABEL},
|
||||
// TODO(crbug.com/40122957): This string is no longer used. Remove.
|
||||
{"permissionsPageTitle", IDS_SETTINGS_PERMISSIONS},
|
||||
- {"permissionsPageDescription", IDS_SETTINGS_PERMISSIONS_DESCRIPTION},
|
||||
+ {"permissionsPageDescription", IDS_SETTINGS_PERMISSIONS_DESCRIPTION_NORMAL},
|
||||
- {"siteSettingsSublabel", IDS_SETTINGS_PERMISSIONS_DESCRIPTION},
|
||||
+ {"siteSettingsSublabel", IDS_SETTINGS_PERMISSIONS_DESCRIPTION_NORMAL},
|
||||
{"securityPageTitle", IDS_SETTINGS_SECURITY},
|
||||
- {"securityPageDescription", IDS_SETTINGS_SECURITY_DESCRIPTION},
|
||||
+ {"securityPageDescription", IDS_SETTINGS_SECURITY_DESCRIPTION_NORMAL},
|
||||
@@ -54,10 +54,10 @@
|
||||
- sub-label="$i18n{securityPageDescription}"
|
||||
- on-click="onSecurityPageClick_"
|
||||
- role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
|
||||
<cr-link-row id="permissionsLinkRow" start-icon="privacy:page-info"
|
||||
<cr-link-row id="siteSettingsLinkRow" start-icon="privacy:page-info"
|
||||
class="hr" label="$i18n{siteSettings}"
|
||||
sub-label="$i18n{permissionsPageDescription}"
|
||||
on-click="onPermissionsPageClick_"
|
||||
sub-label="$i18n{siteSettingsSublabel}"
|
||||
on-click="onSiteSettingsLinkRowClick_"
|
||||
role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
|
||||
+ <cr-link-row id="securityLinkRow" start-icon="privacy:lock"
|
||||
+ class="hr" label="$i18n{securityPageTitle}"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
- enableYourSavedInfoSettingsPage_,
|
||||
- pageVisibility_.yourSavedInfo)]]"
|
||||
- class="cr-nav-menu-item">
|
||||
- <cr-icon icon="settings:assignment"></cr-icon>
|
||||
- <cr-icon icon="settings20:saved-info"></cr-icon>
|
||||
- $i18n{yourSavedInfoPageTitle}
|
||||
- <cr-ripple></cr-ripple>
|
||||
- </a>
|
||||
@@ -19,7 +19,7 @@
|
||||
- pageVisibility_.autofill)]]"
|
||||
- on-click="onAutofillClick_"
|
||||
- class="cr-nav-menu-item">
|
||||
- <cr-icon icon="settings:assignment"></cr-icon>
|
||||
- <cr-icon icon="[[autofillIcon_]]"></cr-icon>
|
||||
- $i18n{autofillPageTitle}
|
||||
- <cr-ripple></cr-ripple>
|
||||
- </a>
|
||||
@@ -28,12 +28,12 @@
|
||||
class="cr-nav-menu-item">
|
||||
--- a/chrome/browser/resources/settings/route.ts
|
||||
+++ b/chrome/browser/resources/settings/route.ts
|
||||
@@ -223,7 +223,7 @@ function createRoutes(): SettingsRoutes
|
||||
r.FONTS = r.APPEARANCE.createChild('/fonts');
|
||||
}
|
||||
|
||||
- if (visibility.autofill !== false) {
|
||||
+ if (visibility.autofill = false) {
|
||||
@@ -239,7 +239,7 @@ function createRoutes(): SettingsRoutes
|
||||
r.PASSKEYS = r.YOUR_SAVED_INFO.createChild('/passkeys');
|
||||
// </if>
|
||||
}
|
||||
- } else if (visibility.autofill !== false) {
|
||||
+ } else if (visibility.autofill = false) {
|
||||
r.AUTOFILL = r.BASIC.createSection(
|
||||
'/autofill', 'autofill', loadTimeData.getString('autofillPageTitle'));
|
||||
r.PAYMENTS = r.AUTOFILL.createChild('/payments');
|
||||
@@ -43,7 +43,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
- <template is="dom-if" if="[[showPage_(pageVisibility_.autofill)]]">
|
||||
- <template is="dom-if" if="[[showAutofillPage_(pageVisibility_.autofill)]]">
|
||||
+ <template is="dom-if" if="[[false]]">
|
||||
<div slot="view" id="autofill">
|
||||
<template is="dom-if" if="[[renderPlugin_(
|
||||
|
||||
@@ -17,25 +17,26 @@
|
||||
// <if expr="not is_chromeos">
|
||||
import './clear_browsing_data_dialog/clear_browsing_data_account_indicator.js';
|
||||
// </if>
|
||||
@@ -21,17 +12,8 @@ import './clear_browsing_data_dialog/cle
|
||||
@@ -20,18 +11,10 @@ import './clear_browsing_data_dialog/cle
|
||||
import './clear_browsing_data_dialog/clear_browsing_data_dialog_v2.js';
|
||||
import './clear_browsing_data_dialog/clear_browsing_data_time_picker.js';
|
||||
import './search_page/search_engines_page.js';
|
||||
import './simple_confirmation_dialog.js';
|
||||
-import './clear_browsing_data_dialog/other_google_data_dialog.js';
|
||||
import './privacy_page/anti_abuse_page.js';
|
||||
import './privacy_page/incognito_tracking_protections_page.js';
|
||||
-import './privacy_page/privacy_guide/privacy_guide_dialog.js';
|
||||
-import './privacy_page/privacy_guide/privacy_guide_page.js';
|
||||
import './privacy_page/security/security_keys_subpage.js';
|
||||
import './privacy_page/security/security_page_v2.js';
|
||||
import './privacy_page/security/security_page.js';
|
||||
import './privacy_page/services_page.js';
|
||||
-import './privacy_sandbox/privacy_sandbox_ad_measurement_subpage.js';
|
||||
-import './privacy_sandbox/privacy_sandbox_fledge_subpage.js';
|
||||
-import './privacy_sandbox/privacy_sandbox_interest_item.js';
|
||||
-import './privacy_sandbox/privacy_sandbox_page.js';
|
||||
import './privacy_page/incognito_tracking_protections_page.js';
|
||||
-import './privacy_sandbox/privacy_sandbox_manage_topics_subpage.js';
|
||||
-import './privacy_sandbox/privacy_sandbox_page.js';
|
||||
-import './privacy_sandbox/privacy_sandbox_topics_subpage.js';
|
||||
import './privacy_page/security_keys_subpage.js';
|
||||
import './privacy_page/security_page_v2.js';
|
||||
import './privacy_page/security_page.js';
|
||||
@@ -93,15 +75,10 @@ import './site_settings/web_printing_pag
|
||||
import './safety_hub/safety_hub_entry_point.js';
|
||||
import './safety_hub/safety_hub_page.js';
|
||||
import './search_page/search_engines_page.js';
|
||||
@@ -92,15 +75,10 @@ import './site_settings/web_printing_pag
|
||||
import './site_settings/window_management_page.js';
|
||||
import './site_settings/zoom_levels.js';
|
||||
// <if expr="not is_chromeos">
|
||||
@@ -51,7 +52,7 @@
|
||||
// Sections
|
||||
import './a11y_page/a11y_page_index.js';
|
||||
import './downloads_page/downloads_page.js';
|
||||
@@ -144,39 +121,8 @@ export {SettingsA11yPageElement, ToastAl
|
||||
@@ -143,40 +121,8 @@ export {SettingsA11yPageElement, ToastAl
|
||||
// <if expr="is_win or is_linux or is_macosx">
|
||||
export {SettingsAxAnnotationsSectionElement} from './a11y_page/ax_annotations_section.js';
|
||||
// </if>
|
||||
@@ -70,6 +71,7 @@
|
||||
-export {SettingsAddressEditDialogElement} from './autofill_page/address_edit_dialog.js';
|
||||
-export {SettingsAddressRemoveConfirmationDialogElement} from './autofill_page/address_remove_confirmation_dialog.js';
|
||||
-export {SettingsAutofillAiAddOrEditDialogElement} from './autofill_page/autofill_ai_add_or_edit_dialog.js';
|
||||
-export {SettingsAutofillAiEntriesListElement} from './autofill_page/autofill_ai_entries_list.js';
|
||||
-export {SettingsAutofillAiSectionElement} from './autofill_page/autofill_ai_section.js';
|
||||
-export {AutofillManagerImpl, AutofillManagerProxy, PersonalDataChangedListener} from './autofill_page/autofill_manager_proxy.js';
|
||||
-export {AutofillAddressOptInChange, SettingsAutofillSectionElement} from './autofill_page/autofill_section.js';
|
||||
@@ -97,9 +99,9 @@
|
||||
export {SettingsHistoryDeletionDialogElement} from './clear_browsing_data_dialog/history_deletion_dialog.js';
|
||||
-export {SettingsOtherGoogleDataDialogElement} from './clear_browsing_data_dialog/other_google_data_dialog.js';
|
||||
export {SettingsPasswordsDeletionDialogElement} from './clear_browsing_data_dialog/passwords_deletion_dialog.js';
|
||||
export {SettingsCollapseRadioButtonElement} from './controls/collapse_radio_button.js';
|
||||
export {ControlledButtonElement} from './controls/controlled_button.js';
|
||||
export {SettingsCheckboxElement} from './controls/settings_checkbox.js';
|
||||
@@ -205,17 +150,12 @@ export {kMenuCloseDelay, SettingsLanguag
|
||||
@@ -206,32 +151,17 @@ export {kMenuCloseDelay, SettingsLanguag
|
||||
export {LanguageSettingsActionType, LanguageSettingsMetricsProxy, LanguageSettingsMetricsProxyImpl, LanguageSettingsPageImpressionType} from './languages_page/languages_settings_metrics_proxy.js';
|
||||
export {LanguageHelper, LanguagesModel} from './languages_page/languages_types.js';
|
||||
export {SettingsSpellCheckPageElement} from './languages_page/spell_check_page.js';
|
||||
@@ -115,10 +117,8 @@
|
||||
-export {SettingsSyncEncryptionOptionsElement} from './people_page/sync_encryption_options.js';
|
||||
-export {SettingsSyncPageElement} from './people_page/sync_page.js';
|
||||
export {NetworkPredictionOptions} from './performance_page/constants.js';
|
||||
export {SettingsAntiAbusePageElement} from './privacy_page/anti_abuse_page.js';
|
||||
export {SettingsCollapseRadioButtonElement} from './privacy_page/collapse_radio_button.js';
|
||||
@@ -225,16 +165,6 @@ export {SettingsDoNotTrackToggleElement}
|
||||
export {FINGERPRINT_CHECK_DARK_URL, FINGERPRINT_CHECK_LIGHT_URL, FINGERPRINT_SCANNED_ICON_DARK, FINGERPRINT_SCANNED_ICON_LIGHT, FingerprintProgressArcElement, PROGRESS_CIRCLE_BACKGROUND_COLOR_DARK, PROGRESS_CIRCLE_BACKGROUND_COLOR_LIGHT, PROGRESS_CIRCLE_FILL_COLOR_DARK, PROGRESS_CIRCLE_FILL_COLOR_LIGHT} from './privacy_page/fingerprint_progress_arc.js';
|
||||
export {SettingsCookiesPageElement} from './privacy_page/cookies_page.js';
|
||||
export {SettingsDoNotTrackToggleElement} from './privacy_page/do_not_track_toggle.js';
|
||||
export {IncognitoTrackingProtectionsPageElement} from './privacy_page/incognito_tracking_protections_page.js';
|
||||
export {SettingsPersonalizationOptionsElement} from './privacy_page/personalization_options.js';
|
||||
-export {PrivacyGuideStep} from './privacy_page/privacy_guide/constants.js';
|
||||
@@ -131,13 +131,13 @@
|
||||
-export {SettingsPrivacyGuidePageElement} from './privacy_page/privacy_guide/privacy_guide_page.js';
|
||||
-export {PrivacyGuideSafeBrowsingFragmentElement} from './privacy_page/privacy_guide/privacy_guide_safe_browsing_fragment.js';
|
||||
-export {PrivacyGuideWelcomeFragmentElement} from './privacy_page/privacy_guide/privacy_guide_welcome_fragment.js';
|
||||
export {SecureDnsResolverType, SettingsSecureDnsElement} from './privacy_page/secure_dns.js';
|
||||
export {SecureDnsInputElement} from './privacy_page/secure_dns_input.js';
|
||||
export {BioEnrollDialogPage, SettingsSecurityKeysBioEnrollDialogElement} from './privacy_page/security_keys_bio_enroll_dialog.js';
|
||||
@@ -246,12 +176,6 @@ export {SecurityKeysSubpageElement} from
|
||||
export {HttpsFirstModeSetting, SafeBrowsingSetting, SettingsSecurityPageElement} from './privacy_page/security_page.js';
|
||||
export {CrLottieElement} from './privacy_page/security/cr_lottie.js';
|
||||
export {FINGERPRINT_CHECK_DARK_URL, FINGERPRINT_CHECK_LIGHT_URL, FINGERPRINT_SCANNED_ICON_DARK, FINGERPRINT_SCANNED_ICON_LIGHT, FingerprintProgressArcElement, PROGRESS_CIRCLE_BACKGROUND_COLOR_DARK, PROGRESS_CIRCLE_BACKGROUND_COLOR_LIGHT, PROGRESS_CIRCLE_FILL_COLOR_DARK, PROGRESS_CIRCLE_FILL_COLOR_LIGHT} from './privacy_page/security/fingerprint_progress_arc.js';
|
||||
export {SecureDnsResolverType, SettingsSecureDnsElement} from './privacy_page/security/secure_dns.js';
|
||||
@@ -246,12 +176,6 @@ export {HttpsFirstModeSetting, SafeBrows
|
||||
export {SecurityPageFeatureRowElement} from './privacy_page/security/security_page_feature_row.js';
|
||||
export {SecuritySettingsBundleSetting, SettingsSecurityPageV2Element} from './privacy_page/security/security_page_v2.js';
|
||||
export {SettingsHeliumServicesPageElement} from './privacy_page/services_page.js';
|
||||
export {SecuritySettingsBundleSetting, SettingsSecurityPageV2Element} from './privacy_page/security_page_v2.js';
|
||||
-export {SettingsPrivacySandboxAdMeasurementSubpageElement} from './privacy_sandbox/privacy_sandbox_ad_measurement_subpage.js';
|
||||
-export {SettingsPrivacySandboxFledgeSubpageElement} from './privacy_sandbox/privacy_sandbox_fledge_subpage.js';
|
||||
-export {PrivacySandboxInterestItemElement} from './privacy_sandbox/privacy_sandbox_interest_item.js';
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
--- a/chrome/browser/resources/settings/people_page/people_page.html
|
||||
+++ b/chrome/browser/resources/settings/people_page/people_page.html
|
||||
@@ -69,20 +69,6 @@
|
||||
<div>
|
||||
|
||||
<if expr="not is_chromeos">
|
||||
- <template is="dom-if" if="[[shouldShowSyncAccountControl_(
|
||||
- syncStatus.syncSystemEnabled, syncStatus.signedInStatus)]]" restamp>
|
||||
- <settings-sync-account-control
|
||||
- sync-status="[[syncStatus]]"
|
||||
- prefs="{{prefs}}"
|
||||
- promo-label-with-account="$i18n{peopleSignInPrompt}"
|
||||
- promo-label-with-no-account="$i18n{peopleSignInPrompt}"
|
||||
- promo-secondary-label-with-account=
|
||||
- "$i18n{peopleSignInPromptSecondaryWithAccount}"
|
||||
- promo-secondary-label-with-no-account=
|
||||
- "$i18n{peopleSignInPromptSecondaryWithNoAccount}">
|
||||
- </settings-sync-account-control>
|
||||
- </template>
|
||||
-
|
||||
<template is="dom-if" if="[[shouldLinkToProfileRow_(
|
||||
syncStatus.syncSystemEnabled, signinAllowed_,
|
||||
syncStatus.signedInState)]]" restamp>
|
||||
@@ -106,53 +92,9 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
- <cr-link-row id="account-subpage-row" on-click="onAccountClick_"
|
||||
- hidden="[[!shouldLinkToAccountSettingsPage_(
|
||||
- syncStatus.signedInState)]]">
|
||||
- <div id="profile-icon"
|
||||
- style="background-image: [[getIconImageSet_(
|
||||
- primaryAccountIconUrl_)]]">
|
||||
- </div>
|
||||
- <div class="cr-row-gap cr-padded-text flex no-min-width">
|
||||
- <div id="account-name" class="text-elide">
|
||||
- [[primaryAccountName_]]
|
||||
- </div>
|
||||
- <div id="account-subtitle" class="secondary">
|
||||
- [[getAccountRowSubtitle_(primaryAccountEmail_, syncStatus)]]
|
||||
- </div>
|
||||
- </div>
|
||||
- </cr-link-row>
|
||||
-
|
||||
- <cr-link-row id="google-services"
|
||||
- label="$i18n{googleServicesPageTitle}"
|
||||
- on-click="onGoogleServicesClick_"
|
||||
- role-description="$i18n{subpageArrowRoleDescription}"
|
||||
- hidden="[[!shouldHideSyncSetupLinkRow_(syncStatus)]]">
|
||||
- </cr-link-row>
|
||||
-
|
||||
- <template is="dom-if" if="[[signinAllowed_]]">
|
||||
- <cr-link-row id="manage-google-account"
|
||||
- label="$i18n{manageGoogleAccount}"
|
||||
- hidden="[[!shouldShowGoogleAccount_]]"
|
||||
- on-click="openGoogleAccount_" external></cr-link-row>
|
||||
-
|
||||
- <cr-link-row id="edit-profile"
|
||||
- label="$i18n{profileNameAndPicture}"
|
||||
- on-click="onProfileClick_" ></cr-link-row>
|
||||
- </template>
|
||||
-
|
||||
<cr-link-row id="importDataDialogTrigger"
|
||||
label="$i18n{importTitle}"
|
||||
on-click="onImportDataClick_"></cr-link-row>
|
||||
-
|
||||
- <template is="dom-if" if="[[isDasherlessProfile_]]">
|
||||
- <div id="sync-not-allowed" class="cr-row continuation">
|
||||
- <cr-icon id="info-icon" icon="cr:info-outline"></cr-icon>
|
||||
- <div id="sync-not-allowed-text" class="flex cr-padded-text">
|
||||
- $i18n{syncUnavailableForNonGoogleAccount}
|
||||
- </div>
|
||||
- </div>
|
||||
- </template>
|
||||
</if>
|
||||
|
||||
<if expr="is_chromeos">
|
||||
@@ -16,8 +16,8 @@
|
||||
</settings-safety-hub-module>
|
||||
</template>
|
||||
</template>
|
||||
--- a/chrome/browser/resources/settings/site_settings_page/site_settings_page.html
|
||||
+++ b/chrome/browser/resources/settings/site_settings_page/site_settings_page.html
|
||||
--- a/chrome/browser/resources/settings/site_settings/site_settings_page.html
|
||||
+++ b/chrome/browser/resources/settings/site_settings/site_settings_page.html
|
||||
@@ -11,17 +11,10 @@
|
||||
learn-more-url="$i18n{exceptionsLearnMoreURL}"
|
||||
route-path$="[[routePath]]">
|
||||
@@ -38,19 +38,20 @@
|
||||
<div class="cr-row first">
|
||||
--- a/chrome/browser/resources/settings/privacy_page/privacy_page_index.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page_index.html
|
||||
@@ -22,23 +22,6 @@
|
||||
@@ -22,24 +22,6 @@
|
||||
</settings-section>
|
||||
</template>
|
||||
|
||||
- <template is="dom-if" if="[[showPage_(pageVisibility_.safetyHub)]]">
|
||||
- <template is="dom-if" if="[[renderView_(
|
||||
- routes_.PRIVACY, currentRoute, inSearchMode)]]">
|
||||
- routes_.PRIVACY, currentRoute, inSearchMode)]]" update-when-false>
|
||||
- <settings-safety-hub-entry-point slot="view" id="safetyHubEntryPoint">
|
||||
- </settings-safety-hub-entry-point>
|
||||
- </template>
|
||||
-
|
||||
- <template is="dom-if" if="[[renderView_(
|
||||
- routes_.SAFETY_HUB, currentRoute, inSearchMode)]]">
|
||||
- routes_.SAFETY_HUB, currentRoute, inSearchMode)]]"
|
||||
- update-when-false>
|
||||
- <!-- TODO(crbug.com/40267370): Make the page searchable.-->
|
||||
- <settings-safety-hub-page slot="view" id="safetyHub" no-search
|
||||
- data-parent-view-id="safetyHubEntryPoint" prefs="{{prefs}}"
|
||||
@@ -59,6 +60,6 @@
|
||||
- </template>
|
||||
- </template>
|
||||
-
|
||||
<template is="dom-if" if="[[renderPrivacyView_(currentRoute, inSearchMode)]]">
|
||||
<template is="dom-if" if="[[renderPrivacyView_(currentRoute, inSearchMode)]]"
|
||||
update-when-false>
|
||||
<settings-privacy-page slot="view" id="privacy" prefs="{{prefs}}"
|
||||
route-path$="[[routes_.PRIVACY.path]]">
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
--- a/chrome/browser/resources/settings/route.ts
|
||||
+++ b/chrome/browser/resources/settings/route.ts
|
||||
@@ -357,7 +357,7 @@ export let routes: SettingsRoutes = Rout
|
||||
// Returns the "effective" route when at chrome://settings/.
|
||||
export function getTopLevelRoute(): Route {
|
||||
if (!loadTimeData.getBoolean('isGuest')) {
|
||||
- return routes.PEOPLE;
|
||||
+ return routes.APPEARANCE;
|
||||
}
|
||||
|
||||
let guestTopLevelRoute = routes.SEARCH;
|
||||
--- a/chrome/browser/resources/settings/settings_menu/settings_menu.html
|
||||
+++ b/chrome/browser/resources/settings/settings_menu/settings_menu.html
|
||||
@@ -57,6 +57,13 @@
|
||||
$i18n{peoplePageTitle}
|
||||
<cr-ripple></cr-ripple>
|
||||
</a>
|
||||
+ <a role="menuitem" id="appearance" href="/appearance"
|
||||
+ hidden="[[!pageVisibility_.appearance]]"
|
||||
+ class="cr-nav-menu-item">
|
||||
+ <cr-icon icon="settings:style"></cr-icon>
|
||||
+ $i18n{appearanceBehaviorPageTitle}
|
||||
+ <cr-ripple></cr-ripple>
|
||||
+ </a>
|
||||
<a role="menuitem" href="/privacy"
|
||||
hidden="[[!pageVisibility_.privacy]]"
|
||||
class="cr-nav-menu-item">
|
||||
@@ -71,21 +78,6 @@
|
||||
$i18n{performancePageTitle}
|
||||
<cr-ripple></cr-ripple>
|
||||
</a>
|
||||
- <a role="menuitem" href="/ai"
|
||||
- hidden="[[!showAiPageMenuItem_(showAiPage_, pageVisibility_.ai)]]"
|
||||
- on-click="onAiPageClick_"
|
||||
- class="cr-nav-menu-item">
|
||||
- <cr-icon icon="settings20:magic"></cr-icon>
|
||||
- $i18n{aiInnovationsPageTitle}
|
||||
- <cr-ripple></cr-ripple>
|
||||
- </a>
|
||||
- <a role="menuitem" id="appearance" href="/appearance"
|
||||
- hidden="[[!pageVisibility_.appearance]]"
|
||||
- class="cr-nav-menu-item">
|
||||
- <cr-icon icon="settings:style"></cr-icon>
|
||||
- $i18n{appearanceBehaviorPageTitle}
|
||||
- <cr-ripple></cr-ripple>
|
||||
- </a>
|
||||
<a role="menuitem" href="/search" class="cr-nav-menu-item">
|
||||
<cr-icon icon="settings:search"></cr-icon>
|
||||
$i18n{searchPageTitle}
|
||||
+5
-5
@@ -1,15 +1,15 @@
|
||||
--- a/chrome/browser/resources/settings/icons.html
|
||||
+++ b/chrome/browser/resources/settings/icons.html
|
||||
@@ -74,7 +74,7 @@ NOTE: Chrome OS icons go in ./chromeos/o
|
||||
<g id="router-off"><path d="m12.105 6.855-1.062-1.062c.289-.277.629-.48 1.02-.606a3.868 3.868 0 0 1 2.374 0c.391.125.731.329 1.02.606l-1.062 1.062a1.042 1.042 0 0 0-.532-.293 2.917 2.917 0 0 0-.613-.062c-.207 0-.414.02-.613.063-.203.042-.38.14-.532.292ZM10 4.75 8.918 3.668a5.052 5.052 0 0 1 1.988-1.273A7.132 7.132 0 0 1 13.25 2c.805 0 1.586.133 2.344.395a5.052 5.052 0 0 1 1.988 1.273L16.5 4.75a4.007 4.007 0 0 0-1.488-.95 5.25 5.25 0 0 0-1.762-.3c-.61 0-1.2.102-1.762.3A4.007 4.007 0 0 0 10 4.75Zm7 10.125-4.5-4.508V8H14v3h1.5c.426 0 .785.145 1.09.438.3.292.437.644.41 1.062ZM4.5 15.5h8.875l-3-3H4.5ZM16 18.125 14.875 17H4.5c-.414 0-.766-.148-1.059-.441A1.449 1.449 0 0 1 3 15.5v-3.004c0-.414.148-.766.441-1.059A1.439 1.439 0 0 1 4.5 11h4.375l-7-7 1.063-1.063 14.124 14.126ZM6.254 14.75c-.211 0-.39-.07-.535-.215a.716.716 0 0 1-.219-.531c0-.211.07-.39.215-.535a.716.716 0 0 1 .531-.219c.211 0 .39.07.535.215.145.14.219.32.219.531 0 .211-.07.39-.215.535a.716.716 0 0 1-.531.219Zm2.75 0c-.211 0-.39-.07-.535-.215a.716.716 0 0 1-.219-.531c0-.211.07-.39.215-.535a.716.716 0 0 1 .531-.219c.211 0 .39.07.535.215.145.14.219.32.219.531 0 .211-.07.39-.215.535a.716.716 0 0 1-.531.219Zm2.75 0c-.211 0-.39-.07-.535-.215a.716.716 0 0 1-.219-.531c0-.211.07-.39.215-.535a.716.716 0 0 1 .531-.219c.211 0 .39.07.535.215.145.14.219.32.219.531 0 .211-.07.39-.215.535a.716.716 0 0 1-.531.219ZM4.5 15.5v-3Zm0 0"></path></g>
|
||||
@@ -82,7 +82,7 @@ NOTE: Chrome OS icons go in ./chromeos/o
|
||||
<g id="rule-folder" viewBox="0 -960 960 960"><path d="m313-305 198-198-57-57-141 142-57-57-56 57 113 113Zm263 0 64-64 64 64 56-56-64-64 64-64-56-56-64 64-64-64-56 56 64 64-64 64 56 56ZM160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h240l80 80h320q33 0 56.5 23.5T880-640v400q0 33-23.5 56.5T800-160H160Zm0-80h640v-400H447l-80-80H160v480Zm0 0v-480 480Z"></path></g>
|
||||
<g id="saved-info"><path d="M7 13C7.93333 13 8.81706 13.1163 9.65039 13.3496C10.5002 13.5662 11.3 13.8998 12.0498 14.3496C12.3497 14.5329 12.5833 14.7831 12.75 15.0996C12.9166 15.4162 12.9999 15.7498 13 16.0996V18H1V16.0996C1.00006 15.7498 1.0834 15.4162 1.25 15.0996C1.41666 14.7831 1.65029 14.5329 1.9502 14.3496C2.7001 13.8997 3.49198 13.5662 4.3252 13.3496C5.17511 13.1163 6.06677 13 7 13ZM7 15C6.31667 15 5.65 15.0833 5 15.25C4.35011 15.4166 3.73364 15.6668 3.15039 16H10.8496C10.2664 15.6668 9.64989 15.4166 9 15.25C8.35 15.0833 7.68333 15 7 15ZM23 18H16V16H23V18ZM23 13H14V11H23V13ZM7 6C7.83333 6 8.54167 6.29167 9.125 6.875C9.70833 7.45833 10 8.16667 10 9C10 9.83333 9.70833 10.5417 9.125 11.125C8.54167 11.7083 7.83333 12 7 12C6.16667 12 5.45833 11.7083 4.875 11.125C4.29167 10.5417 4 9.83333 4 9C4 8.16667 4.29167 7.45833 4.875 6.875C5.45833 6.29167 6.16667 6 7 6ZM7 8C6.71681 8 6.47533 8.1 6.27539 8.2998C6.09206 8.48314 6 8.71667 6 9C6 9.28332 6.09207 9.52461 6.27539 9.72461C6.47539 9.90793 6.71668 10 7 10C7.28333 10 7.51686 9.90794 7.7002 9.72461C7.9 9.52467 8 9.28319 8 9C8 8.71667 7.90019 8.48314 7.7002 8.2998C7.51686 8.09981 7.28333 8 7 8ZM23 8H12V6H23V8Z"></path></g>
|
||||
<g id="search-spark"><path d="M15.9375 17L10.9583 12.0208C10.5417 12.3264 10.0833 12.5694 9.58333 12.75C9.08333 12.9167 8.55556 13 8 13C6.61111 13 5.43056 12.5139 4.45833 11.5417C3.48611 10.5694 3 9.38889 3 8C3 6.61111 3.48611 5.43055 4.45833 4.45833C5.43056 3.48611 6.61111 3 8 3C8.36111 3 8.70139 3.03472 9.02083 3.10417C9.35417 3.17361 9.67361 3.27778 9.97917 3.41667L8.79167 4.58333C8.66667 4.55555 8.53472 4.53472 8.39583 4.52083C8.27083 4.50694 8.13889 4.5 8 4.5C7.02778 4.5 6.20139 4.84028 5.52083 5.52083C4.84028 6.20139 4.5 7.02778 4.5 8C4.5 8.97222 4.84028 9.79861 5.52083 10.4792C6.20139 11.1597 7.02778 11.5 8 11.5C8.80556 11.5 9.51389 11.2708 10.125 10.8125C10.7361 10.3403 11.1458 9.73611 11.3542 9H12.8958C12.8264 9.36111 12.7153 9.70833 12.5625 10.0417C12.4097 10.3611 12.2292 10.6667 12.0208 10.9583L17 15.9375L15.9375 17ZM14.5 10C14.5 8.75 14.0625 7.6875 13.1875 6.8125C12.3125 5.9375 11.25 5.5 10 5.5C11.25 5.5 12.3125 5.0625 13.1875 4.1875C14.0625 3.3125 14.5 2.25 14.5 0.999999C14.5 2.25 14.9375 3.3125 15.8125 4.1875C16.6875 5.0625 17.75 5.5 19 5.5C17.75 5.5 16.6875 5.9375 15.8125 6.8125C14.9375 7.6875 14.5 8.75 14.5 10Z"></path></g>
|
||||
- <g id="security"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.183 4.7L10 1.667 16.816 4.7v4.542c0 4.208-2.908 8.133-6.816 9.091-3.909-.958-6.817-4.883-6.817-9.091V4.7zM15.3 9.992H10V3.325L4.7 5.683V10l5.3-.008v6.775c2.816-.875 4.9-3.65 5.3-6.775z"></path></g>
|
||||
+ <g id="security"><path d="M420-360h120l-23-129q20-10 31.5-29t11.5-42q0-33-23.5-56.5T480-640q-33 0-56.5 23.5T400-560q0 23 11.5 42t31.5 29l-23 129Zm60 280q-139-35-229.5-159.5T160-516v-244l320-120 320 120v244q0 152-90.5 276.5T480-80Zm0-84q104-33 172-132t68-220v-189l-240-90-240 90v189q0 121 68 220t172 132Zm0-316Z"/></g>
|
||||
<g id="select-window"><path d="M17.5 0.833344H6.66671C5.75004 0.833344 5.00004 1.58334 5.00004 2.50001V7.50001H2.50004C1.58337 7.50001 0.833374 8.25001 0.833374 9.16668V17.5C0.833374 18.4167 1.58337 19.1667 2.50004 19.1667H13.3334C14.25 19.1667 15 18.4167 15 17.5V12.5H17.5C18.4167 12.5 19.1667 11.75 19.1667 10.8333V2.50001C19.1667 1.58334 18.4167 0.833344 17.5 0.833344ZM13.3334 17.5H2.50004V10.8333H13.3334V17.5ZM17.5 10.8333H15V9.16668C15 8.25001 14.25 7.50001 13.3334 7.50001H6.66671V4.16668H17.5V10.8333Z"></path></g>
|
||||
<g id="shield" viewBox="0 -960 960 960"><path d="M480-80q-139-35-229.5-159.5T160-516v-244l320-120 320 120v244q0 152-90.5 276.5T480-80Zm0-84q104-33 172-132t68-220v-189l-240-90-240 90v189q0 121 68 220t172 132Zm0-316Z"></path></g>
|
||||
<g id="spam"><path d="M15.0714 6.66667V3.5H16.5V7.38889H15.0714V6.66667ZM15.0714 9.83333H16.5V8.38889H15.0714V9.83333ZM9.71429 10.9444C11.6214 10.9444 15.4286 11.9122 15.4286 13.8333V16H4V13.8333C4 11.9122 7.80714 10.9444 9.71429 10.9444ZM9.71429 4.44444C10.472 4.44444 11.1988 4.74881 11.7346 5.29058C12.2704 5.83235 12.5714 6.56715 12.5714 7.33333C12.5714 8.09951 12.2704 8.83431 11.7346 9.37609C11.1988 9.91786 10.472 10.2222 9.71429 10.2222C8.95652 10.2222 8.2298 9.91786 7.69398 9.37609C7.15816 8.83431 6.85714 8.09951 6.85714 7.33333C6.85714 6.56715 7.15816 5.83235 7.69398 5.29058C8.2298 4.74881 8.95652 4.44444 9.71429 4.44444ZM9.71429 12.3167C7.59286 12.3167 5.35714 13.3711 5.35714 13.8333V14.6278H14.0714V13.8333C14.0714 13.3711 11.8357 12.3167 9.71429 12.3167ZM9.71429 5.81667C9.31646 5.81667 8.93493 5.97646 8.65363 6.26089C8.37232 6.54532 8.21429 6.93109 8.21429 7.33333C8.21429 7.73558 8.37232 8.12135 8.65363 8.40578C8.93493 8.69021 9.31646 8.85 9.71429 8.85C10.1121 8.85 10.4936 8.69021 10.7749 8.40578C11.0563 8.12135 11.2143 7.73558 11.2143 7.33333C11.2143 6.93109 11.0563 6.54532 10.7749 6.26089C10.4936 5.97646 10.1121 5.81667 9.71429 5.81667Z"></path></g>
|
||||
<g id="sync-saved-locally"><path d="M 9.105469 11.707031 L 13.832031 7 L 12.644531 5.8125 L 9.105469 9.355469 L 7.332031 7.582031 L 6.167969 8.75 Z M 0.832031 17.5 L 0.832031 15.832031 L 19.167969 15.832031 L 19.167969 17.5 Z M 3.332031 15 C 2.875 15 2.484375 14.835938 2.15625 14.511719 C 1.828125 14.183594 1.667969 13.792969 1.667969 13.332031 L 1.667969 4.167969 C 1.667969 3.707031 1.828125 3.316406 2.15625 2.988281 C 2.484375 2.664062 2.875 2.5 3.332031 2.5 L 16.667969 2.5 C 17.125 2.5 17.515625 2.664062 17.84375 2.988281 C 18.171875 3.316406 18.332031 3.707031 18.332031 4.167969 L 18.332031 13.332031 C 18.332031 13.792969 18.171875 14.183594 17.84375 14.511719 C 17.515625 14.835938 17.125 15 16.667969 15 Z M 3.332031 13.332031 L 16.667969 13.332031 L 16.667969 4.167969 L 3.332031 4.167969 Z M 3.332031 13.332031 L 3.332031 4.167969 Z M 3.332031 13.332031 "></path></g>
|
||||
@@ -185,7 +185,7 @@ NOTE: Chrome OS icons go in ./chromeos/o
|
||||
@@ -200,7 +200,7 @@ NOTE: Chrome OS icons go in ./chromeos/o
|
||||
|
||||
<!-- Navigation: Security GM3 icon -->
|
||||
<g id="security" viewBox="0 -960 960 960">
|
||||
@@ -20,7 +20,7 @@
|
||||
<if expr="not is_chromeos">
|
||||
--- a/chrome/browser/resources/settings/settings_menu/settings_menu.html
|
||||
+++ b/chrome/browser/resources/settings/settings_menu/settings_menu.html
|
||||
@@ -157,7 +157,7 @@
|
||||
@@ -176,7 +176,7 @@
|
||||
</a>
|
||||
<a role="menuitem" id="about-menu" href="/help"
|
||||
class="cr-nav-menu-item">
|
||||
@@ -0,0 +1,242 @@
|
||||
--- a/chrome/browser/resources/settings/BUILD.gn
|
||||
+++ b/chrome/browser/resources/settings/BUILD.gn
|
||||
@@ -68,6 +68,7 @@ build_webui("build") {
|
||||
"ai_page/ai_tab_organization_subpage.ts",
|
||||
"ai_page/history_search_page.ts",
|
||||
"ai_page/offer_writing_help_page.ts",
|
||||
+ "appearance_page/appearance_behavior_page.ts",
|
||||
"appearance_page/appearance_fonts_page.ts",
|
||||
"appearance_page/appearance_page_index.ts",
|
||||
"appearance_page/appearance_page.ts",
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -508,6 +508,8 @@ void AddAppearanceStrings(content::WebUI
|
||||
Profile* profile) {
|
||||
static constexpr webui::LocalizedString kLocalizedStrings[] = {
|
||||
{"appearancePageTitle", IDS_SETTINGS_APPEARANCE},
|
||||
+ {"appearanceBehaviorPageTitle", IDS_SETTINGS_APPEARANCE_AND_BEHAVIOR},
|
||||
+ {"behaviorPageTitle", IDS_SETTINGS_BEHAVIOR},
|
||||
{"customWebAddress", IDS_SETTINGS_CUSTOM_WEB_ADDRESS},
|
||||
{"enterCustomWebAddress", IDS_SETTINGS_ENTER_CUSTOM_WEB_ADDRESS},
|
||||
{"homeButtonDisabled", IDS_SETTINGS_HOME_BUTTON_DISABLED},
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -195,6 +195,12 @@
|
||||
<message name="IDS_SETTINGS_APPEARANCE" desc="Name of the settings page which displays appearance preferences.">
|
||||
Appearance
|
||||
</message>
|
||||
+ <message name="IDS_SETTINGS_APPEARANCE_AND_BEHAVIOR" desc="Name of the settings page which displays appearance and behavior preferences.">
|
||||
+ Appearance and behavior
|
||||
+ </message>
|
||||
+ <message name="IDS_SETTINGS_BEHAVIOR" desc="Name of the settings page which allows users to control browser behavior.">
|
||||
+ Behavior
|
||||
+ </message>
|
||||
<message name="IDS_SETTINGS_CUSTOM_WEB_ADDRESS" desc="Sub label describing an empty custom web address for the Show home button setting.">
|
||||
Custom
|
||||
</message>
|
||||
--- /dev/null
|
||||
+++ b/chrome/browser/resources/settings/appearance_page/appearance_behavior_page.html
|
||||
@@ -0,0 +1,15 @@
|
||||
+<style include="cr-shared-style settings-shared"></style>
|
||||
+<settings-section page-title="$i18n{behaviorPageTitle}">
|
||||
+
|
||||
+ <settings-toggle-button class="hr" id="autoPinNewTabGroups"
|
||||
+ pref="{{prefs.auto_pin_new_tab_groups}}"
|
||||
+ label="$i18n{autoPinNewTabGroups}">
|
||||
+ </settings-toggle-button>
|
||||
+
|
||||
+ <settings-toggle-button class="hr" id="splitViewDragAndDrop"
|
||||
+ hidden="[[!showSplitViewDragAndDropSetting_]]"
|
||||
+ pref="{{prefs.browser.split_view_drag_and_drop_enabled}}"
|
||||
+ label="$i18n{allowSplitViewDragAndDrop}">
|
||||
+ </settings-toggle-button>
|
||||
+
|
||||
+</settings-section>
|
||||
--- /dev/null
|
||||
+++ b/chrome/browser/resources/settings/appearance_page/appearance_behavior_page.ts
|
||||
@@ -0,0 +1,32 @@
|
||||
+// Copyright 2025 The Helium Authors
|
||||
+// You can use, redistribute, and/or modify this source code under
|
||||
+// the terms of the GPL-3.0 license that can be found in the LICENSE file.
|
||||
+
|
||||
+import '../controls/settings_toggle_button.js';
|
||||
+import '../settings_page/settings_section.js';
|
||||
+
|
||||
+import {PrefsMixin} from '/shared/settings/prefs/prefs_mixin.js';
|
||||
+import {PolymerElement} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
|
||||
+
|
||||
+import {getTemplate} from './appearance_behavior_page.html.js';
|
||||
+
|
||||
+const AppearanceBehaviorPageElementBase = PrefsMixin(PolymerElement);
|
||||
+
|
||||
+export class AppearanceBehaviorPageElement extends
|
||||
+ AppearanceBehaviorPageElementBase {
|
||||
+ static get is() {
|
||||
+ return 'settings-appearance-behavior-page';
|
||||
+ }
|
||||
+
|
||||
+ static get template() {
|
||||
+ return getTemplate();
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+declare global {
|
||||
+ interface HTMLElementTagNameMap {
|
||||
+ 'settings-appearance-behavior-page': AppearanceBehaviorPageElement;
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+customElements.define(AppearanceBehaviorPageElement.is, AppearanceBehaviorPageElement);
|
||||
--- a/chrome/browser/resources/settings/appearance_page/appearance_page_index.html
|
||||
+++ b/chrome/browser/resources/settings/appearance_page/appearance_page_index.html
|
||||
@@ -3,16 +3,23 @@
|
||||
cr-view-manager[show-all] [slot=view][data-parent-view-id] {
|
||||
display: none;
|
||||
}
|
||||
+
|
||||
+ cr-view-manager [slot=view]:not(.closing) {
|
||||
+ position: initial;
|
||||
+ }
|
||||
</style>
|
||||
|
||||
<cr-view-manager id="viewManager" class="cr-centered-card-container"
|
||||
show-all$="[[shouldShowAll]]">
|
||||
- <settings-appearance-page slot="view" id="parent" prefs="{{prefs}}"
|
||||
- route-path$="[[routes_.APPEARANCE.path]]">
|
||||
+ <settings-appearance-page slot="view" id="appearance" prefs="{{prefs}}">
|
||||
</settings-appearance-page>
|
||||
|
||||
+ <settings-appearance-behavior-page slot="view" id="behavior"
|
||||
+ prefs="{{prefs}}">
|
||||
+ </settings-appearance-behavior-page>
|
||||
+
|
||||
<settings-appearance-fonts-page slot="view" id="fonts"
|
||||
- data-parent-view-id="parent" prefs="{{prefs}}"
|
||||
+ data-parent-view-id="appearance" prefs="{{prefs}}"
|
||||
route-path$="[[routes_.FONTS.path]]">
|
||||
</settings-appearance-fonts-page>
|
||||
</cr-view-manager>
|
||||
--- a/chrome/browser/resources/settings/appearance_page/appearance_page_index.ts
|
||||
+++ b/chrome/browser/resources/settings/appearance_page/appearance_page_index.ts
|
||||
@@ -5,6 +5,7 @@
|
||||
import 'chrome://resources/cr_elements/cr_view_manager/cr_view_manager.js';
|
||||
import '/shared/settings/prefs/prefs.js';
|
||||
import './appearance_page.js';
|
||||
+import './appearance_behavior_page.js';
|
||||
import '../settings_shared.css.js';
|
||||
|
||||
import type {CrViewManagerElement} from 'chrome://resources/cr_elements/cr_view_manager/cr_view_manager.js';
|
||||
@@ -52,6 +53,11 @@ export class SettingsAppearancePageIndex
|
||||
declare prefs: {[key: string]: any};
|
||||
declare private routes_: SettingsRoutes;
|
||||
|
||||
+ private showDefaultViews_() {
|
||||
+ this.$.viewManager.switchViews(
|
||||
+ ['appearance', 'behavior'], 'no-animation', 'no-animation');
|
||||
+ }
|
||||
+
|
||||
override currentRouteChanged(newRoute: Route, oldRoute?: Route) {
|
||||
super.currentRouteChanged(newRoute, oldRoute);
|
||||
|
||||
@@ -60,8 +66,7 @@ export class SettingsAppearancePageIndex
|
||||
queueMicrotask(() => {
|
||||
switch (newRoute) {
|
||||
case routes.APPEARANCE:
|
||||
- this.$.viewManager.switchView(
|
||||
- 'parent', 'no-animation', 'no-animation');
|
||||
+ this.showDefaultViews_();
|
||||
break;
|
||||
case routes.FONTS:
|
||||
this.$.viewManager.switchView(
|
||||
@@ -70,8 +75,7 @@ export class SettingsAppearancePageIndex
|
||||
case routes.BASIC:
|
||||
// Switch back to the default view in case they are part of search
|
||||
// results.
|
||||
- this.$.viewManager.switchView(
|
||||
- 'parent', 'no-animation', 'no-animation');
|
||||
+ this.showDefaultViews_();
|
||||
break;
|
||||
default:
|
||||
// Nothing to do. Other parent elements are responsible for updating
|
||||
--- a/chrome/browser/resources/settings/appearance_page/appearance_page.html
|
||||
+++ b/chrome/browser/resources/settings/appearance_page/appearance_page.html
|
||||
@@ -96,28 +96,6 @@
|
||||
</cr-button>
|
||||
</template>
|
||||
</div>
|
||||
- <div id="colorSchemeModeRow" class="cr-row"
|
||||
-<if expr="is_linux">
|
||||
- hidden="[[!showColorSchemeMode_(prefs.extensions.theme.id.value,
|
||||
- systemTheme_)]]"
|
||||
-</if>
|
||||
- >
|
||||
- <div id="colorSchemeModeLabel" class="flex cr-padded-text"
|
||||
- aria-hidden="true">
|
||||
- $i18n{colorSchemeMode}
|
||||
- </div>
|
||||
- <select id="colorSchemeModeSelect" class="md-select"
|
||||
- on-change="onColorSchemeModeChange_"
|
||||
- aria-labelledby="colorSchemeModeLabel">
|
||||
- <template is="dom-repeat" items="[[colorSchemeModeOptions_]]">
|
||||
- <option value="[[item.value]]"
|
||||
- selected="[[isSelectedColorSchemeMode_(
|
||||
- item.value, selectedColorSchemeMode_)]]">
|
||||
- [[item.name]]
|
||||
- </option>
|
||||
- </template>
|
||||
- </select>
|
||||
- </div>
|
||||
<div
|
||||
class="hr"
|
||||
hidden="[[!showHr_(
|
||||
@@ -178,11 +156,6 @@
|
||||
label="$i18n{showTabGroupsInBookmarksBar}">
|
||||
</settings-toggle-button>
|
||||
|
||||
- <settings-toggle-button class="hr" id="autoPinNewTabGroups"
|
||||
- pref="{{prefs.auto_pin_new_tab_groups}}"
|
||||
- label="$i18n{autoPinNewTabGroups}">
|
||||
- </settings-toggle-button>
|
||||
-
|
||||
<template is="dom-if" if="[[showTabSearchPositionSettings_]]" restamp>
|
||||
<div class="cr-row" id="tabSearchPositionRow">
|
||||
<div class="flex cr-padded-text" aria-hidden="true">
|
||||
@@ -286,11 +259,6 @@
|
||||
</settings-toggle-button>
|
||||
</if>
|
||||
</div>
|
||||
- <settings-toggle-button class="hr" id="splitViewDragAndDrop"
|
||||
- hidden="[[!showSplitViewDragAndDropSetting_]]"
|
||||
- pref="{{prefs.browser.split_view_drag_and_drop_enabled}}"
|
||||
- label="$i18n{allowSplitViewDragAndDrop}">
|
||||
- </settings-toggle-button>
|
||||
</settings-section>
|
||||
<template is="dom-if" if="[[showManagedThemeDialog_]]" restamp>
|
||||
<managed-dialog on-close="onManagedDialogClosed_"
|
||||
--- a/chrome/browser/resources/settings/settings_menu/settings_menu.html
|
||||
+++ b/chrome/browser/resources/settings/settings_menu/settings_menu.html
|
||||
@@ -101,8 +101,8 @@
|
||||
<a role="menuitem" id="appearance" href="/appearance"
|
||||
hidden="[[!pageVisibility_.appearance]]"
|
||||
class="cr-nav-menu-item">
|
||||
- <cr-icon icon="settings:palette"></cr-icon>
|
||||
- $i18n{appearancePageTitle}
|
||||
+ <cr-icon icon="settings:style"></cr-icon>
|
||||
+ $i18n{appearanceBehaviorPageTitle}
|
||||
<cr-ripple></cr-ripple>
|
||||
</a>
|
||||
<a role="menuitem" href="/search" class="cr-nav-menu-item">
|
||||
--- a/chrome/browser/resources/settings/icons.html
|
||||
+++ b/chrome/browser/resources/settings/icons.html
|
||||
@@ -113,6 +113,11 @@ NOTE: Chrome OS icons go in ./chromeos/o
|
||||
<cr-iconset name="settings" size="24">
|
||||
<svg>
|
||||
<defs>
|
||||
+ <!-- Style GM3 icon -->
|
||||
+ <g id="style" viewBox="0 -960 960 960">
|
||||
+ <path d="m159-168-34-14q-31-13-41.5-45t3.5-63l72-156v278Zm160 88q-33 0-56.5-23.5T239-160v-240l106 294q3 7 6 13.5t8 12.5h-40Zm206-4q-32 12-62-3t-42-47L243-622q-12-32 2-62.5t46-41.5l302-110q32-12 62 3t42 47l178 488q12 32-2 62.5T827-194L525-84Zm-86-476q17 0 28.5-11.5T479-600q0-17-11.5-28.5T439-640q-17 0-28.5 11.5T399-600q0 17 11.5 28.5T439-560Zm58 400 302-110-178-490-302 110 178 490ZM319-650l302-110-302 110Z"/>
|
||||
+ </g>
|
||||
+
|
||||
<!-- Location disabled GM3 icon -->
|
||||
<g id="location-disabled" viewBox="0 -960 960 960">
|
||||
<path d="m784-286-58-58q17-30 25.5-64t8.5-70q0-116-82-198t-198-82q-36 0-70 8.5T346-724l-58-58q35-21 72.5-35t79.5-19v-80h80v80q125 14 214.5 103.5T838-518h80v80h-80q-5 42-19 79.5T784-286ZM440-40v-80q-125-14-214.5-103.5T122-438H42v-80h80q5-42 19-79.5t35-72.5L56-790l56-56 736 736-58 56-118-120q-35 21-72.5 35T520-120v80h-80Zm40-158q36 0 70-8.5t64-25.5L234-612q-17 30-25.5 64t-8.5 70q0 116 82 198t198 82Z"></path>
|
||||
@@ -24,7 +24,7 @@
|
||||
Signed in to <ph name="EMAIL">$1<ex>abcd@google.com</ex></ph>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1667,8 +1667,8 @@ void AddPersonalizationOptionsStrings(co
|
||||
@@ -1822,8 +1822,8 @@ void AddPersonalizationOptionsStrings(co
|
||||
{"enablePersonalizationLoggingDesc",
|
||||
IDS_SETTINGS_ENABLE_LOGGING_PREF_DESC},
|
||||
{"spellingDescription", IDS_SETTINGS_SPELLING_PREF_DESC},
|
||||
@@ -34,4 +34,4 @@
|
||||
+ {"searchSuggestPrefDesc", IDS_SETTINGS_SUGGEST_PREF_DESC_HELIUM},
|
||||
{"searchAggregatorSuggestPref", IDS_SETTINGS_SEARCH_AGGREGATOR_PREF},
|
||||
{"searchAggregatorSuggestPrefDesc",
|
||||
IDS_SETTINGS_SEARCH_AGGREGATOR_PREF_DESC},
|
||||
IDS_SETTINGS_SEARCH_AGGREGATOR_PREF_DESC},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/search/search.cc
|
||||
+++ b/chrome/browser/search/search.cc
|
||||
@@ -175,37 +175,9 @@ struct NewTabURLDetails {
|
||||
@@ -174,37 +174,9 @@ struct NewTabURLDetails {
|
||||
#if BUILDFLAG(IS_ANDROID)
|
||||
const GURL local_url;
|
||||
#else
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
@@ -197,23 +184,7 @@ void BrowserAppMenuButton::UpdateTextAnd
|
||||
} else if (type_and_severity_.type ==
|
||||
AppMenuIconController::IconType::UPGRADE_NOTIFICATION) {
|
||||
AppMenuIconController::IconType::kUpgradeNotification) {
|
||||
tooltip_message_id = IDS_APPMENU_TOOLTIP_UPDATE_AVAILABLE;
|
||||
-#if BUILDFLAG(GOOGLE_CHROME_BRANDING) && \
|
||||
- (BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX))
|
||||
@@ -52,10 +52,10 @@
|
||||
-#else
|
||||
text = l10n_util::GetStringUTF16(IDS_APP_MENU_BUTTON_UPDATE);
|
||||
-#endif
|
||||
} else if (type_and_severity_.type ==
|
||||
AppMenuIconController::IconType::DEFAULT_BROWSER_PROMPT) {
|
||||
#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_CHROMEOS)
|
||||
@@ -236,37 +207,19 @@ void BrowserAppMenuButton::UpdateTextAnd
|
||||
} else {
|
||||
tooltip_message_id = IDS_APPMENU_TOOLTIP_ALERT;
|
||||
const int text_id =
|
||||
@@ -228,37 +199,19 @@ void BrowserAppMenuButton::UpdateTextAnd
|
||||
}
|
||||
|
||||
bool BrowserAppMenuButton::ShouldPaintBorder() const {
|
||||
@@ -85,7 +85,7 @@
|
||||
|
||||
std::optional<SkColor> BrowserAppMenuButton::GetHighlightColor() const {
|
||||
- const auto* const color_provider = GetColorProvider();
|
||||
- if (type_and_severity_.severity == AppMenuIconController::Severity::NONE) {
|
||||
- if (type_and_severity_.severity == AppMenuIconController::Severity::kNone) {
|
||||
- return std::nullopt;
|
||||
- } else {
|
||||
- return color_provider->GetColor(type_and_severity_.use_primary_colors
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/toolbar/app_menu_model.cc
|
||||
+++ b/chrome/browser/ui/toolbar/app_menu_model.cc
|
||||
@@ -736,9 +736,6 @@ SaveAndShareSubMenuModel::SaveAndShareSu
|
||||
@@ -739,9 +739,6 @@ SaveAndShareSubMenuModel::SaveAndShareSu
|
||||
if (!sharing_hub::SharingIsDisabledByPolicy(browser->profile())) {
|
||||
AddItemWithStringIdAndVectorIcon(
|
||||
this, IDC_COPY_URL, IDS_APP_MENU_COPY_LINK, kLinkChromeRefreshIcon);
|
||||
@@ -10,7 +10,7 @@
|
||||
AddItemWithStringIdAndVectorIcon(this, IDC_QRCODE_GENERATOR,
|
||||
IDS_APP_MENU_CREATE_QR_CODE,
|
||||
kQrCodeChromeRefreshIcon);
|
||||
@@ -882,23 +879,8 @@ void ToolsMenuModel::Build(Browser* brow
|
||||
@@ -885,14 +882,6 @@ void ToolsMenuModel::Build(Browser* brow
|
||||
AddItemWithStringIdAndVectorIcon(this, IDC_NAME_WINDOW, IDS_NAME_WINDOW,
|
||||
kNameWindowIcon);
|
||||
|
||||
@@ -22,6 +22,11 @@
|
||||
- kEditChromeRefreshIcon);
|
||||
- }
|
||||
-
|
||||
if (base::FeatureList::IsEnabled(contextual_tasks::kContextualTasks)) {
|
||||
AddItemWithStringIdAndVectorIcon(
|
||||
this, IDC_SHOW_CONTEXTUAL_TASKS_SIDE_PANEL,
|
||||
@@ -901,15 +890,6 @@ void ToolsMenuModel::Build(Browser* brow
|
||||
|
||||
AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
|
||||
- AddItemWithStringIdAndVectorIcon(this, IDC_SHOW_READING_MODE_SIDE_PANEL,
|
||||
@@ -31,16 +36,18 @@
|
||||
- GetIndexOfCommandId(IDC_SHOW_READING_MODE_SIDE_PANEL).value(),
|
||||
- kReadingModeMenuItem);
|
||||
-
|
||||
AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
|
||||
- AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
-
|
||||
AddItemWithStringIdAndVectorIcon(this, IDC_PERFORMANCE, IDS_SHOW_PERFORMANCE,
|
||||
@@ -1751,22 +1733,8 @@ void AppMenuModel::Build() {
|
||||
kPerformanceIcon);
|
||||
SetElementIdentifierAt(GetIndexOfCommandId(IDC_PERFORMANCE).value(),
|
||||
@@ -1760,22 +1740,8 @@ void AppMenuModel::Build() {
|
||||
// Build (and, by extension, Init) should only be called once.
|
||||
DCHECK_EQ(0u, GetItemCount());
|
||||
|
||||
- if (app_menu_icon_controller_ &&
|
||||
- app_menu_icon_controller_->GetTypeAndSeverity().type ==
|
||||
- AppMenuIconController::IconType::UPGRADE_NOTIFICATION) {
|
||||
- AppMenuIconController::IconType::kUpgradeNotification) {
|
||||
- AddSeparator(ui::SPACING_SEPARATOR);
|
||||
- const auto update_icon = ui::ImageModel::FromVectorIcon(
|
||||
- kBrowserToolsUpdateChromeRefreshIcon,
|
||||
@@ -59,7 +66,7 @@
|
||||
AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
}
|
||||
|
||||
@@ -1803,32 +1771,6 @@ void AppMenuModel::Build() {
|
||||
@@ -1812,43 +1778,6 @@ void AppMenuModel::Build() {
|
||||
|
||||
AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
|
||||
@@ -81,9 +88,20 @@
|
||||
- if (!browser_->profile()->IsGuestSession()) {
|
||||
- sub_menus_.push_back(
|
||||
- std::make_unique<PasswordsAndAutofillSubMenuModel>(this));
|
||||
- AddSubMenuWithStringIdAndVectorIcon(
|
||||
- this, IDC_PASSWORDS_AND_AUTOFILL_MENU, IDS_PASSWORDS_AND_AUTOFILL_MENU,
|
||||
- sub_menus_.back().get(), vector_icons::kPasswordManagerIcon);
|
||||
- bool use_your_saved_info_branding =
|
||||
- base::FeatureList::IsEnabled(
|
||||
- autofill::features::kYourSavedInfoSettingsPage) ||
|
||||
- base::FeatureList::IsEnabled(
|
||||
- autofill::features::kYourSavedInfoBrandingInSettings);
|
||||
- int string_id = use_your_saved_info_branding
|
||||
- ? IDS_SETTINGS_YOUR_SAVED_INFO
|
||||
- : IDS_PASSWORDS_AND_AUTOFILL_MENU;
|
||||
- const gfx::VectorIcon& vector_icon =
|
||||
- use_your_saved_info_branding ? vector_icons::kPersonTextIcon
|
||||
- : vector_icons::kPasswordManagerIcon;
|
||||
- AddSubMenuWithStringIdAndVectorIcon(this, IDC_PASSWORDS_AND_AUTOFILL_MENU,
|
||||
- string_id, sub_menus_.back().get(),
|
||||
- vector_icon);
|
||||
- SetElementIdentifierAt(
|
||||
- GetIndexOfCommandId(IDC_PASSWORDS_AND_AUTOFILL_MENU).value(),
|
||||
- kPasswordAndAutofillMenuItem);
|
||||
@@ -92,7 +110,7 @@
|
||||
if (!browser_->profile()->IsOffTheRecord()) {
|
||||
auto recent_tabs_sub_menu =
|
||||
std::make_unique<RecentTabsSubMenuModel>(provider_, browser_);
|
||||
@@ -1850,7 +1792,7 @@ void AppMenuModel::Build() {
|
||||
@@ -1870,7 +1799,7 @@ void AppMenuModel::Build() {
|
||||
std::make_unique<BookmarkSubMenuModel>(this, browser_);
|
||||
|
||||
AddSubMenuWithStringIdAndVectorIcon(
|
||||
@@ -101,7 +119,7 @@
|
||||
bookmark_sub_menu_model_.get(), kBookmarksListsMenuIcon);
|
||||
SetElementIdentifierAt(GetIndexOfCommandId(IDC_BOOKMARKS_MENU).value(),
|
||||
kBookmarksMenuItem);
|
||||
@@ -1867,23 +1809,10 @@ void AppMenuModel::Build() {
|
||||
@@ -1887,23 +1816,10 @@ void AppMenuModel::Build() {
|
||||
kTabGroupsMenuItem);
|
||||
}
|
||||
|
||||
@@ -129,7 +147,7 @@
|
||||
|
||||
AddItemWithStringIdAndVectorIcon(this, IDC_CLEAR_BROWSING_DATA,
|
||||
IDS_CLEAR_BROWSING_DATA,
|
||||
@@ -1930,9 +1859,6 @@ void AppMenuModel::Build() {
|
||||
@@ -1950,9 +1866,6 @@ void AppMenuModel::Build() {
|
||||
lens::features::kLensOverlay));
|
||||
}
|
||||
|
||||
@@ -139,7 +157,7 @@
|
||||
CreateFindAndEditSubMenu();
|
||||
|
||||
sub_menus_.push_back(
|
||||
@@ -1981,6 +1907,12 @@ void AppMenuModel::Build() {
|
||||
@@ -2001,6 +1914,12 @@ void AppMenuModel::Build() {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -152,7 +170,7 @@
|
||||
AddItemWithStringIdAndVectorIcon(this, IDC_OPTIONS, IDS_SETTINGS,
|
||||
kSettingsMenuIcon);
|
||||
|
||||
@@ -2079,35 +2011,22 @@ bool AppMenuModel::AddDefaultBrowserMenu
|
||||
@@ -2096,34 +2015,21 @@ bool AppMenuModel::AddDefaultBrowserMenu
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -163,23 +181,21 @@
|
||||
- if (!safety_hub_menu_notification_service) {
|
||||
- return false;
|
||||
- }
|
||||
- safety_hub_menu_notification_service->MaybeTriggerControlSurvey();
|
||||
+bool AppMenuModel::AddUpgradeMenuItem() {
|
||||
+ if (app_menu_icon_controller_ &&
|
||||
+ app_menu_icon_controller_->GetTypeAndSeverity().type ==
|
||||
+ AppMenuIconController::IconType::UPGRADE_NOTIFICATION &&
|
||||
+ AppMenuIconController::IconType::kUpgradeNotification &&
|
||||
+ browser_defaults::kShowUpgradeMenuItem) {
|
||||
+ const auto update_icon = ui::ImageModel::FromVectorIcon(
|
||||
+ kBrowserToolsUpdateChromeRefreshIcon,
|
||||
+ ui::kColorMenuIcon, kDefaultIconSize);
|
||||
+ AddItemWithIcon(IDC_UPGRADE_DIALOG, GetUpgradeDialogTitleText(),
|
||||
+ update_icon);
|
||||
|
||||
- std::optional<MenuNotificationEntry> notification =
|
||||
- safety_hub_menu_notification_service->GetNotificationToShow();
|
||||
- if (!notification.has_value()) {
|
||||
- return false;
|
||||
+ AddItemWithIcon(IDC_UPGRADE_DIALOG, GetUpgradeDialogTitleText(),
|
||||
+ update_icon);
|
||||
+
|
||||
+ return true;
|
||||
}
|
||||
- base::UmaHistogramEnumeration("Settings.SafetyHub.Impression",
|
||||
@@ -204,7 +220,7 @@
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
--- a/chrome/browser/ui/toolbar/app_menu_model.h
|
||||
+++ b/chrome/browser/ui/toolbar/app_menu_model.h
|
||||
@@ -280,6 +280,9 @@ class AppMenuModel : public ui::SimpleMe
|
||||
@@ -281,6 +281,9 @@ class AppMenuModel : public ui::SimpleMe
|
||||
// boolean indicating whether any menu items were added.
|
||||
bool AddDefaultBrowserMenuItems();
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/toolbar/app_menu.cc
|
||||
+++ b/chrome/browser/ui/views/toolbar/app_menu.cc
|
||||
@@ -250,7 +250,7 @@ class InMenuButtonBackground : public vi
|
||||
@@ -252,7 +252,7 @@ class InMenuButtonBackground : public vi
|
||||
constexpr int kCircularButtonSize = 28;
|
||||
bounds_rect.ClampToCenteredSize(
|
||||
gfx::Size(kCircularButtonSize, kCircularButtonSize));
|
||||
@@ -9,7 +9,7 @@
|
||||
}
|
||||
const auto* const color_provider = view->GetColorProvider();
|
||||
cc::PaintFlags flags;
|
||||
@@ -1460,21 +1460,8 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
@@ -1476,21 +1476,8 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
PopulateMenu(item, model->GetSubmenuModelAt(i));
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
ProfileAttributesEntry* profile_attributes =
|
||||
GetProfileAttributesFromProfile(browser_->profile());
|
||||
if (profile_attributes &&
|
||||
@@ -1488,7 +1475,6 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
@@ -1504,7 +1491,6 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
break;
|
||||
}
|
||||
case IDC_UPGRADE_DIALOG: {
|
||||
@@ -39,7 +39,7 @@
|
||||
if (const auto upgrade_substring_text = GetUpgradeDialogSubstringText();
|
||||
!upgrade_substring_text.empty()) {
|
||||
item->AddChildView(
|
||||
@@ -1508,18 +1494,6 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
@@ -1524,18 +1510,6 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
break;
|
||||
}
|
||||
case IDC_WEB_APP_UPGRADE_DIALOG: {
|
||||
|
||||
@@ -32,26 +32,25 @@
|
||||
"//printing/buildflags",
|
||||
--- a/components/omnibox/browser/autocomplete_controller.h
|
||||
+++ b/components/omnibox/browser/autocomplete_controller.h
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "components/omnibox/browser/open_tab_provider.h"
|
||||
#include "components/omnibox/browser/tab_group_provider.h"
|
||||
@@ -33,6 +33,7 @@
|
||||
#include "components/omnibox/browser/autocomplete_result.h"
|
||||
#include "components/omnibox/browser/autocomplete_scoring_signals_annotator.h"
|
||||
#include "components/optimization_guide/machine_learning_tflite_buildflags.h"
|
||||
+#include "components/search_engines/template_url_bang_manager.h"
|
||||
#include "third_party/omnibox_proto/types.pb.h"
|
||||
|
||||
class ClipboardProvider;
|
||||
@@ -556,6 +557,8 @@ class AutocompleteController : public Au
|
||||
class BookmarkProvider;
|
||||
@@ -515,6 +516,7 @@ class AutocompleteController : public Au
|
||||
|
||||
// A list of all providers.
|
||||
Providers providers_;
|
||||
|
||||
+ raw_ptr<Bangs::BangManager> bang_manager_ = Bangs::BangManager::GetInstance();
|
||||
+
|
||||
raw_ptr<BookmarkProvider> bookmark_provider_;
|
||||
|
||||
raw_ptr<HistoryQuickProvider> history_quick_provider_;
|
||||
raw_ptr<BookmarkProvider> bookmark_provider_ = nullptr;
|
||||
raw_ptr<HistoryQuickProvider> history_quick_provider_ = nullptr;
|
||||
raw_ptr<DocumentProvider> document_provider_ = nullptr;
|
||||
--- a/components/omnibox/browser/autocomplete_controller.cc
|
||||
+++ b/components/omnibox/browser/autocomplete_controller.cc
|
||||
@@ -93,6 +93,7 @@
|
||||
@@ -94,6 +94,7 @@
|
||||
#include "components/optimization_guide/machine_learning_tflite_buildflags.h"
|
||||
#include "components/search_engines/search_engine_type.h"
|
||||
#include "components/search_engines/template_url.h"
|
||||
@@ -59,7 +58,7 @@
|
||||
#include "components/search_engines/template_url_service.h"
|
||||
#include "components/search_engines/template_url_starter_pack_data.h"
|
||||
#include "components/strings/grit/components_strings.h"
|
||||
@@ -1945,7 +1946,21 @@ void AutocompleteController::UpdateKeywo
|
||||
@@ -1944,7 +1945,21 @@ void AutocompleteController::UpdateKeywo
|
||||
// - For contextual search matches, the description indicates the
|
||||
// alternative UX because they're opened in the side panel.
|
||||
i->description = template_url->AdjustedShortNameForLocaleDirection();
|
||||
@@ -186,7 +185,7 @@
|
||||
#include "components/strings/grit/components_strings.h"
|
||||
#include "components/vector_icons/vector_icons.h"
|
||||
#include "third_party/metrics_proto/omnibox_event.pb.h"
|
||||
@@ -520,6 +522,26 @@ void OmniboxSuggestionButtonRowView::Upd
|
||||
@@ -516,6 +518,26 @@ void OmniboxSuggestionButtonRowView::Upd
|
||||
const auto names = SelectedKeywordView::GetKeywordLabelNames(
|
||||
match().associated_keyword,
|
||||
popup_view_->controller()->client()->GetTemplateURLService());
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
gfx::ImageSkia* GetImageSkiaNamed(int id) {
|
||||
return ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed(id);
|
||||
@@ -351,8 +351,8 @@ class BookmarkBarView::ButtonSeparatorVi
|
||||
@@ -353,8 +353,8 @@ class BookmarkBarView::ButtonSeparatorVi
|
||||
|
||||
public:
|
||||
ButtonSeparatorView() {
|
||||
@@ -20,7 +20,7 @@
|
||||
separator_thickness_ = kBookmarkBarSeparatorThickness;
|
||||
const gfx::Insets border_insets =
|
||||
gfx::Insets::TLBR(0, leading_padding, 0, trailing_padding);
|
||||
@@ -698,7 +698,7 @@ void BookmarkBarView::Layout(PassKey) {
|
||||
@@ -700,7 +700,7 @@ void BookmarkBarView::Layout(PassKey) {
|
||||
}
|
||||
|
||||
int x = GetLeadingMargin();
|
||||
@@ -29,7 +29,7 @@
|
||||
int width = View::width() - x - kBookmarkBarTrailingMargin;
|
||||
|
||||
const int button_height = GetLayoutConstant(BOOKMARK_BAR_BUTTON_HEIGHT);
|
||||
@@ -819,7 +819,7 @@ void BookmarkBarView::Layout(PassKey) {
|
||||
@@ -821,7 +821,7 @@ void BookmarkBarView::Layout(PassKey) {
|
||||
// the bookmark buttons.
|
||||
if (saved_tab_group_bar_width > 0) {
|
||||
// Possibly update the paddings of the separator
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/resources/new_tab_page/app.css
|
||||
+++ b/chrome/browser/resources/new_tab_page/app.css
|
||||
@@ -137,6 +137,7 @@ cr-most-visited {
|
||||
@@ -138,6 +138,7 @@ cr-most-visited {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -10,7 +10,7 @@
|
||||
padding-top: var(--ntp-one-google-bar-height);
|
||||
--- a/chrome/browser/resources/new_tab_page/app.html
|
||||
+++ b/chrome/browser/resources/new_tab_page/app.html
|
||||
@@ -1,137 +1,11 @@
|
||||
@@ -1,91 +1,4 @@
|
||||
-<!-- #html_wrapper_imports_start
|
||||
-import {nothing} from '//resources/lit/v3_0/lit.rollup.js';
|
||||
-#html_wrapper_imports_end -->
|
||||
@@ -47,9 +47,10 @@
|
||||
- <ntp-logo id="logo" ?single-colored="${this.singleColoredLogo_}"
|
||||
- .theme="${this.theme_}" ?hidden="${!this.logoEnabled_}">
|
||||
- </ntp-logo>
|
||||
- ${this.ntpRealboxNextEnabled_ && (this.dropdownIsVisible_ || this.showComposebox_) ? html`
|
||||
- ${this.ntpRealboxNextEnabled_ ? html`
|
||||
- <div id="scrim"
|
||||
- @click="${this.showComposebox_ && this.composeboxCloseByClickOutside_ ? this.onComposeboxClickOutside_ : nothing}"></div>
|
||||
- @click="${this.showComposebox_ && this.composeboxCloseByClickOutside_ ? this.onComposeboxClickOutside_ : nothing}"
|
||||
- ?hidden="${!this.showScrim_}"></div>
|
||||
- ` : ''}
|
||||
- <div id="searchboxContainer">
|
||||
- <cr-searchbox id="searchbox" ?is-dark="${this.isThemeDark_()}"
|
||||
@@ -63,19 +64,20 @@
|
||||
- ?can-show-secondary-side="${this.realboxCanShowSecondarySide}"
|
||||
- ?compose-button-enabled="${this.composeButtonEnabled}"
|
||||
- ?composebox-enabled="${this.composeboxEnabled}"
|
||||
- realbox-layout-mode="${this.realboxLayoutMode_}"
|
||||
- searchbox-layout-mode="${this.realboxLayoutMode_}"
|
||||
- ?ntp-realbox-next-enabled="${this.ntpRealboxNextEnabled_}"
|
||||
- ?cycling-placeholders="${this.searchboxCyclingPlaceholders_}"
|
||||
- @dropdown-visible-changed="${this.onDropdownVisibleChanged_}">
|
||||
- @searchbox-input-focus-changed="${this.onInputFocusChanged_}"
|
||||
- ?ntp-next-features-enabled="${this.ntpNextFeaturesEnabled_}">
|
||||
- </cr-searchbox>
|
||||
- ${this.showComposebox_ ? html`
|
||||
- <ntp-composebox id="composebox" ?is_collapsible="false"
|
||||
- <cr-composebox id="composebox"
|
||||
- ?ntp-realbox-next-enabled="${this.ntpRealboxNextEnabled_}"
|
||||
- @composebox-initialized="${this.onComposeboxInitialized_}"
|
||||
- @close-composebox="${this.closeComposebox_}"
|
||||
- @composebox-dropdown-visible-changed="${this.onDropdownVisibleChanged_}"
|
||||
- realbox-layout-mode="${this.realboxLayoutMode_}">
|
||||
- </ntp-composebox>
|
||||
- @composebox-input-focus-changed="${this.onInputFocusChanged_}"
|
||||
- searchbox-layout-mode="${this.realboxLayoutMode_}">
|
||||
- </cr-composebox>
|
||||
- ` : ''}
|
||||
- ${this.showLensUploadDialog_ ? html`
|
||||
- <ntp-lens-upload-dialog id="lensUploadDialog"
|
||||
@@ -83,6 +85,12 @@
|
||||
- </ntp-lens-upload-dialog>
|
||||
- ` : ''}
|
||||
- </div>
|
||||
- ${this.lazyRender_
|
||||
- && this.ntpNextFeaturesEnabled_ && this.isActionChipsVisible_ ? html`
|
||||
- <ntp-action-chips
|
||||
- @action-chip-click="${this.openComposebox_}">
|
||||
- </ntp-action-chips>
|
||||
- ` : ''}
|
||||
- ${this.lazyRender_ ? html`
|
||||
- <cr-toast id="webstoreToast" duration="10000" hidden>
|
||||
- <div>$i18n{webstoreThemesToastMessage}</div>
|
||||
@@ -94,7 +102,8 @@
|
||||
${this.lazyRender_ ? html`
|
||||
${this.shortcutsEnabled_ ? html`
|
||||
<cr-most-visited id="mostVisited" .theme="${this.theme_?.mostVisited || null}"
|
||||
single-row reflow-on-overflow>
|
||||
@@ -93,54 +6,7 @@ import {nothing} from '//resources/lit/v
|
||||
?expandable-tiles-enabled="${this.ntpNextFeaturesEnabled_}">
|
||||
</cr-most-visited>
|
||||
` : ''}
|
||||
- ${this.middleSlotPromoEnabled_ ? html`
|
||||
@@ -148,7 +157,7 @@
|
||||
<ntp-customize-buttons id="customizeButtons"
|
||||
?modules-shown-to-user="${this.modulesShownToUser}"
|
||||
?show-background-image="${this.showBackgroundImage_}"
|
||||
@@ -153,23 +27,3 @@ import {nothing} from '//resources/lit/v
|
||||
@@ -162,23 +28,3 @@ import {nothing} from '//resources/lit/v
|
||||
` : ''}
|
||||
<div id="contentBottomSpacer"></div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,360 @@
|
||||
--- a/chrome/browser/helium_flag_choices.h
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -30,6 +30,9 @@ namespace helium {
|
||||
constexpr const char kCanvasNoiseCommandLine[] = "fingerprinting-canvas-noise";
|
||||
constexpr const char kAudioContextJitterCommandLine[] = "fingerprinting-audio-context-jitter";
|
||||
constexpr const char kMiddleClickAutoscrollCommandLine[] = "middle-click-autoscroll";
|
||||
+ constexpr const char kHeliumCatUiCommandLine[] = "helium-cat-ui";
|
||||
+ constexpr const char kHeliumCatFixedAddressBarCommandLine[] =
|
||||
+ "helium-cat-fixed-address-bar";
|
||||
|
||||
} // namespace helium
|
||||
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -28,4 +28,12 @@
|
||||
"Middle Click Autoscroll",
|
||||
"Enables autoscroll on middle click. Helium flag, Chromium feature.",
|
||||
kOsDesktop, FEATURE_VALUE_TYPE(blink::features::kHeliumMiddleClickAutoscroll)},
|
||||
+ {helium::kHeliumCatUiCommandLine,
|
||||
+ "[CAT] Helium Compact Action Toolbar UI",
|
||||
+ "Enables the new experimental UI that merges the tab strip and toolbar into one UI component to save vertical screen estate. Early and buggy, stuff will break and/or look weird. Helium flag.",
|
||||
+ kOsDesktop, FEATURE_VALUE_TYPE(features::kHeliumCatUi)},
|
||||
+ {helium::kHeliumCatFixedAddressBarCommandLine,
|
||||
+ "[CAT] Fixed address bar width",
|
||||
+ "Prevents the address bar from shrinking in the CAT layout. Will push toolbar actions outside of bounds on small window sizes, beware. Works only when the main CAT flag is enabled. Early and buggy, stuff will break and/or look weird. Helium flag.",
|
||||
+ kOsDesktop, FEATURE_VALUE_TYPE(features::kHeliumCatFixedAddressBar)},
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -18,6 +18,22 @@
|
||||
|
||||
namespace features {
|
||||
|
||||
+// Helium Compact Action Toolbar UI
|
||||
+BASE_FEATURE(kHeliumCatUi,
|
||||
+ base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
+
|
||||
+BASE_FEATURE(kHeliumCatFixedAddressBar,
|
||||
+ base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
+
|
||||
+bool IsHeliumCatEnabled() {
|
||||
+ return base::FeatureList::IsEnabled(kHeliumCatUi);
|
||||
+}
|
||||
+
|
||||
+bool IsHeliumCatFixedAddressBar() {
|
||||
+ return IsHeliumCatEnabled() && base::FeatureList::IsEnabled(
|
||||
+ kHeliumCatFixedAddressBar);
|
||||
+}
|
||||
+
|
||||
// Enables the tab dragging fallback when full window dragging is not supported
|
||||
// by the platform (e.g. Wayland). See https://crbug.com/896640
|
||||
BASE_FEATURE(kAllowWindowDragUsingSystemDragDrop,
|
||||
--- a/chrome/browser/ui/ui_features.h
|
||||
+++ b/chrome/browser/ui/ui_features.h
|
||||
@@ -20,6 +20,11 @@ namespace features {
|
||||
// All features in alphabetical order. The features should be documented
|
||||
// alongside the definition of their values in the .cc file.
|
||||
|
||||
+BASE_DECLARE_FEATURE(kHeliumCatUi);
|
||||
+BASE_DECLARE_FEATURE(kHeliumCatFixedAddressBar);
|
||||
+bool IsHeliumCatEnabled();
|
||||
+bool IsHeliumCatFixedAddressBar();
|
||||
+
|
||||
// TODO(crbug.com/40598679): Remove this when the tab dragging
|
||||
// interactive_ui_tests pass on Wayland.
|
||||
BASE_DECLARE_FEATURE(kAllowWindowDragUsingSystemDragDrop);
|
||||
--- a/chrome/browser/ui/views/frame/browser_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_view.cc
|
||||
@@ -969,9 +969,13 @@ BrowserView::BrowserView(Browser* browse
|
||||
top_container_ =
|
||||
main_container_->AddChildView(std::make_unique<TopContainerView>(this));
|
||||
|
||||
- tab_strip_region_view_ =
|
||||
- AddChildView(std::make_unique<TabStripRegionView>(this));
|
||||
- tab_strip_region_insertion_index_ = GetIndexOf(tab_strip_region_view_.get());
|
||||
+ // When the CAT feature is enabled, tab strip is in the toolbar.
|
||||
+ // We shouldn't create a duplicate tab strip.
|
||||
+ if (!features::IsHeliumCatEnabled() || !GetIsNormalType()) {
|
||||
+ tab_strip_region_view_ =
|
||||
+ AddChildView(std::make_unique<TabStripRegionView>(this));
|
||||
+ tab_strip_region_insertion_index_ = GetIndexOf(tab_strip_region_view_.get());
|
||||
+ }
|
||||
|
||||
if (tabs::IsVerticalTabsFeatureEnabled()) {
|
||||
auto vertical_tab_strip_container =
|
||||
@@ -1351,7 +1355,8 @@ bool BrowserView::ShouldDrawTabStrip() c
|
||||
// since callers may otherwise try to access it. Note that we can't just check
|
||||
// this alone, as the tabstrip is created unconditionally even for windows
|
||||
// that won't display it.
|
||||
- return tab_strip_region_view_->tab_strip() != nullptr;
|
||||
+ return tab_strip_region_view_ != nullptr &&
|
||||
+ tab_strip_region_view_->tab_strip() != nullptr;
|
||||
}
|
||||
|
||||
bool BrowserView::GetIncognito() const {
|
||||
@@ -4139,9 +4144,10 @@ void BrowserView::ReparentTopContainerFo
|
||||
// The TabStrip must be placed in the same position before the reparenting to
|
||||
// maintain the correct Z-order to ensure it can receive mouse events. See
|
||||
// crbug.com/454852658.
|
||||
- DCHECK(tab_strip_region_insertion_index_);
|
||||
- AddChildViewAt(tab_strip_region_view_.get(),
|
||||
- tab_strip_region_insertion_index_.value());
|
||||
+ if (tab_strip_region_insertion_index_) {
|
||||
+ AddChildViewAt(tab_strip_region_view_.get(),
|
||||
+ tab_strip_region_insertion_index_.value());
|
||||
+ }
|
||||
|
||||
// Reparent PWA views that were moved for immersive mode.
|
||||
if (web_app_frame_toolbar_) {
|
||||
@@ -5196,6 +5202,12 @@ void BrowserView::AddedToWidget() {
|
||||
|
||||
toolbar_->Init();
|
||||
|
||||
+ // When the CAT feature is enabled, the tab strip is owned by the toolbar.
|
||||
+ if (features::IsHeliumCatEnabled() && GetIsNormalType()) {
|
||||
+ tab_strip_region_view_ =
|
||||
+ static_cast<TabStripRegionView*>(toolbar_->GetTabStripRegionView());
|
||||
+ }
|
||||
+
|
||||
UpdateTabSearchBubbleHost();
|
||||
|
||||
// TODO(pbos): Investigate whether the side panels should be creatable when
|
||||
--- a/chrome/browser/ui/views/frame/layout/browser_view_layout_impl_old.cc
|
||||
+++ b/chrome/browser/ui/views/frame/layout/browser_view_layout_impl_old.cc
|
||||
@@ -406,6 +406,12 @@ void BrowserViewLayoutImplOld::LayoutVer
|
||||
void BrowserViewLayoutImplOld::LayoutTabStripRegion(
|
||||
gfx::Rect& available_bounds) {
|
||||
TRACE_EVENT0("ui", "BrowserViewLayout::LayoutTabStripRegion");
|
||||
+
|
||||
+ // If the CAT feature is enabled, then the tab strip is in the toolbar.
|
||||
+ // We shouldn't layout it here.
|
||||
+ if (features::IsHeliumCatEnabled()) {
|
||||
+ return;
|
||||
+ }
|
||||
if (!delegate().ShouldDrawTabStrip()) {
|
||||
SetViewVisibility(views().tab_strip_region_view, false);
|
||||
views().tab_strip_region_view->SetBounds(0, 0, 0, 0);
|
||||
@@ -458,6 +464,15 @@ void BrowserViewLayoutImplOld::LayoutToo
|
||||
toolbar_bounds.set_x(available_bounds.x());
|
||||
toolbar_bounds.set_width(toolbar_bounds.width() - kVerticalTabStripWidth);
|
||||
views().toolbar->SetBoundsRect(toolbar_bounds);
|
||||
+ } else if (features::IsHeliumCatEnabled() && delegate().ShouldDrawTabStrip()) {
|
||||
+ // If CAT is enabled and the tab strip should be drawn, then we're most
|
||||
+ // likely layered under window controls, so we accommodate space for
|
||||
+ // them like a tab strip would.
|
||||
+ gfx::Rect tab_strip_region_bounds(
|
||||
+ delegate().GetBoundsForTabStripRegionInBrowserView());
|
||||
+ int height = toolbar_visible ? views().toolbar->GetPreferredSize().height() : 0;
|
||||
+ views().toolbar->SetBounds(tab_strip_region_bounds.x(), available_bounds.y(),
|
||||
+ tab_strip_region_bounds.width(), height);
|
||||
} else {
|
||||
int height =
|
||||
toolbar_visible ? views().toolbar->GetPreferredSize().height() : 0;
|
||||
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
@@ -57,6 +57,7 @@
|
||||
#include "chrome/browser/ui/views/extensions/extensions_toolbar_coordinator.h"
|
||||
#include "chrome/browser/ui/views/frame/browser_frame_view.h"
|
||||
#include "chrome/browser/ui/views/frame/browser_view.h"
|
||||
+#include "chrome/browser/ui/views/frame/tab_strip_region_view.h"
|
||||
#include "chrome/browser/ui/views/frame/top_container_background.h"
|
||||
#include "chrome/browser/ui/views/global_media_controls/media_toolbar_button_contextual_menu.h"
|
||||
#include "chrome/browser/ui/views/global_media_controls/media_toolbar_button_view.h"
|
||||
@@ -148,6 +149,8 @@ DEFINE_UI_CLASS_PROPERTY_KEY(bool, kActi
|
||||
|
||||
namespace {
|
||||
|
||||
+constexpr int kPreferredCompactWidth = 350;
|
||||
+
|
||||
// Gets the display mode for a given browser.
|
||||
ToolbarView::DisplayMode GetDisplayMode(Browser* browser) {
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
@@ -543,6 +546,26 @@ void ToolbarView::Init() {
|
||||
|
||||
reload_->SetVisible(show_reload_button_.GetValue());
|
||||
|
||||
+ // Tab strip should be in the toolbar only when the CAT feature is enabled.
|
||||
+ if (features::IsHeliumCatEnabled()) {
|
||||
+ auto tab_strip_region_view =
|
||||
+ std::make_unique<TabStripRegionView>(browser_view_);
|
||||
+ tab_strip_region_view_ = tab_strip_region_view.get();
|
||||
+
|
||||
+ // Add the tab strip region view to the container view right after
|
||||
+ // the location bar if it's present.
|
||||
+ auto location_bar_index = location_bar_ ?
|
||||
+ container_view_->GetIndexOf(location_bar_) :
|
||||
+ std::nullopt;
|
||||
+
|
||||
+ if (location_bar_index) {
|
||||
+ container_view_->AddChildViewAt(std::move(tab_strip_region_view),
|
||||
+ *location_bar_index + 1);
|
||||
+ } else {
|
||||
+ container_view_->AddChildView(std::move(tab_strip_region_view));
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
show_avatar_button_.Init(
|
||||
prefs::kShowAvatarButton, prefs,
|
||||
base::BindRepeating(&ToolbarView::OnShowAvatarButtonChanged,
|
||||
@@ -573,12 +596,27 @@ void ToolbarView::Init() {
|
||||
|
||||
InitLayout();
|
||||
|
||||
+ auto flex_preferred = views::FlexSpecification(
|
||||
+ views::MinimumFlexSizeRule::kPreferred,
|
||||
+ views::MaximumFlexSizeRule::kPreferred);
|
||||
+
|
||||
for (auto* button : std::array<views::Button*, 5>{back_, forward_, reload_,
|
||||
home_, avatar_}) {
|
||||
if (button) {
|
||||
button->set_tag(GetViewCommandMap().at(button->GetID()));
|
||||
+ button->SetProperty(views::kFlexBehaviorKey, flex_preferred);
|
||||
}
|
||||
}
|
||||
+
|
||||
+ // Pinned actions (including downloads) and extensions
|
||||
+ // should not shrink in CAT layout.
|
||||
+ if (features::IsHeliumCatEnabled()) {
|
||||
+ pinned_toolbar_actions_container_->SetProperty(
|
||||
+ views::kFlexBehaviorKey, flex_preferred);
|
||||
+ extensions_container_->SetProperty(
|
||||
+ views::kFlexBehaviorKey, flex_preferred);
|
||||
+ }
|
||||
+
|
||||
if (browser_view_->GetSupportsTabStrip()) {
|
||||
browser()->GetTabStripModel()->AddObserver(this);
|
||||
}
|
||||
@@ -703,6 +741,24 @@ bool ToolbarView::IsRectInWindowCaption(
|
||||
return gfx::ToEnclosingRect(rect_in_target_coords_f);
|
||||
};
|
||||
|
||||
+ // Check the tab strip region first if CAT is enabled.
|
||||
+ if (features::IsHeliumCatEnabled() && tab_strip_region_view_) {
|
||||
+ const gfx::Rect tab_strip_rect = get_target_rect(tab_strip_region_view_);
|
||||
+ if (tab_strip_region_view_->GetLocalBounds().Intersects(tab_strip_rect)) {
|
||||
+ // Check if the rect is actually on the tab strip region view.
|
||||
+ if (tab_strip_region_view_->HitTestRect(tab_strip_rect)) {
|
||||
+ auto* tab_strip_region =
|
||||
+ static_cast<TabStripRegionView*>(tab_strip_region_view_);
|
||||
+
|
||||
+ if (tab_strip_region->IsPositionInWindowCaption(tab_strip_rect.origin())) {
|
||||
+ return true;
|
||||
+ }
|
||||
+
|
||||
+ return false;
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
// Check each child view in container_view_ to see if the rect intersects with
|
||||
// any clickable elements. If it does, check if the click is actually on that
|
||||
// element. False if on a clickable element, true if not on a clickable element.
|
||||
@@ -982,8 +1038,12 @@ void ToolbarView::InitLayout() {
|
||||
constexpr int kToolbarActionsFlexOrder = kOrderOffset + 2;
|
||||
constexpr int kExtensionsFlexOrder = kOrderOffset + 3;
|
||||
|
||||
+ auto min_location_bar_flex = features::IsHeliumCatFixedAddressBar() ?
|
||||
+ views::MinimumFlexSizeRule::kPreferred :
|
||||
+ views::MinimumFlexSizeRule::kScaleToMinimum;
|
||||
+
|
||||
const views::FlexSpecification location_bar_flex_rule =
|
||||
- views::FlexSpecification(views::MinimumFlexSizeRule::kScaleToMinimum,
|
||||
+ views::FlexSpecification(min_location_bar_flex,
|
||||
views::MaximumFlexSizeRule::kUnbounded)
|
||||
.WithOrder(kLocationBarFlexOrder);
|
||||
|
||||
@@ -999,6 +1059,12 @@ void ToolbarView::InitLayout() {
|
||||
location_bar_->SetProperty(views::kMarginsKey,
|
||||
gfx::Insets::VH(0, location_bar_margin));
|
||||
|
||||
+ if (features::IsHeliumCatEnabled()) {
|
||||
+ location_bar_->SetPreferredSize(gfx::Size(kPreferredCompactWidth, 0));
|
||||
+ location_bar_->SetProperty(views::kMarginsKey,
|
||||
+ gfx::Insets::TLBR(0, location_bar_margin, 0, 0));
|
||||
+ }
|
||||
+
|
||||
if (extensions_container_) {
|
||||
const views::FlexSpecification extensions_flex_rule =
|
||||
views::FlexSpecification(
|
||||
--- a/chrome/browser/ui/views/toolbar/toolbar_view.h
|
||||
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.h
|
||||
@@ -147,6 +147,9 @@ class ToolbarView : public views::Access
|
||||
// Shows a bookmark bubble and anchors it appropriately.
|
||||
void ShowBookmarkBubble(const GURL& url, bool already_bookmarked);
|
||||
|
||||
+ // Returns the tab strip region view if CAT feature is enabled, nullptr otherwise.
|
||||
+ views::View* GetTabStripRegionView() const { return tab_strip_region_view_.get(); }
|
||||
+
|
||||
// Accessors.
|
||||
Browser* browser() const { return browser_; }
|
||||
views::Button* GetChromeLabsButton() const;
|
||||
@@ -324,6 +327,7 @@ class ToolbarView : public views::Access
|
||||
raw_ptr<BrowserAppMenuButton> app_menu_button_ = nullptr;
|
||||
raw_ptr<views::View> new_tab_button_ = nullptr;
|
||||
raw_ptr<PinnedActionToolbarButton> tab_search_button_ = nullptr;
|
||||
+ raw_ptr<views::View> tab_strip_region_view_ = nullptr;
|
||||
|
||||
const raw_ptr<Browser> browser_;
|
||||
const raw_ptr<BrowserView> browser_view_;
|
||||
--- a/chrome/browser/ui/layout_constants.cc
|
||||
+++ b/chrome/browser/ui/layout_constants.cc
|
||||
@@ -189,6 +189,11 @@ gfx::Insets GetLayoutInsets(LayoutInset
|
||||
case TOOLBAR_INTERIOR_MARGIN: {
|
||||
const int vert = GetLayoutConstant(TOP_BAR_VERTICAL_PADDING);
|
||||
const int horiz = vert * 2;
|
||||
+
|
||||
+ if (features::IsHeliumCatEnabled()) {
|
||||
+ return gfx::Insets::VH(vert, horiz);
|
||||
+ }
|
||||
+
|
||||
return touch_ui ? gfx::Insets() :
|
||||
gfx::Insets::TLBR(0, horiz, vert, horiz);
|
||||
}
|
||||
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
|
||||
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
|
||||
@@ -638,7 +638,7 @@ int OmniboxViewViews::GetUnelidedTextWid
|
||||
}
|
||||
|
||||
gfx::Size OmniboxViewViews::GetMinimumSize() const {
|
||||
- constexpr int kMinCharacters = 20;
|
||||
+ constexpr int kMinCharacters = 32;
|
||||
return gfx::Size(
|
||||
GetFontList().GetExpectedTextWidth(kMinCharacters) + GetInsets().width(),
|
||||
GetPreferredSize().height());
|
||||
--- a/chrome/browser/ui/views/location_bar/location_icon_view.cc
|
||||
+++ b/chrome/browser/ui/views/location_bar/location_icon_view.cc
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "chrome/browser/ui/layout_constants.h"
|
||||
#include "chrome/browser/ui/omnibox/omnibox_edit_model.h"
|
||||
#include "chrome/browser/ui/page_info/page_info_dialog.h"
|
||||
+#include "chrome/browser/ui/ui_features.h"
|
||||
#include "chrome/browser/ui/view_ids.h"
|
||||
#include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h"
|
||||
#include "chrome/browser/ui/views/location_bar/location_bar_util.h"
|
||||
@@ -193,7 +194,7 @@ bool LocationIconView::GetShowText() con
|
||||
url.SchemeIs(extensions::kExtensionScheme) ||
|
||||
url.SchemeIs(url::kFileScheme) ||
|
||||
url.SchemeIs(dom_distiller::kDomDistillerScheme)) {
|
||||
- return true;
|
||||
+ return !features::IsHeliumCatEnabled();
|
||||
}
|
||||
|
||||
return !location_bar_model->GetSecureDisplayText().empty();
|
||||
--- a/chrome/browser/ui/views/frame/tab_strip_region_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/tab_strip_region_view.cc
|
||||
@@ -85,6 +85,14 @@ class FrameGrabHandle : public views::Vi
|
||||
// is full.
|
||||
// TODO(tbergquist): Define this relative to the NTB insets again.
|
||||
if (base::CommandLine::ForCurrentProcess()->HasSwitch("remove-grab-handle")) return gfx::Size(0, 0);
|
||||
+
|
||||
+ // In CAT layout the horizontal space is very tight and toolbar padding
|
||||
+ // partially makes up for the drag handle area, so we don't reserve extra
|
||||
+ // space for an additional grab handle here.
|
||||
+ if (features::IsHeliumCatEnabled()) {
|
||||
+ return gfx::Size(0, 0);
|
||||
+ }
|
||||
+
|
||||
return gfx::Size(27, 0);
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,132 @@
|
||||
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
@@ -1163,18 +1163,7 @@ AppMenuButton* ToolbarView::GetAppMenuBu
|
||||
}
|
||||
|
||||
gfx::Rect ToolbarView::GetFindBarBoundingBox(int contents_bottom) {
|
||||
- if (!browser_->SupportsWindowFeature(Browser::FEATURE_LOCATIONBAR)) {
|
||||
- return gfx::Rect();
|
||||
- }
|
||||
-
|
||||
- if (!location_bar_->IsDrawn()) {
|
||||
- return gfx::Rect();
|
||||
- }
|
||||
-
|
||||
- gfx::Rect bounds =
|
||||
- location_bar_->ConvertRectToWidget(location_bar_->GetLocalBounds());
|
||||
- return gfx::Rect(bounds.x(), bounds.bottom(), bounds.width(),
|
||||
- contents_bottom - bounds.bottom());
|
||||
+ return gfx::Rect();
|
||||
}
|
||||
|
||||
void ToolbarView::FocusToolbar() {
|
||||
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
|
||||
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
|
||||
@@ -476,7 +476,6 @@ void LocationBarView::Init() {
|
||||
params.types_enabled.push_back(PageActionIconType::kIntentPicker);
|
||||
}
|
||||
params.types_enabled.push_back(PageActionIconType::kPwaInstall);
|
||||
- params.types_enabled.push_back(PageActionIconType::kFind);
|
||||
params.types_enabled.push_back(PageActionIconType::kTranslate);
|
||||
params.types_enabled.push_back(PageActionIconType::kZoom);
|
||||
params.types_enabled.push_back(PageActionIconType::kFileSystemAccess);
|
||||
--- a/chrome/browser/ui/find_bar/find_bar_controller.cc
|
||||
+++ b/chrome/browser/ui/find_bar/find_bar_controller.cc
|
||||
@@ -323,25 +323,4 @@ std::u16string FindBarController::GetSel
|
||||
return selected_text;
|
||||
}
|
||||
|
||||
-void FindBarController::UpdatePageAction() {
|
||||
- CHECK(IsPageActionMigrated(PageActionIconType::kFind));
|
||||
- tabs::TabInterface* tab = tabs::TabInterface::GetFromContents(web_contents());
|
||||
- tabs::TabFeatures* tab_features = tab->GetTabFeatures();
|
||||
- if (!tab_features) {
|
||||
- return;
|
||||
- }
|
||||
- // Page actions don't exist for non-normal windows.
|
||||
- page_actions::PageActionController* controller =
|
||||
- tab_features->page_action_controller();
|
||||
- if (!controller) {
|
||||
- return;
|
||||
- }
|
||||
-
|
||||
- if (!find_bar_->IsFindBarVisible()) {
|
||||
- find_bar_page_action_activity_.reset();
|
||||
- controller->Hide(kActionFind);
|
||||
- } else {
|
||||
- controller->Show(kActionFind);
|
||||
- find_bar_page_action_activity_ = controller->AddActivity(kActionFind);
|
||||
- }
|
||||
-}
|
||||
+void FindBarController::UpdatePageAction() {}
|
||||
--- a/chrome/browser/ui/views/find_bar_host.cc
|
||||
+++ b/chrome/browser/ui/views/find_bar_host.cc
|
||||
@@ -627,11 +627,11 @@ gfx::Rect FindBarHost::GetDialogPosition
|
||||
// Place the view in the top right corner of the widget boundaries (top left
|
||||
// for RTL languages). Adjust for the view insets to ensure the border lines
|
||||
// up with the location bar.
|
||||
- int x = find_bar_bounds.x() - insets.left();
|
||||
+ int x = find_bar_bounds.x();
|
||||
if (!base::i18n::IsRTL()) {
|
||||
x += find_bar_bounds.width() - prefsize.width() + insets.width();
|
||||
}
|
||||
- int y = find_bar_bounds.y() - insets.top();
|
||||
+ int y = find_bar_bounds.y();
|
||||
const gfx::Rect view_location(x, y, prefsize.width(), prefsize.height());
|
||||
|
||||
// When we get Find results back, we specify a selection rect, which we
|
||||
--- a/chrome/browser/ui/views/find_bar_view.cc
|
||||
+++ b/chrome/browser/ui/views/find_bar_view.cc
|
||||
@@ -74,6 +74,10 @@ content::WebContents* GetWebContentsFrom
|
||||
}
|
||||
return host->GetFindBarController()->web_contents();
|
||||
}
|
||||
+
|
||||
+constexpr int kBasePadding = 4;
|
||||
+constexpr int kHorizontalGap = 6;
|
||||
+
|
||||
} // namespace
|
||||
|
||||
DEFINE_CLASS_ELEMENT_IDENTIFIER_VALUE(FindBarView, kElementId);
|
||||
@@ -173,18 +177,14 @@ FindBarView::FindBarView(FindBarHost* ho
|
||||
|
||||
ChromeLayoutProvider* layout_provider = ChromeLayoutProvider::Get();
|
||||
const auto horizontal_margin =
|
||||
- gfx::Insets::VH(0, layout_provider->GetDistanceMetric(
|
||||
- views::DISTANCE_UNRELATED_CONTROL_HORIZONTAL) /
|
||||
- 2);
|
||||
+ gfx::Insets::VH(0, kHorizontalGap);
|
||||
const gfx::Insets vector_button =
|
||||
layout_provider->GetInsetsMetric(views::INSETS_VECTOR_IMAGE_BUTTON);
|
||||
const auto vector_button_horizontal_margin =
|
||||
gfx::Insets::TLBR(0, horizontal_margin.left() - vector_button.left(), 0,
|
||||
horizontal_margin.right() - vector_button.right());
|
||||
- const auto toast_control_vertical_margin = gfx::Insets::VH(
|
||||
- layout_provider->GetDistanceMetric(DISTANCE_TOAST_CONTROL_VERTICAL), 0);
|
||||
- const auto toast_label_vertical_margin = gfx::Insets::VH(
|
||||
- layout_provider->GetDistanceMetric(DISTANCE_TOAST_LABEL_VERTICAL), 0);
|
||||
+ const auto toast_control_vertical_margin = gfx::Insets::VH(kBasePadding, 0);
|
||||
+ const auto toast_label_vertical_margin = gfx::Insets::VH(kBasePadding, 0);
|
||||
const auto image_button_margins =
|
||||
toast_control_vertical_margin + vector_button_horizontal_margin;
|
||||
|
||||
@@ -206,8 +206,7 @@ FindBarView::FindBarView(FindBarHost* ho
|
||||
views::Builder<views::BoxLayoutView>()
|
||||
.SetOrientation(views::BoxLayout::Orientation::kHorizontal)
|
||||
.SetInsideBorderInsets(
|
||||
- gfx::Insets(layout_provider->GetInsetsMetric(INSETS_TOAST) -
|
||||
- horizontal_margin))
|
||||
+ gfx::Insets::VH(0, kBasePadding * 2))
|
||||
.AddChildren(
|
||||
views::Builder<views::Textfield>()
|
||||
.CopyAddressTo(&find_text_)
|
||||
@@ -301,8 +300,7 @@ FindBarView::FindBarView(FindBarHost* ho
|
||||
auto border = std::make_unique<views::BubbleBorder>(
|
||||
views::BubbleBorder::NONE, views::BubbleBorder::STANDARD_SHADOW);
|
||||
border->SetColor(kColorFindBarBackground);
|
||||
- border->set_md_shadow_elevation(
|
||||
- layout_provider->GetCornerRadiusMetric(views::Emphasis::kHigh));
|
||||
+ border->set_md_shadow_elevation(kBasePadding);
|
||||
border->set_rounded_corners(gfx::RoundedCornersF(corner_radius));
|
||||
|
||||
SetBackground(std::make_unique<views::BubbleBackground>(border.get()));
|
||||
@@ -0,0 +1,55 @@
|
||||
--- a/chrome/browser/ui/views/frame/layout/browser_view_layout_delegate_impl.cc
|
||||
+++ b/chrome/browser/ui/views/frame/layout/browser_view_layout_delegate_impl.cc
|
||||
@@ -258,7 +258,7 @@ BrowserViewLayoutDelegateImpl::GetBounds
|
||||
layout.trailing_exclusion.vertical_padding);
|
||||
bounds_f.set_height(
|
||||
std::max(max_bound, static_cast<float>(tabstrip_minimum_size.height())));
|
||||
- const int tab_margin = TabStyle::Get()->GetBottomCornerRadius();
|
||||
+ const int tab_margin = TabStyle::Get()->GetBottomCornerRadius() / 2;
|
||||
bounds_f.Inset(gfx::InsetsF::TLBR(
|
||||
0.0f,
|
||||
layout.leading_exclusion.content.width() +
|
||||
--- a/components/remote_cocoa/app_shim/browser_native_widget_window_mac.mm
|
||||
+++ b/components/remote_cocoa/app_shim/browser_native_widget_window_mac.mm
|
||||
@@ -63,13 +63,10 @@ const double kThinControllerHeight = 0.5
|
||||
}
|
||||
|
||||
- (CGFloat)_minXTitlebarWidgetInset {
|
||||
- if (@available(macOS 26, *)) {
|
||||
- // On macOS 26, position the leading window widget the same distance from
|
||||
- // the leading edge of the window as it is from the top of the window. That
|
||||
- // way the window corner can be adjusted to make the widget concentric.
|
||||
- return 13.0;
|
||||
- }
|
||||
- return [super _minXTitlebarWidgetInset];
|
||||
+ // Both macOS 15- and macOS 26+ use the same inset here, but
|
||||
+ // 1px is invisible on macOS 15- for some reason. Ideally it should be 11px here,
|
||||
+ // but since it appears visually to be 11, we just use 10 here for both styles.
|
||||
+ return 10.0;
|
||||
}
|
||||
|
||||
// Override -_getCachedWindowCornerRadius rather than -_cornerRadius because the
|
||||
@@ -78,7 +75,7 @@ const double kThinControllerHeight = 0.5
|
||||
// _getCachedWindowCornerRadius.
|
||||
- (CGFloat)_getCachedWindowCornerRadius {
|
||||
if (@available(macOS 26, *)) {
|
||||
- return 13.0 /* widget position from top and left */ +
|
||||
+ return 10.0 /* widget position from top and left */ +
|
||||
7.0 /* widget radius */;
|
||||
}
|
||||
// Don't mess with the window radius before macOS 26, as concentricity was not
|
||||
--- a/chrome/browser/ui/views/frame/browser_frame_view_mac.mm
|
||||
+++ b/chrome/browser/ui/views/frame/browser_frame_view_mac.mm
|
||||
@@ -465,10 +465,10 @@ BrowserFrameViewMac::GetCaptionButtonBou
|
||||
// not precise.
|
||||
if (@available(macOS 26, *)) {
|
||||
result.bounds = gfx::RectF(12, 10, 62, 18);
|
||||
- result.margins = gfx::OutsetsF::VH(10, 12);
|
||||
+ result.margins = gfx::OutsetsF::VH(0, 6);
|
||||
} else {
|
||||
result.bounds = gfx::RectF(20, 11, 54, 16);
|
||||
- result.margins = gfx::OutsetsF::VH(11, 20);
|
||||
+ result.margins = gfx::OutsetsF::VH(0, 14);
|
||||
}
|
||||
|
||||
// Mirror for when caption buttons are on the "wrong" side.
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/resources/side_panel/customize_chrome/app.ts
|
||||
+++ b/chrome/browser/resources/side_panel/customize_chrome/app.ts
|
||||
@@ -148,23 +148,6 @@ export class AppElement extends AppEleme
|
||||
@@ -155,23 +155,6 @@ export class AppElement extends AppEleme
|
||||
element.scrollIntoView({behavior: 'auto'});
|
||||
});
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
this.pageHandler_.updateAttachedTabState();
|
||||
|
||||
this.setThemeEditableId_ = CustomizeChromeApiProxy.getInstance()
|
||||
@@ -341,10 +324,6 @@ export class AppElement extends AppEleme
|
||||
@@ -346,10 +329,6 @@ export class AppElement extends AppEleme
|
||||
await this.updateComplete;
|
||||
page.focusOnBackButton();
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
--- a/components/omnibox/browser/autocomplete_match.cc
|
||||
+++ b/components/omnibox/browser/autocomplete_match.cc
|
||||
@@ -647,7 +647,7 @@ const gfx::VectorIcon& AutocompleteMatch
|
||||
case KEYWORD_MODE_STARTER_PACK_HISTORY:
|
||||
return vector_icons::kHistoryChromeRefreshIcon;
|
||||
case KEYWORD_MODE_STARTER_PACK_TABS:
|
||||
- return omnibox::kProductChromeRefreshIcon;
|
||||
+ return omnibox::kTabIcon;
|
||||
case KEYWORD_MODE_STARTER_PACK_GEMINI:
|
||||
return omnibox::kSparkIcon;
|
||||
case KEYWORD_MODE_STARTER_PACK_AI_MODE:
|
||||
--- a/components/omnibox/browser/vector_icons/tab.icon
|
||||
+++ b/components/omnibox/browser/vector_icons/tab.icon
|
||||
@@ -2,14 +2,21 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
-CANVAS_DIMENSIONS, 32,
|
||||
-MOVE_TO, 3, 26,
|
||||
-LINE_TO, 7, 12,
|
||||
-LINE_TO, 24, 12,
|
||||
-LINE_TO, 28, 26,
|
||||
-LINE_TO, 24, 26,
|
||||
-LINE_TO, 22, 16,
|
||||
-LINE_TO, 9, 16,
|
||||
-LINE_TO, 7, 26,
|
||||
-LINE_TO, 3, 26,
|
||||
+MOVE_TO, 42, 6,
|
||||
+H_LINE_TO, 6,
|
||||
+R_CUBIC_TO, -2.21, 0, -4, 1.79, -4, 4,
|
||||
+R_V_LINE_TO, 28,
|
||||
+R_CUBIC_TO, 0, 2.21, 1.79, 4, 4, 4,
|
||||
+R_H_LINE_TO, 36,
|
||||
+R_CUBIC_TO, 2.21, 0, 4, -1.79, 4, -4,
|
||||
+V_LINE_TO, 10,
|
||||
+R_CUBIC_TO, 0, -2.21, -1.79, -4, -4, -4,
|
||||
+CLOSE,
|
||||
+R_MOVE_TO, 0, 32,
|
||||
+H_LINE_TO, 6,
|
||||
+V_LINE_TO, 10,
|
||||
+R_H_LINE_TO, 20,
|
||||
+R_V_LINE_TO, 8,
|
||||
+R_H_LINE_TO, 16,
|
||||
+R_V_LINE_TO, 20,
|
||||
CLOSE
|
||||
@@ -1,15 +1,24 @@
|
||||
--- a/chrome/browser/ui/layout_constants.cc
|
||||
+++ b/chrome/browser/ui/layout_constants.cc
|
||||
@@ -29,7 +29,7 @@ int GetLayoutConstant(LayoutConstant con
|
||||
@@ -22,6 +22,8 @@
|
||||
int GetLayoutConstant(LayoutConstant constant) {
|
||||
const bool touch_ui = ui::TouchUiController::Get()->touch_ui();
|
||||
switch (constant) {
|
||||
+ case TOP_BAR_VERTICAL_PADDING:
|
||||
+ return 3;
|
||||
case APP_MENU_PROFILE_ROW_AVATAR_ICON_SIZE:
|
||||
return 24;
|
||||
case APP_MENU_MAXIMUM_CHARACTER_LENGTH:
|
||||
@@ -29,7 +31,7 @@ int GetLayoutConstant(LayoutConstant con
|
||||
case BOOKMARK_BAR_HEIGHT: {
|
||||
// The fixed margin ensures the bookmark buttons appear centered relative
|
||||
// to the white space above and below.
|
||||
- const int bookmark_bar_attached_vertical_margin = 6;
|
||||
+ const int bookmark_bar_attached_vertical_margin = 3;
|
||||
+ const int bookmark_bar_attached_vertical_margin = GetLayoutConstant(TOP_BAR_VERTICAL_PADDING);
|
||||
return GetLayoutConstant(BOOKMARK_BAR_BUTTON_HEIGHT) +
|
||||
bookmark_bar_attached_vertical_margin;
|
||||
}
|
||||
@@ -52,7 +52,7 @@ int GetLayoutConstant(LayoutConstant con
|
||||
@@ -52,7 +54,7 @@ int GetLayoutConstant(LayoutConstant con
|
||||
case LOCATION_BAR_CHILD_INTERIOR_PADDING:
|
||||
return 3;
|
||||
case LOCATION_BAR_CHILD_CORNER_RADIUS:
|
||||
@@ -18,7 +27,7 @@
|
||||
case LOCATION_BAR_CHIP_ICON_SIZE:
|
||||
return 16;
|
||||
case LOCATION_BAR_CHIP_PADDING:
|
||||
@@ -60,7 +60,7 @@ int GetLayoutConstant(LayoutConstant con
|
||||
@@ -60,7 +62,7 @@ int GetLayoutConstant(LayoutConstant con
|
||||
case LOCATION_BAR_ELEMENT_PADDING:
|
||||
return touch_ui ? 3 : 2;
|
||||
case LOCATION_BAR_PAGE_INFO_ICON_VERTICAL_PADDING:
|
||||
@@ -27,7 +36,7 @@
|
||||
case LOCATION_BAR_LEADING_DECORATION_EDGE_PADDING:
|
||||
// TODO(manukh): See comment in `LocationBarView::Layout()`. We have too
|
||||
// many feature permutations that would affect this and other layout
|
||||
@@ -69,11 +69,11 @@ int GetLayoutConstant(LayoutConstant con
|
||||
@@ -69,19 +71,19 @@ int GetLayoutConstant(LayoutConstant con
|
||||
// here once we decide on a permutation.
|
||||
NOTREACHED();
|
||||
case LOCATION_BAR_TRAILING_DECORATION_EDGE_PADDING:
|
||||
@@ -41,7 +50,17 @@
|
||||
case LOCATION_BAR_ICON_SIZE:
|
||||
return touch_ui ? 20 : 16;
|
||||
case LOCATION_BAR_LEADING_ICON_SIZE:
|
||||
@@ -93,12 +93,12 @@ int GetLayoutConstant(LayoutConstant con
|
||||
return GetLayoutConstant(LOCATION_BAR_ICON_SIZE);
|
||||
case LOCATION_BAR_TRAILING_ICON_SIZE:
|
||||
- return 20;
|
||||
+ return 18;
|
||||
case NEW_TAB_BUTTON_LEADING_MARGIN:
|
||||
- return 0;
|
||||
+ return 4;
|
||||
case STAR_RATING_ICON_SIZE:
|
||||
return 14;
|
||||
case TAB_AFTER_TITLE_PADDING:
|
||||
@@ -93,47 +95,43 @@ int GetLayoutConstant(LayoutConstant con
|
||||
case TAB_CLOSE_BUTTON_SIZE:
|
||||
return touch_ui ? 24 : 16;
|
||||
case TAB_HEIGHT:
|
||||
@@ -52,11 +71,12 @@
|
||||
GetLayoutConstant(TAB_STRIP_PADDING);
|
||||
case TAB_STRIP_PADDING:
|
||||
- return 6;
|
||||
+ return 3;
|
||||
+ return GetLayoutConstant(TOP_BAR_VERTICAL_PADDING);
|
||||
case TAB_SEPARATOR_HEIGHT:
|
||||
return touch_ui ? 24 : 20;
|
||||
case TAB_PRE_TITLE_PADDING:
|
||||
@@ -106,28 +106,23 @@ int GetLayoutConstant(LayoutConstant con
|
||||
- return 8;
|
||||
+ return 6;
|
||||
case TAB_STACK_DISTANCE:
|
||||
return touch_ui ? 4 : 6;
|
||||
case TABSTRIP_TOOLBAR_OVERLAP:
|
||||
@@ -76,23 +96,47 @@
|
||||
return touch_ui ? 20 : 16;
|
||||
case TOOLBAR_DIVIDER_SPACING:
|
||||
- return 9;
|
||||
+ return 6;
|
||||
+ return GetLayoutConstant(TOP_BAR_VERTICAL_PADDING) * 2;
|
||||
case TOOLBAR_DIVIDER_WIDTH:
|
||||
- return 2;
|
||||
+ return 1;
|
||||
case TOOLBAR_ELEMENT_PADDING:
|
||||
- return touch_ui ? 0 : 4;
|
||||
+ return touch_ui ? 0 : 3;
|
||||
+ return touch_ui ? 0 : GetLayoutConstant(TOP_BAR_VERTICAL_PADDING);
|
||||
case TOOLBAR_ICON_DEFAULT_MARGIN:
|
||||
- return touch_ui ? 0 : 2;
|
||||
+ return touch_ui ? 0 : 3;
|
||||
+ return touch_ui ? 0 : GetLayoutConstant(TOP_BAR_VERTICAL_PADDING);
|
||||
case TOOLBAR_STANDARD_SPACING:
|
||||
- return touch_ui ? 12 : 9;
|
||||
+ return touch_ui ? 12 : 6;
|
||||
+ return touch_ui ? 12 : GetLayoutConstant(TOP_BAR_VERTICAL_PADDING) * 2;
|
||||
case PAGE_INFO_ICON_SIZE:
|
||||
return 20;
|
||||
case DOWNLOAD_ICON_SIZE:
|
||||
@@ -167,7 +162,7 @@ gfx::Insets GetLayoutInsets(LayoutInset
|
||||
return 20;
|
||||
+ // Used for the tab strip offset.
|
||||
case TOOLBAR_CORNER_RADIUS:
|
||||
- return 8;
|
||||
+ return 2;
|
||||
case VERTICAL_TAB_STRIP_HORIZONTAL_PADDING:
|
||||
return 12;
|
||||
case VERTICAL_TAB_STRIP_BOTTOM_BUTTON_PADDING:
|
||||
@@ -154,13 +152,13 @@ gfx::Insets GetLayoutInsets(LayoutInset
|
||||
return gfx::Insets::VH(8, 20);
|
||||
|
||||
case LOCATION_BAR_ICON_INTERIOR_PADDING:
|
||||
- return gfx::Insets::VH(2, 2);
|
||||
+ return gfx::Insets::VH(2, 3);
|
||||
|
||||
case LOCATION_BAR_PAGE_INFO_ICON_PADDING:
|
||||
return touch_ui ? gfx::Insets::VH(5, 10) : gfx::Insets::VH(4, 4);
|
||||
|
||||
case LOCATION_BAR_PAGE_ACTION_ICON_PADDING:
|
||||
- return touch_ui ? gfx::Insets::VH(5, 10) : gfx::Insets::VH(2, 2);
|
||||
+ return GetLayoutInsets(LOCATION_BAR_ICON_INTERIOR_PADDING);
|
||||
|
||||
case TOOLBAR_ACTION_VIEW: {
|
||||
// TODO(afakhry): Unify all toolbar button sizes on all platforms.
|
||||
@@ -169,7 +167,7 @@ gfx::Insets GetLayoutInsets(LayoutInset
|
||||
}
|
||||
|
||||
case TOOLBAR_BUTTON:
|
||||
@@ -101,7 +145,7 @@
|
||||
|
||||
case BROWSER_APP_MENU_CHIP_PADDING:
|
||||
if (touch_ui) {
|
||||
@@ -183,11 +178,11 @@ gfx::Insets GetLayoutInsets(LayoutInset
|
||||
@@ -185,11 +183,15 @@ gfx::Insets GetLayoutInsets(LayoutInset
|
||||
if (touch_ui) {
|
||||
return GetLayoutInsets(TOOLBAR_BUTTON);
|
||||
} else {
|
||||
@@ -109,9 +153,25 @@
|
||||
+ return gfx::Insets::TLBR(4, 5, 4, 4);
|
||||
}
|
||||
|
||||
case TOOLBAR_INTERIOR_MARGIN:
|
||||
- case TOOLBAR_INTERIOR_MARGIN:
|
||||
- return touch_ui ? gfx::Insets::VH(4, 0) : gfx::Insets::VH(6, 5);
|
||||
+ return touch_ui ? gfx::Insets() : gfx::Insets::TLBR(0, 6, 3, 6);
|
||||
+ case TOOLBAR_INTERIOR_MARGIN: {
|
||||
+ const int vert = GetLayoutConstant(TOP_BAR_VERTICAL_PADDING);
|
||||
+ const int horiz = vert * 2;
|
||||
+ return touch_ui ? gfx::Insets() :
|
||||
+ gfx::Insets::TLBR(0, horiz, vert, horiz);
|
||||
+ }
|
||||
|
||||
case WEBUI_TAB_STRIP_TOOLBAR_INTERIOR_MARGIN:
|
||||
return gfx::Insets::VH(4, 0);
|
||||
--- a/chrome/browser/ui/layout_constants.h
|
||||
+++ b/chrome/browser/ui/layout_constants.h
|
||||
@@ -10,6 +10,8 @@
|
||||
#include "ui/gfx/geometry/size.h"
|
||||
|
||||
enum LayoutConstant {
|
||||
+ // The vertical padding of the tab strip and the toolbar.
|
||||
+ TOP_BAR_VERTICAL_PADDING,
|
||||
// The size of the avatar icon in the profile row of the app menu.
|
||||
APP_MENU_PROFILE_ROW_AVATAR_ICON_SIZE,
|
||||
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
--- a/chrome/browser/ui/views/location_bar/intent_chip_button.cc
|
||||
+++ b/chrome/browser/ui/views/location_bar/intent_chip_button.cc
|
||||
@@ -87,14 +87,10 @@ bool IntentChipButton::GetShowChip() con
|
||||
}
|
||||
|
||||
bool IntentChipButton::GetChipExpanded() const {
|
||||
- auto* tab_helper = GetTabHelper();
|
||||
- return tab_helper && tab_helper->ShouldShowExpandedChip();
|
||||
+ return false;
|
||||
}
|
||||
|
||||
ui::ImageModel IntentChipButton::GetAppIcon() const {
|
||||
- if (auto* tab_helper = GetTabHelper()) {
|
||||
- return tab_helper->app_icon();
|
||||
- }
|
||||
return ui::ImageModel();
|
||||
}
|
||||
|
||||
--- a/chrome/browser/ui/views/location_bar/omnibox_chip_button.cc
|
||||
+++ b/chrome/browser/ui/views/location_bar/omnibox_chip_button.cc
|
||||
@@ -56,8 +56,7 @@ OmniboxChipButton::OmniboxChipButton(Pre
|
||||
SetFocusBehavior(views::View::FocusBehavior::ALWAYS);
|
||||
// Equalizing padding on the left, right and between icon and label.
|
||||
SetImageLabelSpacing(kChipImagePadding);
|
||||
- SetCustomPadding(
|
||||
- gfx::Insets::VH(kChipVerticalPadding, kChipHorizontalPadding));
|
||||
+ SetCustomPadding(GetLayoutInsets(LOCATION_BAR_PAGE_ACTION_ICON_PADDING));
|
||||
label()->SetTextStyle(views::style::STYLE_BODY_4_EMPHASIS);
|
||||
SetCornerRadius(GetLayoutConstant(LOCATION_BAR_CHILD_CORNER_RADIUS));
|
||||
animation_ = std::make_unique<gfx::SlideAnimation>(this);
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user