mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Compare commits
117 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8b563c0d01 | |||
| 824cf71ff3 | |||
| 63be29609d | |||
| d1cdab8975 | |||
| b5c22404c6 | |||
| d6f4210a41 | |||
| a939d1d8b0 | |||
| 76fbefad51 | |||
| 95a1030f70 | |||
| 7375679377 | |||
| 2ee49a1059 | |||
| 1be2432a9a | |||
| 5d96434aa0 | |||
| 56d1a136ab | |||
| 688af14009 | |||
| 1341de3a37 | |||
| 4e6eda294f | |||
| f32b04755e | |||
| 75d044b9a6 | |||
| 0ec967b7d6 | |||
| 5354646288 | |||
| f03eea9638 | |||
| 42e783c0bb | |||
| 4cfbfe2710 | |||
| 7c51e1f0f6 | |||
| b45d47cf07 | |||
| c4482c5655 | |||
| 8930f2ae91 | |||
| 714939df2c | |||
| db5ddc92c1 | |||
| e64526ce10 | |||
| b82e2921d4 | |||
| a16ae4bd88 | |||
| 07018baf2e | |||
| f4937943ca | |||
| d27f87f754 | |||
| a2b3cd02bb | |||
| 20915c82d9 | |||
| 7c45f2fcd6 | |||
| 8cb698e496 | |||
| 009a2e74c7 | |||
| b06b34b5e9 | |||
| b102956f52 | |||
| 1676a4071e | |||
| 89699b019b | |||
| 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 |
+2
-2
@@ -36,7 +36,7 @@ validate_with_source_task:
|
||||
rm -rf chromium_download_cache
|
||||
mkdir chromium_download_cache
|
||||
# Attempt to download tarball
|
||||
./utils/downloads.py retrieve -i extras.ini -c chromium_download_cache &
|
||||
./utils/downloads.py retrieve -i deps.ini -c chromium_download_cache &
|
||||
if ! ./utils/downloads.py retrieve -i downloads.ini -c chromium_download_cache ; then
|
||||
# If tarball is not available, attempt a clone
|
||||
./utils/clone.py -o chromium_src
|
||||
@@ -48,7 +48,7 @@ validate_with_source_task:
|
||||
wait
|
||||
unpack_source_script: |
|
||||
if [ ! -d chromium_src ]; then
|
||||
for file in downloads extras; do
|
||||
for file in downloads deps; do
|
||||
./utils/downloads.py unpack -i $file.ini -c chromium_download_cache chromium_src
|
||||
done
|
||||
fi
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
*.patch linguist-language=C++
|
||||
@@ -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:
|
||||
@@ -36,6 +44,7 @@ runs:
|
||||
|
||||
# get versions and compare them after submodule update
|
||||
version_before=$(get_version)
|
||||
export version_before
|
||||
|
||||
pushd "$HELIUM_DIR"
|
||||
git fetch origin main
|
||||
@@ -56,10 +65,11 @@ runs:
|
||||
fi
|
||||
|
||||
version_after=$(get_version)
|
||||
export version_after
|
||||
|
||||
mkdir -p build/{src,download_cache}
|
||||
|
||||
for file in "$HELIUM_DIR/downloads.ini" "$HELIUM_DIR/extras.ini" "$PLATFORM_DIR/downloads.ini"; do
|
||||
for file in "$HELIUM_DIR/downloads.ini" "$HELIUM_DIR/deps.ini" "$PLATFORM_DIR/downloads.ini"; do
|
||||
if ! [ -f "$file" ]; then continue; fi
|
||||
|
||||
run_upstream utils/downloads.py retrieve \
|
||||
@@ -86,6 +96,12 @@ runs:
|
||||
git config user.name "helium-bot"
|
||||
git config user.email "helium-bot@imput.net"
|
||||
git add -u patches helium-chromium revision.txt
|
||||
|
||||
PLATFORM_HOOK="$PLATFORM_DIR/.github/bump-hook.sh"
|
||||
if [ -f "$PLATFORM_HOOK" ]; then
|
||||
"$PLATFORM_HOOK";
|
||||
fi
|
||||
|
||||
if ! git status | tail -1 | grep -q 'nothing to commit'; then
|
||||
git commit -m "$TITLE"
|
||||
git push origin update
|
||||
|
||||
@@ -1 +1 @@
|
||||
142.0.7444.134
|
||||
143.0.7499.169
|
||||
|
||||
@@ -7,10 +7,10 @@ sha256 = 00a87050fa3f941d04d67fb5763991e0b8ea399a88b505ab0e56dd263f06864c
|
||||
output_path = ./third_party/search_engines_data/resources_internal
|
||||
|
||||
[onboarding]
|
||||
version = 202511061712
|
||||
version = 202601021812
|
||||
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 = 5728d2c6806f3f918f7fd0b358935fd4daa34c1117703c564917ede1dac8e199
|
||||
sha256 = c184dd8ece06c032c7202efd1c1da5a64f287f25c938e552fb43b864444ca1c2
|
||||
output_path = ./components/helium_onboarding
|
||||
|
||||
# If you are bumping this, you *NEED* to re-strip the assets.json
|
||||
+28
-6
@@ -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() \
|
||||
@@ -98,11 +101,11 @@ def c_all_new_headers_have_correct_guard():
|
||||
for _line in file[0]:
|
||||
line = str(_line)
|
||||
|
||||
if '#ifndef' in line:
|
||||
if expected["ifndef"] in line:
|
||||
assert found["define"] is None
|
||||
assert found["ifndef"] is None
|
||||
found["ifndef"] = line
|
||||
elif '#define' in line:
|
||||
elif expected["define"] in line:
|
||||
assert found["ifndef"] is not None
|
||||
assert found["define"] is None
|
||||
found["define"] = line
|
||||
@@ -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,8 @@ 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_generator_unittest.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 +2176,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 +2253,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 +2274,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 +2719,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 +2791,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 +2894,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 +2901,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 +2979,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 +3206,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 +3225,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 +3316,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 +3420,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 +3645,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 +3687,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 +3737,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 +3870,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 +3961,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 +3976,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 +4096,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 +4146,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 +4361,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 +4435,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 +4623,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 +4733,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 +4836,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 +4861,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 +4920,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 +4997,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 +5118,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 +5205,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 +5378,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 +5586,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 +5601,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 +5706,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
|
||||
@@ -5733,6 +5764,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
|
||||
@@ -5894,7 +5926,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
|
||||
@@ -6001,10 +6032,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
|
||||
@@ -6358,6 +6391,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
|
||||
@@ -6399,6 +6433,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
|
||||
@@ -7426,11 +7461,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
|
||||
@@ -7438,6 +7473,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
|
||||
@@ -7461,6 +7497,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
|
||||
@@ -7517,8 +7554,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
|
||||
@@ -7681,10 +7718,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
|
||||
@@ -7694,6 +7727,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
|
||||
@@ -7711,16 +7745,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
|
||||
@@ -8055,8 +8092,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
|
||||
@@ -8089,20 +8124,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
|
||||
@@ -8147,8 +8189,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
|
||||
@@ -8168,10 +8213,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
|
||||
@@ -8208,6 +8253,7 @@ third_party/devtools-frontend/src/front_end/panels/timeline/TimelineTreeView.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/timeline/TimelineUIUtils.test.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/timeline/TimingsTrackAppender.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/timeline/components/DetailsView.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/timeline/components/ExportTraceOptions.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/timeline/components/FieldSettingsDialog.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/timeline/components/LiveMetricsView.ts
|
||||
third_party/devtools-frontend/src/front_end/panels/timeline/components/SidebarInsightsTab.test.ts
|
||||
@@ -8354,6 +8400,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
|
||||
@@ -8391,6 +8438,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
|
||||
@@ -8417,6 +8465,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
|
||||
@@ -8456,6 +8505,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
|
||||
@@ -8885,6 +8935,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
|
||||
@@ -8892,7 +8949,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
|
||||
@@ -9334,6 +9390,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
|
||||
@@ -9345,6 +9402,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
|
||||
@@ -9362,6 +9420,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
|
||||
@@ -9442,6 +9501,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
|
||||
@@ -9855,6 +9915,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
|
||||
@@ -11346,8 +11407,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
|
||||
@@ -11437,9 +11498,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
|
||||
@@ -12154,6 +12212,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
|
||||
@@ -12214,6 +12273,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
|
||||
@@ -12329,7 +12391,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
|
||||
@@ -13012,8 +13073,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
|
||||
@@ -13021,6 +13082,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
|
||||
@@ -14374,6 +14436,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
|
||||
@@ -14392,6 +14455,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
|
||||
@@ -14404,7 +14468,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
|
||||
@@ -14523,7 +14586,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
|
||||
@@ -14533,7 +14595,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
|
||||
@@ -14552,10 +14613,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
|
||||
@@ -14648,6 +14705,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
|
||||
@@ -15026,8 +15085,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
|
||||
@@ -15085,9 +15148,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
|
||||
@@ -15170,6 +15233,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
|
||||
@@ -15180,6 +15244,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
|
||||
@@ -15237,7 +15303,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
|
||||
@@ -15250,8 +15315,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
|
||||
@@ -15296,6 +15359,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
|
||||
@@ -15463,7 +15527,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
|
||||
@@ -15570,6 +15633,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
|
||||
@@ -15618,7 +15682,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
|
||||
@@ -15707,6 +15770,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
|
||||
@@ -15968,6 +16034,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
|
||||
@@ -15984,7 +16051,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
|
||||
@@ -16075,6 +16141,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
|
||||
@@ -16180,6 +16247,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
|
||||
@@ -16314,12 +16382,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
|
||||
@@ -16370,6 +16438,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
-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,15 +267,15 @@ 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 @@
|
||||
#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"
|
||||
@@ -58,6 +58,7 @@
|
||||
#include "chrome/browser/ui/webui/settings/about_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/accessibility_main_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/appearance_handler.h"
|
||||
+#include "chrome/browser/ui/webui/settings/brave_import_data_handler.h"
|
||||
#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(
|
||||
#include "chrome/browser/ui/webui/settings/browser_lifetime_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/downloads_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/font_handler.h"
|
||||
@@ -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,69 +0,0 @@
|
||||
# Disable some background communication with clients2.google.com
|
||||
|
||||
--- a/chrome/browser/chrome_content_browser_client.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client.cc
|
||||
@@ -2790,24 +2790,6 @@ void ChromeContentBrowserClient::AppendE
|
||||
command_line->AppendSwitchASCII(switches::kMetricsClientID,
|
||||
client_info->client_id);
|
||||
}
|
||||
-#elif BUILDFLAG(IS_POSIX)
|
||||
-#if !BUILDFLAG(IS_ANDROID)
|
||||
- pid_t pid;
|
||||
- if (crash_reporter::GetHandlerSocket(nullptr, &pid)) {
|
||||
- command_line->AppendSwitchASCII(
|
||||
- crash_reporter::switches::kCrashpadHandlerPid,
|
||||
- base::NumberToString(pid));
|
||||
- }
|
||||
-#endif
|
||||
- std::string switch_value;
|
||||
- std::unique_ptr<metrics::ClientInfo> client_info =
|
||||
- GoogleUpdateSettings::LoadMetricsClientInfo();
|
||||
- if (client_info) {
|
||||
- switch_value = client_info->client_id;
|
||||
- }
|
||||
- switch_value.push_back(',');
|
||||
- switch_value.append(chrome::GetChannelName(chrome::WithExtendedStable(true)));
|
||||
- command_line->AppendSwitchASCII(switches::kEnableCrashReporter, switch_value);
|
||||
#endif
|
||||
|
||||
if (logging::DialogsAreSuppressed()) {
|
||||
--- a/components/crash/core/app/crashpad.cc
|
||||
+++ b/components/crash/core/app/crashpad.cc
|
||||
@@ -72,6 +72,12 @@ void InitializeDatabasePath(const base::
|
||||
}
|
||||
|
||||
bool InitializeCrashpadImpl(bool initial_client,
|
||||
+ const std::string& a, const std::string& b, const base::FilePath& c,
|
||||
+ const std::vector<std::string>& d, bool e, const std::vector<base::FilePath>& f) {
|
||||
+ return false;
|
||||
+}
|
||||
+[[maybe_unused]]
|
||||
+bool DeadInitializeCrashpadImpl(bool initial_client,
|
||||
const std::string& process_type,
|
||||
const std::string& user_data_dir,
|
||||
const base::FilePath& exe_path,
|
||||
--- a/components/gwp_asan/client/gwp_asan.cc
|
||||
+++ b/components/gwp_asan/client/gwp_asan.cc
|
||||
@@ -344,6 +344,11 @@ GWP_ASAN_EXPORT std::optional<AllocatorS
|
||||
|
||||
// Exported for testing.
|
||||
GWP_ASAN_EXPORT std::optional<AllocatorSettings> GetAllocatorSettings(
|
||||
+ const base::Feature& a, bool b, std::string_view c) {
|
||||
+ return std::nullopt;
|
||||
+}
|
||||
+[[maybe_unused]]
|
||||
+std::optional<AllocatorSettings> DeadGetAllocatorSettings(
|
||||
const base::Feature& feature,
|
||||
bool boost_sampling,
|
||||
std::string_view process_type) {
|
||||
--- a/third_party/crashpad/crashpad/client/crashpad_client_linux.cc
|
||||
+++ b/third_party/crashpad/crashpad/client/crashpad_client_linux.cc
|
||||
@@ -747,8 +747,6 @@ void CrashpadClient::CrashWithoutDump(co
|
||||
// static
|
||||
void CrashpadClient::SetFirstChanceExceptionHandler(
|
||||
FirstChanceHandler handler) {
|
||||
- DCHECK(SignalHandler::Get());
|
||||
- SignalHandler::Get()->SetFirstChanceHandler(handler);
|
||||
}
|
||||
|
||||
// static
|
||||
@@ -1,12 +0,0 @@
|
||||
--- a/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc
|
||||
+++ b/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc
|
||||
@@ -17,9 +17,6 @@
|
||||
// static
|
||||
void GoogleApiKeysInfoBarDelegate::Create(
|
||||
infobars::ContentInfoBarManager* infobar_manager) {
|
||||
- infobar_manager->AddInfoBar(
|
||||
- CreateConfirmInfoBar(std::unique_ptr<ConfirmInfoBarDelegate>(
|
||||
- new GoogleApiKeysInfoBarDelegate())));
|
||||
}
|
||||
|
||||
GoogleApiKeysInfoBarDelegate::GoogleApiKeysInfoBarDelegate() = default;
|
||||
@@ -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,49 +0,0 @@
|
||||
--- a/chrome/browser/ui/qrcode_generator/qrcode_generator_bubble_controller.cc
|
||||
+++ b/chrome/browser/ui/qrcode_generator/qrcode_generator_bubble_controller.cc
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "chrome/common/pref_names.h"
|
||||
#include "components/prefs/pref_change_registrar.h"
|
||||
#include "components/prefs/pref_service.h"
|
||||
+#include "components/sharing_message/features.h"
|
||||
#include "content/public/browser/web_contents.h"
|
||||
#include "url/gurl.h"
|
||||
|
||||
@@ -38,7 +39,7 @@ QRCodeGeneratorBubbleController::~QRCode
|
||||
|
||||
// static
|
||||
bool QRCodeGeneratorBubbleController::IsGeneratorAvailable(const GURL& url) {
|
||||
- if (!url.SchemeIsHTTPOrHTTPS()) {
|
||||
+ if (!url.SchemeIsHTTPOrHTTPS() || base::FeatureList::IsEnabled(kDisableQRGenerator)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
--- a/chrome/browser/ungoogled_flag_entries.h
|
||||
+++ b/chrome/browser/ungoogled_flag_entries.h
|
||||
@@ -64,4 +64,8 @@
|
||||
"Remove Tabsearch Button",
|
||||
"Removes the tabsearch button from the tabstrip. ungoogled-chromium flag",
|
||||
kOsDesktop, SINGLE_VALUE_TYPE("remove-tabsearch-button")},
|
||||
+ {"disable-qr-generator",
|
||||
+ "Disable QR Generator",
|
||||
+ "Disables the QR generator for sharing page links. ungoogled-chromium flag",
|
||||
+ kOsDesktop, FEATURE_VALUE_TYPE(kDisableQRGenerator)},
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/components/sharing_message/features.cc
|
||||
+++ b/components/sharing_message/features.cc
|
||||
@@ -6,6 +6,8 @@
|
||||
|
||||
#include "build/build_config.h"
|
||||
|
||||
+BASE_FEATURE(kDisableQRGenerator, "DisableQRGenerator", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
+
|
||||
BASE_FEATURE(kClickToCall, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
BASE_FEATURE(kMobilePromoOnDesktop, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
--- a/components/sharing_message/features.h
|
||||
+++ b/components/sharing_message/features.h
|
||||
@@ -34,4 +34,5 @@ MobilePromoOnDesktopPromoType MobileProm
|
||||
// notification arm, false otherwise.
|
||||
bool IsMobilePromoOnDesktopNotificationsEnabled();
|
||||
|
||||
+BASE_DECLARE_FEATURE(kDisableQRGenerator);
|
||||
#endif // COMPONENTS_SHARING_MESSAGE_FEATURES_H_
|
||||
@@ -1,72 +0,0 @@
|
||||
--- a/chrome/browser/ui/browser_command_controller.cc
|
||||
+++ b/chrome/browser/ui/browser_command_controller.cc
|
||||
@@ -1633,7 +1633,8 @@ void BrowserCommandController::InitComma
|
||||
command_updater_.UpdateCommandEnabled(IDC_WINDOW_CLOSE_OTHER_TABS,
|
||||
normal_window);
|
||||
|
||||
- const bool enable_tab_search_commands = browser_->is_type_normal();
|
||||
+ const bool enable_tab_search_commands = browser_->is_type_normal() &&
|
||||
+ !base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button");
|
||||
command_updater_.UpdateCommandEnabled(IDC_TAB_SEARCH,
|
||||
enable_tab_search_commands);
|
||||
command_updater_.UpdateCommandEnabled(IDC_TAB_SEARCH_CLOSE,
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "chrome/browser/ui/ui_features.h"
|
||||
|
||||
+#include "base/command_line.h"
|
||||
#include "base/feature_list.h"
|
||||
#include "base/metrics/field_trial_params.h"
|
||||
#include "base/time/time.h"
|
||||
@@ -613,6 +614,10 @@ static std::string GetCountryCode() {
|
||||
}
|
||||
|
||||
bool HasTabSearchToolbarButton() {
|
||||
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button")) {
|
||||
+ return false;
|
||||
+ }
|
||||
+
|
||||
static const bool is_tab_search_moving = [] {
|
||||
if (GetCountryCode() == "us" &&
|
||||
base::FeatureList::IsEnabled(
|
||||
--- a/chrome/browser/ui/views/frame/browser_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_view.cc
|
||||
@@ -5088,6 +5088,7 @@ void BrowserView::AddedToWidget() {
|
||||
|
||||
toolbar_->Init();
|
||||
|
||||
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button"))
|
||||
if (GetIsNormalType()) {
|
||||
if (features::HasTabSearchToolbarButton()) {
|
||||
tab_search_bubble_host_ = std::make_unique<TabSearchBubbleHost>(
|
||||
--- a/chrome/browser/ui/views/frame/tab_strip_region_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/tab_strip_region_view.cc
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "chrome/browser/ui/views/frame/tab_strip_region_view.h"
|
||||
|
||||
+#include "base/command_line.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
#include "base/task/single_thread_task_runner.h"
|
||||
@@ -209,6 +210,7 @@ TabStripRegionView::TabStripRegionView(s
|
||||
std::unique_ptr<TabStripActionContainer> tab_strip_action_container;
|
||||
std::unique_ptr<ProductSpecificationsButton> product_specifications_button;
|
||||
if (browser &&
|
||||
+ !base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button") &&
|
||||
(browser->GetType() == BrowserWindowInterface::Type::TYPE_NORMAL)) {
|
||||
if (features::HasTabSearchToolbarButton()) {
|
||||
tab_strip_action_container = std::make_unique<TabStripActionContainer>(
|
||||
--- a/chrome/browser/ungoogled_flag_entries.h
|
||||
+++ b/chrome/browser/ungoogled_flag_entries.h
|
||||
@@ -60,4 +60,8 @@
|
||||
"Clear data on exit",
|
||||
"Clears all browsing data on exit. ungoogled-chromium flag",
|
||||
kOsDesktop, FEATURE_VALUE_TYPE(features::kClearDataOnExit)},
|
||||
+ {"remove-tabsearch-button",
|
||||
+ "Remove Tabsearch Button",
|
||||
+ "Removes the tabsearch button from the tabstrip. ungoogled-chromium flag",
|
||||
+ kOsDesktop, SINGLE_VALUE_TYPE("remove-tabsearch-button")},
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
@@ -1,29 +0,0 @@
|
||||
--- a/chrome/browser/sharing_hub/sharing_hub_features.cc
|
||||
+++ b/chrome/browser/sharing_hub/sharing_hub_features.cc
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "chrome/browser/sharing_hub/sharing_hub_features.h"
|
||||
|
||||
+#include "base/command_line.h"
|
||||
#include "build/build_config.h"
|
||||
#include "chrome/browser/profiles/profile.h"
|
||||
#include "chrome/common/pref_names.h"
|
||||
@@ -36,6 +37,7 @@ bool ScreenshotsDisabledByPolicy(content
|
||||
} // namespace
|
||||
|
||||
bool SharingHubOmniboxEnabled(content::BrowserContext* context) {
|
||||
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("disable-sharing-hub")) return false;
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
return false;
|
||||
#else
|
||||
--- a/chrome/browser/ungoogled_flag_entries.h
|
||||
+++ b/chrome/browser/ungoogled_flag_entries.h
|
||||
@@ -96,4 +96,8 @@
|
||||
"Custom HTTP Accept Header",
|
||||
"Set a custom value for the Accept header which is sent by the browser with every HTTP request. (e.g. `text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8`). ungoogled-chromium flag.",
|
||||
kOsAll, ORIGIN_LIST_VALUE_TYPE("http-accept-header", "")},
|
||||
+ {"disable-sharing-hub",
|
||||
+ "Disable Sharing Hub",
|
||||
+ "Disables the sharing hub button. ungoogled-chromium flag.",
|
||||
+ kOsDesktop, SINGLE_VALUE_TYPE("disable-sharing-hub")},
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
@@ -1,247 +0,0 @@
|
||||
# Disables file download quarantining
|
||||
|
||||
--- a/components/download/internal/common/base_file.cc
|
||||
+++ b/components/download/internal/common/base_file.cc
|
||||
@@ -26,7 +26,6 @@
|
||||
#include "components/download/public/common/download_interrupt_reasons_utils.h"
|
||||
#include "components/download/public/common/download_item.h"
|
||||
#include "components/download/public/common/download_stats.h"
|
||||
-#include "components/services/quarantine/quarantine.h"
|
||||
#include "crypto/hash.h"
|
||||
#include "crypto/secure_hash.h"
|
||||
|
||||
@@ -538,94 +537,10 @@ DownloadInterruptReason BaseFile::Publis
|
||||
}
|
||||
#endif // BUILDFLAG(IS_ANDROID)
|
||||
|
||||
-namespace {
|
||||
-
|
||||
-DownloadInterruptReason QuarantineFileResultToReason(
|
||||
- quarantine::mojom::QuarantineFileResult result) {
|
||||
- switch (result) {
|
||||
- case quarantine::mojom::QuarantineFileResult::OK:
|
||||
- return DOWNLOAD_INTERRUPT_REASON_NONE;
|
||||
- case quarantine::mojom::QuarantineFileResult::VIRUS_INFECTED:
|
||||
- return DOWNLOAD_INTERRUPT_REASON_FILE_VIRUS_INFECTED;
|
||||
- case quarantine::mojom::QuarantineFileResult::SECURITY_CHECK_FAILED:
|
||||
- return DOWNLOAD_INTERRUPT_REASON_FILE_SECURITY_CHECK_FAILED;
|
||||
- case quarantine::mojom::QuarantineFileResult::BLOCKED_BY_POLICY:
|
||||
- return DOWNLOAD_INTERRUPT_REASON_FILE_BLOCKED;
|
||||
- case quarantine::mojom::QuarantineFileResult::ACCESS_DENIED:
|
||||
- return DOWNLOAD_INTERRUPT_REASON_FILE_ACCESS_DENIED;
|
||||
-
|
||||
- case quarantine::mojom::QuarantineFileResult::FILE_MISSING:
|
||||
- // Don't have a good interrupt reason here. This return code means that
|
||||
- // the file at |full_path_| went missing before QuarantineFile got to
|
||||
- // look at it. Not expected to happen, but we've seen instances where a
|
||||
- // file goes missing immediately after BaseFile closes the handle.
|
||||
- //
|
||||
- // Intentionally using a different error message than
|
||||
- // SECURITY_CHECK_FAILED in order to distinguish the two.
|
||||
- return DOWNLOAD_INTERRUPT_REASON_FILE_FAILED;
|
||||
-
|
||||
- case quarantine::mojom::QuarantineFileResult::ANNOTATION_FAILED:
|
||||
- // This means that the mark-of-the-web couldn't be applied. The file is
|
||||
- // already on the file system under its final target name.
|
||||
- //
|
||||
- // Causes of failed annotations typically aren't transient. E.g. the
|
||||
- // target file system may not support extended attributes or alternate
|
||||
- // streams. We are going to allow these downloads to progress on the
|
||||
- // assumption that failures to apply MOTW can't reliably be introduced
|
||||
- // remotely.
|
||||
- return DOWNLOAD_INTERRUPT_REASON_NONE;
|
||||
- }
|
||||
- return DOWNLOAD_INTERRUPT_REASON_FILE_FAILED;
|
||||
-}
|
||||
-
|
||||
-} // namespace
|
||||
-
|
||||
// static
|
||||
GURL BaseFile::GetEffectiveAuthorityURL(const GURL& source_url,
|
||||
const GURL& referrer_url) {
|
||||
- if (source_url.is_valid()) {
|
||||
- // http{,s} has an authority and are supported.
|
||||
- if (source_url.SchemeIsHTTPOrHTTPS())
|
||||
- return source_url;
|
||||
-
|
||||
- // If the download source is file:// ideally we should copy the MOTW from
|
||||
- // the original file, but given that Chrome/Chromium places strict
|
||||
- // restrictions on which schemes can reference file:// URLs, this code is
|
||||
- // going to assume that at this point it's okay to treat this download as
|
||||
- // being from the local system.
|
||||
- if (source_url.SchemeIsFile())
|
||||
return source_url;
|
||||
-
|
||||
- // ftp:// has an authority.
|
||||
- if (source_url.SchemeIs(url::kFtpScheme))
|
||||
- return source_url;
|
||||
-
|
||||
- if (source_url.SchemeIs(url::kBlobScheme))
|
||||
- return url::Origin::Create(source_url).GetURL();
|
||||
- }
|
||||
-
|
||||
- if (referrer_url.is_valid() && referrer_url.SchemeIsHTTPOrHTTPS())
|
||||
- return referrer_url;
|
||||
-
|
||||
- return GURL();
|
||||
-}
|
||||
-
|
||||
-void BaseFile::OnFileQuarantined(
|
||||
- quarantine::mojom::QuarantineFileResult result) {
|
||||
- DCHECK(on_annotation_done_callback_);
|
||||
- quarantine_service_.reset();
|
||||
- std::move(on_annotation_done_callback_)
|
||||
- .Run(QuarantineFileResultToReason(result));
|
||||
-}
|
||||
-
|
||||
-void BaseFile::OnQuarantineServiceError(const GURL& source_url,
|
||||
- const GURL& referrer_url) {
|
||||
-#if BUILDFLAG(IS_WIN)
|
||||
- OnFileQuarantined(quarantine::SetInternetZoneIdentifierDirectly(
|
||||
- full_path_, source_url, referrer_url));
|
||||
-#else // !BUILDFLAG(IS_WIN)
|
||||
- NOTREACHED() << "In-process quarantine service should not have failed.";
|
||||
-#endif // !BUILDFLAG(IS_WIN)
|
||||
}
|
||||
|
||||
void BaseFile::AnnotateWithSourceInformation(
|
||||
@@ -635,32 +550,8 @@ void BaseFile::AnnotateWithSourceInforma
|
||||
const std::optional<url::Origin>& request_initiator,
|
||||
mojo::PendingRemote<quarantine::mojom::Quarantine> remote_quarantine,
|
||||
OnAnnotationDoneCallback on_annotation_done_callback) {
|
||||
- GURL authority_url = GetEffectiveAuthorityURL(source_url, referrer_url);
|
||||
- if (!remote_quarantine) {
|
||||
-#if BUILDFLAG(IS_WIN)
|
||||
- quarantine::mojom::QuarantineFileResult result =
|
||||
- quarantine::SetInternetZoneIdentifierDirectly(full_path_, authority_url,
|
||||
- referrer_url);
|
||||
-#else
|
||||
- quarantine::mojom::QuarantineFileResult result =
|
||||
- quarantine::mojom::QuarantineFileResult::ANNOTATION_FAILED;
|
||||
-#endif
|
||||
- std::move(on_annotation_done_callback)
|
||||
- .Run(QuarantineFileResultToReason(result));
|
||||
- } else {
|
||||
- quarantine_service_.Bind(std::move(remote_quarantine));
|
||||
-
|
||||
- on_annotation_done_callback_ = std::move(on_annotation_done_callback);
|
||||
-
|
||||
- quarantine_service_.set_disconnect_handler(base::BindOnce(
|
||||
- &BaseFile::OnQuarantineServiceError, weak_factory_.GetWeakPtr(),
|
||||
- authority_url, referrer_url));
|
||||
-
|
||||
- quarantine_service_->QuarantineFile(
|
||||
- full_path_, authority_url, referrer_url, request_initiator, client_guid,
|
||||
- base::BindOnce(&BaseFile::OnFileQuarantined,
|
||||
- weak_factory_.GetWeakPtr()));
|
||||
- }
|
||||
+ std::move(on_annotation_done_callback)
|
||||
+ .Run(DOWNLOAD_INTERRUPT_REASON_NONE);
|
||||
}
|
||||
|
||||
} // namespace download
|
||||
--- a/content/browser/BUILD.gn
|
||||
+++ b/content/browser/BUILD.gn
|
||||
@@ -140,7 +140,6 @@ source_set("browser") {
|
||||
"//components/persistent_cache",
|
||||
"//components/power_monitor",
|
||||
"//components/services/filesystem:lib",
|
||||
- "//components/services/quarantine",
|
||||
"//components/services/storage",
|
||||
"//components/services/storage:filesystem_proxy_factory",
|
||||
"//components/services/storage/dom_storage:local_storage_proto",
|
||||
--- a/content/browser/file_system_access/file_system_access_safe_move_helper.cc
|
||||
+++ b/content/browser/file_system_access/file_system_access_safe_move_helper.cc
|
||||
@@ -14,7 +14,6 @@
|
||||
#include "base/task/thread_pool.h"
|
||||
#include "base/thread_annotations.h"
|
||||
#include "build/build_config.h"
|
||||
-#include "components/services/quarantine/quarantine.h"
|
||||
#include "content/browser/file_system_access/features.h"
|
||||
#include "content/browser/file_system_access/file_system_access_error.h"
|
||||
#include "content/public/browser/content_browser_client.h"
|
||||
@@ -231,22 +230,9 @@ void FileSystemAccessSafeMoveHelper::Did
|
||||
// not exist anymore. In case of error, the source file URL will point to a
|
||||
// valid filesystem location.
|
||||
base::OnceCallback<void(base::File::Error)> result_callback;
|
||||
- if (RequireQuarantine()) {
|
||||
- GURL referrer_url = manager_->is_off_the_record() ? GURL() : context_.url;
|
||||
- mojo::Remote<quarantine::mojom::Quarantine> quarantine_remote;
|
||||
- if (quarantine_connection_callback_) {
|
||||
- quarantine_connection_callback_.Run(
|
||||
- quarantine_remote.BindNewPipeAndPassReceiver());
|
||||
- }
|
||||
- result_callback =
|
||||
- base::BindOnce(&FileSystemAccessSafeMoveHelper::DidFileDoQuarantine,
|
||||
- weak_factory_.GetWeakPtr(), dest_url(), referrer_url,
|
||||
- std::move(quarantine_remote));
|
||||
- } else {
|
||||
result_callback =
|
||||
base::BindOnce(&FileSystemAccessSafeMoveHelper::DidFileSkipQuarantine,
|
||||
weak_factory_.GetWeakPtr());
|
||||
- }
|
||||
manager_->DoFileSystemOperation(
|
||||
FROM_HERE, &storage::FileSystemOperationRunner::Move,
|
||||
std::move(result_callback), source_url(), dest_url(), options_,
|
||||
@@ -263,7 +249,6 @@ void FileSystemAccessSafeMoveHelper::Did
|
||||
void FileSystemAccessSafeMoveHelper::DidFileDoQuarantine(
|
||||
const storage::FileSystemURL& target_url,
|
||||
const GURL& referrer_url,
|
||||
- mojo::Remote<quarantine::mojom::Quarantine> quarantine_remote,
|
||||
base::File::Error result) {
|
||||
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||
|
||||
@@ -294,40 +279,9 @@ void FileSystemAccessSafeMoveHelper::Did
|
||||
referrer_url.is_valid() && referrer_url.SchemeIsHTTPOrHTTPS()
|
||||
? referrer_url
|
||||
: GURL();
|
||||
-
|
||||
- if (quarantine_remote) {
|
||||
- quarantine::mojom::Quarantine* raw_quarantine = quarantine_remote.get();
|
||||
- raw_quarantine->QuarantineFile(
|
||||
- target_url.path(), authority_url, referrer_url,
|
||||
- // TODO(crbug.com/351165321): Consider propagating request_initiator
|
||||
- // information here.
|
||||
- /*request_initiator=*/std::nullopt,
|
||||
- GetContentClient()
|
||||
- ->browser()
|
||||
- ->GetApplicationClientGUIDForQuarantineCheck(),
|
||||
- mojo::WrapCallbackWithDefaultInvokeIfNotRun(
|
||||
- base::BindOnce(&FileSystemAccessSafeMoveHelper::DidAnnotateFile,
|
||||
- weak_factory_.GetWeakPtr(),
|
||||
- std::move(quarantine_remote)),
|
||||
- quarantine::mojom::QuarantineFileResult::ANNOTATION_FAILED));
|
||||
- } else {
|
||||
-#if BUILDFLAG(IS_WIN)
|
||||
- base::ThreadPool::PostTaskAndReplyWithResult(
|
||||
- FROM_HERE, {base::MayBlock()},
|
||||
- base::BindOnce(&quarantine::SetInternetZoneIdentifierDirectly,
|
||||
- target_url.path(), authority_url, referrer_url),
|
||||
- base::BindOnce(&FileSystemAccessSafeMoveHelper::DidAnnotateFile,
|
||||
- weak_factory_.GetWeakPtr(),
|
||||
- std::move(quarantine_remote)));
|
||||
-#else
|
||||
- DidAnnotateFile(std::move(quarantine_remote),
|
||||
- quarantine::mojom::QuarantineFileResult::ANNOTATION_FAILED);
|
||||
-#endif
|
||||
- }
|
||||
}
|
||||
|
||||
void FileSystemAccessSafeMoveHelper::DidAnnotateFile(
|
||||
- mojo::Remote<quarantine::mojom::Quarantine> quarantine_remote,
|
||||
quarantine::mojom::QuarantineFileResult result) {
|
||||
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||
|
||||
--- a/content/browser/file_system_access/file_system_access_safe_move_helper.h
|
||||
+++ b/content/browser/file_system_access/file_system_access_safe_move_helper.h
|
||||
@@ -66,10 +66,8 @@ class CONTENT_EXPORT FileSystemAccessSaf
|
||||
void DidFileDoQuarantine(
|
||||
const storage::FileSystemURL& target_url,
|
||||
const GURL& referrer_url,
|
||||
- mojo::Remote<quarantine::mojom::Quarantine> quarantine_remote,
|
||||
base::File::Error result);
|
||||
void DidAnnotateFile(
|
||||
- mojo::Remote<quarantine::mojom::Quarantine> quarantine_remote,
|
||||
quarantine::mojom::QuarantineFileResult result);
|
||||
|
||||
void ComputeHashForSourceFile(HashCallback callback);
|
||||
@@ -1,112 +0,0 @@
|
||||
# Enable extra locales not normally shipped with Chromium on desktop
|
||||
|
||||
--- a/build/config/locales.gni
|
||||
+++ b/build/config/locales.gni
|
||||
@@ -186,12 +186,6 @@ _non_android_locales = [ "cy" ]
|
||||
|
||||
# Setup |platform_pak_locales| for each platform.
|
||||
platform_pak_locales = all_chrome_locales
|
||||
-if (is_android) {
|
||||
- platform_pak_locales -= _non_android_locales
|
||||
- extended_locales -= _non_android_locales
|
||||
-} else {
|
||||
- platform_pak_locales -= extended_locales
|
||||
-}
|
||||
|
||||
# The base list for all platforms except Android excludes the extended locales.
|
||||
# Add or subtract platform specific locales below.
|
||||
--- a/chrome/app/resources/locale_settings_linux.grd
|
||||
+++ b/chrome/app/resources/locale_settings_linux.grd
|
||||
@@ -4,11 +4,11 @@
|
||||
<output filename="grit/platform_locale_settings.h" type="rc_header">
|
||||
<emit emit_type='prepend'></emit>
|
||||
</output>
|
||||
- <if expr="is_android">
|
||||
<output filename="platform_locale_settings_as.pak" type="data_package" lang="as" />
|
||||
<output filename="platform_locale_settings_az.pak" type="data_package" lang="az" />
|
||||
<output filename="platform_locale_settings_be.pak" type="data_package" lang="be" />
|
||||
<output filename="platform_locale_settings_bs.pak" type="data_package" lang="bs" />
|
||||
+ <output filename="platform_locale_settings_cy.pak" type="data_package" lang="cy" />
|
||||
<output filename="platform_locale_settings_eu.pak" type="data_package" lang="eu" />
|
||||
<output filename="platform_locale_settings_fr-CA.pak" type="data_package" lang="fr-CA" />
|
||||
<output filename="platform_locale_settings_gl.pak" type="data_package" lang="gl" />
|
||||
@@ -31,7 +31,6 @@
|
||||
<output filename="platform_locale_settings_uz.pak" type="data_package" lang="uz" />
|
||||
<output filename="platform_locale_settings_zh-HK.pak" type="data_package" lang="zh-HK" />
|
||||
<output filename="platform_locale_settings_zu.pak" type="data_package" lang="zu" />
|
||||
- </if>
|
||||
<output filename="platform_locale_settings_af.pak" type="data_package" lang="af" />
|
||||
<output filename="platform_locale_settings_am.pak" type="data_package" lang="am" />
|
||||
<output filename="platform_locale_settings_ar.pak" type="data_package" lang="ar" />
|
||||
--- a/chrome/app/resources/locale_settings_mac.grd
|
||||
+++ b/chrome/app/resources/locale_settings_mac.grd
|
||||
@@ -4,6 +4,33 @@
|
||||
<output filename="grit/platform_locale_settings.h" type="rc_header">
|
||||
<emit emit_type='prepend'></emit>
|
||||
</output>
|
||||
+ <output filename="platform_locale_settings_as.pak" type="data_package" lang="as" />
|
||||
+ <output filename="platform_locale_settings_az.pak" type="data_package" lang="az" />
|
||||
+ <output filename="platform_locale_settings_be.pak" type="data_package" lang="be" />
|
||||
+ <output filename="platform_locale_settings_bs.pak" type="data_package" lang="bs" />
|
||||
+ <output filename="platform_locale_settings_cy.pak" type="data_package" lang="cy" />
|
||||
+ <output filename="platform_locale_settings_eu.pak" type="data_package" lang="eu" />
|
||||
+ <output filename="platform_locale_settings_fr-CA.pak" type="data_package" lang="fr-CA" />
|
||||
+ <output filename="platform_locale_settings_gl.pak" type="data_package" lang="gl" />
|
||||
+ <output filename="platform_locale_settings_hy.pak" type="data_package" lang="hy" />
|
||||
+ <output filename="platform_locale_settings_is.pak" type="data_package" lang="is" />
|
||||
+ <output filename="platform_locale_settings_ka.pak" type="data_package" lang="ka" />
|
||||
+ <output filename="platform_locale_settings_kk.pak" type="data_package" lang="kk" />
|
||||
+ <output filename="platform_locale_settings_km.pak" type="data_package" lang="km" />
|
||||
+ <output filename="platform_locale_settings_ky.pak" type="data_package" lang="ky" />
|
||||
+ <output filename="platform_locale_settings_lo.pak" type="data_package" lang="lo" />
|
||||
+ <output filename="platform_locale_settings_mk.pak" type="data_package" lang="mk" />
|
||||
+ <output filename="platform_locale_settings_mn.pak" type="data_package" lang="mn" />
|
||||
+ <output filename="platform_locale_settings_my.pak" type="data_package" lang="my" />
|
||||
+ <output filename="platform_locale_settings_ne.pak" type="data_package" lang="ne" />
|
||||
+ <output filename="platform_locale_settings_or.pak" type="data_package" lang="or" />
|
||||
+ <output filename="platform_locale_settings_pa.pak" type="data_package" lang="pa" />
|
||||
+ <output filename="platform_locale_settings_si.pak" type="data_package" lang="si" />
|
||||
+ <output filename="platform_locale_settings_sq.pak" type="data_package" lang="sq" />
|
||||
+ <output filename="platform_locale_settings_sr-Latn.pak" type="data_package" lang="sr-Latn" />
|
||||
+ <output filename="platform_locale_settings_uz.pak" type="data_package" lang="uz" />
|
||||
+ <output filename="platform_locale_settings_zh-HK.pak" type="data_package" lang="zh-HK" />
|
||||
+ <output filename="platform_locale_settings_zu.pak" type="data_package" lang="zu" />
|
||||
<output filename="platform_locale_settings_af.pak" type="data_package" lang="af" />
|
||||
<output filename="platform_locale_settings_am.pak" type="data_package" lang="am" />
|
||||
<output filename="platform_locale_settings_ar.pak" type="data_package" lang="ar" />
|
||||
--- a/chrome/app/resources/locale_settings_win.grd
|
||||
+++ b/chrome/app/resources/locale_settings_win.grd
|
||||
@@ -4,6 +4,33 @@
|
||||
<output filename="grit/platform_locale_settings.h" type="rc_header">
|
||||
<emit emit_type='prepend'></emit>
|
||||
</output>
|
||||
+ <output filename="platform_locale_settings_as.pak" type="data_package" lang="as" />
|
||||
+ <output filename="platform_locale_settings_az.pak" type="data_package" lang="az" />
|
||||
+ <output filename="platform_locale_settings_be.pak" type="data_package" lang="be" />
|
||||
+ <output filename="platform_locale_settings_bs.pak" type="data_package" lang="bs" />
|
||||
+ <output filename="platform_locale_settings_cy.pak" type="data_package" lang="cy" />
|
||||
+ <output filename="platform_locale_settings_eu.pak" type="data_package" lang="eu" />
|
||||
+ <output filename="platform_locale_settings_fr-CA.pak" type="data_package" lang="fr-CA" />
|
||||
+ <output filename="platform_locale_settings_gl.pak" type="data_package" lang="gl" />
|
||||
+ <output filename="platform_locale_settings_hy.pak" type="data_package" lang="hy" />
|
||||
+ <output filename="platform_locale_settings_is.pak" type="data_package" lang="is" />
|
||||
+ <output filename="platform_locale_settings_ka.pak" type="data_package" lang="ka" />
|
||||
+ <output filename="platform_locale_settings_kk.pak" type="data_package" lang="kk" />
|
||||
+ <output filename="platform_locale_settings_km.pak" type="data_package" lang="km" />
|
||||
+ <output filename="platform_locale_settings_ky.pak" type="data_package" lang="ky" />
|
||||
+ <output filename="platform_locale_settings_lo.pak" type="data_package" lang="lo" />
|
||||
+ <output filename="platform_locale_settings_mk.pak" type="data_package" lang="mk" />
|
||||
+ <output filename="platform_locale_settings_mn.pak" type="data_package" lang="mn" />
|
||||
+ <output filename="platform_locale_settings_my.pak" type="data_package" lang="my" />
|
||||
+ <output filename="platform_locale_settings_ne.pak" type="data_package" lang="ne" />
|
||||
+ <output filename="platform_locale_settings_or.pak" type="data_package" lang="or" />
|
||||
+ <output filename="platform_locale_settings_pa.pak" type="data_package" lang="pa" />
|
||||
+ <output filename="platform_locale_settings_si.pak" type="data_package" lang="si" />
|
||||
+ <output filename="platform_locale_settings_sq.pak" type="data_package" lang="sq" />
|
||||
+ <output filename="platform_locale_settings_sr-Latn.pak" type="data_package" lang="sr-Latn" />
|
||||
+ <output filename="platform_locale_settings_uz.pak" type="data_package" lang="uz" />
|
||||
+ <output filename="platform_locale_settings_zh-HK.pak" type="data_package" lang="zh-HK" />
|
||||
+ <output filename="platform_locale_settings_zu.pak" type="data_package" lang="zu" />
|
||||
<output filename="platform_locale_settings_af.pak" type="data_package" lang="af" />
|
||||
<output filename="platform_locale_settings_am.pak" type="data_package" lang="am" />
|
||||
<output filename="platform_locale_settings_ar.pak" type="data_package" lang="ar" />
|
||||
@@ -1,77 +0,0 @@
|
||||
# Add more URL schemes allowed for saving
|
||||
|
||||
--- a/chrome/browser/ui/browser_commands.cc
|
||||
+++ b/chrome/browser/ui/browser_commands.cc
|
||||
@@ -628,11 +628,6 @@ int GetContentRestrictions(const Browser
|
||||
CoreTabHelper* core_tab_helper =
|
||||
CoreTabHelper::FromWebContents(current_tab);
|
||||
content_restrictions = core_tab_helper->content_restrictions();
|
||||
- NavigationEntry* last_committed_entry =
|
||||
- current_tab->GetController().GetLastCommittedEntry();
|
||||
- if (!content::IsSavableURL(last_committed_entry->GetURL())) {
|
||||
- content_restrictions |= CONTENT_RESTRICTION_SAVE;
|
||||
- }
|
||||
}
|
||||
return content_restrictions;
|
||||
}
|
||||
@@ -2007,8 +2002,7 @@ bool CanSavePage(const Browser* browser)
|
||||
policy::DownloadRestriction::ALL_FILES) {
|
||||
return false;
|
||||
}
|
||||
- return !browser->is_type_devtools() &&
|
||||
- !(GetContentRestrictions(browser) & CONTENT_RESTRICTION_SAVE);
|
||||
+ return true;
|
||||
}
|
||||
|
||||
void Print(BrowserWindowInterface* bwi) {
|
||||
--- a/components/offline_pages/core/offline_page_model.cc
|
||||
+++ b/components/offline_pages/core/offline_page_model.cc
|
||||
@@ -21,7 +21,7 @@ OfflinePageModel::SavePageParams::~SaveP
|
||||
|
||||
// static
|
||||
bool OfflinePageModel::CanSaveURL(const GURL& url) {
|
||||
- return url.is_valid() && url.SchemeIsHTTPOrHTTPS();
|
||||
+ return url.is_valid();
|
||||
}
|
||||
|
||||
OfflinePageModel::OfflinePageModel() = default;
|
||||
--- a/content/common/url_schemes.cc
|
||||
+++ b/content/common/url_schemes.cc
|
||||
@@ -24,13 +24,21 @@ namespace {
|
||||
bool g_registered_url_schemes = false;
|
||||
|
||||
const char* const kDefaultSavableSchemes[] = {
|
||||
+ url::kAboutScheme,
|
||||
+ url::kBlobScheme,
|
||||
+ url::kContentScheme,
|
||||
url::kHttpScheme,
|
||||
url::kHttpsScheme,
|
||||
url::kFileScheme,
|
||||
url::kFileSystemScheme,
|
||||
kChromeDevToolsScheme,
|
||||
kChromeUIScheme,
|
||||
- url::kDataScheme
|
||||
+ url::kDataScheme,
|
||||
+ url::kJavaScriptScheme,
|
||||
+ url::kMailToScheme,
|
||||
+ url::kWsScheme,
|
||||
+ url::kWssScheme,
|
||||
+ kViewSourceScheme
|
||||
};
|
||||
|
||||
// These lists are lazily initialized below and are leaked on shutdown to
|
||||
--- a/content/public/common/url_utils.cc
|
||||
+++ b/content/public/common/url_utils.cc
|
||||
@@ -41,11 +41,7 @@ bool HasWebUIOrigin(const url::Origin& o
|
||||
}
|
||||
|
||||
bool IsSavableURL(const GURL& url) {
|
||||
- for (auto& scheme : GetSavableSchemes()) {
|
||||
- if (url.SchemeIs(scheme))
|
||||
- return true;
|
||||
- }
|
||||
- return false;
|
||||
+ return true;
|
||||
}
|
||||
|
||||
bool IsURLHandledByNetworkStack(const GURL& url) {
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
--- a/components/dom_distiller/core/css/distilledpage_common.css
|
||||
+++ b/components/dom_distiller/core/css/distilledpage_common.css
|
||||
@@ -26,6 +26,11 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
+.material-icons {
|
||||
+ font-family: Material Icons;
|
||||
+ font-style: normal !important;
|
||||
+}
|
||||
+
|
||||
/* Remove all margins and padding from certain element and add word wrap. */
|
||||
|
||||
blockquote,
|
||||
@@ -1,12 +0,0 @@
|
||||
# Remove the "--disable-setuid-sandbox" command line flag as a bad flag
|
||||
|
||||
--- a/chrome/browser/ui/startup/bad_flags_prompt.cc
|
||||
+++ b/chrome/browser/ui/startup/bad_flags_prompt.cc
|
||||
@@ -77,7 +77,6 @@ const char* const kBadFlags[] = {
|
||||
sandbox::policy::switches::kDisableGpuSandbox,
|
||||
sandbox::policy::switches::kDisableLandlockSandbox,
|
||||
sandbox::policy::switches::kDisableSeccompFilterSandbox,
|
||||
- sandbox::policy::switches::kDisableSetuidSandbox,
|
||||
sandbox::policy::switches::kNoSandbox,
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
sandbox::policy::switches::kAllowThirdPartyModules,
|
||||
@@ -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
|
||||
@@ -666,6 +666,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(),
|
||||
@@ -700,7 +700,7 @@
|
||||
// Sanity check for https://crbug.com/781703.
|
||||
--- a/components/helium_services/helium_services_helpers.cc
|
||||
+++ b/components/helium_services/helium_services_helpers.cc
|
||||
@@ -66,6 +66,11 @@ bool ShouldAccessExtensionService(const
|
||||
@@ -67,6 +67,11 @@ bool ShouldAccessExtensionService(const
|
||||
prefs.GetBoolean(prefs::kHeliumExtProxyEnabled);
|
||||
}
|
||||
|
||||
@@ -714,9 +714,9 @@
|
||||
return GetDummyURL();
|
||||
--- a/components/helium_services/helium_services_helpers.h
|
||||
+++ b/components/helium_services/helium_services_helpers.h
|
||||
@@ -18,6 +18,7 @@ const char kHeliumDefaultOrigin[] =
|
||||
const char kHeliumDummyOrigin[] =
|
||||
"https://helium-services-are-disabled.qjz9zk";
|
||||
@@ -20,6 +20,7 @@ const char kHeliumDummyOrigin[] =
|
||||
|
||||
bool ShouldAccessServices(const PrefService& prefs);
|
||||
|
||||
+COMPONENT_EXPORT(HELIUM) bool ShouldFetchBangs(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldAccessExtensionService(const PrefService& prefs);
|
||||
@@ -724,19 +724,19 @@
|
||||
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
|
||||
{"heliumServicesToggle", IDS_SETTINGS_HELIUM_SERVICES_TOGGLE},
|
||||
{"heliumServicesToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION},
|
||||
@@ -2134,6 +2134,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE},
|
||||
{"heliumExtProxyToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE_DESCRIPTION},
|
||||
+ {"heliumBangsToggle", IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE},
|
||||
+ {"heliumBangsToggleDescription",
|
||||
+ IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE_DESCRIPTION},
|
||||
{"heliumExtProxyToggle",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE},
|
||||
{"heliumExtProxyToggleDescription",
|
||||
{"heliumOriginOverride", IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE},
|
||||
{"heliumOriginOverrideDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION},
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1945,6 +1945,12 @@
|
||||
@@ -1990,6 +1990,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>
|
||||
@@ -751,7 +751,7 @@
|
||||
</message>
|
||||
--- a/chrome/browser/resources/settings/privacy_page/services_page.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/services_page.html
|
||||
@@ -50,6 +50,11 @@
|
||||
@@ -92,6 +92,11 @@
|
||||
label="$i18n{heliumExtProxyToggle}"
|
||||
sub-label="$i18n{heliumExtProxyToggleDescription}">
|
||||
</settings-toggle-button>
|
||||
@@ -765,9 +765,9 @@
|
||||
</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
|
||||
|
||||
{
|
||||
@@ -213,6 +213,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterIntegerPref(prefs::kHeliumSchemaVersion, 0);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumDisableSchemaAlerts, false);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
|
||||
+ registry->RegisterBooleanPref(prefs::kHeliumBangsEnabled, true);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumExtProxyEnabled, 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;
|
||||
@@ -786,7 +786,7 @@
|
||||
(*s_allowlist)[::prefs::kHeliumServicesConsented] =
|
||||
--- a/components/helium_services/pref_names.h
|
||||
+++ b/components/helium_services/pref_names.h
|
||||
@@ -24,6 +24,9 @@ inline constexpr char kHeliumDidOnboardi
|
||||
@@ -30,6 +30,9 @@ inline constexpr char kHeliumDidOnboardi
|
||||
inline constexpr char kHeliumExtProxyEnabled[] =
|
||||
"helium.services.ext_proxy";
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
TODO: guard services_page.html with is_mac
|
||||
|
||||
--- a/components/helium_services/pref_names.h
|
||||
+++ b/components/helium_services/pref_names.h
|
||||
@@ -27,6 +27,9 @@ inline constexpr char kHeliumExtProxyEna
|
||||
@@ -33,6 +33,9 @@ inline constexpr char kHeliumExtProxyEna
|
||||
inline constexpr char kHeliumBangsEnabled[] =
|
||||
"helium.services.bangs";
|
||||
|
||||
@@ -14,7 +12,7 @@ TODO: guard services_page.html with is_mac
|
||||
|
||||
--- a/components/helium_services/helium_services_helpers.h
|
||||
+++ b/components/helium_services/helium_services_helpers.h
|
||||
@@ -20,11 +20,13 @@ const char kHeliumDummyOrigin[] =
|
||||
@@ -22,11 +22,13 @@ bool ShouldAccessServices(const PrefServ
|
||||
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldFetchBangs(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldAccessExtensionService(const PrefService& prefs);
|
||||
@@ -30,15 +28,7 @@ TODO: guard services_page.html with is_mac
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer);
|
||||
--- a/components/helium_services/helium_services_helpers.cc
|
||||
+++ b/components/helium_services/helium_services_helpers.cc
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <optional>
|
||||
|
||||
#include "base/functional/bind.h"
|
||||
+#include "base/strings/stringprintf.h"
|
||||
#include "components/helium_services/pref_names.h"
|
||||
#include "components/prefs/pref_service.h"
|
||||
#include "net/base/url_util.h"
|
||||
@@ -15,6 +16,12 @@
|
||||
@@ -16,6 +16,12 @@
|
||||
|
||||
namespace helium {
|
||||
|
||||
@@ -51,7 +41,7 @@ TODO: guard services_page.html with is_mac
|
||||
std::optional<GURL> GetValidUserOverridenURL(std::string_view user_url_) {
|
||||
if (user_url_.empty()) {
|
||||
return std::nullopt;
|
||||
@@ -76,6 +83,11 @@ bool ShouldFetchBangs(const PrefService&
|
||||
@@ -77,6 +83,11 @@ bool ShouldFetchBangs(const PrefService&
|
||||
prefs.GetBoolean(prefs::kHeliumBangsEnabled);
|
||||
}
|
||||
|
||||
@@ -63,7 +53,7 @@ TODO: guard services_page.html with is_mac
|
||||
GURL GetExtensionUpdateURL(const PrefService& prefs) {
|
||||
if (!ShouldAccessExtensionService(prefs)) {
|
||||
return GetDummyURL();
|
||||
@@ -101,6 +113,20 @@ GURL GetSpellcheckURL(const PrefService&
|
||||
@@ -102,6 +113,20 @@ GURL GetSpellcheckURL(const PrefService&
|
||||
return GetServicesBaseURL(prefs).Resolve("/dict/");
|
||||
}
|
||||
|
||||
@@ -86,26 +76,24 @@ TODO: guard services_page.html with is_mac
|
||||
registrar.Add(prefs::kHeliumServicesEnabled, observer);
|
||||
--- a/chrome/browser/resources/settings/privacy_page/services_page.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/services_page.html
|
||||
@@ -62,6 +62,13 @@
|
||||
@@ -104,6 +104,11 @@
|
||||
sub-label="$i18n{heliumSpellcheckToggleDescription}">
|
||||
</settings-toggle-button>
|
||||
</if>
|
||||
+ <if expr="is_macosx">
|
||||
+ <settings-toggle-button id="updatesToggleButton"
|
||||
+ pref="{{prefs.helium.services.browser_updates}}"
|
||||
+ label="$i18n{heliumUpdatesToggle}"
|
||||
+ sub-label="$i18n{heliumUpdatesToggleDescription}">
|
||||
+ </settings-toggle-button>
|
||||
+ </if>
|
||||
+ <settings-toggle-button id="updatesToggleButton"
|
||||
+ pref="{{prefs.helium.services.browser_updates}}"
|
||||
+ label="$i18n{heliumUpdatesToggle}"
|
||||
+ sub-label="$i18n{heliumUpdatesToggleDescription}">
|
||||
+ </settings-toggle-button>
|
||||
</cr-collapse>
|
||||
</div>
|
||||
</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
|
||||
IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE},
|
||||
{"heliumExtProxyToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE_DESCRIPTION},
|
||||
@@ -2140,6 +2140,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"heliumSpellcheckToggle", IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE},
|
||||
{"heliumSpellcheckToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE_DESCRIPTION},
|
||||
+ {"heliumUpdatesToggle",
|
||||
+ IDS_SETTINGS_HELIUM_SERVICES_UPDATE},
|
||||
+ {"heliumUpdatesToggleDescription",
|
||||
@@ -115,7 +103,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
|
||||
@@ -361,6 +361,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 +114,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
|
||||
@@ -214,6 +214,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -219,6 +219,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterStringPref(prefs::kHeliumServicesOrigin, "");
|
||||
registry->RegisterBooleanPref(prefs::kHeliumDidOnboarding, false);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesConsented, false);
|
||||
@@ -136,16 +124,23 @@ 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 @@
|
||||
@@ -2005,6 +2005,19 @@
|
||||
<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>
|
||||
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_UPDATE" desc="Toggle for automatic update downloads">
|
||||
+ Allow automatic browser updates
|
||||
+ </message>
|
||||
+ <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.
|
||||
+ Allow automatic browser and component updates
|
||||
+ </message>
|
||||
+ <if expr="is_macosx">
|
||||
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_UPDATE_DESCRIPTION" desc="Description of the toggle for automatic update downloads">
|
||||
+ Helium will automatically download and install browser and component updates as they become available. We recommend keeping this setting enabled to ensure you get the latest features and security updates.
|
||||
+ </message>
|
||||
+ </if>
|
||||
+ <if expr="not is_macosx">
|
||||
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_UPDATE_DESCRIPTION" desc="Description of the toggle for automatic update downloads">
|
||||
+ Helium will automatically download and install browser and component updates as they become available. We recommend keeping this setting enabled to ensure you get the latest features and security updates. Automatic core browser updates are not available on this platform yet, but component updates are. Please use external software to keep Helium up to date.
|
||||
+ </message>
|
||||
+ </if>
|
||||
<message name="IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE" desc="Text input for overriding the Helium services server">
|
||||
Use your own instance of Helium services
|
||||
</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,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -0,0 +1,220 @@
|
||||
--- a/components/component_updater/component_updater_url_constants.cc
|
||||
+++ b/components/component_updater/component_updater_url_constants.cc
|
||||
@@ -15,9 +15,9 @@ namespace component_updater {
|
||||
// The value of |kDefaultUrlSource| can be overridden with
|
||||
// --component-updater=url-source=someurl.
|
||||
const char kUpdaterJSONDefaultUrl[] =
|
||||
- "https://update.googleapis.com/service/update2/json";
|
||||
+ "trk:345:https://update.googleapis.com/service/update2/json";
|
||||
|
||||
const char kUpdaterJSONFallbackUrl[] =
|
||||
- "http://update.googleapis.com/service/update2/json";
|
||||
+ "trk:346:http://update.googleapis.com/service/update2/json";
|
||||
|
||||
} // namespace component_updater
|
||||
--- a/components/helium_services/helium_services_helpers.cc
|
||||
+++ b/components/helium_services/helium_services_helpers.cc
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/strings/stringprintf.h"
|
||||
#include "components/helium_services/pref_names.h"
|
||||
+#include "components/helium_services/schema.h"
|
||||
#include "components/prefs/pref_service.h"
|
||||
#include "net/base/url_util.h"
|
||||
#include "url/gurl.h"
|
||||
@@ -88,6 +89,12 @@ bool ShouldAccessUpdateService(const Pre
|
||||
prefs.GetBoolean(prefs::kHeliumUpdateFetchingEnabled);
|
||||
}
|
||||
|
||||
+bool ShouldAccessComponentUpdateService(const PrefService& prefs) {
|
||||
+ return ShouldAccessServices(prefs) &&
|
||||
+ HasAcceptedSchema(prefs, 1) &&
|
||||
+ prefs.GetBoolean(prefs::kHeliumUpdateFetchingEnabled);
|
||||
+}
|
||||
+
|
||||
bool ShouldAccessUBlockAssets(const PrefService& prefs) {
|
||||
return ShouldAccessServices(prefs) &&
|
||||
prefs.GetBoolean(prefs::kHeliumUBlockAssetsEnabled);
|
||||
@@ -132,6 +139,14 @@ GURL GetBrowserUpdateURL(const PrefServi
|
||||
#endif
|
||||
}
|
||||
|
||||
+GURL GetComponentUpdateURL(const PrefService* prefs) {
|
||||
+ if (!prefs || !ShouldAccessComponentUpdateService(*prefs)) {
|
||||
+ return GetDummyURL();
|
||||
+ }
|
||||
+
|
||||
+ return GetServicesBaseURL(*prefs).Resolve("/com");
|
||||
+}
|
||||
+
|
||||
GURL GetUBlockAssetsURL(const PrefService& prefs) {
|
||||
if (!ShouldAccessUBlockAssets(prefs)) {
|
||||
return GetDummyURL();
|
||||
--- a/components/helium_services/helium_services_helpers.h
|
||||
+++ b/components/helium_services/helium_services_helpers.h
|
||||
@@ -23,6 +23,7 @@ bool ShouldAccessServices(const PrefServ
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldFetchBangs(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldAccessExtensionService(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldAccessUpdateService(const PrefService& prefs);
|
||||
+COMPONENT_EXPORT(HELIUM) bool ShouldAccessComponentUpdateService(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldAccessUBlockAssets(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetServicesBaseURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetDummyURL();
|
||||
@@ -30,6 +31,7 @@ COMPONENT_EXPORT(HELIUM) GURL GetExtensi
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetWebstoreSnippetURL(const PrefService& prefs, std::string_view id);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetSpellcheckURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetBrowserUpdateURL(const PrefService& prefs);
|
||||
+COMPONENT_EXPORT(HELIUM) GURL GetComponentUpdateURL(const PrefService* prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetUBlockAssetsURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) std::optional<GURL> GetValidUserOverridenURL(std::string_view user_url_);
|
||||
COMPONENT_EXPORT(HELIUM) void ConfigurePrefChangeRegistrarFor(std::string_view pref_name,
|
||||
--- a/chrome/browser/component_updater/chrome_component_updater_configurator.cc
|
||||
+++ b/chrome/browser/component_updater/chrome_component_updater_configurator.cc
|
||||
@@ -26,11 +26,14 @@
|
||||
#include "chrome/browser/component_updater/component_updater_utils.h"
|
||||
#include "chrome/browser/component_updater/updater_state.h"
|
||||
#include "chrome/browser/net/system_network_context_manager.h"
|
||||
+#include "chrome/browser/profiles/profile.h"
|
||||
+#include "chrome/browser/profiles/profile_manager.h"
|
||||
#include "chrome/browser/update_client/chrome_update_query_params_delegate.h"
|
||||
#include "chrome/common/channel_info.h"
|
||||
#include "chrome/common/chrome_paths.h"
|
||||
#include "components/component_updater/component_updater_command_line_config_policy.h"
|
||||
#include "components/component_updater/configurator_impl.h"
|
||||
+#include "components/helium_services/helium_services_helpers.h"
|
||||
#include "components/prefs/pref_service.h"
|
||||
#include "components/services/patch/content/patch_service.h"
|
||||
#include "components/services/unzip/content/unzip_service.h"
|
||||
@@ -55,6 +58,26 @@
|
||||
namespace component_updater {
|
||||
namespace {
|
||||
|
||||
+PrefService* GetProfilePrefs() {
|
||||
+ // Browser process and profile manager are usually
|
||||
+ // not null, but they may be during tests.
|
||||
+ if (!g_browser_process) {
|
||||
+ return nullptr;
|
||||
+ }
|
||||
+
|
||||
+ ProfileManager* pm = g_browser_process->profile_manager();
|
||||
+ if (!pm) {
|
||||
+ return nullptr;
|
||||
+ }
|
||||
+
|
||||
+ Profile* profile = pm->GetLastUsedProfileIfLoaded();
|
||||
+ if (!profile) {
|
||||
+ return nullptr;
|
||||
+ }
|
||||
+
|
||||
+ return profile->GetPrefs();
|
||||
+}
|
||||
+
|
||||
class ChromeConfigurator : public update_client::Configurator {
|
||||
public:
|
||||
ChromeConfigurator(const base::CommandLine* cmdline,
|
||||
@@ -154,12 +177,12 @@ base::TimeDelta ChromeConfigurator::Upda
|
||||
|
||||
std::vector<GURL> ChromeConfigurator::UpdateUrl() const {
|
||||
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||
- return configurator_impl_.UpdateUrl();
|
||||
+ return {helium::GetComponentUpdateURL(GetProfilePrefs())};
|
||||
}
|
||||
|
||||
std::vector<GURL> ChromeConfigurator::PingUrl() const {
|
||||
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||
- return configurator_impl_.PingUrl();
|
||||
+ return {helium::GetComponentUpdateURL(GetProfilePrefs())};
|
||||
}
|
||||
|
||||
std::string ChromeConfigurator::GetProdId() const {
|
||||
--- a/components/component_updater/component_installer.cc
|
||||
+++ b/components/component_updater/component_installer.cc
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
+#include "base/containers/fixed_flat_set.h"
|
||||
#include "base/files/file_enumerator.h"
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/files/file_util.h"
|
||||
@@ -111,7 +112,21 @@ void ComponentInstaller::Register(Compon
|
||||
|
||||
std::vector<uint8_t> public_key_hash;
|
||||
installer_policy_->GetHash(&public_key_hash);
|
||||
+
|
||||
+ static constexpr auto kAllowedComponents =
|
||||
+ base::MakeFixedFlatSet<std::string_view>(
|
||||
+ base::sorted_unique,
|
||||
+ {
|
||||
+ "hfnkpimlhhgieaddgfemjhofmfblmnib", // CRLSet
|
||||
+ }
|
||||
+ );
|
||||
+
|
||||
const auto crx_id = update_client::GetCrxIdFromPublicKeyHash(public_key_hash);
|
||||
+
|
||||
+ if (!kAllowedComponents.contains(crx_id)) {
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
Register(base::BindOnce(&ComponentUpdateService::RegisterComponent,
|
||||
base::Unretained(cus)),
|
||||
std::move(callback), cus->GetRegisteredVersion(crx_id),
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -6957,6 +6957,9 @@ Keep your key file in a safe place. You
|
||||
<message name="IDS_COMPONENTS_SVC_STATUS_UPDATE_ERROR" desc="Service Status">
|
||||
Update error
|
||||
</message>
|
||||
+ <message name="IDS_COMPONENTS_SVC_STATUS_ERROR_HELIUM_SERVICES" desc="Service Status">
|
||||
+ Component updates are disabled. See Helium services in settings.
|
||||
+ </message>
|
||||
<message name="IDS_COMPONENTS_UNKNOWN" desc="Service Status">
|
||||
Unknown
|
||||
</message>
|
||||
--- a/chrome/browser/ui/webui/components/components_handler.cc
|
||||
+++ b/chrome/browser/ui/webui/components/components_handler.cc
|
||||
@@ -12,8 +12,12 @@
|
||||
#include "base/notreached.h"
|
||||
#include "base/values.h"
|
||||
#include "build/build_config.h"
|
||||
+#include "chrome/browser/profiles/profile.h"
|
||||
#include "chrome/grit/generated_resources.h"
|
||||
+#include "components/helium_services/helium_services_helpers.h"
|
||||
+#include "components/prefs/pref_service.h"
|
||||
#include "components/update_client/crx_update_item.h"
|
||||
+#include "content/public/browser/web_contents.h"
|
||||
#include "ui/base/l10n/l10n_util.h"
|
||||
|
||||
ComponentsHandler::ComponentsHandler(
|
||||
@@ -82,6 +86,20 @@ void ComponentsHandler::OnEvent(const up
|
||||
|
||||
std::u16string ComponentsHandler::ServiceStatusToString(
|
||||
update_client::ComponentState state) {
|
||||
+
|
||||
+ if (state == update_client::ComponentState::kUpdateError) {
|
||||
+ Profile* profile = Profile::FromBrowserContext(
|
||||
+ web_ui()->GetWebContents()->GetBrowserContext());
|
||||
+
|
||||
+ if (profile) {
|
||||
+ PrefService* prefs = profile->GetPrefs();
|
||||
+ if (prefs && !helium::ShouldAccessComponentUpdateService(*prefs)) {
|
||||
+ return l10n_util::GetStringUTF16(
|
||||
+ IDS_COMPONENTS_SVC_STATUS_ERROR_HELIUM_SERVICES);
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
switch (state) {
|
||||
case update_client::ComponentState::kNew:
|
||||
return l10n_util::GetStringUTF16(IDS_COMPONENTS_SVC_STATUS_NEW);
|
||||
--- a/chrome/browser/ui/webui/components/components_handler.h
|
||||
+++ b/chrome/browser/ui/webui/components/components_handler.h
|
||||
@@ -40,7 +40,7 @@ class ComponentsHandler : public content
|
||||
void OnEvent(const update_client::CrxUpdateItem& item) override;
|
||||
|
||||
private:
|
||||
- static std::u16string ServiceStatusToString(
|
||||
+ std::u16string ServiceStatusToString(
|
||||
update_client::ComponentState state);
|
||||
|
||||
base::Value::List LoadComponents();
|
||||
@@ -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
|
||||
@@ -1280,6 +1280,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() {
|
||||
@@ -665,7 +665,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
|
||||
@@ -306,13 +306,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,
|
||||
@@ -619,7 +619,7 @@ BASE_FEATURE(kByDateHistoryInSidePanel,
|
||||
|
||||
BASE_FEATURE(kTabStripBrowserApi, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
@@ -32,10 +32,10 @@
|
||||
|
||||
// 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() {
|
||||
return false;
|
||||
}
|
||||
@@ -650,6 +650,8 @@ static std::string GetCountryCode() {
|
||||
}
|
||||
|
||||
bool HasTabSearchToolbarButton() {
|
||||
+ return true;
|
||||
+
|
||||
static const bool is_tab_search_moving = [] {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -13410,11 +13410,295 @@ const FeatureEntry kFeatureEntries[] = {
|
||||
@@ -13667,11 +13667,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;
|
||||
@@ -13433,7 +13717,7 @@ class FlagsStateSingleton : public flags
|
||||
@@ -13690,7 +14007,7 @@ class FlagsStateSingleton : public flags
|
||||
|
||||
void RestoreDefaultState() {
|
||||
flags_state_ =
|
||||
@@ -306,7 +339,7 @@
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -13758,7 +14042,7 @@ base::span<const FeatureEntry> GetFeatur
|
||||
@@ -14014,7 +14331,7 @@ base::span<const FeatureEntry> GetFeatur
|
||||
!entries_for_testing->empty()) {
|
||||
return *entries_for_testing;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
@@ -5001,11 +5001,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)
|
||||
@@ -5222,11 +5222,13 @@ const FeatureEntry::FeatureVariation kPr
|
||||
// calculate and verify checksum.
|
||||
//
|
||||
// When adding a new choice, add it to the end of the list.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ungoogled_flag_entries.h
|
||||
+++ b/chrome/browser/ungoogled_flag_entries.h
|
||||
@@ -145,7 +145,7 @@
|
||||
@@ -133,7 +133,7 @@
|
||||
"Return generic values for WebGLDebugRendererInfo to remove a potential data leak while preventing potential website breakage. ungoogled-chromium flag.",
|
||||
kOsAll, FEATURE_WITH_PARAMS_VALUE_TYPE(blink::features::kSpoofWebGLInfo, kSpoofWebGLChoices, "SpoofWebGLInfo")},
|
||||
{"increase-incognito-storage-quota",
|
||||
|
||||
@@ -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
|
||||
@@ -1179,6 +1181,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
|
||||
@@ -1929,6 +1939,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",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
--- a/components/helium_services/pref_names.h
|
||||
+++ b/components/helium_services/pref_names.h
|
||||
@@ -7,12 +7,20 @@
|
||||
|
||||
namespace prefs {
|
||||
@@ -13,12 +13,20 @@ inline constexpr char kHeliumSchemaVersi
|
||||
inline constexpr char kHeliumDisableSchemaAlerts[] =
|
||||
"helium.services.disable_schema_alerts";
|
||||
|
||||
+inline constexpr char kHeliumPrefPrefix[] = "helium.";
|
||||
+
|
||||
@@ -23,8 +23,8 @@
|
||||
#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
|
||||
{
|
||||
@@ -210,6 +210,8 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterBooleanPref(prefs::kHeliumDisableSchemaAlerts, false);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
|
||||
registry->RegisterStringPref(prefs::kHeliumServicesOrigin, "");
|
||||
+ registry->RegisterBooleanPref(prefs::kHeliumDidOnboarding, false);
|
||||
@@ -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>());
|
||||
@@ -160,36 +160,36 @@
|
||||
+
|
||||
+#include "chrome/browser/profiles/profile.h"
|
||||
+#include "chrome/browser/ui/webui/onboarding/onboarding_handler.h"
|
||||
+#include "chrome/browser/ui/webui/settings/brave_import_data_handler.h"
|
||||
+#include "chrome/browser/ui/webui/settings/search_engines_handler.h"
|
||||
+#include "chrome/browser/ui/webui/settings/settings_default_browser_handler.h"
|
||||
+#include "chrome/browser/ui/webui/settings/brave_import_data_handler.h"
|
||||
+#include "chrome/common/webui_url_constants.h"
|
||||
+#include "content/public/browser/web_ui_controller.h"
|
||||
+#include "content/public/browser/web_ui_data_source.h"
|
||||
+#include "components/helium_onboarding/resources/grit/helium_onboarding_generated.h"
|
||||
+#include "components/helium_onboarding/resources/grit/helium_onboarding_generated_map.h"
|
||||
+#include "content/public/browser/web_ui_controller.h"
|
||||
+#include "content/public/browser/web_ui_data_source.h"
|
||||
+#include "ui/webui/webui_util.h"
|
||||
+
|
||||
+HeliumOnboardingPage::HeliumOnboardingPage(content::WebUI* web_ui) : WebUIController(web_ui) {
|
||||
+ Profile* profile = Profile::FromWebUI(web_ui);
|
||||
+ content::WebUIDataSource* source =
|
||||
+ content::WebUIDataSource::CreateAndAdd(profile, chrome::kHeliumSetupHost);
|
||||
+HeliumOnboardingPage::HeliumOnboardingPage(content::WebUI* web_ui)
|
||||
+ : WebUIController(web_ui) {
|
||||
+ Profile* profile = Profile::FromWebUI(web_ui);
|
||||
+ content::WebUIDataSource* source =
|
||||
+ content::WebUIDataSource::CreateAndAdd(profile, chrome::kHeliumSetupHost);
|
||||
+
|
||||
+ webui::SetupWebUIDataSource(
|
||||
+ source, kHeliumOnboardingGenerated,
|
||||
+ IDR_HELIUM_ONBOARDING_INDEX_HTML);
|
||||
+ webui::SetupWebUIDataSource(source, kHeliumOnboardingGenerated,
|
||||
+ IDR_HELIUM_ONBOARDING_INDEX_HTML);
|
||||
+
|
||||
+ source->UseStringsJs();
|
||||
+ source->DisableTrustedTypesCSP();
|
||||
+ source->UseStringsJs();
|
||||
+ source->DisableTrustedTypesCSP();
|
||||
+
|
||||
+ web_ui->AddMessageHandler(
|
||||
+ std::make_unique<OnboardingMessageHandler>(profile));
|
||||
+ web_ui->AddMessageHandler(
|
||||
+ std::make_unique<settings::SearchEnginesHandler>(profile));
|
||||
+ web_ui->AddMessageHandler(
|
||||
+ std::make_unique<settings::DefaultBrowserHandler>());
|
||||
+ web_ui->AddMessageHandler(
|
||||
+ std::make_unique<settings::BraveImportDataHandler>());
|
||||
+ web_ui->AddMessageHandler(
|
||||
+ std::make_unique<OnboardingMessageHandler>(profile));
|
||||
+ web_ui->AddMessageHandler(
|
||||
+ std::make_unique<settings::SearchEnginesHandler>(profile));
|
||||
+ web_ui->AddMessageHandler(
|
||||
+ std::make_unique<settings::DefaultBrowserHandler>());
|
||||
+ web_ui->AddMessageHandler(
|
||||
+ std::make_unique<settings::BraveImportDataHandler>());
|
||||
+}
|
||||
+
|
||||
+HeliumOnboardingPage::~HeliumOnboardingPage() = default;
|
||||
@@ -204,8 +204,8 @@
|
||||
+#define CHROME_BROWSER_UI_WEBUI_ONBOARDING_ONBOARDING_PAGE_UI_H_
|
||||
+
|
||||
+#include "chrome/common/webui_url_constants.h"
|
||||
+#include "content/public/browser/webui_config.h"
|
||||
+#include "content/public/browser/web_ui_controller.h"
|
||||
+#include "content/public/browser/webui_config.h"
|
||||
+
|
||||
+class HeliumOnboardingPage;
|
||||
+
|
||||
@@ -213,23 +213,23 @@
|
||||
+ : public content::DefaultWebUIConfig<HeliumOnboardingPage> {
|
||||
+ public:
|
||||
+ HeliumOnboardingPageConfig()
|
||||
+ : DefaultWebUIConfig(content::kChromeUIScheme,
|
||||
+ chrome::kHeliumSetupHost) {}
|
||||
+ : DefaultWebUIConfig(content::kChromeUIScheme, chrome::kHeliumSetupHost) {
|
||||
+ }
|
||||
+};
|
||||
+
|
||||
+class HeliumOnboardingPage : public content::WebUIController {
|
||||
+public:
|
||||
+ explicit HeliumOnboardingPage(content::WebUI* web_ui);
|
||||
+ public:
|
||||
+ explicit HeliumOnboardingPage(content::WebUI* web_ui);
|
||||
+
|
||||
+ HeliumOnboardingPage(const HeliumOnboardingPage&) = delete;
|
||||
+ HeliumOnboardingPage& operator=(const HeliumOnboardingPage&) = delete;
|
||||
+ ~HeliumOnboardingPage() override;
|
||||
+ HeliumOnboardingPage(const HeliumOnboardingPage&) = delete;
|
||||
+ HeliumOnboardingPage& operator=(const HeliumOnboardingPage&) = delete;
|
||||
+ ~HeliumOnboardingPage() override;
|
||||
+};
|
||||
+
|
||||
+#endif // CHROME_BROWSER_UI_WEBUI_ONBOARDING_ONBOARDING_PAGE_UI_H_
|
||||
+#endif // CHROME_BROWSER_UI_WEBUI_ONBOARDING_ONBOARDING_PAGE_UI_H_
|
||||
--- /dev/null
|
||||
+++ b/chrome/browser/ui/webui/onboarding/onboarding_handler.cc
|
||||
@@ -0,0 +1,190 @@
|
||||
@@ -0,0 +1,188 @@
|
||||
+// 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.
|
||||
@@ -248,6 +248,7 @@
|
||||
+#include "chrome/browser/themes/theme_service_factory.h"
|
||||
+#include "chrome/browser/ui/color/chrome_color_id.h"
|
||||
+#include "components/helium_services/pref_names.h"
|
||||
+#include "components/helium_services/schema.h"
|
||||
+#include "components/prefs/pref_change_registrar.h"
|
||||
+#include "components/prefs/pref_service.h"
|
||||
+#include "content/public/browser/web_contents.h"
|
||||
@@ -255,174 +256,171 @@
|
||||
+#include "ui/gfx/color_utils.h"
|
||||
+
|
||||
+OnboardingMessageHandler::OnboardingMessageHandler(Profile* profile)
|
||||
+ : profile_(profile),
|
||||
+ pref_service_(profile->GetPrefs()) {
|
||||
+ pref_change_registrar_.Init(pref_service_);
|
||||
+ : profile_(profile), pref_service_(profile->GetPrefs()) {
|
||||
+ pref_change_registrar_.Init(pref_service_);
|
||||
+
|
||||
+ for (const auto [ key, _ ] : GetPreferencesDict()) {
|
||||
+ pref_change_registrar_.Add(
|
||||
+ prefs::kHeliumPrefPrefix + key,
|
||||
+ base::BindRepeating(
|
||||
+ &OnboardingMessageHandler::OnPreferencesChanged,
|
||||
+ base::Unretained(this)
|
||||
+ )
|
||||
+ );
|
||||
+ }
|
||||
+ for (const auto [key, _] : GetPreferencesDict()) {
|
||||
+ pref_change_registrar_.Add(
|
||||
+ prefs::kHeliumPrefPrefix + key,
|
||||
+ base::BindRepeating(&OnboardingMessageHandler::OnPreferencesChanged,
|
||||
+ base::Unretained(this)));
|
||||
+ }
|
||||
+
|
||||
+ ThemeServiceFactory::GetForProfile(profile_)->AddObserver(this);
|
||||
+ ThemeServiceFactory::GetForProfile(profile_)->AddObserver(this);
|
||||
+}
|
||||
+
|
||||
+OnboardingMessageHandler::~OnboardingMessageHandler() {
|
||||
+ ThemeServiceFactory::GetForProfile(profile_)->RemoveObserver(this);
|
||||
+ ThemeServiceFactory::GetForProfile(profile_)->RemoveObserver(this);
|
||||
+}
|
||||
+
|
||||
+base::Value::Dict OnboardingMessageHandler::GetPreferencesDict() {
|
||||
+ std::vector<PrefService::PreferenceValueAndStore> values =
|
||||
+ pref_service_->GetPreferencesValueAndStore();
|
||||
+ base::Value::Dict output;
|
||||
+ std::vector<PrefService::PreferenceValueAndStore> values =
|
||||
+ pref_service_->GetPreferencesValueAndStore();
|
||||
+ base::Value::Dict output;
|
||||
+
|
||||
+ for (const auto& [name, value, _] : values) {
|
||||
+ if (!base::StartsWith(name, prefs::kHeliumPrefPrefix,
|
||||
+ base::CompareCase::SENSITIVE)) {
|
||||
+ continue;
|
||||
+ }
|
||||
+
|
||||
+ output.Set(
|
||||
+ name.substr(sizeof(prefs::kHeliumPrefPrefix) - 1),
|
||||
+ value.Clone()
|
||||
+ );
|
||||
+ for (const auto& [name, value, _] : values) {
|
||||
+ if (!base::StartsWith(name, prefs::kHeliumPrefPrefix,
|
||||
+ base::CompareCase::SENSITIVE)) {
|
||||
+ continue;
|
||||
+ }
|
||||
+
|
||||
+ return output;
|
||||
+ output.Set(name.substr(sizeof(prefs::kHeliumPrefPrefix) - 1),
|
||||
+ value.Clone());
|
||||
+ }
|
||||
+
|
||||
+ return output;
|
||||
+}
|
||||
+
|
||||
+void OnboardingMessageHandler::OnThemeChanged() {
|
||||
+ AllowJavascript();
|
||||
+ FireWebUIListener("ntp-background-changed", GetNTPBackgroundColor());
|
||||
+ AllowJavascript();
|
||||
+ FireWebUIListener("ntp-background-changed", GetNTPBackgroundColor());
|
||||
+}
|
||||
+
|
||||
+void OnboardingMessageHandler::OnPreferencesChanged() {
|
||||
+ AllowJavascript();
|
||||
+ FireWebUIListener("helium-prefs-changed", GetPreferencesDict());
|
||||
+ AllowJavascript();
|
||||
+ FireWebUIListener("helium-prefs-changed", GetPreferencesDict());
|
||||
+}
|
||||
+
|
||||
+void OnboardingMessageHandler::RegisterMessages() {
|
||||
+ web_ui()->RegisterMessageCallback(
|
||||
+ "getPrefs",
|
||||
+ base::BindRepeating(&OnboardingMessageHandler::HandleGetPreferences,
|
||||
+ base::Unretained(this)));
|
||||
+
|
||||
+ web_ui()->RegisterMessageCallback(
|
||||
+ "setPref",
|
||||
+ base::BindRepeating(&OnboardingMessageHandler::HandleSetPreference,
|
||||
+ base::Unretained(this)));
|
||||
+
|
||||
+ web_ui()->RegisterMessageCallback(
|
||||
+ "getProfileName",
|
||||
+ base::BindRepeating(&OnboardingMessageHandler::HandleGetProfileName,
|
||||
+ base::Unretained(this)));
|
||||
+
|
||||
+ web_ui()->RegisterMessageCallback(
|
||||
+ "setProfileName",
|
||||
+ base::BindRepeating(&OnboardingMessageHandler::HandleSetProfileName,
|
||||
+ base::Unretained(this)));
|
||||
+
|
||||
+ web_ui()->RegisterMessageCallback(
|
||||
+ "getBackgroundColor",
|
||||
+ base::BindRepeating(&OnboardingMessageHandler::HandleGetBackgroundColor,
|
||||
+ base::Unretained(this)));
|
||||
+ web_ui()->RegisterMessageCallback(
|
||||
+ "getPrefs",
|
||||
+ base::BindRepeating(&OnboardingMessageHandler::HandleGetPreferences,
|
||||
+ base::Unretained(this)));
|
||||
+ web_ui()->RegisterMessageCallback(
|
||||
+ "setPref",
|
||||
+ base::BindRepeating(&OnboardingMessageHandler::HandleSetPreference,
|
||||
+ base::Unretained(this)));
|
||||
+ web_ui()->RegisterMessageCallback(
|
||||
+ "acceptLatestSchema",
|
||||
+ base::BindRepeating(&OnboardingMessageHandler::HandleAcceptSchema,
|
||||
+ base::Unretained(this)));
|
||||
+ web_ui()->RegisterMessageCallback(
|
||||
+ "getProfileName",
|
||||
+ base::BindRepeating(&OnboardingMessageHandler::HandleGetProfileName,
|
||||
+ base::Unretained(this)));
|
||||
+ web_ui()->RegisterMessageCallback(
|
||||
+ "setProfileName",
|
||||
+ base::BindRepeating(&OnboardingMessageHandler::HandleSetProfileName,
|
||||
+ base::Unretained(this)));
|
||||
+ web_ui()->RegisterMessageCallback(
|
||||
+ "getBackgroundColor",
|
||||
+ base::BindRepeating(&OnboardingMessageHandler::HandleGetBackgroundColor,
|
||||
+ base::Unretained(this)));
|
||||
+}
|
||||
+
|
||||
+base::Value OnboardingMessageHandler::GetNTPBackgroundColor() {
|
||||
+ return base::Value(
|
||||
+ color_utils::SkColorToRgbaString(
|
||||
+ web_ui()
|
||||
+ ->GetWebContents()
|
||||
+ ->GetColorProvider().GetColor(kColorNewTabPageBackground)
|
||||
+ )
|
||||
+ );
|
||||
+ return base::Value(color_utils::SkColorToRgbaString(
|
||||
+ web_ui()->GetWebContents()->GetColorProvider().GetColor(
|
||||
+ kColorNewTabPageBackground)));
|
||||
+}
|
||||
+
|
||||
+void OnboardingMessageHandler::HandleGetBackgroundColor(const base::Value::List& args) {
|
||||
+ CHECK_EQ(1U, args.size());
|
||||
+ const auto& callback_id = args[0].GetString();
|
||||
+void OnboardingMessageHandler::HandleGetBackgroundColor(
|
||||
+ const base::Value::List& args) {
|
||||
+ CHECK_EQ(1U, args.size());
|
||||
+ const auto& callback_id = args[0].GetString();
|
||||
+
|
||||
+ AllowJavascript();
|
||||
+ ResolveJavascriptCallback(
|
||||
+ base::Value(callback_id), GetNTPBackgroundColor());
|
||||
+ AllowJavascript();
|
||||
+ ResolveJavascriptCallback(base::Value(callback_id), GetNTPBackgroundColor());
|
||||
+}
|
||||
+
|
||||
+void OnboardingMessageHandler::HandleGetPreferences(const base::Value::List& args) {
|
||||
+ CHECK_EQ(1U, args.size());
|
||||
+ const auto& callback_id = args[0].GetString();
|
||||
+void OnboardingMessageHandler::HandleGetPreferences(
|
||||
+ const base::Value::List& args) {
|
||||
+ CHECK_EQ(1U, args.size());
|
||||
+ const auto& callback_id = args[0].GetString();
|
||||
+
|
||||
+ AllowJavascript();
|
||||
+ ResolveJavascriptCallback(
|
||||
+ base::Value(callback_id), base::Value(GetPreferencesDict()));
|
||||
+ AllowJavascript();
|
||||
+ ResolveJavascriptCallback(base::Value(callback_id),
|
||||
+ base::Value(GetPreferencesDict()));
|
||||
+}
|
||||
+
|
||||
+void OnboardingMessageHandler::HandleGetProfileName(const base::Value::List& args) {
|
||||
+ CHECK_EQ(1U, args.size());
|
||||
+ const auto& callback_id = args[0].GetString();
|
||||
+void OnboardingMessageHandler::HandleGetProfileName(
|
||||
+ const base::Value::List& args) {
|
||||
+ CHECK_EQ(1U, args.size());
|
||||
+ const auto& callback_id = args[0].GetString();
|
||||
+
|
||||
+ ProfileAttributesEntry* entry =
|
||||
+ g_browser_process->profile_manager()
|
||||
+ ->GetProfileAttributesStorage()
|
||||
+ .GetProfileAttributesWithPath(profile_->GetPath());
|
||||
+ ProfileAttributesEntry* entry =
|
||||
+ g_browser_process->profile_manager()
|
||||
+ ->GetProfileAttributesStorage()
|
||||
+ .GetProfileAttributesWithPath(profile_->GetPath());
|
||||
+
|
||||
+ if (!entry) {
|
||||
+ return RejectJavascriptCallback(callback_id, "entry not found");
|
||||
+ }
|
||||
+ if (!entry) {
|
||||
+ return RejectJavascriptCallback(callback_id, "entry not found");
|
||||
+ }
|
||||
+
|
||||
+ AllowJavascript();
|
||||
+ ResolveJavascriptCallback(
|
||||
+ base::Value(callback_id),
|
||||
+ base::Value(entry->GetLocalProfileName()));
|
||||
+ AllowJavascript();
|
||||
+ ResolveJavascriptCallback(base::Value(callback_id),
|
||||
+ base::Value(entry->GetLocalProfileName()));
|
||||
+}
|
||||
+
|
||||
+void OnboardingMessageHandler::HandleSetProfileName(const base::Value::List& args) {
|
||||
+ CHECK_EQ(1U, args.size());
|
||||
+ std::u16string new_name = base::UTF8ToUTF16(args[0].GetString());
|
||||
+ base::TrimWhitespace(new_name, base::TRIM_ALL, &new_name);
|
||||
+void OnboardingMessageHandler::HandleSetProfileName(
|
||||
+ const base::Value::List& args) {
|
||||
+ CHECK_EQ(1U, args.size());
|
||||
+ std::u16string new_name = base::UTF8ToUTF16(args[0].GetString());
|
||||
+ base::TrimWhitespace(new_name, base::TRIM_ALL, &new_name);
|
||||
+
|
||||
+ if (!new_name.empty()) {
|
||||
+ profiles::UpdateProfileName(profile_, new_name);
|
||||
+ }
|
||||
+ if (!new_name.empty()) {
|
||||
+ profiles::UpdateProfileName(profile_, new_name);
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+void OnboardingMessageHandler::HandleSetPreference(const base::Value::List& args) {
|
||||
+ if (args.size() == 0) {
|
||||
+ return;
|
||||
+ }
|
||||
+void OnboardingMessageHandler::HandleSetPreference(
|
||||
+ const base::Value::List& args) {
|
||||
+ if (args.size() == 0) {
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ AllowJavascript();
|
||||
+ AllowJavascript();
|
||||
+
|
||||
+ const auto& callback_id = args[0].GetString();
|
||||
+ if (args.size() != 3) {
|
||||
+ return RejectJavascriptCallback(callback_id, "invalid arguments");
|
||||
+ }
|
||||
+ const auto& callback_id = args[0].GetString();
|
||||
+ if (args.size() != 3) {
|
||||
+ return RejectJavascriptCallback(callback_id, "invalid arguments");
|
||||
+ }
|
||||
+
|
||||
+ if (!args[1].is_string()) {
|
||||
+ return RejectJavascriptCallback(callback_id, "pref is not a string");
|
||||
+ }
|
||||
+ if (!args[1].is_string()) {
|
||||
+ return RejectJavascriptCallback(callback_id, "pref is not a string");
|
||||
+ }
|
||||
+
|
||||
+ const auto& pref_name = prefs::kHeliumPrefPrefix + args[1].GetString();
|
||||
+ auto* pref = pref_service_->FindPreference(pref_name);
|
||||
+ if (!pref) {
|
||||
+ return RejectJavascriptCallback(callback_id, pref_name + " does not exist");
|
||||
+ }
|
||||
+ const auto& pref_name = prefs::kHeliumPrefPrefix + args[1].GetString();
|
||||
+ auto* pref = pref_service_->FindPreference(pref_name);
|
||||
+ if (!pref) {
|
||||
+ return RejectJavascriptCallback(callback_id, pref_name + " does not exist");
|
||||
+ }
|
||||
+
|
||||
+ if (args[2].type() != pref->GetType()) {
|
||||
+ return RejectJavascriptCallback(callback_id, "invalid value type");
|
||||
+ }
|
||||
+ if (args[2].type() != pref->GetType()) {
|
||||
+ return RejectJavascriptCallback(callback_id, "invalid value type");
|
||||
+ }
|
||||
+
|
||||
+ pref_service_->Set(pref_name, args[2].Clone());
|
||||
+ pref_service_->Set(pref_name, args[2].Clone());
|
||||
+
|
||||
+ ResolveJavascriptCallback(callback_id, {});
|
||||
+ ResolveJavascriptCallback(callback_id, {});
|
||||
+}
|
||||
+
|
||||
+void OnboardingMessageHandler::HandleAcceptSchema(const base::Value::List&) {
|
||||
+ helium::AcceptCurrentSchema(*pref_service_);
|
||||
+}
|
||||
--- /dev/null
|
||||
+++ b/chrome/browser/ui/webui/onboarding/onboarding_handler.h
|
||||
@@ -0,0 +1,51 @@
|
||||
@@ -0,0 +1,52 @@
|
||||
+// 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.
|
||||
@@ -437,10 +435,10 @@
|
||||
+#include "base/memory/weak_ptr.h"
|
||||
+#include "base/values.h"
|
||||
+#include "chrome/browser/profiles/profile.h"
|
||||
+#include "components/prefs/pref_service.h"
|
||||
+#include "components/prefs/pref_change_registrar.h"
|
||||
+#include "content/public/browser/web_ui_message_handler.h"
|
||||
+#include "chrome/browser/themes/theme_service_observer.h"
|
||||
+#include "components/prefs/pref_change_registrar.h"
|
||||
+#include "components/prefs/pref_service.h"
|
||||
+#include "content/public/browser/web_ui_message_handler.h"
|
||||
+
|
||||
+class OnboardingMessageHandler : public content::WebUIMessageHandler,
|
||||
+ public ThemeServiceObserver {
|
||||
@@ -455,6 +453,7 @@
|
||||
+ private:
|
||||
+ base::Value::Dict GetPreferencesDict();
|
||||
+ void HandleGetPreferences(const base::Value::List& args);
|
||||
+ void HandleAcceptSchema(const base::Value::List& args);
|
||||
+ void HandleSetPreference(const base::Value::List& args);
|
||||
+ void HandleGetProfileName(const base::Value::List& args);
|
||||
+ void HandleSetProfileName(const base::Value::List& args);
|
||||
@@ -473,7 +472,7 @@
|
||||
+ base::WeakPtrFactory<OnboardingMessageHandler> weak_ptr_factory_{this};
|
||||
+};
|
||||
+
|
||||
+#endif // CHROME_BROWSER_UI_WEBUI_ONBOARDING_ONBOARDING_HANDLER_H_
|
||||
+#endif // CHROME_BROWSER_UI_WEBUI_ONBOARDING_ONBOARDING_HANDLER_H_
|
||||
--- a/components/helium_services/helium_services_helpers.cc
|
||||
+++ b/components/helium_services/helium_services_helpers.cc
|
||||
@@ -53,12 +53,18 @@ GURL GetDummyURL() {
|
||||
@@ -494,8 +493,8 @@
|
||||
registrar.Add(prefs::kHeliumServicesEnabled, observer);
|
||||
+ registrar.Add(prefs::kHeliumServicesConsented, observer);
|
||||
registrar.Add(prefs::kHeliumServicesOrigin, observer);
|
||||
registrar.Add(prefs::kHeliumSchemaVersion, observer);
|
||||
registrar.Add(pref_name, observer);
|
||||
}
|
||||
--- a/chrome/browser/ui/incognito_allowed_url.cc
|
||||
+++ b/chrome/browser/ui/incognito_allowed_url.cc
|
||||
@@ -48,7 +48,8 @@ bool IsHostAllowedInIncognito(const GURL
|
||||
@@ -524,18 +523,18 @@
|
||||
--- 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 @@
|
||||
<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
|
||||
@@ -1956,6 +1956,12 @@
|
||||
<message name="IDS_SETTINGS_HELIUM_SCHEMA_IGNORE" desc="Checkbox label to ignore any future services change alerts">
|
||||
Don't notify me again
|
||||
</message>
|
||||
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_SETUP_PENDING_TEXT" desc="Description shown in services settings when user has not completed onboarding">
|
||||
+ Helium services are not available until setup is complete to ensure your privacy and consent.
|
||||
@@ -548,7 +547,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;
|
||||
@@ -559,9 +558,9 @@
|
||||
(*s_allowlist)[::prefs::kPrivacyGuideViewed] =
|
||||
--- a/chrome/browser/resources/settings/privacy_page/services_page.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/services_page.html
|
||||
@@ -2,10 +2,42 @@
|
||||
.label-wrapper {
|
||||
padding: var(--cr-section-vertical-padding) 0;
|
||||
@@ -25,10 +25,42 @@
|
||||
margin-top: var(--cr-changelog-padding);
|
||||
padding-top: calc(var(--cr-changelog-padding) / 2);
|
||||
}
|
||||
+
|
||||
+ #onboarding-link {
|
||||
@@ -599,10 +598,10 @@
|
||||
+ </template>
|
||||
+
|
||||
+ <template is="dom-if" if="[[prefs.helium.services.user_consented.value]]">
|
||||
<settings-toggle-button id="servicesToggleButton"
|
||||
pref="{{prefs.helium.services.enabled}}"
|
||||
label="$i18n{heliumServicesToggle}"
|
||||
@@ -15,6 +47,7 @@
|
||||
<template is="dom-if" if="[[changes_.length]]">
|
||||
<div id="changelog-notice">
|
||||
<div id="changelog-title">$i18n{heliumSchemaUpdatedTitle}</div>
|
||||
@@ -57,6 +89,7 @@
|
||||
<cr-collapse id="servicesCollapse" opened="[[prefs.helium.services.enabled.value]]">
|
||||
</cr-collapse>
|
||||
</div>
|
||||
@@ -612,7 +611,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,
|
||||
@@ -20,15 +20,15 @@
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
--- a/content/common/url_schemes.cc
|
||||
+++ b/content/common/url_schemes.cc
|
||||
@@ -33,6 +33,7 @@ const char* const kDefaultSavableSchemes
|
||||
@@ -30,6 +30,7 @@ const char* const kDefaultSavableSchemes
|
||||
url::kFileSystemScheme,
|
||||
kChromeDevToolsScheme,
|
||||
kChromeUIScheme,
|
||||
+ kHeliumUIScheme,
|
||||
url::kDataScheme,
|
||||
url::kJavaScriptScheme,
|
||||
url::kMailToScheme,
|
||||
@@ -68,6 +69,7 @@ void RegisterContentSchemes(bool should_
|
||||
url::kDataScheme
|
||||
};
|
||||
|
||||
@@ -60,6 +61,7 @@ void RegisterContentSchemes(bool should_
|
||||
|
||||
url::AddStandardScheme(kChromeDevToolsScheme, url::SCHEME_WITH_HOST);
|
||||
url::AddStandardScheme(kChromeUIScheme, url::SCHEME_WITH_HOST);
|
||||
@@ -36,7 +36,7 @@
|
||||
url::AddStandardScheme(kChromeUIUntrustedScheme, url::SCHEME_WITH_HOST);
|
||||
url::AddStandardScheme(kChromeErrorScheme, url::SCHEME_WITH_HOST);
|
||||
for (auto& scheme : schemes.standard_schemes)
|
||||
@@ -78,6 +80,7 @@ void RegisterContentSchemes(bool should_
|
||||
@@ -70,6 +72,7 @@ void RegisterContentSchemes(bool should_
|
||||
|
||||
schemes.secure_schemes.push_back(kChromeDevToolsScheme);
|
||||
schemes.secure_schemes.push_back(kChromeUIScheme);
|
||||
@@ -44,7 +44,7 @@
|
||||
schemes.secure_schemes.push_back(kChromeUIUntrustedScheme);
|
||||
schemes.secure_schemes.push_back(kChromeErrorScheme);
|
||||
for (auto& scheme : schemes.secure_schemes)
|
||||
@@ -98,6 +101,7 @@ void RegisterContentSchemes(bool should_
|
||||
@@ -90,6 +93,7 @@ void RegisterContentSchemes(bool should_
|
||||
url::AddNoAccessScheme(scheme.c_str());
|
||||
|
||||
schemes.cors_enabled_schemes.push_back(kChromeUIScheme);
|
||||
@@ -52,7 +52,7 @@
|
||||
schemes.cors_enabled_schemes.push_back(kChromeUIUntrustedScheme);
|
||||
for (auto& scheme : schemes.cors_enabled_schemes)
|
||||
url::AddCorsEnabledScheme(scheme.c_str());
|
||||
@@ -126,6 +130,7 @@ void RegisterContentSchemes(bool should_
|
||||
@@ -118,6 +122,7 @@ void RegisterContentSchemes(bool should_
|
||||
// service workers don't work for chrome[-untrusted]:// when the flag is not
|
||||
// enabled.
|
||||
schemes.service_worker_schemes.push_back(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"
|
||||
@@ -2447,7 +2448,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
|
||||
@@ -1185,7 +1185,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,9 +177,9 @@
|
||||
(*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
|
||||
|
||||
{
|
||||
@@ -213,6 +213,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterIntegerPref(prefs::kHeliumSchemaVersion, 0);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumDisableSchemaAlerts, false);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
|
||||
+ registry->RegisterBooleanPref(prefs::kHeliumExtProxyEnabled, true);
|
||||
registry->RegisterStringPref(prefs::kHeliumServicesOrigin, "");
|
||||
@@ -187,7 +187,7 @@
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesConsented, false);
|
||||
--- a/chrome/browser/resources/settings/privacy_page/services_page.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/services_page.html
|
||||
@@ -45,6 +45,11 @@
|
||||
@@ -87,6 +87,11 @@
|
||||
</settings-toggle-button>
|
||||
<div class="cr-col">
|
||||
<cr-collapse id="servicesCollapse" opened="[[prefs.helium.services.enabled.value]]">
|
||||
@@ -201,10 +201,10 @@
|
||||
</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
|
||||
{"heliumServicesToggle", IDS_SETTINGS_HELIUM_SERVICES_TOGGLE},
|
||||
{"heliumServicesToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION},
|
||||
@@ -2130,6 +2130,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
IDS_SETTINGS_HELIUM_SCHEMA_NOTICE_DESCRIPTION},
|
||||
{"heliumGotIt", IDS_SETTINGS_GOT_IT},
|
||||
{"heliumSchemaIgnore", IDS_SETTINGS_HELIUM_SCHEMA_IGNORE},
|
||||
+ {"heliumExtProxyToggle",
|
||||
+ IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE},
|
||||
+ {"heliumExtProxyToggleDescription",
|
||||
@@ -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 @@
|
||||
@@ -1984,6 +1984,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>
|
||||
@@ -229,7 +229,7 @@
|
||||
</message>
|
||||
--- a/components/helium_services/pref_names.h
|
||||
+++ b/components/helium_services/pref_names.h
|
||||
@@ -21,6 +21,9 @@ inline constexpr char kHeliumServicesCon
|
||||
@@ -27,6 +27,9 @@ inline constexpr char kHeliumServicesCon
|
||||
inline constexpr char kHeliumDidOnboarding[] =
|
||||
"helium.completed_onboarding";
|
||||
|
||||
@@ -241,7 +241,15 @@
|
||||
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
|
||||
--- a/components/helium_services/helium_services_helpers.cc
|
||||
+++ b/components/helium_services/helium_services_helpers.cc
|
||||
@@ -61,6 +61,28 @@ bool ShouldAccessServices(const PrefServ
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <optional>
|
||||
|
||||
#include "base/functional/bind.h"
|
||||
+#include "base/strings/stringprintf.h"
|
||||
#include "components/helium_services/pref_names.h"
|
||||
#include "components/prefs/pref_service.h"
|
||||
#include "net/base/url_util.h"
|
||||
@@ -61,6 +62,28 @@ bool ShouldAccessServices(const PrefServ
|
||||
|| prefs.HasPrefPath(prefs::kHeliumServicesEnabled));
|
||||
}
|
||||
|
||||
@@ -272,9 +280,9 @@
|
||||
registrar.Add(prefs::kHeliumServicesEnabled, observer);
|
||||
--- a/components/helium_services/helium_services_helpers.h
|
||||
+++ b/components/helium_services/helium_services_helpers.h
|
||||
@@ -18,8 +18,11 @@ const char kHeliumDefaultOrigin[] =
|
||||
const char kHeliumDummyOrigin[] =
|
||||
"https://helium-services-are-disabled.qjz9zk";
|
||||
@@ -20,8 +20,11 @@ const char kHeliumDummyOrigin[] =
|
||||
|
||||
bool ShouldAccessServices(const PrefService& prefs);
|
||||
|
||||
+COMPONENT_EXPORT(HELIUM) bool ShouldAccessExtensionService(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetServicesBaseURL(const PrefService& prefs);
|
||||
@@ -330,7 +338,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 +399,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 +408,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 +417,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 +430,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 +438,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 +482,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 +491,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 +583,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"
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
--- a/components/helium_services/helium_services_helpers.cc
|
||||
+++ b/components/helium_services/helium_services_helpers.cc
|
||||
@@ -66,6 +66,11 @@ bool ShouldAccessExtensionService(const
|
||||
@@ -67,6 +67,11 @@ bool ShouldAccessExtensionService(const
|
||||
prefs.GetBoolean(prefs::kHeliumExtProxyEnabled);
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
bool ShouldFetchBangs(const PrefService& prefs) {
|
||||
return ShouldAccessServices(prefs) &&
|
||||
prefs.GetBoolean(prefs::kHeliumBangsEnabled);
|
||||
@@ -88,6 +93,14 @@ GURL GetWebstoreSnippetURL(const PrefSer
|
||||
@@ -89,6 +94,14 @@ GURL GetWebstoreSnippetURL(const PrefSer
|
||||
base::StringPrintf("/ext/cws_snippet?id=%s", id));
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
registrar.Add(prefs::kHeliumServicesEnabled, observer);
|
||||
--- a/components/helium_services/helium_services_helpers.h
|
||||
+++ b/components/helium_services/helium_services_helpers.h
|
||||
@@ -24,6 +24,7 @@ COMPONENT_EXPORT(HELIUM) GURL GetService
|
||||
@@ -26,6 +26,7 @@ COMPONENT_EXPORT(HELIUM) GURL GetService
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetDummyURL();
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetExtensionUpdateURL(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetWebstoreSnippetURL(const PrefService& prefs, std::string_view id);
|
||||
@@ -84,7 +84,7 @@
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer);
|
||||
--- a/components/helium_services/pref_names.h
|
||||
+++ b/components/helium_services/pref_names.h
|
||||
@@ -27,6 +27,9 @@ inline constexpr char kHeliumExtProxyEna
|
||||
@@ -33,6 +33,9 @@ inline constexpr char kHeliumExtProxyEna
|
||||
inline constexpr char kHeliumBangsEnabled[] =
|
||||
"helium.services.bangs";
|
||||
|
||||
@@ -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
|
||||
@@ -215,6 +215,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumBangsEnabled, true);
|
||||
registry->RegisterBooleanPref(prefs::kHeliumExtProxyEnabled, true);
|
||||
@@ -128,7 +128,7 @@
|
||||
registry->RegisterBooleanPref(prefs::kHeliumServicesConsented, false);
|
||||
--- a/chrome/browser/resources/settings/privacy_page/services_page.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/services_page.html
|
||||
@@ -55,6 +55,13 @@
|
||||
@@ -97,6 +97,13 @@
|
||||
label="$i18n{heliumBangsToggle}"
|
||||
sub-label="$i18n{heliumBangsToggleDescription}">
|
||||
</settings-toggle-button>
|
||||
@@ -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">
|
||||
@@ -1996,6 +1999,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,16 +169,25 @@
|
||||
</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)
|
||||
@@ -2137,6 +2137,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"heliumBangsToggle", IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE},
|
||||
{"heliumBangsToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE_DESCRIPTION},
|
||||
+ {"heliumSpellcheckToggle", IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE},
|
||||
+ {"heliumSpellcheckToggleDescription",
|
||||
+ IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE_DESCRIPTION},
|
||||
{"heliumExtProxyToggle",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE},
|
||||
{"heliumExtProxyToggleDescription",
|
||||
{"heliumOriginOverride", IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE},
|
||||
{"heliumOriginOverrideDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION},
|
||||
--- a/chrome/common/features.gni
|
||||
+++ b/chrome/common/features.gni
|
||||
@@ -10,6 +10,7 @@ import("//components/compose/features.gn
|
||||
|
||||
@@ -19,15 +19,6 @@
|
||||
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||
if (url_source_override_.is_valid()) {
|
||||
return {GURL(url_source_override_)};
|
||||
@@ -123,7 +125,7 @@ bool ConfiguratorImpl::EnabledDeltas() c
|
||||
|
||||
bool ConfiguratorImpl::EnabledComponentUpdates() const {
|
||||
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||
- return true;
|
||||
+ return false;
|
||||
}
|
||||
|
||||
bool ConfiguratorImpl::EnabledBackgroundDownloader() const {
|
||||
@@ -133,7 +135,7 @@ bool ConfiguratorImpl::EnabledBackground
|
||||
|
||||
bool ConfiguratorImpl::EnabledCupSigning() const {
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
case side_panel::customize_chrome::mojom::ActionId::kShowDownloads:
|
||||
return kActionShowDownloads;
|
||||
case side_panel::customize_chrome::mojom::ActionId::kClearBrowsingData:
|
||||
@@ -280,16 +250,8 @@ void CustomizeToolbarHandler::ListAction
|
||||
@@ -291,16 +261,8 @@ void CustomizeToolbarHandler::ListAction
|
||||
add_action(kActionNewIncognitoWindow,
|
||||
side_panel::customize_chrome::mojom::CategoryId::kNavigation);
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
add_action(kActionSidePanelShowHistoryCluster,
|
||||
side_panel::customize_chrome::mojom::CategoryId::kYourChrome);
|
||||
add_action(kActionShowDownloads,
|
||||
@@ -303,18 +265,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,
|
||||
|
||||
@@ -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
|
||||
@@ -2667,14 +2665,9 @@ void AddSearchStrings(content::WebUIData
|
||||
html_source->AddString("searchExplanationLearnMoreURL",
|
||||
chrome::kOmniboxLearnMoreURL);
|
||||
|
||||
@@ -70,8 +70,8 @@
|
||||
// settings". Here we check for the program reference directly as command line
|
||||
--- 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,40 @@
|
||||
<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>
|
||||
@@ -10,6 +10,15 @@
|
||||
+ <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>
|
||||
+ <message name="IDS_SETTINGS_HELIUM_SCHEMA_NOTICE_TITLE" desc="Title of the alert shown when Helium services have a change in behavior">
|
||||
+ Updates to Helium services:
|
||||
+ </message>
|
||||
+ <message name="IDS_SETTINGS_HELIUM_SCHEMA_NOTICE_DESCRIPTION" desc="Description of the alert shown when Helium services have a change in behavior">
|
||||
+ These changes are not active until you dismiss this notice.
|
||||
+ </message>
|
||||
+ <message name="IDS_SETTINGS_HELIUM_SCHEMA_IGNORE" desc="Checkbox label to ignore any future services change alerts">
|
||||
+ Don't notify me again
|
||||
+ </message>
|
||||
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_TOGGLE" desc="Global toggle for enabling/disabling of all Helium services">
|
||||
+ Allow connecting to Helium services
|
||||
+ </message>
|
||||
@@ -34,8 +43,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,23 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"siteSettingsSublabel", IDS_SETTINGS_PERMISSIONS_DESCRIPTION},
|
||||
{"securityPageTitle", IDS_SETTINGS_SECURITY},
|
||||
{"securityPageDescription", IDS_SETTINGS_SECURITY_DESCRIPTION},
|
||||
+ {"heliumServicesTitle", IDS_SETTINGS_HELIUM_SERVICES},
|
||||
@@ -43,6 +52,11 @@
|
||||
+ {"heliumServicesToggle", IDS_SETTINGS_HELIUM_SERVICES_TOGGLE},
|
||||
+ {"heliumServicesToggleDescription",
|
||||
+ IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION},
|
||||
+ {"heliumSchemaUpdatedTitle", IDS_SETTINGS_HELIUM_SCHEMA_NOTICE_TITLE},
|
||||
+ {"heliumSchemaUpdatedDescription",
|
||||
+ IDS_SETTINGS_HELIUM_SCHEMA_NOTICE_DESCRIPTION},
|
||||
+ {"heliumGotIt", IDS_SETTINGS_GOT_IT},
|
||||
+ {"heliumSchemaIgnore", IDS_SETTINGS_HELIUM_SCHEMA_IGNORE},
|
||||
+ {"heliumOriginOverride", IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE},
|
||||
+ {"heliumOriginOverrideDescription",
|
||||
+ IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION},
|
||||
@@ -56,8 +70,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 +83,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 +97,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 +113,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 +124,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,25 +157,75 @@
|
||||
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",
|
||||
"privacy_sandbox/privacy_sandbox_interest_item.ts",
|
||||
@@ -390,6 +391,7 @@ build_webui("build") {
|
||||
"languages_page/languages_util.ts",
|
||||
"people_page/import_data_browser_proxy.ts",
|
||||
"people_page/manage_profile_browser_proxy.ts",
|
||||
+ "privacy_page/changelog_proxy.ts",
|
||||
"system_page/system_page_browser_proxy.ts",
|
||||
]
|
||||
}
|
||||
--- /dev/null
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/services_page.html
|
||||
@@ -0,0 +1,47 @@
|
||||
@@ -0,0 +1,89 @@
|
||||
+<style include="cr-shared-style settings-shared">
|
||||
+ .label-wrapper {
|
||||
+ padding: var(--cr-section-vertical-padding) 0;
|
||||
+ }
|
||||
+
|
||||
+ #changelog-notice {
|
||||
+ --cr-changelog-padding: 16px;
|
||||
+ border-radius: calc(var(--cr-changelog-padding) / 2);
|
||||
+ margin: var(--cr-changelog-padding);
|
||||
+ margin-top: 0;
|
||||
+ padding: var(--cr-changelog-padding);
|
||||
+ background: var(--md-background-color);
|
||||
+ }
|
||||
+
|
||||
+ #changelog-title {
|
||||
+ font-size: 15px;
|
||||
+ font-weight: 500;
|
||||
+ }
|
||||
+
|
||||
+ #changelog-notice-actions {
|
||||
+ --cr-checkbox-label-padding-start: 8px;
|
||||
+ display: flex;
|
||||
+ gap: var(--cr-changelog-padding);
|
||||
+ border-top: var(--cr-separator-line);
|
||||
+ margin-top: var(--cr-changelog-padding);
|
||||
+ padding-top: calc(var(--cr-changelog-padding) / 2);
|
||||
+ }
|
||||
+</style>
|
||||
+
|
||||
+<settings-subpage page-title="$i18n{heliumServicesTitle}" route-path$="[[routePath]]">
|
||||
+<div class="cr-col first">
|
||||
+ <template is="dom-if" if="[[changes_.length]]">
|
||||
+ <div id="changelog-notice">
|
||||
+ <div id="changelog-title">$i18n{heliumSchemaUpdatedTitle}</div>
|
||||
+ <ul>
|
||||
+ <template is="dom-repeat" items="[[changes_]]" as="change">
|
||||
+ <li>[[change]]</li>
|
||||
+ </template>
|
||||
+ </ul>
|
||||
+ <div id="changelog-description">
|
||||
+ $i18n{heliumSchemaUpdatedDescription}
|
||||
+ </div>
|
||||
+ <div id="changelog-notice-actions">
|
||||
+ <cr-button on-click="onAcknowledgedChangelog_">$i18n{heliumGotIt}</cr-button>
|
||||
+ <cr-checkbox id="checkbox" checked="{{ignoreChecked_}}">
|
||||
+ $i18n{heliumSchemaIgnore}
|
||||
+ </cr-checkbox>
|
||||
+ </div>
|
||||
+ </div>
|
||||
+ </template>
|
||||
+ <settings-toggle-button id="servicesToggleButton"
|
||||
+ pref="{{prefs.helium.services.enabled}}"
|
||||
+ label="$i18n{heliumServicesToggle}"
|
||||
@@ -203,24 +267,29 @@
|
||||
+</settings-subpage>
|
||||
--- /dev/null
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/services_page.ts
|
||||
@@ -0,0 +1,67 @@
|
||||
@@ -0,0 +1,97 @@
|
||||
+// 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 {HelpBubbleMixin} from 'chrome://resources/cr_components/help_bubble/help_bubble_mixin.js';
|
||||
+import {I18nMixin} from 'chrome://resources/cr_elements/i18n_mixin.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 './services_page.html.js';
|
||||
+import {HelpBubbleMixin} from 'chrome://resources/cr_components/help_bubble/help_bubble_mixin.js';
|
||||
+import type {CrInputElement} from 'chrome://resources/cr_elements/cr_input/cr_input.js';
|
||||
+import {I18nMixin} from 'chrome://resources/cr_elements/i18n_mixin.js';
|
||||
+import {PolymerElement} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
|
||||
+
|
||||
+import type {HeliumServicesChangeHandler} from './changelog_proxy.js';
|
||||
+import {HeliumServicesChangeHandlerImpl} from './changelog_proxy.js';
|
||||
+import {getTemplate} from './services_page.html.js';
|
||||
+
|
||||
+const SettingsHeliumServicesPageElementBase =
|
||||
+ HelpBubbleMixin(I18nMixin(PrefsMixin(PolymerElement)));
|
||||
+
|
||||
+export class SettingsHeliumServicesPageElement
|
||||
+ extends SettingsHeliumServicesPageElementBase
|
||||
+{
|
||||
+export class SettingsHeliumServicesPageElement extends
|
||||
+ SettingsHeliumServicesPageElementBase {
|
||||
+ private changeProxy_: HeliumServicesChangeHandler =
|
||||
+ HeliumServicesChangeHandlerImpl.getInstance();
|
||||
+
|
||||
+ static get is() {
|
||||
+ return 'settings-helium-services-page';
|
||||
+ }
|
||||
@@ -230,9 +299,15 @@
|
||||
+ }
|
||||
+
|
||||
+ static get properties() {
|
||||
+ return {};
|
||||
+ return {
|
||||
+ ignoreChecked_: Boolean,
|
||||
+ changes_: Array,
|
||||
+ };
|
||||
+ }
|
||||
+
|
||||
+ declare private changes_: string[];
|
||||
+ declare private ignoreChecked_: boolean;
|
||||
+
|
||||
+ private toOrigin(thing: string) {
|
||||
+ try {
|
||||
+ return new URL(thing).origin;
|
||||
@@ -241,6 +316,25 @@
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ private updateChangelogState(changes: string[]) {
|
||||
+ this.changes_ = changes.flatMap(ch => ch.split('\n'));
|
||||
+ }
|
||||
+
|
||||
+ private requestChangelog() {
|
||||
+ this.changeProxy_.requestChangelog().then(
|
||||
+ this.updateChangelogState.bind(this));
|
||||
+ }
|
||||
+
|
||||
+ private onAcknowledgedChangelog_() {
|
||||
+ this.changeProxy_.acknowledgeChanges(this.ignoreChecked_);
|
||||
+ this.requestChangelog();
|
||||
+ }
|
||||
+
|
||||
+ override ready() {
|
||||
+ super.ready();
|
||||
+ this.requestChangelog();
|
||||
+ }
|
||||
+
|
||||
+ protected onOriginOverrideKeydown_(event: KeyboardEvent) {
|
||||
+ const target = event.target as CrInputElement;
|
||||
+
|
||||
@@ -273,22 +367,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,11 +393,13 @@
|
||||
#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,13 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
false);
|
||||
#endif
|
||||
|
||||
+ {
|
||||
+ registry->RegisterIntegerPref(prefs::kHeliumSchemaVersion, 0);
|
||||
+ registry->RegisterBooleanPref(prefs::kHeliumDisableSchemaAlerts, false);
|
||||
+ registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
|
||||
+ registry->RegisterStringPref(prefs::kHeliumServicesOrigin, "");
|
||||
+ }
|
||||
@@ -321,7 +417,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
|
||||
|
||||
@@ -336,7 +432,7 @@
|
||||
settings_api::PrefType::kBoolean;
|
||||
--- /dev/null
|
||||
+++ b/components/helium_services/BUILD.gn
|
||||
@@ -0,0 +1,20 @@
|
||||
@@ -0,0 +1,22 @@
|
||||
+# 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.
|
||||
@@ -346,6 +442,8 @@
|
||||
+ "helium_services_helpers.cc",
|
||||
+ "helium_services_helpers.h",
|
||||
+ "pref_names.h",
|
||||
+ "schema.cc",
|
||||
+ "schema.h",
|
||||
+ ]
|
||||
+
|
||||
+ public_deps = [
|
||||
@@ -359,7 +457,7 @@
|
||||
+}
|
||||
--- /dev/null
|
||||
+++ b/components/helium_services/helium_services_helpers.cc
|
||||
@@ -0,0 +1,66 @@
|
||||
@@ -0,0 +1,67 @@
|
||||
+// 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.
|
||||
@@ -422,13 +520,14 @@
|
||||
+ PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer) {
|
||||
+ registrar.Add(prefs::kHeliumServicesEnabled, observer);
|
||||
+ registrar.Add(prefs::kHeliumServicesOrigin, observer);
|
||||
+ registrar.Add(prefs::kHeliumSchemaVersion, observer);
|
||||
+ registrar.Add(pref_name, observer);
|
||||
+}
|
||||
+
|
||||
+} // namespace helium
|
||||
--- /dev/null
|
||||
+++ b/components/helium_services/helium_services_helpers.h
|
||||
@@ -0,0 +1,28 @@
|
||||
@@ -0,0 +1,30 @@
|
||||
+// 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.
|
||||
@@ -449,6 +548,8 @@
|
||||
+const char kHeliumDummyOrigin[] =
|
||||
+ "https://helium-services-are-disabled.qjz9zk";
|
||||
+
|
||||
+bool ShouldAccessServices(const PrefService& prefs);
|
||||
+
|
||||
+COMPONENT_EXPORT(HELIUM) GURL GetServicesBaseURL(const PrefService& prefs);
|
||||
+COMPONENT_EXPORT(HELIUM) GURL GetDummyURL();
|
||||
+COMPONENT_EXPORT(HELIUM) std::optional<GURL> GetValidUserOverridenURL(std::string_view user_url_);
|
||||
@@ -459,7 +560,7 @@
|
||||
+#endif // COMPONENTS_HELIUM_SERVICES_HELIUM_SERVICES_HELPERS_H_
|
||||
--- /dev/null
|
||||
+++ b/components/helium_services/pref_names.h
|
||||
@@ -0,0 +1,18 @@
|
||||
@@ -0,0 +1,24 @@
|
||||
+// 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.
|
||||
@@ -469,6 +570,12 @@
|
||||
+
|
||||
+namespace prefs {
|
||||
+
|
||||
+inline constexpr char kHeliumSchemaVersion[] =
|
||||
+ "helium.services.schema_version";
|
||||
+
|
||||
+inline constexpr char kHeliumDisableSchemaAlerts[] =
|
||||
+ "helium.services.disable_schema_alerts";
|
||||
+
|
||||
+inline constexpr char kHeliumServicesEnabled[] =
|
||||
+ "helium.services.enabled";
|
||||
+
|
||||
@@ -478,3 +585,252 @@
|
||||
+} // namespace prefs
|
||||
+
|
||||
+#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
|
||||
--- /dev/null
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/changelog_proxy.ts
|
||||
@@ -0,0 +1,40 @@
|
||||
+// 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.
|
||||
+
|
||||
+/**
|
||||
+ * @fileoverview A helper object used from the "Helium services" section
|
||||
+ * to request a changelog (if one exists).
|
||||
+ */
|
||||
+
|
||||
+// clang-format off
|
||||
+import {sendWithPromise} from 'chrome://resources/js/cr.js';
|
||||
+// clang-format on
|
||||
+
|
||||
+export interface HeliumServicesChangeHandler {
|
||||
+ // Get the pending changes to Helium services to announce
|
||||
+ // to the user.
|
||||
+ requestChangelog(): Promise<string[]>;
|
||||
+ acknowledgeChanges(ignoreAllChangelogs: boolean): void;
|
||||
+}
|
||||
+
|
||||
+export class HeliumServicesChangeHandlerImpl implements
|
||||
+ HeliumServicesChangeHandler {
|
||||
+ requestChangelog() {
|
||||
+ return sendWithPromise('getServicesSchemaChangelog');
|
||||
+ }
|
||||
+
|
||||
+ acknowledgeChanges(ignoreAllChangelogs: boolean) {
|
||||
+ chrome.send('updateServicesSchemaVersion', [ignoreAllChangelogs]);
|
||||
+ }
|
||||
+
|
||||
+ static getInstance(): HeliumServicesChangeHandler {
|
||||
+ return instance || (instance = new HeliumServicesChangeHandlerImpl());
|
||||
+ }
|
||||
+
|
||||
+ static setInstance(obj: HeliumServicesChangeHandler) {
|
||||
+ instance = obj;
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+let instance: HeliumServicesChangeHandler|null = null;
|
||||
--- /dev/null
|
||||
+++ b/chrome/browser/ui/webui/settings/services_schema_handler.h
|
||||
@@ -0,0 +1,36 @@
|
||||
+// 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.
|
||||
+
|
||||
+#ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_SERVICES_SCHEMA_HANDLER_H_
|
||||
+#define CHROME_BROWSER_UI_WEBUI_SETTINGS_SERVICES_SCHEMA_HANDLER_H_
|
||||
+
|
||||
+#include <optional>
|
||||
+#include <string>
|
||||
+
|
||||
+#include "base/memory/raw_ptr.h"
|
||||
+#include "base/values.h"
|
||||
+#include "content/public/browser/web_ui_message_handler.h"
|
||||
+
|
||||
+class Profile;
|
||||
+class PrefService;
|
||||
+
|
||||
+class HeliumServicesSchemaHandler : public content::WebUIMessageHandler {
|
||||
+ public:
|
||||
+ explicit HeliumServicesSchemaHandler(Profile* profile);
|
||||
+ HeliumServicesSchemaHandler(const HeliumServicesSchemaHandler&) = delete;
|
||||
+ HeliumServicesSchemaHandler& operator=(const HeliumServicesSchemaHandler&) =
|
||||
+ delete;
|
||||
+ ~HeliumServicesSchemaHandler() override;
|
||||
+
|
||||
+ // SettingsPageUIHandler:
|
||||
+ void RegisterMessages() override;
|
||||
+
|
||||
+ private:
|
||||
+ void HandleChangelogRequest(const base::Value::List&);
|
||||
+ void HandleChangelogAcknowledgment(const base::Value::List&);
|
||||
+
|
||||
+ raw_ptr<PrefService> pref_service_ = nullptr;
|
||||
+};
|
||||
+
|
||||
+#endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SERVICES_SCHEMA_HANDLER_H_
|
||||
--- /dev/null
|
||||
+++ b/components/helium_services/schema.cc
|
||||
@@ -0,0 +1,40 @@
|
||||
+// 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.
|
||||
+
|
||||
+#include "components/helium_services/schema.h"
|
||||
+
|
||||
+#include "components/helium_services/helium_services_helpers.h"
|
||||
+#include "components/helium_services/pref_names.h"
|
||||
+#include "components/prefs/pref_service.h"
|
||||
+
|
||||
+namespace helium {
|
||||
+
|
||||
+bool HasAcceptedSchema(const PrefService& prefs, int version) {
|
||||
+ return prefs.GetBoolean(prefs::kHeliumDisableSchemaAlerts) ||
|
||||
+ prefs.GetInteger(prefs::kHeliumSchemaVersion) >= version;
|
||||
+}
|
||||
+
|
||||
+void AcceptCurrentSchema(PrefService& prefs) {
|
||||
+ prefs.SetInteger(prefs::kHeliumSchemaVersion, kHeliumCurrentSchemaVersion);
|
||||
+}
|
||||
+
|
||||
+bool ShouldShowSchemaNotification(const PrefService& prefs) {
|
||||
+ return ShouldAccessServices(prefs) &&
|
||||
+ !HasAcceptedSchema(prefs, kHeliumCurrentSchemaVersion);
|
||||
+}
|
||||
+
|
||||
+ServicesChangelog& GetChangelog() {
|
||||
+ static constexpr auto kHeliumSchemaChangelog =
|
||||
+ base::MakeFixedFlatMap<int, std::string_view>({
|
||||
+ {
|
||||
+ 1,
|
||||
+ "Automatic component updates are now available. They're managed by the same toggle that enables automatic browser updates.\n"
|
||||
+ "From now on, you'll be notified about major changes to Helium services. Even though these notifications are extremely rare, you can choose to ignore them and accept all future changes automatically."
|
||||
+ }
|
||||
+ });
|
||||
+
|
||||
+ return kHeliumSchemaChangelog;
|
||||
+}
|
||||
+
|
||||
+} // namespace helium
|
||||
--- /dev/null
|
||||
+++ b/components/helium_services/schema.h
|
||||
@@ -0,0 +1,30 @@
|
||||
+// 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.
|
||||
+
|
||||
+#ifndef COMPONENTS_HELIUM_SERVICES_SCHEMA_H_
|
||||
+#define COMPONENTS_HELIUM_SERVICES_SCHEMA_H_
|
||||
+
|
||||
+#include "base/component_export.h"
|
||||
+#include "base/containers/fixed_flat_map.h"
|
||||
+#include "components/prefs/pref_service.h"
|
||||
+
|
||||
+namespace helium {
|
||||
+
|
||||
+inline constexpr int kHeliumCurrentSchemaVersion = 1;
|
||||
+
|
||||
+using ServicesChangelog = const base::
|
||||
+ fixed_flat_map<int, std::string_view, kHeliumCurrentSchemaVersion>;
|
||||
+
|
||||
+#define EX COMPONENT_EXPORT(HELIUM)
|
||||
+
|
||||
+EX bool HasAcceptedSchema(const PrefService& prefs, int version);
|
||||
+EX void AcceptCurrentSchema(PrefService& prefs);
|
||||
+EX bool ShouldShowSchemaNotification(const PrefService& prefs);
|
||||
+EX ServicesChangelog& GetChangelog();
|
||||
+
|
||||
+#undef EX
|
||||
+
|
||||
+} // namespace helium
|
||||
+
|
||||
+#endif // COMPONENTS_HELIUM_SERVICES_SCHEMA_H_
|
||||
--- a/chrome/browser/ui/BUILD.gn
|
||||
+++ b/chrome/browser/ui/BUILD.gn
|
||||
@@ -1296,6 +1296,8 @@ static_library("ui") {
|
||||
"webui/settings/saved_info_handler.h",
|
||||
"webui/settings/search_engines_handler.cc",
|
||||
"webui/settings/search_engines_handler.h",
|
||||
+ "webui/settings/services_schema_handler.cc",
|
||||
+ "webui/settings/services_schema_handler.h",
|
||||
"webui/settings/settings_clear_browsing_data_handler.cc",
|
||||
"webui/settings/settings_clear_browsing_data_handler.h",
|
||||
"webui/settings/settings_localized_strings_privacy_sandbox_provider.cc",
|
||||
--- /dev/null
|
||||
+++ b/chrome/browser/ui/webui/settings/services_schema_handler.cc
|
||||
@@ -0,0 +1,58 @@
|
||||
+// 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.
|
||||
+
|
||||
+#include "chrome/browser/ui/webui/settings/services_schema_handler.h"
|
||||
+
|
||||
+#include "base/functional/bind.h"
|
||||
+#include "base/values.h"
|
||||
+#include "chrome/browser/profiles/profile.h"
|
||||
+#include "components/helium_services/pref_names.h"
|
||||
+#include "components/helium_services/schema.h"
|
||||
+#include "components/prefs/pref_service.h"
|
||||
+
|
||||
+HeliumServicesSchemaHandler::HeliumServicesSchemaHandler(Profile* profile)
|
||||
+ : pref_service_(profile->GetPrefs()) {}
|
||||
+
|
||||
+HeliumServicesSchemaHandler::~HeliumServicesSchemaHandler() = default;
|
||||
+
|
||||
+void HeliumServicesSchemaHandler::RegisterMessages() {
|
||||
+ web_ui()->RegisterMessageCallback(
|
||||
+ "getServicesSchemaChangelog",
|
||||
+ base::BindRepeating(&HeliumServicesSchemaHandler::HandleChangelogRequest,
|
||||
+ base::Unretained(this)));
|
||||
+ web_ui()->RegisterMessageCallback(
|
||||
+ "updateServicesSchemaVersion",
|
||||
+ base::BindRepeating(
|
||||
+ &HeliumServicesSchemaHandler::HandleChangelogAcknowledgment,
|
||||
+ base::Unretained(this)));
|
||||
+}
|
||||
+
|
||||
+void HeliumServicesSchemaHandler::HandleChangelogRequest(
|
||||
+ const base::Value::List& args) {
|
||||
+ CHECK_EQ(1U, args.size());
|
||||
+ const auto& callback_id = args[0].GetString();
|
||||
+ base::Value::List out;
|
||||
+
|
||||
+ if (helium::ShouldShowSchemaNotification(*pref_service_)) {
|
||||
+ int user_version = pref_service_->GetInteger(prefs::kHeliumSchemaVersion);
|
||||
+ auto& changelog = helium::GetChangelog();
|
||||
+
|
||||
+ for (auto it = changelog.upper_bound(user_version); it != changelog.end();
|
||||
+ ++it) {
|
||||
+ out.Append(it->second);
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ AllowJavascript();
|
||||
+ ResolveJavascriptCallback(base::Value(callback_id), std::move(out));
|
||||
+}
|
||||
+
|
||||
+void HeliumServicesSchemaHandler::HandleChangelogAcknowledgment(
|
||||
+ const base::Value::List& args) {
|
||||
+ CHECK_EQ(1U, args.size());
|
||||
+ bool ignore_alerts = args[0].GetBool();
|
||||
+
|
||||
+ helium::AcceptCurrentSchema(*pref_service_);
|
||||
+ pref_service_->SetBoolean(prefs::kHeliumDisableSchemaAlerts, ignore_alerts);
|
||||
+}
|
||||
--- a/chrome/browser/ui/webui/settings/settings_ui.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_ui.cc
|
||||
@@ -76,6 +76,7 @@
|
||||
#include "chrome/browser/ui/webui/settings/safety_hub_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/saved_info_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/search_engines_handler.h"
|
||||
+#include "chrome/browser/ui/webui/settings/services_schema_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/settings_localized_strings_provider.h"
|
||||
#include "chrome/browser/ui/webui/settings/settings_media_devices_selection_handler.h"
|
||||
@@ -252,6 +253,8 @@ SettingsUI::SettingsUI(content::WebUI* w
|
||||
AddSettingsPageUIHandler(std::make_unique<ProtocolHandlersHandler>(profile));
|
||||
AddSettingsPageUIHandler(std::make_unique<PrivacySandboxHandler>());
|
||||
AddSettingsPageUIHandler(std::make_unique<SearchEnginesHandler>(profile));
|
||||
+ AddSettingsPageUIHandler(
|
||||
+ std::make_unique<HeliumServicesSchemaHandler>(profile));
|
||||
AddSettingsPageUIHandler(std::make_unique<SecureDnsHandler>());
|
||||
AddSettingsPageUIHandler(std::make_unique<SiteSettingsHandler>(profile));
|
||||
AddSettingsPageUIHandler(std::make_unique<StartupPagesHandler>(web_ui));
|
||||
|
||||
@@ -0,0 +1,232 @@
|
||||
--- a/chrome/app/chromium_strings.grd
|
||||
+++ b/chrome/app/chromium_strings.grd
|
||||
@@ -956,6 +956,10 @@ Chromium is unable to recover your setti
|
||||
Customize and control Chromium. Update is available.
|
||||
</message>
|
||||
|
||||
+ <message name="IDS_APPMENU_TOOLTIP_HELIUM_SERVICES_UPDATE" desc="The tooltip to show for the browser menu when Helium services schema changes">
|
||||
+ Helium services have been updated. Please review the changes.
|
||||
+ </message>
|
||||
+
|
||||
<message name="IDS_APPMENU_TOOLTIP_ALERT" desc="The tooltip to show for the browser menu when a non-update alert is displayed">
|
||||
Customize and control Chromium. Something needs your attention - click for details.
|
||||
</message>
|
||||
@@ -1620,6 +1624,11 @@ Chromium is unable to recover your setti
|
||||
Chromium couldn't update to the latest version, so you're missing out on new features and security fixes.
|
||||
</message>
|
||||
|
||||
+ <!-- Helium services schema change bubble -->
|
||||
+ <message name="IDS_HELIUM_SERVICES_SCHEMA_MENU_ITEM" desc="Text for the bubble that notifies the user of a schema change in Helium services.">
|
||||
+ Review Helium services updates
|
||||
+ </message>
|
||||
+
|
||||
<!-- User menu errors -->
|
||||
<message name="IDS_SYNC_ERROR_USER_MENU_UPGRADE_BUTTON" desc="Button in the header of desktop user menu that prompts the user to update Chrome to fix the out-of-date Chrome client error.">
|
||||
Update Chromium
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -13186,6 +13186,9 @@ Check your passwords anytime in <ph name
|
||||
<message name="IDS_APP_MENU_BUTTON_UPDATE" desc="Short label next to app-menu button when an update is available.">
|
||||
Update
|
||||
</message>
|
||||
+ <message name="IDS_APP_MENU_BUTTON_HELIUM_SERVICES_UPDATE" desc="Short label next to app-menu button when Helium services behavior changes.">
|
||||
+ Services updated
|
||||
+ </message>
|
||||
<if expr="is_win or is_macosx or is_linux">
|
||||
<message name="IDS_APP_MENU_BUTTON_UPDATE_ALT1" desc="Alternate short label next to app-menu button when an update is available.">
|
||||
Finish update
|
||||
--- a/chrome/app/chrome_command_ids.h
|
||||
+++ b/chrome/app/chrome_command_ids.h
|
||||
@@ -301,6 +301,7 @@
|
||||
#define IDC_SHOW_COMMENTS_SIDE_PANEL 40297
|
||||
#define IDC_RECENT_TABS_SEE_DEVICE_TABS 40298
|
||||
#define IDC_SHOW_AI_MODE_OMNIBOX_BUTTON 40299
|
||||
+#define IDC_HELIUM_SERVICES_OPEN 40300
|
||||
|
||||
// Spell-check
|
||||
// Insert any additional suggestions before _LAST; these have to be consecutive.
|
||||
--- a/chrome/browser/ui/chrome_pages.h
|
||||
+++ b/chrome/browser/ui/chrome_pages.h
|
||||
@@ -138,6 +138,7 @@ void ShowSafeBrowsingEnhancedProtectionW
|
||||
safe_browsing::SafeBrowsingSettingReferralMethod referral_method);
|
||||
void ShowImportDialog(Browser* browser);
|
||||
void ShowAboutChrome(Browser* browser);
|
||||
+void ShowHeliumServices(Browser* browser);
|
||||
void ShowSearchEngineSettings(Browser* browser);
|
||||
void ShowWebStore(Browser* browser, std::string_view utm_source_value);
|
||||
void ShowPrivacySandboxSettings(Browser* browser);
|
||||
--- a/chrome/browser/ui/chrome_pages.cc
|
||||
+++ b/chrome/browser/ui/chrome_pages.cc
|
||||
@@ -615,6 +615,11 @@ void ShowAboutChrome(Browser* browser) {
|
||||
ShowSingletonTabIgnorePathOverwriteNTP(browser, GURL(kChromeUIHelpURL));
|
||||
}
|
||||
|
||||
+void ShowHeliumServices(Browser* browser) {
|
||||
+ ShowSingletonTabIgnorePathOverwriteNTP(
|
||||
+ browser, GURL("chrome://settings/privacy/services"));
|
||||
+}
|
||||
+
|
||||
void ShowSearchEngineSettings(Browser* browser) {
|
||||
base::RecordAction(UserMetricsAction("EditSearchEngines"));
|
||||
ShowSettingsSubPage(browser, kSearchEnginesSubPage);
|
||||
--- a/chrome/browser/ui/browser_command_controller.cc
|
||||
+++ b/chrome/browser/ui/browser_command_controller.cc
|
||||
@@ -1067,6 +1067,9 @@ bool BrowserCommandController::ExecuteCo
|
||||
case IDC_UPGRADE_DIALOG:
|
||||
OpenUpdateChromeDialog(browser_);
|
||||
break;
|
||||
+ case IDC_HELIUM_SERVICES_OPEN:
|
||||
+ ShowHeliumServices(browser_->GetBrowserForOpeningWebUi());
|
||||
+ break;
|
||||
case IDC_OPEN_SAFETY_HUB:
|
||||
ShowSettingsSubPage(browser_->GetBrowserForOpeningWebUi(),
|
||||
chrome::kSafetyHubSubPage);
|
||||
@@ -1631,6 +1634,7 @@ void BrowserCommandController::InitComma
|
||||
|
||||
// These are always enabled; the menu determines their menu item visibility.
|
||||
command_updater_.UpdateCommandEnabled(IDC_UPGRADE_DIALOG, true);
|
||||
+ command_updater_.UpdateCommandEnabled(IDC_HELIUM_SERVICES_OPEN, true);
|
||||
command_updater_.UpdateCommandEnabled(IDC_SET_BROWSER_AS_DEFAULT, true);
|
||||
|
||||
// Safety Hub commands.
|
||||
--- a/chrome/browser/ui/toolbar/app_menu_model.h
|
||||
+++ b/chrome/browser/ui/toolbar/app_menu_model.h
|
||||
@@ -281,6 +281,9 @@ class AppMenuModel : public ui::SimpleMe
|
||||
// boolean indicating whether any menu items were added.
|
||||
bool AddDefaultBrowserMenuItems();
|
||||
|
||||
+ // Adds a nag to review Helium services permission changes
|
||||
+ bool AddHeliumSchemaItem();
|
||||
+
|
||||
// Adds the Safety Hub menu notifications to the menu. Returns a boolean
|
||||
// indicating whether any menu items were added.
|
||||
[[nodiscard]] bool AddSafetyHubMenuItem();
|
||||
--- a/chrome/browser/ui/toolbar/app_menu_model.cc
|
||||
+++ b/chrome/browser/ui/toolbar/app_menu_model.cc
|
||||
@@ -104,6 +104,7 @@
|
||||
#include "components/dom_distiller/core/url_utils.h"
|
||||
#include "components/feature_engagement/public/event_constants.h"
|
||||
#include "components/feature_engagement/public/feature_constants.h"
|
||||
+#include "components/helium_services/schema.h"
|
||||
#include "components/lens/lens_features.h"
|
||||
#include "components/omnibox/browser/vector_icons.h"
|
||||
#include "components/password_manager/content/common/web_ui_constants.h"
|
||||
@@ -2062,7 +2063,8 @@ bool AppMenuModel::AddGlobalErrorMenuIte
|
||||
// how update the menu if new errors are added.
|
||||
const GlobalErrorService::GlobalErrorList& errors =
|
||||
GlobalErrorServiceFactory::GetForProfile(browser_->profile())->errors();
|
||||
- bool menu_items_added = false;
|
||||
+ bool menu_items_added = AddHeliumSchemaItem();
|
||||
+
|
||||
for (GlobalError* error : errors) {
|
||||
DCHECK(error);
|
||||
if (error->HasMenuItem()) {
|
||||
@@ -2126,6 +2128,22 @@ bool AppMenuModel::AddSafetyHubMenuItem(
|
||||
return true;
|
||||
}
|
||||
|
||||
+bool AppMenuModel::AddHeliumSchemaItem() {
|
||||
+ if (!helium::ShouldShowSchemaNotification(
|
||||
+ *browser()->profile()->GetPrefs())) {
|
||||
+ return false;
|
||||
+ }
|
||||
+
|
||||
+ const auto update_icon = ui::ImageModel::FromVectorIcon(
|
||||
+ omnibox::kProductChromeRefreshIcon, ui::kColorMenuIcon, kDefaultIconSize);
|
||||
+ AddItemWithIcon(
|
||||
+ IDC_HELIUM_SERVICES_OPEN,
|
||||
+ l10n_util::GetStringUTF16(IDS_HELIUM_SERVICES_SCHEMA_MENU_ITEM),
|
||||
+ update_icon);
|
||||
+
|
||||
+ return true;
|
||||
+}
|
||||
+
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
void AppMenuModel::UpdateSettingsItemState() {
|
||||
bool is_disabled =
|
||||
--- a/chrome/browser/ui/toolbar/app_menu_icon_controller.cc
|
||||
+++ b/chrome/browser/ui/toolbar/app_menu_icon_controller.cc
|
||||
@@ -8,11 +8,15 @@
|
||||
#include "build/build_config.h"
|
||||
#include "chrome/app/vector_icons/vector_icons.h"
|
||||
#include "chrome/browser/defaults.h"
|
||||
+#include "chrome/browser/profiles/profile.h"
|
||||
#include "chrome/browser/ui/global_error/global_error.h"
|
||||
#include "chrome/browser/ui/global_error/global_error_service_factory.h"
|
||||
#include "chrome/browser/ui/ui_features.h"
|
||||
#include "chrome/browser/upgrade_detector/upgrade_detector.h"
|
||||
#include "chrome/common/channel_info.h"
|
||||
+#include "components/helium_services/pref_names.h"
|
||||
+#include "components/helium_services/schema.h"
|
||||
+#include "components/prefs/pref_change_registrar.h"
|
||||
#include "components/version_info/channel.h"
|
||||
#include "ui/gfx/paint_vector_icon.h"
|
||||
|
||||
@@ -109,6 +113,14 @@ AppMenuIconController::AppMenuIconContro
|
||||
GlobalErrorServiceFactory::GetForProfile(profile_));
|
||||
|
||||
upgrade_detector_->AddObserver(this);
|
||||
+
|
||||
+ if (auto* prefs = profile->GetPrefs()) {
|
||||
+ registrar_.Init(prefs);
|
||||
+ registrar_.Add(
|
||||
+ prefs::kHeliumSchemaVersion,
|
||||
+ base::BindRepeating(&AppMenuIconController::OnGlobalErrorsChanged,
|
||||
+ base::Unretained(this)));
|
||||
+ }
|
||||
}
|
||||
|
||||
AppMenuIconController::~AppMenuIconController() {
|
||||
@@ -141,6 +153,12 @@ AppMenuIconController::GetTypeAndSeverit
|
||||
->GetHighestSeverityGlobalErrorWithAppMenuItem()) {
|
||||
return {IconType::kGlobalError, SeverityFromError(error)};
|
||||
}
|
||||
+
|
||||
+ if (auto* prefs = profile_->GetPrefs()) {
|
||||
+ if (helium::ShouldShowSchemaNotification(*prefs)) {
|
||||
+ return {IconType::kHeliumServicesUpdate, Severity::kLow};
|
||||
+ }
|
||||
+ }
|
||||
#endif
|
||||
|
||||
return {IconType::kNone, Severity::kNone};
|
||||
--- a/chrome/browser/ui/toolbar/app_menu_icon_controller.h
|
||||
+++ b/chrome/browser/ui/toolbar/app_menu_icon_controller.h
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "chrome/browser/ui/global_error/global_error_observer.h"
|
||||
#include "chrome/browser/ui/global_error/global_error_service.h"
|
||||
#include "chrome/browser/upgrade_detector/upgrade_observer.h"
|
||||
+#include "components/prefs/pref_change_registrar.h"
|
||||
#include "third_party/skia/include/core/SkColor.h"
|
||||
#include "ui/base/models/image_model.h"
|
||||
|
||||
@@ -29,6 +30,7 @@ class AppMenuIconController : public Glo
|
||||
enum class IconType {
|
||||
kNone,
|
||||
kUpgradeNotification,
|
||||
+ kHeliumServicesUpdate,
|
||||
kGlobalError,
|
||||
};
|
||||
enum class Severity {
|
||||
@@ -93,6 +95,7 @@ class AppMenuIconController : public Glo
|
||||
const raw_ptr<Delegate> delegate_;
|
||||
base::ScopedObservation<GlobalErrorService, GlobalErrorObserver>
|
||||
global_error_observation_{this};
|
||||
+ PrefChangeRegistrar registrar_;
|
||||
};
|
||||
|
||||
#endif // CHROME_BROWSER_UI_TOOLBAR_APP_MENU_ICON_CONTROLLER_H_
|
||||
--- a/chrome/browser/ui/views/toolbar/browser_app_menu_button.cc
|
||||
+++ b/chrome/browser/ui/views/toolbar/browser_app_menu_button.cc
|
||||
@@ -214,6 +214,11 @@ void BrowserAppMenuButton::UpdateTextAnd
|
||||
#else
|
||||
text = l10n_util::GetStringUTF16(IDS_APP_MENU_BUTTON_UPDATE);
|
||||
#endif
|
||||
+ } else if (type_and_severity_.type ==
|
||||
+ AppMenuIconController::IconType::kHeliumServicesUpdate) {
|
||||
+ tooltip_message_id = IDS_APPMENU_TOOLTIP_HELIUM_SERVICES_UPDATE;
|
||||
+ text =
|
||||
+ l10n_util::GetStringUTF16(IDS_APP_MENU_BUTTON_HELIUM_SERVICES_UPDATE);
|
||||
} else {
|
||||
tooltip_message_id = IDS_APPMENU_TOOLTIP_ALERT;
|
||||
const int text_id =
|
||||
@@ -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
|
||||
@@ -103,14 +103,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,
|
||||
@@ -148,17 +148,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,
|
||||
@@ -264,7 +264,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() {
|
||||
@@ -273,7 +273,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 :
|
||||
|
||||
@@ -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}">
|
||||
@@ -29,7 +29,7 @@
|
||||
registrar.Add(prefs::kHeliumServicesEnabled, observer);
|
||||
--- a/components/helium_services/helium_services_helpers.h
|
||||
+++ b/components/helium_services/helium_services_helpers.h
|
||||
@@ -21,12 +21,14 @@ const char kHeliumDummyOrigin[] =
|
||||
@@ -23,12 +23,14 @@ bool ShouldAccessServices(const PrefServ
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldFetchBangs(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldAccessExtensionService(const PrefService& prefs);
|
||||
COMPONENT_EXPORT(HELIUM) bool ShouldAccessUpdateService(const PrefService& prefs);
|
||||
@@ -46,7 +46,7 @@
|
||||
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer);
|
||||
--- a/components/helium_services/pref_names.h
|
||||
+++ b/components/helium_services/pref_names.h
|
||||
@@ -33,6 +33,8 @@ inline constexpr char kHeliumUpdateFetch
|
||||
@@ -39,6 +39,8 @@ inline constexpr char kHeliumUpdateFetch
|
||||
inline constexpr char kHeliumSpellcheckEnabled[] =
|
||||
"helium.services.spellcheck_files";
|
||||
|
||||
@@ -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
|
||||
@@ -363,6 +363,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
|
||||
@@ -215,6 +215,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -220,6 +220,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,10 +217,10 @@
|
||||
if ( bin.assetSourceRegistry instanceof Object ) {
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1963,6 +1963,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>
|
||||
@@ -2018,6 +2018,12 @@
|
||||
Helium will automatically download and install browser and component updates as they become available. We recommend keeping this setting enabled to ensure you get the latest features and security updates. Automatic core browser updates are not available on this platform yet, but component updates are. Please use external software to keep Helium up to date.
|
||||
</message>
|
||||
</if>
|
||||
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_UBO" desc="Description of the toggle for uBO filter lists">
|
||||
+ Allow downloading filter lists for uBlock Origin
|
||||
+ </message>
|
||||
@@ -232,10 +232,10 @@
|
||||
</message>
|
||||
--- a/chrome/browser/resources/settings/privacy_page/services_page.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/services_page.html
|
||||
@@ -69,6 +69,11 @@
|
||||
sub-label="$i18n{heliumUpdatesToggleDescription}">
|
||||
</settings-toggle-button>
|
||||
</if>
|
||||
@@ -109,6 +109,11 @@
|
||||
label="$i18n{heliumUpdatesToggle}"
|
||||
sub-label="$i18n{heliumUpdatesToggleDescription}">
|
||||
</settings-toggle-button>
|
||||
+ <settings-toggle-button id="filterlistToggleButton"
|
||||
+ pref="{{prefs.helium.services.ublock_assets}}"
|
||||
+ label="$i18n{heliumUboToggle}"
|
||||
@@ -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
|
||||
@@ -2144,6 +2144,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(
|
||||
@@ -6212,7 +6212,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
|
||||
@@ -142,7 +142,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 @@
|
||||
@@ -3223,6 +3226,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
|
||||
@@ -2834,7 +2834,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))
|
||||
@@ -53,9 +53,9 @@
|
||||
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
|
||||
AppMenuIconController::IconType::kHeliumServicesUpdate) {
|
||||
tooltip_message_id = IDS_APPMENU_TOOLTIP_HELIUM_SERVICES_UPDATE;
|
||||
@@ -233,37 +204,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
|
||||
@@ -740,9 +740,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
|
||||
@@ -886,14 +883,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,
|
||||
@@ -902,15 +891,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(),
|
||||
@@ -1761,22 +1741,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() {
|
||||
@@ -1813,43 +1779,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() {
|
||||
@@ -1871,7 +1800,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() {
|
||||
@@ -1888,23 +1817,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() {
|
||||
@@ -1951,9 +1867,6 @@ void AppMenuModel::Build() {
|
||||
lens::features::kLensOverlay));
|
||||
}
|
||||
|
||||
@@ -139,7 +157,7 @@
|
||||
CreateFindAndEditSubMenu();
|
||||
|
||||
sub_menus_.push_back(
|
||||
@@ -1981,6 +1907,12 @@ void AppMenuModel::Build() {
|
||||
@@ -2002,6 +1915,12 @@ void AppMenuModel::Build() {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -152,7 +170,7 @@
|
||||
AddItemWithStringIdAndVectorIcon(this, IDC_OPTIONS, IDS_SETTINGS,
|
||||
kSettingsMenuIcon);
|
||||
|
||||
@@ -2079,35 +2011,22 @@ bool AppMenuModel::AddDefaultBrowserMenu
|
||||
@@ -2098,34 +2017,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",
|
||||
@@ -201,12 +217,12 @@
|
||||
+ return false;
|
||||
}
|
||||
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
bool AppMenuModel::AddHeliumSchemaItem() {
|
||||
--- 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
|
||||
// boolean indicating whether any menu items were added.
|
||||
bool AddDefaultBrowserMenuItems();
|
||||
@@ -284,6 +284,9 @@ class AppMenuModel : public ui::SimpleMe
|
||||
// Adds a nag to review Helium services permission changes
|
||||
bool AddHeliumSchemaItem();
|
||||
|
||||
+ // Adds a nag to relaunch the browser after an update
|
||||
+ bool AddUpgradeMenuItem();
|
||||
|
||||
@@ -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
|
||||
@@ -1939,7 +1940,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
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user