Compare commits

...

79 Commits

Author SHA1 Message Date
wukko 9bedc9bbc5 merge: update to chromium 151.0.7922.47 (#2215)
fixes imputnet/helium-macos#294
2026-07-29 14:15:55 +06:00
wukko 632d3a57ce revision: reset to 0 2026-07-29 14:01:13 +06:00
wukko 1d6407a6ce patches: refresh and update for chromium 151.0.7922.47 2026-07-29 13:49:40 +06:00
wukko 08cb1ba611 domain_substitution: regenerate for 151 2026-07-27 15:52:31 +06:00
wukko 4097abc37e merge: update to ungoogled-chromium 151.0.7922.47 2026-07-27 15:44:32 +06:00
jj d82cfa22ed i18n/README: we don't take submissions for new translations (#2199) 2026-07-25 16:40:27 +02:00
jj b580fd756f .github: add crash id field to bug report template (#2200) 2026-07-25 16:40:15 +02:00
Blaise 6fda5bc707 Update to Chromium 151.0.7922.47 2026-07-24 19:15:25 -05:00
wukko 68d6cf7d03 revision: bump to 9 (#2196) 2026-07-25 04:33:45 +06:00
wukko 756a225e3a deps: update search_engines_data and onboarding (#2193) 2026-07-25 04:25:28 +06:00
wukko 1bfcb15769 i18n/source: update for new onboarding version 2026-07-25 04:15:37 +06:00
wukko 20a8a322f6 deps: update search_engines_data and onboarding
the updated dependencies include updated icons, search engine
descriptions, and addition of startpage and brave search.

we now also use nonfree assets builds from a proper source of truth
(imputnet/helium-nonfree-assets) instead of a random gist.
2026-07-25 04:15:07 +06:00
wukko 119f865d56 helium/core/search: add startpage and brave search (#2192)
this PR:
- adds startpage and brave search, and fixes its names
- removes related favicon and logo urls to prevent unintentional
requests
- bumps prepopulated_engine's `kCurrentDataVersion` to make sure
existing profiles get new engines ahead of upstream bump

closes #92
closes #177
closes #618
2026-07-25 04:05:56 +06:00
jj 335b9afa20 merge: update to chromium 150.0.7871.186 (#2191) 2026-07-24 14:49:45 +02:00
jj 1d1425f9d7 revert: utils/depot_tools.patch: refresh (#2183)
This reverts commit 2c97e8c5d1.
2026-07-24 12:02:11 +00:00
jj 5069062d84 merge: update ungoogled-chromium to 150.0.7871.186 2026-07-24 12:01:38 +00:00
Blaise fd0378e4f2 Update to Chromium 150.0.7871.186 2026-07-23 16:40:35 -05:00
wukko dee5600297 helium/core/search: update google image search url (#2186)
google has killed the old one for an amazing reason
2026-07-23 20:02:32 +06:00
jj 2c97e8c5d1 utils/depot_tools.patch: refresh (#2183) 2026-07-22 20:07:26 +00:00
wukko 81bb0219ad revision: bump to 8 (#2181) 2026-07-22 19:04:46 +00:00
wukko a9ee371468 helium/noise: add settings for fingerprinting protection (#2177)
now users can toggle helium noise globally or per origin/domain
(including wildcards). this change also gives fingerprinting protection
a home with a description of how it works.

- added a global pref for helium noise
- added origin-based content setting for helium noise
- added a settings helper for getting the noise activation state
- added a page and an entry point to browser privacy settings
- added page info controls for helium noise for quick per-origin changes
- cleaned up noise includes and public header registration
2026-07-23 00:53:01 +06:00
wukko 2da7804216 merge: update to chromium 150.0.7871.181 (#2179) 2026-07-22 20:18:29 +06:00
wukko 113de8e265 merge: update ungoogled-chromium to 150.0.7871.181 2026-07-22 18:12:06 +06:00
Blaise 47ee4af0ff Update to Chromium 150.0.7871.181 2026-07-21 16:28:07 -05:00
jj 8030a8a305 helium/ui: fix macOS hit test guard during teardown (#2169)
AppKit can re-enter hit testing while `BrowserWidget` is being
destroyed. At that point `browser_widget_` has already been cleared, but
`BrowserView` may still be attached, so `GetWidget()` remains non-null.

Also check `browser_widget_` to avoid dereferencing it during teardown.

fixes #2129
2026-07-19 13:08:59 +00:00
jj 1e5ae94641 helium/bangs: fix dangling callbacks in bang loading (#2167)
use weak pointers async callbacks instead of base::Unretained(this), and
move BangManager's weakptrfactory to the end of the class so callbacks
are invalidated before other members are destroyed

fixes #1030
2026-07-19 12:43:35 +06:00
wukko 3b015b7c65 revision: bump to 7 (#2160) 2026-07-17 18:15:10 +00:00
Maxokie e695146feb i18n/fr: fix existing strings and translate remaining ones (#2094)
Co-authored-by: jj <log@riseup.net>
Co-authored-by: wukko <me@wukko.me>
2026-07-17 17:51:27 +00:00
wukko eb4d20ab67 helium/core/kb-shortcuts: preserve delayed macOS shortcuts (#2158)
and exclude delayed macOS shortcuts (such as Cmd+Left/Cmd+Right) from
the default accelerator map

fixes imputnet/helium-macos#254
2026-07-17 17:02:02 +00:00
jj d703885602 helium/core: fix windows crash reporting module boundaries (#2153)
crashpad is initialized in chrome_elf on windows, so browser-side access
to module-local crashpad state could use uninitialized copies.

route explicit upload consent and report deletion through chrome_elf
export thunks, and use chromium's existing thunked APIs for listing
reports and requesting individual uploads. keep policy evaluation in the
browser layer where local state is available.

crashpad also starts before base::CommandLine is initialized on windows,
so use install_static's early command-line parser for the custom crash
server URL while preserving the existing command-line path on other
platforms.

update the crash dialog, settings, and crashes webui to use the shared
browser-facing APIs, and only offer pending reports after a crashed
browser session.

fixes imputnet/helium-windows#331
2026-07-17 16:30:04 +00:00
jj f31f77fa66 ci/i18n-notify: skip if running in fork pr (#2154)
on: pull_request token has only readonly permissions when running in a
fork, and i don't want to ever use pull_request_target, so just kill
this workflow if it's running in a pr which comes from a fork
2026-07-17 21:25:37 +06:00
wukko bee47818ed merge: update to chromium 150.0.7871.128 (#2143) 2026-07-17 04:35:09 +06:00
wukko e6559b2a53 merge: update ungoogled-chromium to 150.0.7871.128 2026-07-17 04:02:36 +06:00
wukko 2adf0ad4f8 Update to Chromium 150.0.7871.128 2026-07-17 03:48:23 +06:00
wukko 3d042e6224 revision: bump to 6 (#2137) 2026-07-16 01:44:54 +06:00
jj 6b82d3a5cb helium/ui: guard macOS hit tests during window teardown (#2138)
hopefully fixes #2129
2026-07-15 19:42:47 +00:00
wukko d24193ca11 helium/ui: add a real zoom indicator and an option to hide it (#2136)
this PR re-introduces the page zoom indicator as a percentage bubble
rather than a pointless icon. clicking the zoom indicator resets the
zoom to default value. the indicator can be disabled in appearance
settings.

closes #578
2026-07-15 18:53:14 +00:00
wukko b2a22d9d39 helium/settings: fix indents and separators on appearance page (#2135)
- made indented toggles for layout/frameless options use the
   `indented-toggles` class to align with the rest of the page.
- added separators between toggles where it makes sense. 
- removed an extra separator before the bookmark bar row.
2026-07-15 17:36:03 +00:00
wukko 3c1fb6a950 merge: update to chromium 150.0.7871.124 (#2132) 2026-07-15 22:06:45 +06:00
wukko e7a7a5a06c patches: refresh for chromium 150.0.7871.124 2026-07-15 18:51:14 +06:00
wukko 8a04bcd160 merge: update to ungoogled-chromium 150.0.7871.124 2026-07-15 18:49:56 +06:00
Blaise 88b2bb9ae0 Update to Chromium 150.0.7871.124 2026-07-15 07:45:52 -05:00
wukko 68be4fc5a3 devutils/update_lists: use fork multiprocessing only on posix
fixes breakage on windows introduced by #3866.

fork is indeed available on all POSIX systems, but windows isn't one,
so we use the default spawn method on all non-POSIX systems
(nt/windows) instead.
2026-07-15 16:02:37 +06:00
jj a045cdfbc0 helium/core: add crash reporting with a dialog and preference (#2115)
when helium crashes, a dialog is shown which asks whether the user wants
to submit a report, which is then sent to minidumpster at
https://crash.helium.computer/

there is also a local state preference that controls whether the crash
prompts and uploads are completely disabled or happen automatically in
the background.

Co-authored-by: wukko <me@wukko.me>
2026-07-15 02:16:37 +06:00
Daniel Richard G. 391bf50764 Fix global variables in Python 3.14 multiprocessing processes (#3866) 2026-07-14 11:56:34 -05:00
colayu 4addaf0c70 Remove unnecessary code from disable-ai patch (#3865) 2026-07-14 07:25:26 -05:00
jj 7e69968259 i18n/prompt: add info about ICU syntax (#2122) 2026-07-14 15:40:53 +06:00
jj 8aa639e550 deps.ini: update ublock and onboarding (#2121) 2026-07-13 20:24:49 +00:00
jj 75250243c5 helium/core/shift-right-click: add missing hunks (#2110)
oops
2026-07-12 16:05:22 +00:00
jj c0e20d7fa1 helium/core: make shift+right click always open context menu (#2109)
fixes #2060
2026-07-12 17:40:31 +02:00
wukko 1a2740473b helium/ui/layout: fix VTS resize area visibility (#2108)
this PR:
- invalidates the VTS layout when its alignment changes, allowing for
the resize area to change sides
- centralizes resize area visibility updates
- explicitly hides the resize area for floating zen-mode VTS and
restores it when pinned
- as a result of fixes above, prevents unexpected resizing and
collapsing of floating VTS

fixes #2097
2026-07-12 20:32:06 +06:00
jj 7d73eb9ca6 helium/core: add force paste command/menu item (#2107)
fixes #693
2026-07-12 13:23:54 +00:00
wukko d79d24e8a3 helium/zen: don't expand floating VTS before initialization (#2106)
follow up to #2068:

the VTS region may be attached before its tab strip view is initialized,
so ShouldDrawVerticalTabStrip() alone does not make an expansion attempt
safe.

now we check whether VTS was initialized, and re-evaluate expansion
after initialization.

fixes #2059
2026-07-12 12:43:49 +00:00
wukko 90371bd91d helium/ui/native-frame: fix GMeet PiP crash and PWA titlebar (#2104)
fixes imputnet/helium-macos#284
fixes imputnet/helium-macos#285
2026-07-12 17:43:47 +06:00
wukko f468819dc5 helium/ui/native-frame: fix crash in PiP windows
pip can trigger a theme update before BrowserView is attached to its
widget, which caused UpdateBackground() to dereference a null widget
while resolving the native-frame color mode.

now we use BrowserNativeWidgetMac's widget directly, guard against
early lifecycle calls, and use the same widget for color lookup.

fixes imputnet/helium-macos#284
2026-07-12 17:30:04 +06:00
wukko e50b8bb017 helium/ui/native-frame: don't apply to PWA windows
fixes imputnet/helium-macos#285
2026-07-12 17:27:33 +06:00
dilinger 577fb80e68 Ensure that when this patch is used by itself, NOTREACHED() isn't reached (#3862) 2026-07-11 16:58:20 -05:00
wukko 15e39d7790 revision: bump to 5 (#2089) 2026-07-09 20:44:08 +00:00
wukko 9b6090c9eb merge: update to chromium 150.0.7871.114 (#2085) 2026-07-09 23:55:15 +06:00
wukko 436d84b083 patches: refresh for chromium 150.0.7871.114 2026-07-09 17:50:00 +06:00
wukko bb234e3048 merge: update ungoogled-chromium to 150.0.7871.114 2026-07-09 17:49:51 +06:00
Blaise 2d89b04e1b Update to Chromium 150.0.7871.114 2026-07-08 18:13:45 -05:00
Nifury 0d59660e5f Fix safe_browsing in v8 setting 2026-07-08 16:00:03 -07:00
wukko 36aa5e34ae revision: bump to 4 (#2076) 2026-07-07 20:56:57 +00:00
wukko 3b87cfd21b merge: update to chromium 150.0.7871.100 (#2075) 2026-07-08 02:30:45 +06:00
wukko 6d652dee90 merge: update ungoogled-chromium to 150.0.7871.100 2026-07-08 01:54:11 +06:00
Blaise 4167eda85e Update to Chromium 150.0.7871.100 2026-07-07 13:05:52 -05:00
wukko 1c614653c8 helium/ui: add experimental native frame materials for macOS (#2056)
adds a flagged option for using system's native materials for the
browser frame instead of an opaque color. still experimental and will
improve in the future.

partially addresses #325
2026-07-07 21:38:37 +06:00
~flonky ecb002226b i18n/de: fix incorrect conjugation and adjust another translation (#2074)
During the last update an incorrect translation was merged (wrong
conjugation), which this PR addresses. This also modifies another
translation that I noticed could be improved while fixing the previously
mentioned error.
I've opened a related issue here
https://github.com/imputnet/helium/issues/2072 with further / more
detailed information.

I have not compiled and tested Helium with these changes on any
platform, as I didn't consider it necessary for i18n related changes.
2026-07-07 16:49:17 +02:00
wukko 389fe06c39 helium/zen: don't force floating VTS to expand when not attached (#2068)
and also drop usage of a testing method from vertical patch

fixes #2059
2026-07-06 19:17:33 +00:00
wukko 320bccb749 helium/core/search: add url for reverse image search with google (#2065)
closes #339
2026-07-06 21:11:00 +06:00
Rongpeng Li 33ac22867a i18n/zh-CN: update "Copy URL(s)" translation (#2048) 2026-07-05 15:31:04 +02:00
jj 1c07292037 helium/settings: fix v8 page being empty (#2055)
fixes #2050
2026-07-05 13:26:45 +02:00
wukko 2420c7b531 helium/ui/separators: remove rounded corner on attached side (#2054)
now web content is not rounded at all if the rounded frame is disabled,
even if leading/trailing chrome is attached

fixes #1133
2026-07-05 15:26:46 +06:00
wukko 8a83377c3f revision: bump to 3 (#2047) 2026-07-03 20:40:29 +00:00
wukko 7079bcbe30 helium/ui/cab: invalidate toolbar layout on window state change (#2046)
fixes the stale alignment issue on Windows by invalidating toolbar
layout after maximize/restore so the centered address bar recomputes
against the new frame width

fixes #1958
2026-07-03 19:35:48 +00:00
wukko 9d129c636f helium/ui/vertical: fix incorrect tab alert indicator position (#2045)
fixes #1994
2026-07-03 19:12:03 +00:00
wukko e33c394d1d helium/core: enable bookmark bar visibility options (#2038)
enables kNtpSimplificationBookmarkBar, which includes proper visibility
options for the bookmark bar

closes #1349 (for real this time)
2026-07-03 21:13:28 +06:00
jj ec0adbe698 helium/zen: fix bookmark items being offset when vts is hidden (#2035) 2026-07-03 21:12:46 +06:00
235 changed files with 10615 additions and 3913 deletions
+5
View File
@@ -44,6 +44,11 @@ body:
description: A clear and concise description (in one line) of what the bug is.
validations:
required: true
- type: input
id: crashid
attributes:
label: Crash ID
description: If applicable, provide the crash ID from helium://crashes.
- type: textarea
id: repro
attributes:
+2
View File
@@ -11,6 +11,8 @@ permissions:
jobs:
notify:
runs-on: ubuntu-latest
# skip if the PR is from a fork
if: github.event.pull_request.head.repo.full_name == github.repository
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ github.event.pull_request.number }}
+1 -1
View File
@@ -1 +1 @@
150.0.7871.46
151.0.7922.47
+8 -7
View File
@@ -1,24 +1,25 @@
# Everything that's downloaded after cloning Chromium goes here.
# It will not work from main downloads.ini
[search_engines_data]
url = https://gist.githubusercontent.com/wukko/2a591364dda346e10219e4adabd568b1/raw/e75ae3c4a1ce940ef7627916a48bc40882d24d40/nonfree-search-engines-data.tar.gz
download_filename = nonfree-search-engines-data.tar.gz
sha256 = 00a87050fa3f941d04d67fb5763991e0b8ea399a88b505ab0e56dd263f06864c
version = 202607242007
url = https://github.com/imputnet/helium-nonfree-assets/releases/download/%(version)s/nonfree-search-engines-data-%(version)s.tar.gz
download_filename = nonfree-search-engines-data-%(version)s.tar.gz
sha256 = e14fa5b38ced15ae516143da23edcba608eea63e54960173ae8829f08efffb58
output_path = ./third_party/search_engines_data/resources_internal
[onboarding]
version = 202606171625
version = 202607241958
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 = 1cd79da9daf391524f130b5a3a2e93d87eb7bf882ff6341ab14da1a2f7e6ebe5
sha256 = 3e026530dd93f5ef660f66d21bc7547123b053984a44d6ce310696c9dded98ce
output_path = ./components/helium_onboarding
# If you are bumping this, you *NEED* to re-strip the assets.json
# file *every time* by using `devutils/clear-ublock-assets.js`.
[ublock_origin]
version = 1.71.0
version = 1.72.2
url = https://github.com/imputnet/uBlock/releases/download/%(version)s/uBlock0_%(version)s.chromium.zip
sha256 = 3797501b9083c431d876f138d8a594a13d931925c46f75877612d2d548a4698e
sha256 = 6ea10a863eb343ddcc317fdda9c65ccb2799c74d0de06ad75aded04d38d63dca
download_filename = ublock-origin-%(version)s.zip
output_path = third_party/ublock
strip_leading_dirs = uBlock0.chromium
+4 -2
View File
@@ -16,11 +16,11 @@ the process has finished.
"""
import argparse
import multiprocessing
import os
import sys
from itertools import repeat
from multiprocessing import Pool
from pathlib import Path, PurePosixPath
sys.path.insert(0, str(Path(__file__).resolve().parent.parent / 'utils'))
@@ -338,7 +338,7 @@ def compute_lists(source_tree, search_regex, processes): # pylint: disable=too-m
unused_patterns = UnusedPatterns()
# Launch multiple processes iterating over the source tree
with Pool(processes) as procpool:
with multiprocessing.Pool(processes) as procpool:
returned_data = procpool.starmap(
compute_lists_proc,
zip(source_tree.rglob('*'), repeat(source_tree), repeat(search_regex)))
@@ -427,4 +427,6 @@ def main(args_list=None):
if __name__ == "__main__":
if os.name == 'posix':
multiprocessing.set_start_method('fork')
main()
+201 -87
View File
File diff suppressed because it is too large Load Diff
+10
View File
@@ -9,6 +9,14 @@ This directory contains the translations for Helium browser UI strings.
beyond what is already supported in Chromium.
- `translations/` - Per-language translation files.
## Submitting translations
**Do not open pull requests with new translations!** We run translations [in
batches][pr], if you would like to contribute to the translation of Helium,
please wait for the next batch.
If you are editing existing strings (e.g. you noticed some string(s) that are
incorrect), feel free to open a pull request as usual.
## Translation reviewers
Your responsibility as a reviewer is to ensure the translation is the
best it can be. When reviewing translations for a specific language, focus on:
@@ -52,3 +60,5 @@ not by position. Each entry is an object:
The `feminine`/`masculine` fields are only present when the
translation genuinely differs by grammatical gender.
[pr]: https://github.com/imputnet/helium/pulls?q=i18n+in%3Atitle+is%3Apr+is%3Aopen
+1
View File
@@ -26,6 +26,7 @@ owners:
fi:
fil:
fr:
- Maxokie
fr-CA:
gl:
gu:
+23
View File
@@ -22,6 +22,29 @@ You are a professional translator for browser UI strings. Translate all provided
10. **Browser style**: Helium is a Chromium-based browser. Use terminology and phrasing that match established browser UI translations for the target language, especially Chromium/Chrome-style translations for common browser concepts.
11. **ICU plural messages**: some messages use ICU MessageFormat plural syntax. For example:
```text
{MINUTES, plural,
=1 {minute}
other {minutes}}
```
Keep the argument name (`MINUTES`), the keyword `plural`, exact-number selectors such as `=0` or `=1`, plural-category selectors (`zero`, `one`, `two`, `few`, `many`, and `other`), any `offset:n`, `#` characters, and the surrounding braces as syntax. Translate only the human-readable text inside each selector's braces. `#` means “insert the locale-formatted count”; preserve it exactly and do not add it when the source does not contain it.
Do not assume every language has only English-style singular and plural forms. Keep every exact-number branch from the source (such as `=0` and `=1`), always include `other`, and use exactly the CLDR cardinal plural categories the target language requires — adding any that are missing from the source and removing any source-language categories (such as `one`, `few`, `many`) that the target language does not use. Consult the [Unicode CLDR Language Plural Rules chart](https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html) for the categories used by each language, the counts assigned to each category, and minimal-pair examples. The chart determines which selector applies to a number; choose the actual translated wording from the message's grammatical context. Exact-number selectors match before language categories: `=1` means only the number 1, while a category such as `one` can cover other numbers too. For example, Russian needs the source above translated as:
```text
{MINUTES, plural,
=1 {минута}
one {минута}
few {минуты}
many {минут}
other {минуты}}
```
Here `=1` handles 1, `one` handles values such as 21 and 31, `few` handles values such as 2–4 and 22–24, and `many` handles values such as 0, 5–20, and 25–30. Use the categories and wording appropriate for `{{language_code}}`; the Russian example illustrates the mechanism, not a pattern to copy into other languages. Preserve the message's intent: if the source omits the number because it is displayed separately in the UI, do not insert it into the translation.
## Input
You will receive a JSON array of objects, each with:
+217 -25
View File
@@ -575,6 +575,24 @@
"context": "In Title Case: The name of the Search with Engine command in the content area context menu",
"message": "&amp;Search with <ph name=\"SEARCH_ENGINE\">$1<ex>DuckDuckGo</ex></ph>"
},
{
"name": "IDS_FORCE_PASTE",
"source": "chrome/app/generated_resources.grd",
"context": "The label for a command that pastes text without invoking page paste handlers",
"message": "Force paste"
},
{
"name": "IDS_FORCE_PASTE",
"source": "chrome/app/generated_resources.grd",
"context": "In Title Case: The label for a command that pastes text without invoking page paste handlers",
"message": "Force Paste"
},
{
"name": "IDS_SETTINGS_SHIFT_RIGHT_CLICK_CONTEXT_MENU",
"source": "chrome/app/settings_strings.grdp",
"context": "Label for the checkbox which makes Shift+right click show the browser context menu even when a page blocks it.",
"message": "Force context menu with Shift+Right Click"
},
{
"name": "IDS_SETTINGS_PERMISSIONS_DESCRIPTION_NORMAL",
"source": "chrome/app/settings_strings.grdp",
@@ -738,6 +756,84 @@
"context": "macOS-only link on the browser shortcuts Settings page that opens the system keyboard shortcuts settings.",
"message": "System Settings &gt; Keyboard &gt; Keyboard Shortcuts &gt; App Shortcuts"
},
{
"name": "IDS_SETTINGS_HELIUM_CRASH_REPORTING_TITLE",
"source": "chrome/app/settings_strings.grdp",
"context": "Title of the setting that controls crash reporting",
"message": "Crash reporting"
},
{
"name": "IDS_SETTINGS_HELIUM_CRASH_REPORTING_DESCRIPTION",
"source": "chrome/app/settings_strings.grdp",
"context": "Description of the setting that controls crash reporting",
"message": "Choose whether Helium can ask to send crash reports or send them automatically. Disabling reports will delete all pending reports."
},
{
"name": "IDS_SETTINGS_HELIUM_CRASH_REPORTING_DISABLED",
"source": "chrome/app/settings_strings.grdp",
"context": "Crash reporting option that disables prompts and submissions",
"message": "Disabled"
},
{
"name": "IDS_SETTINGS_HELIUM_CRASH_REPORTING_ASK",
"source": "chrome/app/settings_strings.grdp",
"context": "Crash reporting option that prompts after a crash",
"message": "Ask after a crash"
},
{
"name": "IDS_SETTINGS_HELIUM_CRASH_REPORTING_AUTOMATIC",
"source": "chrome/app/settings_strings.grdp",
"context": "Crash reporting option that automatically submits reports",
"message": "Send automatically"
},
{
"name": "IDS_SETTINGS_NOISE",
"source": "chrome/app/settings_strings.grdp",
"context": "Title of the settings page for Helium's fingerprinting protection feature.",
"message": "Fingerprinting protection"
},
{
"name": "IDS_SETTINGS_NOISE_LINK_DESCRIPTION",
"source": "chrome/app/settings_strings.grdp",
"context": "Description of the fingerprinting protection link on the Privacy and security settings page.",
"message": "Manage how Helium protects you against fingerprinting"
},
{
"name": "IDS_SETTINGS_NOISE_TOGGLE_DESCRIPTION",
"source": "chrome/app/settings_strings.grdp",
"context": "Description of the global fingerprinting protection toggle.",
"message": "Make it harder for sites to fingerprint your browser and device"
},
{
"name": "IDS_SETTINGS_NOISE_DESCRIPTION",
"source": "chrome/app/settings_strings.grdp",
"context": "Description of how Helium protects against browser fingerprinting.",
"message": "When fingerprinting protection is enabled, Helium adds noise to certain browser features to make it harder for sites to track and profile you. Each site sees consistent randomized information during your browsing session to reduce the chances of detection."
},
{
"name": "IDS_SETTINGS_NOISE_DISCLAIMER",
"source": "chrome/app/settings_strings.grdp",
"context": "Disclaimer shown below the fingerprinting protection description explaining that Helium makes fingerprint recovery harder but cannot prevent fingerprinting completely.",
"message": "Fingerprinting cannot be fully prevented, but Helium's analysis defenses make it harder to recover the original fingerprint."
},
{
"name": "IDS_SETTINGS_NOISE_CUSTOM_DESCRIPTION",
"source": "chrome/app/settings_strings.grdp",
"context": "General explanation of fingerprinting protection site rules and wildcard behavior.",
"message": "When the general fingerprinting protection feature is enabled, sites listed below follow a custom setting. Inserting \"[*.]\" before a domain name applies it to the entire domain."
},
{
"name": "IDS_SETTINGS_NOISE_EXCEPTIONS_TITLE",
"source": "chrome/app/settings_strings.grdp",
"context": "Title above the list of sites where fingerprinting protection is disabled.",
"message": "Sites without fingerprinting protection"
},
{
"name": "IDS_SETTINGS_NOISE_ALLOW_OVERRIDES_TITLE",
"source": "chrome/app/settings_strings.grdp",
"context": "Title above the list of sites where fingerprinting protection is explicitly allowed, overriding broader site exceptions.",
"message": "Overrides to allow fingerprinting protection"
},
{
"name": "IDS_POLICY_SOURCE_HOP",
"source": "components/policy_strings.grdp",
@@ -786,6 +882,54 @@
"context": "The text explaining the the installation location is a Helium component.",
"message": "Helium component"
},
{
"name": "IDS_HELIUM_CRASH_REPORTING_DIALOG_TITLE",
"source": "components/new_or_sad_tab_strings.grdp",
"context": "Title of the dialog asking whether to send one or more Helium crash reports. The report count is shown for multiple reports. [ICU Syntax]",
"message": "{COUNT, plural, =1 {Would you like to send a crash report?} other {Would you like to send # crash reports?}}"
},
{
"name": "IDS_HELIUM_CRASH_REPORTING_DIALOG_DESCRIPTION",
"source": "components/new_or_sad_tab_strings.grdp",
"context": "Introductory paragraph shown when one or more Helium crash reports are available.",
"message": "Helium closed unexpectedly. A crash report could help us fix the issue you ran into and prevent it from happening again."
},
{
"name": "IDS_HELIUM_CRASH_REPORTING_DIALOG_PRIVACY",
"source": "components/new_or_sad_tab_strings.grdp",
"context": "Paragraph warning that a crash report may contain sensitive information from Helium's memory.",
"message": "A crash report may incidentally include some sensitive data present in Helium's memory at the time of crash."
},
{
"name": "IDS_HELIUM_CRASH_REPORTING_DIALOG_OPTIONAL",
"source": "components/new_or_sad_tab_strings.grdp",
"context": "Paragraph explaining that no crash report has been sent yet and that sending reports is optional.",
"message": "Nothing has been sent yet. Sending a crash report is optional."
},
{
"name": "IDS_HELIUM_CRASH_REPORTING_DIALOG_SEND_REPORT",
"source": "components/new_or_sad_tab_strings.grdp",
"context": "In Title Case: Button label for sending one or more crash reports. The report count is shown for multiple reports. [ICU Syntax]",
"message": "{COUNT, plural, =1 {Send Report} other {Send # Reports}}"
},
{
"name": "IDS_HELIUM_CRASH_REPORTING_DIALOG_SEND_REPORT",
"source": "components/new_or_sad_tab_strings.grdp",
"context": "Button label for sending one or more crash reports. The report count is shown for multiple reports. [ICU Syntax]",
"message": "{COUNT, plural, =1 {Send report} other {Send # reports}}"
},
{
"name": "IDS_CRASH_DISABLED_MESSAGE",
"source": "components/components_chromium_strings.grd",
"context": "The explanatory message for helium://crashes when crash reporting is disabled",
"message": "Crash reporting is disabled in Helium settings or by policy."
},
{
"name": "IDS_CRASH_BUG_LINK_LABEL",
"source": "components/crash_strings.grdp",
"context": "Link text for creating an issue with additional details in Helium's GitHub repo",
"message": "Create an issue with details"
},
{
"name": "IDS_SETTINGS_BROWSER_LAYOUT",
"source": "chrome/app/settings_strings.grdp",
@@ -960,6 +1104,60 @@
"context": "Text on a toast notification that is shown when a link opens a new tab while Zen Mode is enabled.",
"message": "New tab opened"
},
{
"name": "IDS_SETTINGS_NATIVE_FRAME_MATERIALS",
"source": "chrome/app/settings_strings.grdp",
"context": "Label for the toggle which enables or disables native system materials on the browser frame.",
"message": "Use native frame materials (experimental)"
},
{
"name": "IDS_SETTINGS_NATIVE_FRAME_MATERIALS_DESCRIPTION",
"source": "chrome/app/settings_strings.grdp",
"context": "Description for the toggle which enables native system materials on the browser frame.",
"message": "Applies native materials to the browser frame surfaces. May cause UI clarity issues."
},
{
"name": "IDS_SETTINGS_SHOW_ZOOM_INDICATOR",
"source": "chrome/app/settings_strings.grdp",
"context": "Label for the checkbox which shows the current page zoom percentage in the address bar.",
"message": "Show the zoom indicator in the address bar"
},
{
"name": "IDS_PAGE_INFO_HELIUM_NOISE_HEADER",
"source": "components/page_info_strings.grdp",
"context": "The title of the fingerprinting protection row and subpage in Page Info.",
"message": "Fingerprinting protection"
},
{
"name": "IDS_PAGE_INFO_HELIUM_NOISE_TOOLTIP",
"source": "components/page_info_strings.grdp",
"context": "Tooltip for the fingerprinting protection row in Page Info.",
"message": "Manage fingerprinting protection for this site"
},
{
"name": "IDS_PAGE_INFO_HELIUM_NOISE_DESCRIPTION",
"source": "components/page_info_strings.grdp",
"context": "Explanation of how Helium fingerprinting protection works.",
"message": "When fingerprinting protection is enabled, Helium adds noise to certain browser features to make it harder for sites to track and profile you."
},
{
"name": "IDS_PAGE_INFO_HELIUM_NOISE_BREAKAGE",
"source": "components/page_info_strings.grdp",
"context": "Explanation of how disabling Helium's fingerprinting protection may fix privacy-invasive websites, but will reduce user's privacy.",
"message": "Turning off the protection will reduce your privacy, but may fix site features that require fingerprinting."
},
{
"name": "IDS_PAGE_INFO_HELIUM_NOISE_GLOBALLY_DISABLED",
"source": "components/page_info_strings.grdp",
"context": "Explanation shown when the site toggle is unavailable because fingerprinting protection is disabled globally.",
"message": "Fingerprinting protection is turned off in Helium settings."
},
{
"name": "IDS_PAGE_INFO_HELIUM_NOISE_SETTINGS_BUTTON",
"source": "components/page_info_strings.grdp",
"context": "A button label that opens Helium's global fingerprinting protection settings page.",
"message": "Manage fingerprinting protection"
},
{
"name": "IDS_CONTENT_CONTEXT_SYSTEM_TRANSLATE",
"source": "chrome/app/generated_resources.grd",
@@ -1033,28 +1231,10 @@
"message": "Configure your browser just the way you want it, or use\nthe default preset with best privacy and comfort."
},
{
"name": "IDS_HELIUM_ONBOARDING_WELCOME_TERMS_NOTE",
"name": "IDS_HELIUM_ONBOARDING_WELCOME_TERMS",
"source": "components/helium_onboarding/helium_onboarding_strings.grdp",
"context": "Legal note prefix before privacy policy and terms links.",
"message": "By continuing, you agree to the"
},
{
"name": "IDS_HELIUM_ONBOARDING_WELCOME_TERMS_PRIVACY",
"source": "components/helium_onboarding/helium_onboarding_strings.grdp",
"context": "Privacy policy link text in the onboarding legal note.",
"message": "privacy policy"
},
{
"name": "IDS_HELIUM_ONBOARDING_WELCOME_TERMS_AND",
"source": "components/helium_onboarding/helium_onboarding_strings.grdp",
"context": "Conjunction between privacy policy and terms links in the onboarding legal note.",
"message": "and"
},
{
"name": "IDS_HELIUM_ONBOARDING_WELCOME_TERMS_USE",
"source": "components/helium_onboarding/helium_onboarding_strings.grdp",
"context": "Terms of use link text in the onboarding legal note.",
"message": "terms of use"
"context": "Legal note shown during onboarding. Keep each BEGIN/END placeholder pair around its corresponding link text, but move the pairs as needed for a natural translation.",
"message": "By continuing, you agree to the <ph name=\"BEGIN_LINK_PRIVACY\">$1</ph>privacy policy<ph name=\"END_LINK_PRIVACY\">$2</ph> and <ph name=\"BEGIN_LINK_TERMS\">$3</ph>terms of use<ph name=\"END_LINK_TERMS\">$4</ph>."
},
{
"name": "IDS_HELIUM_ONBOARDING_WELCOME_FOOTER",
@@ -1222,25 +1402,25 @@
"name": "IDS_HELIUM_ONBOARDING_SEARCH_ENGINES_DUCKDUCKGO",
"source": "components/helium_onboarding/helium_onboarding_strings.grdp",
"context": "Onboarding description of DuckDuckGo as a search engine option.",
"message": "Privacy-focused. Relies on Bing results but promises to never track or profile you."
"message": "Privacy-focused. Relies on Bing for results. Promises not to track or profile you."
},
{
"name": "IDS_HELIUM_ONBOARDING_SEARCH_ENGINES_KAGI",
"source": "components/helium_onboarding/helium_onboarding_strings.grdp",
"context": "Onboarding description of Kagi as a search engine option.",
"message": "Privacy-focused. Customizable results without ads or tracking. Requires a paid account."
"message": "Privacy-focused. Doesn't use Google or Bing. Has custom ranking. Requires a paid account. No ads, tracking, or profiling."
},
{
"name": "IDS_HELIUM_ONBOARDING_SEARCH_ENGINES_QWANT",
"source": "components/helium_onboarding/helium_onboarding_strings.grdp",
"context": "Onboarding description of Qwant as a search engine option.",
"message": "Based in Europe. Uses Bing results. Sends tracking data to Microsoft."
"message": "Based in Europe. Relies on Bing for results. Sends tracking data to Microsoft."
},
{
"name": "IDS_HELIUM_ONBOARDING_SEARCH_ENGINES_ECOSIA",
"source": "components/helium_onboarding/helium_onboarding_strings.grdp",
"context": "Onboarding description of Ecosia as a search engine option.",
"message": "May plant trees for clicking ads. Relies on Bing and Google. Sends tracking data to Microsoft and Google."
"message": "May plant trees for clicking ads. Relies on Google and Bing for results. Sends tracking data to Google and Microsoft."
},
{
"name": "IDS_HELIUM_ONBOARDING_SEARCH_ENGINES_BING",
@@ -1254,6 +1434,18 @@
"context": "Onboarding description of Google as a search engine option.",
"message": "It's Google. It dominates the search market, collects extensive personal data, and profiles you."
},
{
"name": "IDS_HELIUM_ONBOARDING_SEARCH_ENGINES_STARTPAGE",
"source": "components/helium_onboarding/helium_onboarding_strings.grdp",
"context": "Onboarding description of Startpage as a search engine option.",
"message": "Privacy-focused. Relies on Google and Bing for results. Promises not to track or profile you."
},
{
"name": "IDS_HELIUM_ONBOARDING_SEARCH_ENGINES_BRAVE",
"source": "components/helium_onboarding/helium_onboarding_strings.grdp",
"context": "Onboarding description of Brave as a search engine option.",
"message": "Privacy-focused. Doesn't use Google or Bing. Promises not to track or profile you. May show promotions related to Brave services."
},
{
"name": "IDS_HELIUM_ONBOARDING_DEFAULT_BROWSER_TITLE",
"source": "components/helium_onboarding/helium_onboarding_strings.grdp",
+2 -2
View File
@@ -92,7 +92,7 @@
{
"name": "IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION_WARNING",
"source": "Do not use this field unless you know exactly what you are doing. Never paste URLs from other people here, they are trying to steal your data. We are not responsible for any damages caused by using a custom server and will not be able to help you.",
"message": "Verwende dieses Feld nur, wenn du genau weißt, was du tust. Füge niemals URLs von anderen Personen hier ein – diese versuchen, deine Daten zu stehlen. Wir übernehmen keine Haftung für Schäden, die durch die Nutzung eines eigenen Servers entstehen, und können dir nicht helfen."
"message": "Verwende dieses Feld nur, wenn du genau weißt, was du tust. Füge hier niemals URLs von anderen Personen ein – sie versuchen, deine Daten zu stehlen. Wir übernehmen keine Haftung für Schäden, die durch die Nutzung eines eigenen Servers entstehen, und können dir in diesem Fall auch nicht helfen."
},
{
"name": "IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_ARIA_LABEL",
@@ -747,7 +747,7 @@
{
"name": "IDS_SETTINGS_ACCESSIBILITY_TOAST_TOGGLE_DESCRIPTION",
"source": "Shows a toast notification when you copy content, such as links and images, or open a new background tab in Frameless mode",
"message": "Zeigt eine Toast-Benachrichtigung an, wenn Sie Inhalte wie Links und Bilder kopieren oder im Rahmenloser Modus einen neuen Hintergrundtab öffnen"
"message": "Zeigt eine Toast-Benachrichtigung an, wenn Sie Inhalte wie Links und Bilder kopieren oder im Rahmenlosen Modus einen neuen Hintergrundtab öffnen"
},
{
"name": "IDS_SETTINGS_BROWSER_ZEN_MODE",
+284 -7
View File
@@ -453,12 +453,12 @@
{
"name": "IDS_IMPORT_FULL_DISK_ACCESS_DIALOG_MESSAGE",
"source": "Helium needs Full Disk Access to import your Bookmarks from Safari.",
"message": "Helium a besoin de l’Accès complet au disque pour importer tes favoris depuis Safari."
"message": "Helium a besoin de l’Accès complet au disque pour importer vos favoris depuis Safari."
},
{
"name": "IDS_IMPORT_FULL_DISK_ACCESS_DIALOG_LINK",
"source": "Learn how to grant Full Disk Access from your System Preferences.",
"message": "Découvre comment accorder l’Accès complet au disque depuis tes Préférences Système."
"message": "Découvrez comment accorder l’Accès complet au disque depuis vos Préférences Système."
},
{
"name": "IDS_IMPORT_FULL_DISK_ACCESS_DIALOG_OPEN_SETTINGS",
@@ -658,17 +658,17 @@
{
"name": "IDS_SETTINGS_SHORTCUTS_RESET_DIALOG_DESCRIPTION",
"source": "All keyboard shortcuts will be reset to their default values. Any custom shortcuts you've set will be lost.",
"message": "Tous les raccourcis clavier seront rétablis à leurs valeurs par défaut. Tous les raccourcis personnalisés que tu as définis seront perdus."
"message": "Tous les raccourcis clavier seront rétablis à leurs valeurs par défaut. Tous les raccourcis personnalisés que vous avez définis seront perdus."
},
{
"name": "IDS_SETTINGS_SHORTCUTS_PRESS_SHORTCUT",
"source": "Press a combination of keys to create a new shortcut",
"message": "Appuie sur une combinaison de touches pour créer un raccourci"
"message": "Appuyez sur une combinaison de touches pour créer un raccourci"
},
{
"name": "IDS_SETTINGS_SHORTCUTS_NEED_KEY",
"source": "Include a key that is not a modifier.",
"message": "Inclue une touche qui n’est pas un modificateur."
"message": "Incluez une touche qui n’est pas un modificateur."
},
{
"name": "IDS_SETTINGS_SHORTCUTS_WILL_OVERRIDE",
@@ -688,7 +688,7 @@
{
"name": "IDS_SETTINGS_SHORTCUTS_MAC_SYSTEM_SETTINGS_NOTICE",
"source": "Some keyboard shortcuts are protected and can't be changed here. To change them, go to:",
"message": "Certains raccourcis clavier sont protégés et ne peuvent pas être modifiés ici. Pour les modifier, va dans :"
"message": "Certains raccourcis clavier sont protégés et ne peuvent pas être modifiés ici. Pour les modifier, allez dans :"
},
{
"name": "IDS_SETTINGS_SHORTCUTS_MAC_SYSTEM_SETTINGS_LINK",
@@ -778,7 +778,7 @@
{
"name": "IDS_HELIUM_ONBOARDING_PASSWORD_INSTALLED",
"source": "Installed",
"message": "Installé dans"
"message": "Installé"
},
{
"name": "IDS_HELIUM_ONBOARDING_PASSWORD_INSTALL",
@@ -824,5 +824,282 @@
"name": "IDS_HELIUM_ONBOARDING_DATA_IMPORT_BOOKMARKS",
"source": "Bookmarks",
"message": "Favoris"
},
{
"name": "IDS_CONTENT_CONTEXT_SEARCHWEBWITH",
"source": "&amp;Search with <ph name=\"SEARCH_ENGINE\">$1<ex>DuckDuckGo</ex></ph>",
"message": "&amp;Rechercher avec <ph name=\"SEARCH_ENGINE\">$1<ex>DuckDuckGo</ex></ph>"
},
{
"name": "IDS_SETTINGS_NATIVE_FRAME_MATERIALS",
"source": "Use native frame materials (experimental)",
"message": "Utiliser les matériaux natifs du cadre (expérimental)"
},
{
"name": "IDS_SETTINGS_NATIVE_FRAME_MATERIALS_DESCRIPTION",
"source": "Applies native materials to the browser frame surfaces. May cause UI clarity issues.",
"message": "Applique des matériaux natifs aux surfaces du cadre du navigateur. Peut nuire à la lisibilité de l'interface."
},
{
"name": "IDS_CONTENT_CONTEXT_SYSTEM_TRANSLATE",
"source": "Translate “<ph name=\"SELECTION_TEXT\">$1<ex>Bonjour</ex></ph>”",
"message": "Traduire « <ph name=\"SELECTION_TEXT\">$1<ex>Bonjour</ex></ph> »"
},
{
"name": "IDS_HELIUM_ONBOARDING_PAGE_TITLE",
"source": "Helium Setup",
"message": "Configuration d'Helium"
},
{
"name": "IDS_HELIUM_ONBOARDING_BUTTON_USE_DEFAULTS",
"source": "Use defaults",
"message": "Utiliser les paramètres par défaut"
},
{
"name": "IDS_HELIUM_ONBOARDING_BUTTON_LETS_GO",
"source": "Let's go!",
"message": "C'est parti !"
},
{
"name": "IDS_HELIUM_ONBOARDING_PARTNER_TITLE",
"source": "Helium Partner",
"message": "Partenaire Helium"
},
{
"name": "IDS_HELIUM_ONBOARDING_PARTNER_TOOLTIP",
"source": "Paying for this service will support\nthe development of Helium.",
"message": "Payer pour ce service soutiendra\nle développement d'Helium."
},
{
"name": "IDS_HELIUM_ONBOARDING_WELCOME_GREETING",
"source": "Meet Helium",
"message": "Découvrez Helium"
},
{
"name": "IDS_HELIUM_ONBOARDING_WELCOME_BODY",
"source": "Configure your browser just the way you want it, or use\nthe default preset with best privacy and comfort.",
"message": "Configurez votre navigateur exactement comme vous le souhaitez, ou utilisez\nle préréglage par défaut, optimisé pour la confidentialité et le confort."
},
{
"name": "IDS_HELIUM_ONBOARDING_WELCOME_FOOTER",
"source": "You can skip setup and come back later, but Helium services won't work without it.",
"message": "Vous pouvez ignorer la configuration et y revenir plus tard, mais les services Helium ne fonctionneront pas sans elle."
},
{
"name": "IDS_HELIUM_ONBOARDING_FINISH_TITLE",
"source": "Ready to browse?",
"message": "Prêt à naviguer ?",
"feminine": "Prête à naviguer ?"
},
{
"name": "IDS_HELIUM_ONBOARDING_FINISH_BODY",
"source": "The setup is complete, thank you for choosing Helium.\nTime to enjoy the Internet again.",
"message": "La configuration est terminée, merci d'avoir choisi Helium.\nIl est temps de profiter à nouveau d'Internet."
},
{
"name": "IDS_HELIUM_ONBOARDING_SERVICES_TITLE",
"source": "Helium services",
"message": "Services Helium"
},
{
"name": "IDS_HELIUM_ONBOARDING_SERVICES_SUBTITLE",
"source": "Services are not active until you consent to using them.\nChanges will be applied after you go to the next page.",
"message": "Les services ne sont pas actifs tant que vous n'avez pas consenti à leur utilisation.\nLes modifications seront appliquées lorsque vous passerez à la page suivante."
},
{
"name": "IDS_HELIUM_ONBOARDING_SERVICES_CONNECTION_TITLE",
"source": "Allow connecting to Helium services",
"message": "Autoriser la connexion aux services Helium"
},
{
"name": "IDS_HELIUM_ONBOARDING_SERVICES_CONNECTION_DESC",
"source": "Helium services provide additional functionality, such as: extension downloads, native !bangs, filter list updates, and browser updates. When disabled, none of these features will work, but Helium will not make any web requests.",
"message": "Les services Helium offrent des fonctionnalités supplémentaires, telles que : le téléchargement d'extensions, les !bangs natifs, la mise à jour des listes de filtres et les mises à jour du navigateur. Lorsqu'ils sont désactivés, aucune de ces fonctionnalités ne fonctionne, mais Helium n'effectue aucune requête web."
},
{
"name": "IDS_HELIUM_ONBOARDING_SERVICES_BANGS_TITLE",
"source": "Allow downloading the !bangs list",
"message": "Autoriser le téléchargement de la liste des !bangs"
},
{
"name": "IDS_HELIUM_ONBOARDING_SERVICES_BANGS_DESC",
"source": "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": "Helium récupérera une liste de bangs qui vous aident à naviguer sur Internet plus rapidement, tels que !w ou !gh. Lorsque cette option est désactivée, les bangs ne fonctionneront pas."
},
{
"name": "IDS_HELIUM_ONBOARDING_SERVICES_EXTENSIONS_TITLE",
"source": "Proxy extension downloads and updates",
"message": "Faire passer les téléchargements et mises à jour d'extensions par un proxy"
},
{
"name": "IDS_HELIUM_ONBOARDING_SERVICES_EXTENSIONS_DESC",
"source": "When enabled, Helium will proxy extension downloads and updates to protect your privacy. When disabled, downloading and updating extensions will not work.",
"message": "Lorsque cette option est activée, Helium relaiera via proxy les téléchargements et mises à jour d'extensions pour protéger votre vie privée. Lorsqu'elle est désactivée, le téléchargement et la mise à jour des extensions ne fonctionneront pas."
},
{
"name": "IDS_HELIUM_ONBOARDING_SERVICES_UBLOCK_TITLE",
"source": "Allow downloading filter lists for uBlock Origin",
"message": "Autoriser le téléchargement des listes de filtres pour uBlock Origin"
},
{
"name": "IDS_HELIUM_ONBOARDING_SERVICES_UBLOCK_DESC",
"source": "Helium will fetch fresh filter lists for uBlock Origin. All requests to lists are proxied to protect your privacy. When disabled, default filter lists will be loaded from local storage, which are only updated along with Helium. Optional filter lists will be requested without proxying.",
"message": "Helium récupérera des listes de filtres à jour pour uBlock Origin. Toutes les requêtes vers les listes sont acheminées via un proxy pour protéger votre vie privée. Lorsque cette option est désactivée, les listes de filtres par défaut seront chargées depuis le stockage local et ne seront mises à jour qu'en même temps que Helium. Les listes de filtres optionnelles seront demandées sans passer par le proxy."
},
{
"name": "IDS_HELIUM_ONBOARDING_SERVICES_AUTOUPDATES_TITLE",
"source": "Allow automatic browser updates",
"message": "Autoriser les mises à jour automatiques du navigateur"
},
{
"name": "IDS_HELIUM_ONBOARDING_SERVICES_AUTOUPDATES_DESC",
"source": "Helium will automatically check for updates and install them. This includes browser and component updates. We recommend keeping this setting enabled to ensure you get the latest features and security updates.",
"message": "Helium recherchera automatiquement les mises à jour et les installera. Cela inclut les mises à jour du navigateur et des composants. Nous vous recommandons de conserver ce paramètre activé afin de bénéficier des dernières fonctionnalités et mises à jour de sécurité."
},
{
"name": "IDS_HELIUM_ONBOARDING_SERVICES_AUTOUPDATES_TITLE_LINUX",
"source": "Allow automatic component updates",
"message": "Autoriser les mises à jour automatiques des composants"
},
{
"name": "IDS_HELIUM_ONBOARDING_SERVICES_AUTOUPDATES_DESC_LINUX",
"source": "Helium will automatically check for component updates and install them. We recommend keeping this setting enabled. On Linux, browser updates are handled by your distro's package manager. Please check for Helium package updates at least every week.",
"message": "Helium recherchera automatiquement les mises à jour des composants et les installera. Nous vous recommandons de conserver ce paramètre activé. Sous Linux, les mises à jour du navigateur sont gérées par le gestionnaire de paquets de votre distribution. Veuillez rechercher les mises à jour du paquet Helium au moins une fois par semaine."
},
{
"name": "IDS_HELIUM_ONBOARDING_SERVICES_SPELLCHECK_TITLE",
"source": "Allow downloading dictionary files for spell checking",
"message": "Autoriser le téléchargement des fichiers de dictionnaire pour la vérification orthographique"
},
{
"name": "IDS_HELIUM_ONBOARDING_SERVICES_SPELLCHECK_DESC",
"source": "Helium will fetch dictionary files used for spell checking when requested. When disabled, spell checking will not work.",
"message": "Helium récupérera les fichiers de dictionnaire utilisés pour la vérification orthographique lorsque cela est demandé. Lorsque cette option est désactivée, la vérification orthographique ne fonctionnera pas."
},
{
"name": "IDS_HELIUM_ONBOARDING_SERVICES_INSTANCE_TITLE",
"source": "Use your own instance of Helium services",
"message": "Utiliser votre propre instance des services Helium"
},
{
"name": "IDS_HELIUM_ONBOARDING_SERVICES_INSTANCE_DESC",
"source": "You can host your own instance of Helium services and use it in your browser instead of the pre-hosted server. If you have one, you can set it in Helium settings.",
"message": "Vous pouvez héberger votre propre instance des services Helium et l'utiliser dans votre navigateur à la place du serveur préhébergé. Si vous en avez une, vous pouvez la définir dans les paramètres d'Helium."
},
{
"name": "IDS_HELIUM_ONBOARDING_SEARCH_SUBTITLE",
"source": "You can change your choice later in Settings.\nEngines are ordered by privacy.",
"message": "Vous pourrez modifier votre choix plus tard dans les paramètres.\nLes moteurs sont classés selon leur respect de la confidentialité."
},
{
"name": "IDS_HELIUM_ONBOARDING_SEARCH_CATEGORIES_PRIVATE",
"source": "A privacy-first search engine which\ndoesn't profile or track you.",
"message": "Un moteur de recherche privilégiant la confidentialité, qui\nne vous profile pas et ne vous suit pas."
},
{
"name": "IDS_HELIUM_ONBOARDING_SEARCH_CATEGORIES_SMALL",
"source": "Transparent, but not privacy-focused.\nOffers better privacy than mainstream\nsearch engines.",
"message": "Transparent, mais non axé sur la confidentialité.\nOffre une meilleure confidentialité que les\nmoteurs de recherche grand public."
},
{
"name": "IDS_HELIUM_ONBOARDING_SEARCH_CATEGORIES_MAINSTREAM",
"source": "A mainstream search engine which\ncollects extensive personal data.",
"message": "Un moteur de recherche grand public qui\ncollecte de nombreuses données personnelles."
},
{
"name": "IDS_HELIUM_ONBOARDING_SEARCH_CATEGORIES_CUSTOM",
"source": "A custom search engine. Its privacy\nwasn't verified by Helium.",
"message": "Un moteur de recherche personnalisé. Son respect\nde la vie privée n’a pas été vérifié par Helium."
},
{
"name": "IDS_HELIUM_ONBOARDING_SEARCH_ENGINES_BING",
"source": "Collects extensive personal data. Privacy controls are buried and limited. Subjectively overwhelming UI.",
"message": "Collecte de nombreuses données personnelles. Les contrôles de confidentialité sont difficiles à trouver et limités. Interface subjectivement surchargée."
},
{
"name": "IDS_HELIUM_ONBOARDING_SEARCH_ENGINES_GOOGLE",
"source": "It's Google. It dominates the search market, collects extensive personal data, and profiles you.",
"message": "C'est Google. Il domine le marché de la recherche, collecte de nombreuses données personnelles et vous profile."
},
{
"name": "IDS_HELIUM_ONBOARDING_DEFAULT_BROWSER_TITLE",
"source": "Ready to switch to Helium?",
"message": "Prêt à passer à Helium ?",
"feminine": "Prête à passer à Helium ?"
},
{
"name": "IDS_HELIUM_ONBOARDING_DEFAULT_BROWSER_SUBTITLE",
"source": "Better privacy, speed, and comfort. All in one click.\nLet's make links open in Helium by default.",
"message": "Plus de confidentialité, de rapidité et de confort. Le tout en un clic.\nFaisons en sorte que les liens s'ouvrent dans Helium par défaut."
},
{
"name": "IDS_HELIUM_ONBOARDING_DEFAULT_BROWSER_YES_DESC",
"source": "Make Helium my default browser.",
"message": "Définir Helium comme mon navigateur par défaut."
},
{
"name": "IDS_HELIUM_ONBOARDING_DEFAULT_BROWSER_NO_DESC",
"source": "Just trying Helium for now.",
"message": "J'essaie simplement Helium pour l'instant."
},
{
"name": "IDS_HELIUM_ONBOARDING_DATA_IMPORT_TITLE",
"source": "Take your stuff with you",
"message": "Emportez vos données avec vous"
},
{
"name": "IDS_HELIUM_ONBOARDING_DATA_IMPORT_SUBTITLE",
"source": "Transfer your most important bookmarks, history,\n and extensions from other browsers.",
"message": "Transférez vos favoris, votre historique\n et vos extensions les plus importants depuis d'autres navigateurs."
},
{
"name": "IDS_HELIUM_ONBOARDING_PASSWORD_TITLE",
"source": "Password manager",
"message": "Gestionnaire de mots de passe"
},
{
"name": "IDS_HELIUM_ONBOARDING_PASSWORD_SUBTITLE",
"source": "Helium doesn't have a built-in password manager, by design.\n Would you like to install a browser-agnostic one?",
"message": "Helium ne dispose pas de gestionnaire de mots de passe intégré, et ce, à dessein.\n Souhaitez-vous en installer un indépendant du navigateur ?"
},
{
"name": "IDS_HELIUM_ONBOARDING_PASSWORD_SETUP_GUIDE",
"source": "Setup",
"message": "Configuration"
},
{
"name": "IDS_HELIUM_ONBOARDING_PASSWORD_ERROR",
"source": "Error:",
"message": "Erreur :"
},
{
"name": "IDS_HELIUM_ONBOARDING_PASSWORD_MANAGERS_PROTON_PASS",
"source": "Secure and privacy-focused password manager by Proton. Stores data in Europe. All clients are open-source. Free with an optional paid plan.",
"message": "Gestionnaire de mots de passe sécurisé et axé sur la confidentialité, proposé par Proton. Stocke les données en Europe. Tous les clients sont open source. Gratuit, avec une formule payante facultative."
},
{
"name": "IDS_HELIUM_ONBOARDING_PASSWORD_MANAGERS_BITWARDEN",
"source": "The most popular open-source password manager. Offers data storage in Europe or US. Free with an optional paid plan. Can be self-hosted.",
"message": "Le gestionnaire de mots de passe open source le plus populaire. Propose un stockage des données en Europe ou aux États-Unis. Gratuit, avec une formule payante facultative. Peut être auto-hébergé."
},
{
"name": "IDS_HELIUM_ONBOARDING_PASSWORD_MANAGERS_ONE_PASSWORD",
"source": "Popular, paid, and closed-source password manager. Offers data storage in Europe or US. May not work correctly with Helium due to negligence.",
"message": "Gestionnaire de mots de passe populaire, payant et à code source fermé. Propose un stockage des données en Europe ou aux États-Unis. Peut ne pas fonctionner correctement avec Helium par négligence."
},
{
"name": "IDS_HELIUM_ONBOARDING_PASSWORD_MANAGERS_DASHLANE",
"source": "Popular, paid, and closed-source password manager. Stores data in Europe. Known for aggressive upselling tactics.",
"message": "Gestionnaire de mots de passe populaire, payant et à code source fermé. Stocke les données en Europe. Connu pour ses techniques de vente incitative agressives."
},
{
"name": "IDS_HELIUM_ONBOARDING_PASSWORD_MANAGERS_ICLOUD_PASSWORDS",
"source": "Free password manager by Apple. Will nag you about using Safari and require re-authentication on browser restart. Can't generate passwords.",
"message": "Gestionnaire de mots de passe gratuit d'Apple. Vous incitera sans cesse à utiliser Safari et exigera une nouvelle authentification à chaque redémarrage du navigateur. Ne peut pas générer de mots de passe."
},
{
"name": "IDS_HELIUM_ONBOARDING_PASSWORD_MANAGERS_KEE_PASS_XC",
"source": "Local, free, and open-source password manager for advanced users. Requires technical knowledge to set up and use.",
"message": "Gestionnaire de mots de passe local, gratuit et open source, destiné aux utilisateurs avancés. Nécessite des connaissances techniques pour être configuré et utilisé."
}
]
+2 -2
View File
@@ -732,12 +732,12 @@
{
"name": "IDS_TAB_CXMENU_COPY_URL",
"source": "Copy URL",
"message": "复制链接"
"message": "复制链接地址"
},
{
"name": "IDS_TAB_CXMENU_COPY_URLS",
"source": "Copy URLs",
"message": "复制多个网址"
"message": "复制多个链接地址"
},
{
"name": "IDS_SETTINGS_ACCESSIBILITY_TOAST_TOGGLE_TITLE",
+14 -11
View File
@@ -960,7 +960,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+}
--- /dev/null
+++ b/chrome/browser/ui/webui/settings/brave_import_data_handler.cc
@@ -0,0 +1,219 @@
@@ -0,0 +1,221 @@
+/* Copyright (c) 2020 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,
@@ -987,8 +987,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+#include "base/files/file_path.h"
+#include "base/files/file_util.h"
+#include "base/task/thread_pool.h"
+#include "chrome/browser/ui/browser_window/public/global_browser_collection.h"
+#include "chrome/browser/ui/webui/settings/brave_full_disk_access_confirm_dialog_delegate.h"
+#include "chrome/browser/ui/browser_finder.h"
+#include "chrome/browser/ui/tab_modal_confirm_dialog.h"
+#endif // BUILDFLAG(IS_MAC)
+
@@ -1175,7 +1175,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ auto* web_contents = web_ui()->GetWebContents();
+ TabModalConfirmDialog::Create(
+ std::make_unique<FullDiskAccessConfirmDialogDelegate>(
+ web_contents, chrome::FindBrowserWithTab(web_contents)),
+ web_contents,
+ GlobalBrowserCollection::GetInstance()->FindBrowserWithTab(
+ web_contents)),
+ web_contents);
+}
+#endif
@@ -1795,13 +1797,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+class WebContents;
+} // namespace content
+
+class Browser;
+class BrowserWindowInterface;
+
+class FullDiskAccessConfirmDialogDelegate
+ : public TabModalConfirmDialogDelegate {
+ public:
+ FullDiskAccessConfirmDialogDelegate(content::WebContents* web_contents,
+ Browser* browser);
+ BrowserWindowInterface* browser);
+ ~FullDiskAccessConfirmDialogDelegate() override;
+
+ FullDiskAccessConfirmDialogDelegate(
@@ -1818,13 +1820,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ void OnAccepted() override;
+ void OnLinkClicked(WindowOpenDisposition disposition) override;
+
+ raw_ptr<Browser> browser_;
+ raw_ptr<BrowserWindowInterface> browser_;
+};
+
+#endif // BRAVE_BROWSER_UI_WEBUI_SETTINGS_BRAVE_FULL_DISK_ACCESS_CONFIRM_DIALOG_DELEGATE_H_
--- /dev/null
+++ b/chrome/browser/ui/webui/settings/brave_full_disk_access_confirm_dialog_delegate_mac.mm
@@ -0,0 +1,62 @@
@@ -0,0 +1,63 @@
+/* Copyright (c) 2022 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,
@@ -1837,10 +1839,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+#include "base/functional/bind.h"
+#include "base/values.h"
+#include "chrome/browser/importer/external_process_importer_host.h"
+#include "chrome/browser/ui/browser.h"
+#include "chrome/browser/ui/browser_tabstrip.h"
+#include "chrome/browser/ui/browser_window/public/browser_window_interface.h"
+#include "chrome/browser/ui/tab_modal_confirm_dialog.h"
+#include "chrome/browser/ui/tab_modal_confirm_dialog_delegate.h"
+#include "chrome/browser/ui/tabs/tab_strip_model.h"
+#include "chrome/grit/generated_resources.h"
+#include "components/user_data_importer/common/importer_data_types.h"
+#include "content/public/browser/web_ui.h"
@@ -1850,7 +1853,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+FullDiskAccessConfirmDialogDelegate::FullDiskAccessConfirmDialogDelegate(
+ content::WebContents* web_contents,
+ Browser* browser)
+ BrowserWindowInterface* browser)
+ : TabModalConfirmDialogDelegate(web_contents), browser_(browser) {}
+
+FullDiskAccessConfirmDialogDelegate::~FullDiskAccessConfirmDialogDelegate() =
@@ -1882,7 +1885,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+void FullDiskAccessConfirmDialogDelegate::OnLinkClicked(
+ WindowOpenDisposition disposition) {
+ const int target_index = browser_->tab_strip_model()->active_index() + 1;
+ const int target_index = browser_->GetTabStripModel()->active_index() + 1;
+ // Add import help tab right after current settings tab.
+ chrome::AddTabAt(browser_, GURL("https://github.com/imputnet/helium-macos/wiki/Import-data-from-Safari"), target_index,
+ true /* foreground */);
@@ -3052,7 +3055,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+#endif // BRAVE_UTILITY_IMPORTER_CHROME_IMPORTER_H_
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -11500,6 +11500,20 @@ Check your passwords anytime in <ph name
@@ -11554,6 +11554,20 @@ Check your passwords anytime in <ph name
<message name="IDS_IMPORT_FROM_SAFARI" desc="browser combo box: Safari">
Safari
</message>
+20 -19
View File
@@ -177,8 +177,8 @@ 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
@@ -51,6 +51,7 @@ chromium-metrics-reviews@google.com.
<variant name="DBSCSessions" summary="DBSCSessions"/>
@@ -54,6 +54,7 @@ chromium-metrics-reviews@google.com.
summary="DeclarativePerformanceObserver"/>
<variant name="DIPS" summary="DIPS"/>
<variant name="DownloadRecord" summary="DownloadRecord"/>
+ <variant name="Favicons" summary="Favicons"/>
@@ -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
@@ -3262,6 +3262,9 @@ inline constexpr char kDataUrlInWebWorke
@@ -3208,6 +3208,9 @@ inline constexpr char kDataUrlInWebWorke
inline constexpr char kSharedWorkerExtendedLifetimeEnabled[] =
"worker.shared_worker_extended_lifetime_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
@@ -1209,6 +1209,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -1205,6 +1205,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kImportDialogSearchEngine] =
settings_api::PrefType::kBoolean;
@@ -267,7 +267,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Supervised Users. This setting is queried in our Tast tests (b/241943380).
--- a/chrome/browser/ui/webui/settings/settings_ui.cc
+++ b/chrome/browser/ui/webui/settings/settings_ui.cc
@@ -63,6 +63,7 @@
@@ -65,6 +65,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"
@@ -275,7 +275,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#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"
@@ -221,6 +222,7 @@ void SettingsUI::RegisterProfilePrefs(
@@ -226,6 +227,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)
@@ -250,7 +252,7 @@ SettingsUI::SettingsUI(content::WebUI* w
@@ -255,7 +257,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
@@ -1121,6 +1121,8 @@ void AddImportDataStrings(content::WebUI
@@ -1126,6 +1126,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
@@ -1259,6 +1259,10 @@ static_library("ui") {
@@ -1474,6 +1474,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",
@@ -1427,6 +1431,13 @@ static_library("ui") {
@@ -1584,6 +1588,13 @@ static_library("ui") {
]
}
@@ -343,7 +343,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
# Non-android deps for "ui" target.
deps += [
":browser_tab_strip",
":accelerator_table",
--- a/chrome/browser/ui/webui/settings/import_data_handler.h
+++ b/chrome/browser/ui/webui/settings/import_data_handler.h
@@ -36,9 +36,9 @@ class ImportDataHandler : public Setting
@@ -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
@@ -93,6 +93,12 @@ static_library("utility") {
@@ -94,6 +94,12 @@ static_library("utility") {
sources += [
"importer/bookmarks_file_importer.cc",
"importer/bookmarks_file_importer.h",
@@ -449,17 +449,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
"importer/importer.cc",
--- a/chrome/utility/services.cc
+++ b/chrome/utility/services.cc
@@ -56,7 +56,9 @@
@@ -57,8 +57,10 @@
#endif // BUILDFLAG(IS_LINUX)
#if !BUILDFLAG(IS_ANDROID)
+#include "chrome/common/importer/chrome_profile_import.mojom.h"
#include "chrome/common/importer/profile_import.mojom.h"
#include "chrome/services/reading_mode_metrics/reading_mode_metrics_service.h"
+#include "chrome/utility/importer/brave_profile_import_impl.h"
#include "chrome/utility/importer/profile_import_impl.h"
#include "components/mirroring/service/mirroring_service.h"
#include "components/private_ai/oak_session_service/oak_session_service.h" // nogncheck
@@ -139,6 +141,13 @@ static_assert(BUILDFLAG(ENABLE_PRINTING)
#include "services/proxy_resolver/proxy_resolver_factory_impl.h" // nogncheck
@@ -140,6 +142,13 @@ static_assert(BUILDFLAG(ENABLE_PRINTING)
namespace {
@@ -473,14 +474,14 @@ 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));
}
@@ -440,6 +449,7 @@ void RegisterMainThreadServices(mojo::Se
services.Add(RunPassageEmbeddingsService);
@@ -452,6 +461,7 @@ void RegisterMainThreadServices(mojo::Se
services.Add(RunOakSessionService);
#if !BUILDFLAG(IS_ANDROID)
+ services.Add(RunBraveProfileImporter);
services.Add(RunOakSessionService);
services.Add(RunProfileImporter);
services.Add(RunMirroringService);
services.Add(RunReadingModeMetricsService);
--- a/chrome/utility/importer/external_process_importer_bridge.h
+++ b/chrome/utility/importer/external_process_importer_bridge.h
@@ -72,7 +72,7 @@ class ExternalProcessImporterBridge : pu
@@ -575,7 +576,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
@@ -11489,6 +11489,15 @@ Check your passwords anytime in <ph name
@@ -11543,6 +11543,15 @@ Check your passwords anytime in <ph name
Microsoft Edge
</message>
</if>
@@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
--- a/extensions/browser/extension_registrar.cc
+++ b/extensions/browser/extension_registrar.cc
@@ -18,6 +18,7 @@
@@ -20,6 +20,7 @@
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/devtools_agent_host.h"
@@ -33,7 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "extensions/browser/blocklist_extension_prefs.h"
#include "extensions/browser/delayed_install_manager.h"
#include "extensions/browser/disable_reason.h"
@@ -568,6 +569,22 @@ void ExtensionRegistrar::AddComponentExt
@@ -602,6 +603,22 @@ void ExtensionRegistrar::AddComponentExt
}
AddExtension(extension);
@@ -55,4 +55,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ ->OnExtensionPrefsLoaded(extension->id(), extension_prefs_);
}
void ExtensionRegistrar::RemoveComponentExtension(
// static
+12 -12
View File
@@ -35,7 +35,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "chrome/browser/ui/web_applications/web_app_dialog_utils.h"
#include "chrome/browser/ui/web_applications/web_app_launch_utils.h"
#include "chrome/browser/ui/web_applications/web_app_tabbed_utils.h"
@@ -3951,6 +3952,47 @@ TabStripSelectionChange TabStripModel::S
@@ -3898,6 +3899,47 @@ TabStripSelectionChange TabStripModel::S
return selection;
}
@@ -85,7 +85,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// 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
@@ -612,6 +612,10 @@ class TabStripModel {
@@ -603,6 +603,10 @@ class TabStripModel {
TabStripUserGestureDetails detail = TabStripUserGestureDetails(
TabStripUserGestureDetails::GestureType::kOther));
@@ -96,7 +96,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Moves the active in the specified direction. Respects group boundaries.
void MoveTabNext();
void MoveTabPrevious();
@@ -1187,6 +1191,11 @@ class TabStripModel {
@@ -1173,6 +1177,11 @@ class TabStripModel {
kPrevious,
};
@@ -108,7 +108,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Selects either the next tab (kNext), or the previous tab (kPrevious).
void SelectRelativeTab(TabRelativeDirection direction,
TabStripUserGestureDetails detail);
@@ -1485,6 +1494,9 @@ class TabStripModel {
@@ -1468,6 +1477,9 @@ class TabStripModel {
// The focused group. If no group is focused, this is nullopt.
std::optional<tab_groups::TabGroupId> focused_group_;
@@ -120,7 +120,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -323,7 +323,10 @@
@@ -325,7 +325,10 @@
#include "ui/compositor/paint_recorder.h"
#include "ui/content_accelerators/accelerator_util.h"
#include "ui/display/screen.h"
@@ -131,7 +131,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "ui/gfx/animation/animation_runner.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/color_utils.h"
@@ -341,6 +344,7 @@
@@ -343,6 +346,7 @@
#include "ui/views/controls/button/menu_button.h"
#include "ui/views/controls/textfield/textfield.h"
#include "ui/views/controls/webview/webview.h"
@@ -139,9 +139,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "ui/views/interaction/element_tracker_views.h"
#include "ui/views/interaction/view_subregion_anchor.h"
#include "ui/views/layout/fill_layout.h"
@@ -843,6 +847,83 @@ class BrowserView::ExclusiveAccessContex
base::WeakPtrFactory<ExclusiveAccessContextImpl> weak_ptr_factory_{this};
@@ -872,6 +876,83 @@ class BrowserView::PipExclusionObserverI
};
#endif
+// Handles events during MRU tab cycling to start/stop tab cycling.
+class TabCyclingEventHandler : public ui::EventObserver,
@@ -225,7 +225,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
--- a/chrome/browser/ui/views/frame/browser_view.h
+++ b/chrome/browser/ui/views/frame/browser_view.h
@@ -86,6 +86,7 @@ class MultiContentsView;
@@ -87,6 +87,7 @@ class MultiContentsView;
class ProjectsPanelView;
class ScrimView;
class SidePanel;
@@ -233,7 +233,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
class TabDragTarget;
class TabSearchBubbleHost;
class TabStrip;
@@ -560,6 +561,8 @@ class BrowserView : public BrowserWindow
@@ -564,6 +565,8 @@ class BrowserView : public BrowserWindow
void ShowChromeLabs() override;
BrowserView* AsBrowserView() override;
void ShowUpdateChromeDialog() override;
@@ -242,7 +242,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
void ShowIntentPickerBubble(
std::vector<IntentPickerBubbleView::AppInfo> app_info,
bool show_stay_in_chrome,
@@ -829,6 +832,7 @@ class BrowserView : public BrowserWindow
@@ -831,6 +834,7 @@ class BrowserView : public BrowserWindow
friend class BrowserViewLayoutDelegateImpl;
friend class BrowserViewLayoutDelegateImplOld;
friend class BrowserViewLayoutDelegateImplBrowsertest;
@@ -250,7 +250,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
friend class TopControlsSlideControllerTest;
FRIEND_TEST_ALL_PREFIXES(BrowserViewTest, BrowserView);
FRIEND_TEST_ALL_PREFIXES(BrowserViewTest, AccessibleWindowTitle);
@@ -1397,6 +1401,8 @@ class BrowserView : public BrowserWindow
@@ -1393,6 +1397,8 @@ class BrowserView : public BrowserWindow
TabStripAndWebAppViewsReparentedState::kMaxValue>
tab_strip_web_apps_reparented_state_;
@@ -9,7 +9,7 @@
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -2586,6 +2586,7 @@ static_library("browser") {
@@ -2981,6 +2981,7 @@ source_set("browser") {
"//third_party/libyuv",
"//third_party/metrics_proto",
"//third_party/re2",
@@ -19,7 +19,7 @@
"//third_party/widevine/cdm:headers",
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -202,6 +202,7 @@
@@ -205,6 +205,7 @@
#include "components/translate/core/common/translate_util.h"
#include "components/trusted_vault/features.h"
#include "components/ui_devtools/switches.h"
@@ -44,7 +44,7 @@
#endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -323,6 +323,7 @@ source_set("browser") {
@@ -330,6 +330,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"
@@ -3861,6 +3862,8 @@ void RenderProcessHostImpl::PropagateBro
@@ -3890,6 +3891,8 @@ void RenderProcessHostImpl::PropagateBro
switches::kEnableWebGLDraftExtensions,
switches::kEnableWebGPUDeveloperFeatures,
switches::kFileUrlPathAlias,
@@ -91,7 +91,7 @@
#include "ui/accessibility/accessibility_features.h"
#include "ui/base/ui_base_features.h"
#include "ui/events/blink/blink_features.h"
@@ -465,6 +466,10 @@ void SetRuntimeFeaturesFromCommandLine(c
@@ -466,6 +467,10 @@ void SetRuntimeFeaturesFromCommandLine(c
true},
{wrf::EnableWebAudioBypassOutputBufferingOptOut,
blink::switches::kWebAudioBypassOutputBufferingOptOut, true},
@@ -116,7 +116,7 @@
--- a/third_party/blink/renderer/core/dom/document.cc
+++ b/third_party/blink/renderer/core/dom/document.cc
@@ -40,6 +40,7 @@
@@ -41,6 +41,7 @@
#include "base/i18n/time_formatting.h"
#include "base/metrics/histogram_functions.h"
#include "base/notreached.h"
@@ -124,7 +124,7 @@
#include "base/task/single_thread_task_runner.h"
#include "base/time/time.h"
#include "base/trace_event/trace_event.h"
@@ -1039,6 +1040,11 @@ Document::Document(const DocumentInit& i
@@ -1049,6 +1050,11 @@ Document::Document(const DocumentInit& i
data_(MakeGarbageCollected<DocumentData>(GetExecutionContext())) {
TRACE_EVENT("blink", "Document::Document", perfetto::Flow::FromPointer(this));
DCHECK(agent_);
@@ -136,7 +136,7 @@
if (base::FeatureList::IsEnabled(features::kDelayAsyncScriptExecution) &&
features::kDelayAsyncScriptExecutionDelayByDefaultParam.Get()) {
script_runner_delayer_->Activate();
@@ -1172,6 +1178,14 @@ const Position Document::PositionAdjuste
@@ -1178,6 +1184,14 @@ const Position Document::PositionAdjuste
return Position::BeforeNode(*shadow_host);
}
@@ -153,7 +153,7 @@
selector_query_cache_ = MakeGarbageCollected<SelectorQueryCache>();
--- a/third_party/blink/renderer/core/dom/document.h
+++ b/third_party/blink/renderer/core/dom/document.h
@@ -575,6 +575,10 @@ class CORE_EXPORT Document : public Cont
@@ -573,6 +573,10 @@ class CORE_EXPORT Document : public Cont
has_xml_declaration_ = has_xml_declaration ? 1 : 0;
}
@@ -164,7 +164,7 @@
V8VisibilityState visibilityState() const;
String visibilityStateAsString() const;
bool IsPageVisible() const;
@@ -2901,6 +2905,9 @@ class CORE_EXPORT Document : public Cont
@@ -2896,6 +2900,9 @@ class CORE_EXPORT Document : public Cont
base::ElapsedTimer start_time_;
@@ -176,7 +176,7 @@
// - ScriptSchedulingType::kInOrder
--- a/third_party/blink/renderer/core/dom/element.cc
+++ b/third_party/blink/renderer/core/dom/element.cc
@@ -3461,6 +3461,9 @@ Vector<gfx::RectF> Element::GetClientRec
@@ -3480,6 +3480,9 @@ Vector<gfx::RectF> Element::GetClientRec
}
Vector<gfx::RectF> result;
for (auto& quad : quads) {
@@ -186,7 +186,7 @@
result.emplace_back(quad.BoundingBox());
}
return result;
@@ -3490,6 +3493,9 @@ gfx::RectF Element::GetBoundingClientRec
@@ -3509,6 +3512,9 @@ gfx::RectF Element::GetBoundingClientRec
DCHECK(element_layout_object);
GetDocument().AdjustRectForScrollAndAbsoluteZoom(result,
*element_layout_object);
@@ -198,7 +198,7 @@
--- a/third_party/blink/renderer/core/dom/range.cc
+++ b/third_party/blink/renderer/core/dom/range.cc
@@ -1662,6 +1662,12 @@ DOMRectList* Range::getClientRects() con
@@ -1664,6 +1664,12 @@ DOMRectList* Range::getClientRects() con
Vector<gfx::QuadF> quads;
GetBorderAndTextQuads(quads);
@@ -211,7 +211,7 @@
return MakeGarbageCollected<DOMRectList>(quads);
}
@@ -1669,7 +1675,11 @@ DOMRect* Range::getBoundingClientRect()
@@ -1671,7 +1677,11 @@ DOMRect* Range::getBoundingClientRect()
// TODO(crbug.com/1499981): This should be removed once synchronized scrolling
// impact is understood.
SyncScrollAttemptHeuristic::DidAccessScrollOffset();
@@ -264,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
@@ -106,6 +106,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"
@@ -274,7 +274,7 @@
namespace blink {
class MemoryManagedPaintCanvas;
@@ -1150,9 +1153,22 @@ TextMetrics* BaseRenderingContext2D::mea
@@ -1149,9 +1152,22 @@ TextMetrics* BaseRenderingContext2D::mea
TextDirection direction =
ToTextDirection(state.GetDirection(), host, computed_style);
@@ -300,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") {
@@ -1824,6 +1824,7 @@ component("platform") {
"//components/paint_preview/common",
"//components/search_engines:search_engine_utils",
"//components/translate/core/language_detection",
@@ -335,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
@@ -2971,6 +2971,12 @@
@@ -3080,6 +3080,12 @@
status: "stable",
},
{
@@ -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
@@ -2280,6 +2280,7 @@ static_library("browser") {
@@ -2675,6 +2675,7 @@ source_set("browser") {
"//components/net_log",
"//components/network_hints/common:mojo_bindings",
"//components/network_session_configurator/browser",
@@ -80,7 +80,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"
@@ -498,6 +502,18 @@ void BrowserProcessImpl::Init() {
@@ -511,6 +515,18 @@ void BrowserProcessImpl::Init() {
base::Unretained(this)));
#endif // BUILDFLAG(IS_WIN)
@@ -101,7 +101,7 @@ with limited CPU/memory resources and it is disabled by default.
--- a/chrome/browser/flag_descriptions.h
+++ b/chrome/browser/flag_descriptions.h
@@ -3057,6 +3057,10 @@ inline constexpr char kMacAccessibilityT
@@ -3126,6 +3126,10 @@ inline constexpr char kMacAccessibilityT
"Enables support for performing text editing operations through "
"the AXTextOperation accessibility API.";
+1 -1
View File
@@ -409,7 +409,7 @@
if (base::PathExists(history)) {
--- a/chrome/utility/BUILD.gn
+++ b/chrome/utility/BUILD.gn
@@ -97,6 +97,8 @@ static_library("utility") {
@@ -98,6 +98,8 @@ static_library("utility") {
"importer/brave_external_process_importer_bridge.h",
"importer/brave_profile_import_impl.cc",
"importer/brave_profile_import_impl.h",
@@ -1,6 +1,6 @@
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -795,6 +795,11 @@ inline constexpr char kExtensionCommands
@@ -744,6 +744,11 @@ inline constexpr char kExtensionCommands
inline constexpr char kPluginsAlwaysOpenPdfExternally[] =
"plugins.always_open_pdf_externally";
@@ -9,9 +9,9 @@
+inline constexpr char kHeliumDefaultBrowserRejected[] =
+ "helium.browser.default_browser_infobar_rejected";
+
// Int64 containing the internal value of the time at which the default browser
// infobar was last dismissed by the user.
inline constexpr char kDefaultBrowserInfobarLastDeclined[] =
// base::Time containing time at which the default browser infobar was last
// dismissed by the user.
inline constexpr char kDefaultBrowserInfobarLastDeclinedTime[] =
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -86,6 +86,8 @@ void RegisterBrowserPrefs(PrefRegistrySi
@@ -43,7 +43,7 @@
return PRODUCT_VERSION;
--- a/chrome/browser/ui/webui/version/version_ui.cc
+++ b/chrome/browser/ui/webui/version/version_ui.cc
@@ -235,6 +235,8 @@ void VersionUI::AddVersionDetailStrings(
@@ -247,6 +247,8 @@ void VersionUI::AddVersionDetailStrings(
VersionProcessorVariation());
// Data strings.
@@ -52,7 +52,7 @@
html_source->AddString(version_ui::kVersion,
version_info::GetVersionNumber());
html_source->AddString(version_ui::kVersionSuffix,
@@ -328,12 +330,14 @@ void VersionUI::AddVersionDetailStrings(
@@ -340,12 +342,14 @@ void VersionUI::AddVersionDetailStrings(
std::u16string VersionUI::GetAnnotatedVersionStringForUi() {
return l10n_util::GetStringFUTF16(
IDS_SETTINGS_ABOUT_PAGE_BROWSER_VERSION,
@@ -183,3 +183,63 @@
return true;
}
--- a/chrome/app/chrome_crash_reporter_client.cc
+++ b/chrome/app/chrome_crash_reporter_client.cc
@@ -14,6 +14,7 @@
#include "base/path_service.h"
#include "base/strings/string_split.h"
#include "base/strings/utf_string_conversions.h"
+#include "base/version_info/version_info.h"
#include "build/branding_buildflags.h"
#include "build/build_config.h"
#include "chrome/common/channel_info.h"
@@ -130,7 +131,7 @@ bool ChromeCrashReporterClient::GetCrash
void ChromeCrashReporterClient::GetProductInfo(ProductInfo* product_info) {
CHECK(product_info);
product_info->product_name = "Helium";
- product_info->version = UpdaterVersion();
+ product_info->version = version_info::GetHeliumVersionNumber();
product_info->channel =
chrome::GetChannelName(chrome::WithExtendedStable(true));
}
--- a/components/crash/core/app/crashpad_win.cc
+++ b/components/crash/core/app/crashpad_win.cc
@@ -16,6 +16,7 @@
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
+#include "base/version_info/version_info.h"
#include "base/win/windows_version.h"
#include "build/branding_buildflags.h"
#include "build/build_config.h"
@@ -39,7 +40,7 @@ void GetPlatformCrashpadAnnotations(
crash_reporter_client->GetProductNameAndVersion(
exe_file, &product_name, &version, &special_build, &channel_name);
(*annotations)["prod"] = base::WideToUTF8(product_name);
- (*annotations)["ver"] = base::WideToUTF8(version);
+ (*annotations)["ver"] = version_info::GetHeliumVersionNumber();
#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
// Empty means stable.
const bool allow_empty_channel = true;
--- a/components/crash/core/app/crashpad_mac.mm
+++ b/components/crash/core/app/crashpad_mac.mm
@@ -19,6 +19,7 @@
#include "base/files/file_path.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/sys_string_conversions.h"
+#include "base/version_info/version_info.h"
#include "build/branding_buildflags.h"
#include "components/crash/core/app/crash_reporter_client.h"
#include "third_party/crashpad/crashpad/client/crash_report_database.h"
@@ -77,10 +78,7 @@ std::map<std::string, std::string> GetPr
}
}
- NSString* version =
- base::apple::ObjCCast<NSString>([base::apple::FrameworkBundle()
- objectForInfoDictionaryKey:@"CFBundleShortVersionString"]);
- process_annotations["ver"] = base::SysNSStringToUTF8(version);
+ process_annotations["ver"] = version_info::GetHeliumVersionNumber();
process_annotations["plat"] = std::string("OS X");
} // @autoreleasepool
@@ -51,7 +51,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
@@ -1874,9 +1874,9 @@ void WebView::ApplyWebPreferences(const
@@ -1911,9 +1911,9 @@ void WebView::ApplyWebPreferences(const
prefs.default_maximum_page_scale_factor);
#endif
+39 -36
View File
@@ -34,7 +34,7 @@
#endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_DATA_UTIL_H_
--- a/components/search_engines/BUILD.gn
+++ b/components/search_engines/BUILD.gn
@@ -35,6 +35,8 @@ static_library("search_engines") {
@@ -43,6 +43,8 @@ static_library("search_engines") {
"search_terms_data.h",
"template_url.cc",
"template_url.h",
@@ -43,7 +43,7 @@
"template_url_data.cc",
"template_url_data.h",
"template_url_data_util.cc",
@@ -81,6 +83,7 @@ static_library("search_engines") {
@@ -90,6 +92,7 @@ static_library("search_engines") {
"//components/country_codes",
"//components/crash/core/common:crash_key",
"//components/database_utils",
@@ -153,7 +153,7 @@
switch (t_url->policy_origin()) {
case TemplateURLData::PolicyOrigin::kDefaultSearchProvider:
return false;
@@ -1644,11 +1658,37 @@ void TemplateURLService::Load() {
@@ -1644,11 +1658,39 @@ void TemplateURLService::Load() {
if (web_data_service_) {
load_handle_ = web_data_service_->GetKeywords(this);
@@ -165,8 +165,10 @@
+void TemplateURLService::LoadBangs() {
+ VLOG(2) << "LoadBangs() called";
+ bang_manager_->LoadBangs(url_loader_factory_, prefs_.get(),
+ base::BindOnce(&TemplateURLService::BangsLoadedCallback, base::Unretained(this)));
+ bang_manager_->LoadBangs(
+ url_loader_factory_, prefs_.get(),
+ base::BindOnce(&TemplateURLService::BangsLoadedCallback,
+ weak_ptr_factory_.GetWeakPtr()));
+}
+
+void TemplateURLService::BangsLoadedCallback() {
@@ -191,7 +193,7 @@
base::CallbackListSubscription TemplateURLService::RegisterOnLoadedCallback(
base::OnceClosure callback) {
return loaded_ ? base::CallbackListSubscription()
@@ -2636,6 +2676,13 @@ void TemplateURLService::Init() {
@@ -2636,6 +2678,13 @@ void TemplateURLService::Init() {
&TemplateURLService::OnDefaultSearchProviderGUIDChanged,
base::Unretained(this)));
@@ -221,7 +223,7 @@
#if BUILDFLAG(IS_ANDROID)
#include "base/android/scoped_java_ref.h"
#endif
@@ -199,6 +201,7 @@ class TemplateURLService final : public
@@ -184,6 +186,7 @@ class TemplateURLService final : public
TemplateURLService(
PrefService& prefs,
@@ -229,7 +231,7 @@
search_engines::SearchEngineChoiceService& search_engine_choice_service,
TemplateURLPrepopulateData::Resolver& prepopulate_data_resolver,
std::unique_ptr<SearchTermsData> search_terms_data,
@@ -210,6 +213,7 @@ class TemplateURLService final : public
@@ -195,6 +198,7 @@ class TemplateURLService final : public
// some template URL data.
explicit TemplateURLService(
PrefService& prefs,
@@ -237,7 +239,7 @@
search_engines::SearchEngineChoiceService& search_engine_choice_service,
TemplateURLPrepopulateData::Resolver& prepopulate_data_resolver,
base::span<const TemplateURLService::Initializer> initializers = {});
@@ -557,6 +561,8 @@ class TemplateURLService final : public
@@ -542,6 +546,8 @@ class TemplateURLService final : public
// OnTemplateURLServiceChanged.
void Load();
@@ -246,7 +248,7 @@
// Registers a callback to be called when the service has loaded.
//
// If the service has already loaded, this function does nothing.
@@ -795,6 +801,8 @@ class TemplateURLService final : public
@@ -780,6 +786,8 @@ class TemplateURLService final : public
void Init();
@@ -255,7 +257,7 @@
// Simulate a loaded `TemplateURLService`.
void ApplyInitializersForTesting(
base::span<const TemplateURLService::Initializer> initializers);
@@ -997,6 +1005,10 @@ class TemplateURLService final : public
@@ -977,6 +985,10 @@ class TemplateURLService final : public
// Service used to store entries.
scoped_refptr<KeywordWebDataService> web_data_service_;
@@ -377,7 +379,8 @@
+
+ url_loader_->DownloadToString(
+ url_loader_factory.get(),
+ base::BindOnce(&BangManager::OnSimpleLoaderComplete, base::Unretained(this)),
+ base::BindOnce(&BangManager::OnSimpleLoaderComplete,
+ weak_ptr_factory_.GetWeakPtr()),
+ 5e6 /* 5 MB */
+ );
+}
@@ -484,11 +487,10 @@
+ return bangs_;
+}
+
+}
+
+} // namespace Bangs
--- /dev/null
+++ b/components/search_engines/template_url_bang_manager.h
@@ -0,0 +1,75 @@
@@ -0,0 +1,76 @@
+// 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.
@@ -550,15 +552,16 @@
+ void LoadManifestFromString(const std::string& manifest);
+ BangCategory GetCategoryFromJSONObject(std::string_view sc) const;
+
+ // Weak factory for callbacks.
+ base::WeakPtrFactory<BangManager> weak_ptr_factory_{this};
+ // SimpleURLLoader instance.
+ std::unique_ptr<network::SimpleURLLoader> url_loader_;
+
+ std::vector<Bang> bangs_;
+ bool load_pending_;
+ bool load_pending_ = false;
+ std::vector<base::OnceClosure> callbacks_;
+ std::map<size_t, BangCategory> category_map_;
+
+ // Weak factory for callbacks.
+ base::WeakPtrFactory<BangManager> weak_ptr_factory_{this};
+ };
+}
+
@@ -566,7 +569,7 @@
+
--- a/components/omnibox/browser/autocomplete_input.cc
+++ b/components/omnibox/browser/autocomplete_input.cc
@@ -751,9 +751,9 @@ bool AutocompleteInput::HasHTTPSScheme(c
@@ -750,9 +750,9 @@ bool AutocompleteInput::HasHTTPSScheme(c
// static
AutocompleteInput::FeaturedKeywordMode
AutocompleteInput::GetFeaturedKeywordMode(std::u16string_view text) {
@@ -578,7 +581,7 @@
return FeaturedKeywordMode::kPrefix;
return FeaturedKeywordMode::kFalse;
}
@@ -896,6 +896,7 @@ std::u16string AutocompleteInput::SplitK
@@ -895,6 +895,7 @@ std::u16string AutocompleteInput::SplitK
std::u16string_view input,
bool trim_leading_whitespace,
std::u16string* remaining_input) {
@@ -586,7 +589,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));
@@ -904,6 +905,39 @@ std::u16string AutocompleteInput::SplitK
@@ -903,6 +904,39 @@ std::u16string AutocompleteInput::SplitK
return std::u16string(input); // Only one token provided.
}
@@ -679,7 +682,7 @@
--- a/components/search_engines/template_url.cc
+++ b/components/search_engines/template_url.cc
@@ -1752,6 +1752,8 @@ bool TemplateURL::IsBetterThanConflictin
@@ -1754,6 +1754,8 @@ bool TemplateURL::IsBetterThanConflictin
: base::Time(),
// Prefer engines that CANNOT be auto-replaced.
!engine->safe_for_autoreplace(),
@@ -690,7 +693,7 @@
// Favor prepopulated engines over other auto-generated engines.
--- a/components/search_engines/template_url.h
+++ b/components/search_engines/template_url.h
@@ -877,6 +877,8 @@ class TemplateURL {
@@ -881,6 +881,8 @@ class TemplateURL {
policy_origin() == TemplateURLData::PolicyOrigin::kSearchAggregator;
}
@@ -725,7 +728,7 @@
COMPONENT_EXPORT(HELIUM) GURL GetDummyURL();
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -2355,6 +2355,9 @@ void AddPrivacyStrings(content::WebUIDat
@@ -2387,6 +2387,9 @@ void AddPrivacyStrings(content::WebUIDat
IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE},
{"heliumExtProxyToggleDescription",
IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE_DESCRIPTION},
@@ -737,7 +740,7 @@
IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION},
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1730,6 +1730,12 @@
@@ -1745,6 +1745,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>
@@ -766,7 +769,7 @@
</template>
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -227,6 +227,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -226,6 +226,7 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterIntegerPref(prefs::kHeliumSchemaVersion, 0);
registry->RegisterBooleanPref(prefs::kHeliumDisableSchemaAlerts, false);
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
@@ -776,7 +779,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
@@ -417,6 +417,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -423,6 +423,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kHeliumExtProxyEnabled] =
settings_api::PrefType::kBoolean;
@@ -799,7 +802,7 @@
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
--- a/third_party/metrics_proto/omnibox_event.proto
+++ b/third_party/metrics_proto/omnibox_event.proto
@@ -807,6 +807,8 @@ message OmniboxEventProto {
@@ -813,6 +813,8 @@ message OmniboxEventProto {
// or tabbing to it.
TOOLBELT = 9; // Select and activate a search shortcuts action
// from the omnibox toolbelt.
@@ -810,7 +813,7 @@
KeywordModeEntryMethod keyword_mode_entry_method = 20;
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.h
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.h
@@ -324,6 +324,9 @@ class OmniboxEditModel {
@@ -331,6 +331,9 @@ class OmniboxEditModel {
return keyword_state == KeywordState::kKeyword;
}
@@ -820,7 +823,7 @@
// Accepts the current keyword hint as a keyword. `entry_method` indicates how
// the user entered keyword mode.
void AcceptKeyword(
@@ -699,6 +702,10 @@ class OmniboxEditModel {
@@ -706,6 +709,10 @@ class OmniboxEditModel {
// triggering is enabled, false otherwise.
bool AllowKeywordSpaceTriggering() const;
@@ -833,7 +836,7 @@
// - youtube| -> youtube | (a space was appended to a keyword)
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
@@ -932,6 +932,24 @@ void OmniboxEditModel::OpenCurrentSelect
@@ -926,6 +926,24 @@ void OmniboxEditModel::OpenCurrentSelect
OpenSelection(popup_selection_, timestamp, disposition, via_keyboard);
}
@@ -858,7 +861,7 @@
void OmniboxEditModel::AcceptKeyword(
OmniboxEventProto::KeywordModeEntryMethod entry_method) {
TRACE_EVENT0("omnibox", "OmniboxEditModel::AcceptKeyword");
@@ -940,6 +958,17 @@ void OmniboxEditModel::AcceptKeyword(
@@ -934,6 +952,17 @@ void OmniboxEditModel::AcceptKeyword(
controller_->StopAutocomplete(/*clear_result=*/false);
@@ -876,7 +879,7 @@
SetKeywordInfo(KeywordState::kKeyword, keyword_, keyword_placeholder_,
entry_method);
if (original_user_text_with_keyword_.empty()) {
@@ -982,9 +1011,6 @@ void OmniboxEditModel::AcceptKeyword(
@@ -976,9 +1005,6 @@ void OmniboxEditModel::AcceptKeyword(
}
base::RecordAction(base::UserMetricsAction("AcceptedKeywordHint"));
@@ -886,7 +889,7 @@
EmitEnteredKeywordModeHistogram(entry_method, turl, !user_text_.empty());
}
@@ -3011,6 +3037,21 @@ bool OmniboxEditModel::AllowKeywordSpace
@@ -2952,6 +2978,21 @@ bool OmniboxEditModel::AllowKeywordSpace
return GetPrefService()->GetBoolean(omnibox::kKeywordSpaceTriggeringEnabled);
}
@@ -908,7 +911,7 @@
bool OmniboxEditModel::ShouldAcceptKeywordAfterInsertingSpaceAtEnd(
const std::u16string& new_text) {
// Check if the user has disabled space triggering.
@@ -3034,16 +3075,20 @@ bool OmniboxEditModel::ShouldAcceptKeywo
@@ -2975,16 +3016,20 @@ bool OmniboxEditModel::ShouldAcceptKeywo
return false;
}
@@ -938,7 +941,7 @@
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
@@ -2100,6 +2100,7 @@ bool OmniboxViewViews::HandleKeyEvent(vi
@@ -2151,6 +2151,7 @@ bool OmniboxViewViews::HandleKeyEvent(vi
command);
if (controller()->IsPopupOpen() && !control) {
// Normal case of pressing <return> when the popup is open.
@@ -103,11 +103,11 @@
source_set("child_process_host_flags") {
public = [ "child_process_host_flags.h" ]
deps = [ "//content/public/browser" ]
@@ -667,6 +673,7 @@ source_set("core") {
@@ -887,6 +893,7 @@ source_set("core") {
":browser_process_platform_part",
":browser_public_dependencies",
":chained_back_navigation_tracker",
+ ":channel_selection",
":child_process_host_flags",
":chrome_browser_field_trials",
":chrome_browser_main",
":chrome_browser_interface_binders_webui_parts",
@@ -118,7 +118,7 @@
</template>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -2361,6 +2361,9 @@ void AddPrivacyStrings(content::WebUIDat
@@ -2393,6 +2393,9 @@ void AddPrivacyStrings(content::WebUIDat
{"heliumSpellcheckToggle", IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE},
{"heliumSpellcheckToggleDescription",
IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE_DESCRIPTION},
@@ -130,7 +130,7 @@
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
@@ -421,6 +421,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -427,6 +427,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kHeliumSpellcheckEnabled] =
settings_api::PrefType::kBoolean;
@@ -141,7 +141,7 @@
(*s_allowlist)[::prefs::kHeliumServicesConsented] =
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -233,6 +233,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -232,6 +232,7 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterStringPref(prefs::kHeliumServicesOrigin, "");
registry->RegisterBooleanPref(prefs::kHeliumDidOnboarding, false);
registry->RegisterBooleanPref(prefs::kHeliumServicesConsented, false);
@@ -151,7 +151,7 @@
registry->RegisterBooleanPref(
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1745,6 +1745,22 @@
@@ -1760,6 +1760,22 @@
<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>
@@ -1,15 +1,16 @@
--- a/chrome/browser/ui/views/frame/system_menu_model_builder.cc
+++ b/chrome/browser/ui/views/frame/system_menu_model_builder.cc
@@ -158,6 +158,12 @@ void SystemMenuModelBuilder::BuildSystem
@@ -164,6 +164,13 @@ void SystemMenuModelBuilder::BuildSystem
AddItemWithIconMaybe(model, IDC_NAME_WINDOW, IDS_NAME_WINDOW,
kNameWindowOldIcon);
#endif // BUILDFLAG(IS_MAC)
+
+ if (!browser()->profile()->IsOffTheRecord()) {
+ model->AddSeparator(ui::NORMAL_SEPARATOR);
+ model->AddItemWithStringId(IDC_SHOW_CUSTOMIZE_CHROME_SIDE_PANEL,
+ IDS_SHOW_CUSTOMIZE_CHROME_SIDE_PANEL);
+ }
+
if (base::FeatureList::IsEnabled(tabs::kHorizontalTabStripComboButton)) {
model->AddSeparator(ui::NORMAL_SEPARATOR);
model->AddItemWithStringId(IDC_TAB_SEARCH_TOGGLE_PIN,
model->AddSeparator(ui::NORMAL_SEPARATOR);
model->AddItemWithStringId(IDC_TAB_SEARCH_TOGGLE_PIN,
IDS_TAB_STRIP_PIN_TAB_SEARCH);
@@ -20,3 +20,32 @@
MAC_CREATOR_CODE=Cr24
-MAC_TEAM_ID=
+MAC_TEAM_ID=S4Q33XPHB4
--- a/chrome/app/chrome_crash_reporter_client.cc
+++ b/chrome/app/chrome_crash_reporter_client.cc
@@ -129,25 +129,7 @@ bool ChromeCrashReporterClient::GetCrash
void ChromeCrashReporterClient::GetProductInfo(ProductInfo* product_info) {
CHECK(product_info);
-
-#if BUILDFLAG(IS_ANDROID)
- product_info->product_name = "Chrome_Android";
-#elif BUILDFLAG(IS_CHROMEOS)
- product_info->product_name = "Chrome_ChromeOS";
-#elif BUILDFLAG(IS_LINUX)
-#if defined(ADDRESS_SANITIZER)
- product_info->product_name = "Chrome_Linux_ASan";
-#else
- product_info->product_name = "Chrome_Linux";
-#endif // defined(ADDRESS_SANITIZER)
-#elif BUILDFLAG(IS_MAC)
- product_info->product_name = "Chrome_Mac";
-#elif BUILDFLAG(IS_WIN)
- product_info->product_name = "Chrome";
-#else
- NOTREACHED();
-#endif
-
+ product_info->product_name = "Helium";
product_info->version = UpdaterVersion();
product_info->channel =
chrome::GetChannelName(chrome::WithExtendedStable(true));
+10 -10
View File
@@ -1,6 +1,6 @@
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -11957,6 +11957,9 @@ Check your passwords anytime in <ph name
@@ -12011,6 +12011,9 @@ Check your passwords anytime in <ph name
<message name="IDS_TAB_CXMENU_CLOSETABSBELOW" desc="The label of the 'Close Tabs Below' Tab context menu item.">
Close tabs below
</message>
@@ -10,7 +10,7 @@
<message name="IDS_TAB_CXMENU_CLOSEALLTABS" desc="The label of the 'Close All Tabs' Tab context menu item.">
Close all tabs
</message>
@@ -12079,6 +12082,9 @@ Check your passwords anytime in <ph name
@@ -12133,6 +12136,9 @@ Check your passwords anytime in <ph name
<message name="IDS_TAB_CXMENU_CLOSETABSBELOW" desc="In Title Case: The label of the 'Close Tabs Below' Tab context menu item.">
Close Tabs Below
</message>
@@ -22,7 +22,7 @@
</message>
--- a/chrome/browser/ui/tabs/tab_menu_model.cc
+++ b/chrome/browser/ui/tabs/tab_menu_model.cc
@@ -568,6 +568,19 @@ void TabMenuModel::Build(int index) {
@@ -560,6 +560,19 @@ void TabMenuModel::Build(int index) {
IDS_TAB_CXMENU_CLOSEOTHERTABS);
if (showing_vertical_tabs) {
@@ -44,7 +44,7 @@
} else {
--- a/chrome/browser/ui/tabs/tab_strip_model.cc
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc
@@ -2514,6 +2514,7 @@ bool TabStripModel::IsContextMenuCommand
@@ -2499,6 +2499,7 @@ bool TabStripModel::IsContextMenuCommand
}
case CommandCloseOtherTabs:
@@ -52,7 +52,7 @@
case CommandCloseTabsToRight: {
return !GetIndicesClosedByCommand(context_index, command_id).empty();
}
@@ -2731,6 +2732,7 @@ void TabStripModel::ExecuteContextMenuCo
@@ -2710,6 +2711,7 @@ void TabStripModel::ExecuteContextMenuCo
break;
}
@@ -60,7 +60,7 @@
case CommandCloseTabsToRight: {
base::UmaHistogramCounts1000(
"Tab.ContextMenu.CloseTabsToRight.SelectedTabsCount",
@@ -3596,15 +3598,22 @@ std::vector<int> TabStripModel::GetIndic
@@ -3543,15 +3545,22 @@ std::vector<int> TabStripModel::GetIndic
if (!ContainsIndex(index)) {
return indices;
}
@@ -84,7 +84,7 @@
}
// If the tab that the context menu command is invoked on is not selected and
@@ -3619,6 +3628,10 @@ std::vector<int> TabStripModel::GetIndic
@@ -3566,6 +3575,10 @@ std::vector<int> TabStripModel::GetIndic
// NOTE: callers expect the vector to be sorted in descending order.
for (int i = count() - 1; i > last_unclosed_tab; --i) {
@@ -95,7 +95,7 @@
if (!indices_to_exclude.Contains(gfx::Range(i, i + 1)) && !IsTabPinned(i) &&
(!is_selected || !IsTabSelected(i))) {
indices.push_back(i);
@@ -3634,7 +3647,8 @@ std::vector<tabs::TabInterface*> TabStri
@@ -3581,7 +3594,8 @@ std::vector<tabs::TabInterface*> TabStri
return {};
}
@@ -105,7 +105,7 @@
tabs::TabInterface* invoked_tab = GetTabAtIndex(index);
@@ -3650,6 +3664,10 @@ std::vector<tabs::TabInterface*> TabStri
@@ -3597,6 +3611,10 @@ std::vector<tabs::TabInterface*> TabStri
tabs::TabInterface* tab = *it;
if (tab == invoked_tab || tab->IsPinned()) {
@@ -118,7 +118,7 @@
--- a/chrome/browser/ui/tabs/tab_strip_model.h
+++ b/chrome/browser/ui/tabs/tab_strip_model.h
@@ -758,6 +758,7 @@ class TabStripModel {
@@ -750,6 +750,7 @@ class TabStripModel {
CommandCloseTab,
CommandCloseOtherTabs,
CommandCloseTabsToRight,
+8 -9
View File
@@ -137,19 +137,18 @@
#include "base/files/file_enumerator.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
@@ -111,7 +112,22 @@ void ComponentInstaller::Register(Compon
@@ -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
+ "oimompecagnajdejgnnjijobebaeigek", // WidevineCdm
+ }
+ );
+ base::MakeFixedFlatSet<std::string_view>(
+ base::sorted_unique,
+ {
+ "hfnkpimlhhgieaddgfemjhofmfblmnib", // CRLSet
+ "oimompecagnajdejgnnjijobebaeigek", // WidevineCdm
+ });
+
const auto crx_id = update_client::GetCrxIdFromPublicKeyHash(public_key_hash);
+
@@ -162,7 +161,7 @@
std::move(callback), cus->GetRegisteredVersion(crx_id),
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -6904,6 +6904,9 @@ Keep your key file in a safe place. You
@@ -6905,6 +6905,9 @@ Keep your key file in a safe place. You
<message name="IDS_COMPONENTS_SVC_STATUS_UPDATE_ERROR" desc="Service Status">
Update error
</message>
@@ -1,6 +1,6 @@
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -12032,6 +12032,12 @@ Check your passwords anytime in <ph name
@@ -12086,6 +12086,12 @@ Check your passwords anytime in <ph name
<message name="IDS_TAB_CXMENU_HIBERNATE_OTHER_TABS" desc="The label of the 'Hibernate other tabs' Tab context menu item.">
Hibernate other tabs
</message>
@@ -13,7 +13,7 @@
<message name="IDS_TAB_CXMENU_CLOSETAB" desc="The label of the tab context menu item for closing one or more tabs.">
Close
</message>
@@ -12157,6 +12163,12 @@ Check your passwords anytime in <ph name
@@ -12211,6 +12217,12 @@ Check your passwords anytime in <ph name
<message name="IDS_TAB_CXMENU_HIBERNATE_OTHER_TABS" desc="In Title Case: The label of the 'Hibernate Other Tabs' Tab context menu item.">
Hibernate Other Tabs
</message>
@@ -28,7 +28,7 @@
</message>
--- a/chrome/browser/ui/tabs/tab_menu_model.cc
+++ b/chrome/browser/ui/tabs/tab_menu_model.cc
@@ -101,7 +101,7 @@ TabMenuModel::TabMenuModel(ui::SimpleMen
@@ -100,7 +100,7 @@ TabMenuModel::TabMenuModel(ui::SimpleMen
TabMenuModel::~TabMenuModel() = default;
void TabMenuModel::BuildForWebApp(int index) {
@@ -51,7 +51,7 @@
AddItemWithStringId(TabStripModel::CommandDuplicate,
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -258,6 +258,13 @@ namespace {
@@ -260,6 +260,13 @@ namespace {
const char kOsOverrideForTabletSite[] = "Linux; Android 9; Chrome tablet";
const char kChPlatformOverrideForTabletSite[] = "Android";
@@ -65,7 +65,7 @@
// Creates a new tabbed browser window, with the same size, type and profile as
// |original_browser|'s window, inserts |contents| into it, and shows it.
void CreateAndShowNewWindowWithContents(
@@ -2619,11 +2626,7 @@ bool IsDebuggerAttachedToCurrentTab(Brow
@@ -2675,11 +2682,7 @@ bool IsDebuggerAttachedToCurrentTab(Brow
void CopyURL(BrowserWindowInterface* browser,
content::WebContents* web_contents) {
ui::ScopedClipboardWriter scw(ui::ClipboardBuffer::kCopyPaste);
@@ -78,7 +78,7 @@
scw.WriteText(formatted_url);
#if !BUILDFLAG(IS_ANDROID)
@@ -2637,6 +2640,28 @@ void CopyURL(BrowserWindowInterface* bro
@@ -2693,6 +2696,28 @@ void CopyURL(BrowserWindowInterface* bro
#endif
}
@@ -109,7 +109,7 @@
!sharing_hub::SharingIsDisabledByPolicy(browser->GetProfile());
--- a/chrome/browser/ui/tabs/tab_strip_model.cc
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc
@@ -2589,8 +2589,7 @@ bool TabStripModel::IsContextMenuCommand
@@ -2568,8 +2568,7 @@ bool TabStripModel::IsContextMenuCommand
return true;
case CommandCopyURL:
@@ -119,7 +119,7 @@
case CommandGoBack:
DCHECK(delegate()->IsForWebApp());
@@ -3011,10 +3010,14 @@ void TabStripModel::ExecuteContextMenuCo
@@ -2958,10 +2957,14 @@ void TabStripModel::ExecuteContextMenuCo
}
case CommandCopyURL: {
@@ -138,7 +138,7 @@
--- a/chrome/browser/ui/browser_commands.h
+++ b/chrome/browser/ui/browser_commands.h
@@ -326,6 +326,7 @@ void ClearCache(BrowserWindowInterface*
@@ -330,6 +330,7 @@ void ClearCache(BrowserWindowInterface*
bool IsDebuggerAttachedToCurrentTab(BrowserWindowInterface* browser);
void CopyURL(BrowserWindowInterface* browser,
content::WebContents* web_contents);
@@ -148,7 +148,7 @@
bool IsWebAppOrCustomTab(const BrowserWindowInterface* browser);
--- a/chrome/browser/ui/browser_tab_strip_model_delegate.cc
+++ b/chrome/browser/ui/browser_tab_strip_model_delegate.cc
@@ -370,6 +370,11 @@ void BrowserTabStripModelDelegate::CopyU
@@ -337,6 +337,11 @@ void BrowserTabStripModelDelegate::CopyU
chrome::CopyURL(browser_, web_contents);
}
@@ -0,0 +1,215 @@
--- a/chrome/app/chrome_crash_reporter_client.cc
+++ b/chrome/app/chrome_crash_reporter_client.cc
@@ -119,7 +119,7 @@ base::FilePath ChromeCrashReporterClient
}
bool ChromeCrashReporterClient::GetShouldDumpLargerDumps() {
- return chrome::GetChannel() != version_info::Channel::STABLE;
+ return false;
}
#endif // BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_MAC)
--- a/chrome/app/chrome_crash_reporter_client_win.cc
+++ b/chrome/app/chrome_crash_reporter_client_win.cc
@@ -99,7 +99,7 @@ void ChromeCrashReporterClient::GetProdu
bool ChromeCrashReporterClient::GetShouldDumpLargerDumps() {
// Capture larger dumps for Google Chrome beta, dev, and canary channels, and
// Chromium builds. The Google Chrome stable channel uses smaller dumps.
- return install_static::GetChromeChannel() != version_info::Channel::STABLE;
+ return false;
}
bool ChromeCrashReporterClient::ReportingIsEnforcedByPolicy(
--- a/components/crash/core/app/crashpad.cc
+++ b/components/crash/core/app/crashpad.cc
@@ -183,8 +183,7 @@ bool InitializeCrashpadImpl(bool initial
// On Android crashpad doesn't handle uploads. Android uses
// //components/minidump_uploader which queries metrics sample/consent opt
// in from preferences.
- CrashReporterClient* crash_reporter_client = GetCrashReporterClient();
- SetUploadConsent(crash_reporter_client->GetCollectStatsConsent());
+ SetUploadConsent(false);
#endif
}
return true;
@@ -192,6 +191,12 @@ bool InitializeCrashpadImpl(bool initial
} // namespace
+bool DisableCrashpadUploadsAtStartup(const base::FilePath& database_path) {
+ std::unique_ptr<crashpad::CrashReportDatabase> database =
+ crashpad::CrashReportDatabase::Initialize(database_path);
+ return database && database->GetSettings()->SetUploadsEnabled(false);
+}
+
bool InitializeCrashpad(bool initial_client, const std::string& process_type) {
return InitializeCrashpadImpl(initial_client, process_type, std::string(),
base::FilePath(), std::vector<std::string>(),
--- a/chrome/common/crash_keys.cc
+++ b/chrome/common/crash_keys.cc
@@ -7,9 +7,11 @@
#include <array>
#include <deque>
#include <string_view>
+#include <vector>
#include "base/base_switches.h"
#include "base/command_line.h"
+#include "base/files/file_path.h"
#include "base/format_macros.h"
#include "base/no_destructor.h"
#include "base/strings/strcat.h"
@@ -105,6 +107,28 @@ void HandleEnableDisableFeatures(const b
"commandline-disabled-feature");
}
+std::string SanitizeFeatureList(std::string_view feature_list) {
+ std::vector<std::string> sanitized_features;
+ for (std::string feature :
+ base::SplitString(feature_list, ",", base::TRIM_WHITESPACE,
+ base::SPLIT_WANT_NONEMPTY)) {
+ const size_t separator = feature.find_first_of("<:");
+ if (separator != std::string::npos) {
+ feature.resize(separator);
+ }
+ bool valid = !feature.empty();
+ for (size_t i = 0; valid && i < feature.size(); ++i) {
+ const char c = feature[i];
+ valid = base::IsAsciiAlphaNumeric(c) || c == '_' || c == '-' ||
+ c == '.' || (i == 0 && c == '*');
+ }
+ if (valid) {
+ sanitized_features.push_back(feature);
+ }
+ }
+ return base::JoinString(sanitized_features, ",");
+}
+
// Return true if we DON'T want to upload this flag to the crash server.
bool IsBoringSwitch(const std::string& flag) {
static const auto kIgnoreSwitches = std::to_array<std::string_view>({
@@ -211,9 +235,24 @@ void AppendStringAnnotationsCommandLineS
}
void SetCrashKeysFromCommandLine(const base::CommandLine& command_line) {
- SetStringAnnotations(command_line);
- HandleEnableDisableFeatures(command_line);
- SetSwitchesFromCommandLine(command_line, &IsBoringSwitch);
+ // Keep useful switch and feature names without copying arbitrary values into
+ // crash reports.
+ base::CommandLine sanitized(command_line.GetProgram());
+ for (const auto& entry : command_line.GetSwitches()) {
+ const std::string& name = entry.first;
+ if (name == kStringAnnotationsSwitch) {
+ continue;
+ }
+ if (name == switches::kEnableFeatures ||
+ name == switches::kDisableFeatures) {
+ sanitized.AppendSwitchASCII(
+ name, SanitizeFeatureList(command_line.GetSwitchValueASCII(name)));
+ } else {
+ sanitized.AppendSwitch(name);
+ }
+ }
+ HandleEnableDisableFeatures(sanitized);
+ SetSwitchesFromCommandLine(sanitized, &IsBoringSwitch);
}
} // namespace crash_keys
--- a/third_party/crashpad/crashpad/handler/crash_report_upload_thread.cc
+++ b/third_party/crashpad/crashpad/handler/crash_report_upload_thread.cc
@@ -201,8 +201,6 @@ void CrashReportUploadThread::ProcessPen
// Don’t attempt an upload if there’s no URL to upload to. Allow upload if
// it has been explicitly requested by the user, otherwise, respect the
// upload-enabled state stored in the database’s settings.
- database_->SkipReportUpload(report.uuid,
- Metrics::CrashSkippedReason::kUploadsDisabled);
return;
}
@@ -312,7 +310,9 @@ CrashReportUploadThread::UploadResult Cr
if (kv.first == kMinidumpKey) {
LOG(WARNING) << "reserved key " << kv.first << ", discarding value "
<< kv.second;
- } else {
+ } else if (kv.first == "prod" || kv.first == "ver" ||
+ kv.first == "plat" || kv.first == "ptype" ||
+ kv.first == "channel") {
http_multipart_builder.SetFormData(kv.first, kv.second);
}
}
@@ -350,7 +350,6 @@ CrashReportUploadThread::UploadResult Cr
} kURLParameterMappings[] = {
{"prod", "product"},
{"ver", "version"},
- {"guid", "guid"},
};
for (const auto& parameter_mapping : kURLParameterMappings) {
--- a/third_party/crashpad/crashpad/client/settings.cc
+++ b/third_party/crashpad/crashpad/client/settings.cc
@@ -154,12 +154,7 @@ SettingsReader::~SettingsReader() = defa
bool SettingsReader::GetClientID(UUID* client_id) {
DCHECK(initialized().is_valid());
-
- Data settings;
- if (!OpenAndReadSettings(&settings))
- return false;
-
- *client_id = settings.client_id;
+ client_id->InitializeToZero();
return true;
}
--- a/components/crash/core/app/crashpad.h
+++ b/components/crash/core/app/crashpad.h
@@ -78,6 +78,9 @@ namespace crash_reporter {
// On iOS, this will return false if Crashpad initialization fails.
bool InitializeCrashpad(bool initial_client, const std::string& process_type);
+// Disables uploads in the Crashpad database before its handler starts.
+bool DisableCrashpadUploadsAtStartup(const base::FilePath& database_path);
+
#if BUILDFLAG(IS_WIN)
// This is the same as InitializeCrashpad(), but rather than launching a
// crashpad_handler executable, relaunches the executable at |exe_path| or the
--- a/components/crash/core/app/crashpad_linux.cc
+++ b/components/crash/core/app/crashpad_linux.cc
@@ -165,6 +165,10 @@ bool PlatformCrashpadInitialization(
crash_reporter_client->GetCrashDumpLocation(database_path);
crash_reporter_client->GetCrashMetricsLocation(&metrics_path);
+ if (!DisableCrashpadUploadsAtStartup(*database_path)) {
+ return false;
+ }
+
base::FilePath handler_path;
if (!base::PathService::Get(base::DIR_EXE, &handler_path)) {
return false;
--- a/components/crash/core/app/crashpad_mac.mm
+++ b/components/crash/core/app/crashpad_mac.mm
@@ -153,6 +153,10 @@ bool PlatformCrashpadInitialization(
crash_reporter_client->GetCrashDumpLocation(database_path);
crash_reporter_client->GetCrashMetricsLocation(&metrics_path);
+ if (!DisableCrashpadUploadsAtStartup(*database_path)) {
+ return false;
+ }
+
std::string url = crash_reporter_client->GetUploadUrl();
std::vector<std::string> arguments;
--- a/components/crash/core/app/crashpad_win.cc
+++ b/components/crash/core/app/crashpad_win.cc
@@ -87,6 +87,10 @@ bool PlatformCrashpadInitialization(
if (crash_reporter_client->GetCrashDumpLocation(&database_path_str))
*database_path = base::FilePath(database_path_str);
+ if (!DisableCrashpadUploadsAtStartup(*database_path)) {
+ return false;
+ }
+
std::wstring metrics_path_str;
if (crash_reporter_client->GetCrashMetricsLocation(&metrics_path_str)) {
metrics_path = base::FilePath(metrics_path_str);
@@ -0,0 +1,600 @@
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -668,6 +668,12 @@ inline constexpr char kSplitViewDragAndD
// recently used tabs.
inline constexpr char kCtrlTabMru[] = "browser.ctrl_tab_mru";
+// Controls whether desktop crash reports are disabled, offered to the user, or
+// uploaded automatically. This preference is registered in Local State and is
+// shared by all profiles.
+inline constexpr char kHeliumCrashReportingMode[] =
+ "helium.crash_reporting.mode";
+
// A boolean pref set to true if Gemini integration be enabled. This is managed
// by enterprise policy.
inline constexpr char kGeminiSettings[] = "browser.gemini_settings";
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -27,6 +27,7 @@
#include "chrome/browser/chrome_content_browser_client.h"
#include "chrome/browser/component_updater/component_updater_prefs.h"
#include "chrome/browser/contextual_cueing/prefs.h"
+#include "chrome/browser/crash_upload_list/helium_crash_reporting.h"
#include "chrome/browser/download/download_prefs.h"
#include "chrome/browser/engagement/important_sites_util.h"
#include "chrome/browser/enterprise/reporting/prefs.h"
@@ -1396,6 +1397,9 @@ void RegisterLocalState(PrefRegistrySimp
breadcrumbs::RegisterPrefs(registry);
browser_shutdown::RegisterPrefs(registry);
BrowserProcessImpl::RegisterPrefs(registry);
+ registry->RegisterIntegerPref(
+ prefs::kHeliumCrashReportingMode,
+ static_cast<int>(helium::CrashReportingMode::kAsk));
ChromeContentBrowserClient::RegisterLocalStatePrefs(registry);
#if BUILDFLAG(CHROME_FOR_TESTING)
chrome_for_testing::RegisterPrefs(registry);
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -36,6 +36,7 @@
#include "chrome/browser/browser_process_impl.h"
#include "chrome/browser/chrome_browser_main_extra_parts.h"
#include "chrome/browser/component_updater/registration.h"
+#include "chrome/browser/crash_upload_list/helium_crash_reporting.h"
#include "chrome/browser/enterprise/browser_management/management_service_factory.h"
#include "chrome/browser/enterprise/chrome_browser_main_extra_parts_enterprise.h"
#include "chrome/browser/first_run/bookmark_importer.h"
@@ -1245,6 +1246,8 @@ int ChromeBrowserMainParts::PreCreateThr
browser_process_->Init();
}
+ helium::InitializeCrashReportingMode();
+
#if !BUILDFLAG(IS_CHROMEOS)
std::optional<std::string> managed_by =
policy::GetManagedBy(browser_process_->browser_policy_connector()
--- a/components/crash/core/app/crash_reporter_client.cc
+++ b/components/crash/core/app/crash_reporter_client.cc
@@ -4,6 +4,7 @@
#include "components/crash/core/app/crash_reporter_client.h"
+#include "base/command_line.h"
#include "build/branding_buildflags.h"
#include "build/build_config.h"
@@ -27,6 +28,10 @@ CrashReporterClient* g_client = nullptr;
const char kDefaultUploadURL[] = "https://clients2.google.com/cr/report";
#endif
+#if !BUILDFLAG(IS_WIN)
+constexpr char kCrashServerUrlCommandLine[] = "custom-crash-server-url";
+#endif
+
} // namespace
ProductInfo::ProductInfo() = default;
@@ -146,8 +151,15 @@ void CrashReporterClient::GetSanitizatio
#endif
std::string CrashReporterClient::GetUploadUrl() {
-#if BUILDFLAG(GOOGLE_CHROME_BRANDING) && defined(OFFICIAL_BUILD)
- return kDefaultUploadURL;
+#if !BUILDFLAG(IS_WIN)
+ const auto* command_line = base::CommandLine::ForCurrentProcess();
+ if (command_line->HasSwitch(kCrashServerUrlCommandLine)) {
+ return command_line->GetSwitchValueASCII(kCrashServerUrlCommandLine);
+ }
+#endif
+
+#if defined(OFFICIAL_BUILD)
+ return "https://crash.helium.computer/crash";
#else
return std::string();
#endif
--- a/components/crash/core/app/crashpad.cc
+++ b/components/crash/core/app/crashpad.cc
@@ -247,26 +247,37 @@ void DestroyCrashpadClient() {
}
#if !BUILDFLAG(IS_CHROMEOS)
-void SetUploadConsent(bool consent) {
+namespace {
+
+void ApplyUploadConsent(bool consent) {
if (!g_database)
return;
- bool enable_uploads = false;
+ bool policy_enabled = true;
CrashReporterClient* crash_reporter_client = GetCrashReporterClient();
- if (!crash_reporter_client->ReportingIsEnforcedByPolicy(&enable_uploads)) {
- // Breakpad provided a --disable-breakpad switch to disable crash dumping
- // (not just uploading) here. Crashpad doesn't need it: dumping is enabled
- // unconditionally and uploading is gated on consent, which tests/bots
- // shouldn't have. As a precaution, uploading is also disabled on bots even
- // if consent is present.
- enable_uploads = consent && !crash_reporter_client->IsRunningUnattended();
- }
+ const bool reporting_disabled_by_policy =
+ crash_reporter_client->ReportingIsEnforcedByPolicy(&policy_enabled) &&
+ !policy_enabled;
crashpad::Settings* settings = g_database->GetSettings();
- settings->SetUploadsEnabled(enable_uploads &&
- crash_reporter_client->GetCollectStatsInSample());
+ settings->SetUploadsEnabled(consent && !reporting_disabled_by_policy &&
+ !crash_reporter_client->IsRunningUnattended());
+}
+
+} // namespace
+
+void SetUploadConsent(bool) {
+ // Helium manages crash upload consent through SetUploadConsentFromUser(),
+ // this function is stubbed out and the callers are ignored.
}
+void SetUploadConsentFromUser(bool consent) {
+#if BUILDFLAG(IS_WIN)
+ SetUploadConsentFromUser_ExportThunk(consent);
+#else
+ internal::SetUploadConsentFromUserImpl(consent);
+#endif
+}
#endif // !BUILDFLAG(IS_CHROMEOS)
#if !BUILDFLAG(IS_ANDROID)
@@ -358,6 +369,14 @@ void RequestSingleCrashUpload(const std:
#endif
}
+bool DeleteCrashReport(const std::string& local_id) {
+#if BUILDFLAG(IS_WIN)
+ return DeleteCrashReport_ExportThunk(local_id.c_str());
+#else
+ return DeleteCrashReportImpl(local_id);
+#endif
+}
+
std::optional<base::FilePath> GetCrashpadDatabasePath() {
#if BUILDFLAG(IS_WIN)
base::FilePath::StringType::const_pointer path =
@@ -448,6 +467,24 @@ void RequestSingleCrashUploadImpl(const
g_database->RequestUpload(uuid);
}
+bool DeleteCrashReportImpl(const std::string& local_id) {
+ if (!g_database)
+ return false;
+
+ crashpad::UUID uuid;
+ if (!uuid.InitializeFromString(local_id))
+ return false;
+
+ // Explicit upload requests bypass the global upload toggle. Move the report
+ // out of the pending state first so a deletion failure cannot authorize a
+ // later upload.
+ g_database->SkipReportUpload(
+ uuid, crashpad::Metrics::CrashSkippedReason::kUploadsDisabled);
+ const auto status = g_database->DeleteReport(uuid);
+ return status == crashpad::CrashReportDatabase::kNoError ||
+ status == crashpad::CrashReportDatabase::kReportNotFound;
+}
+
base::FilePath::StringType::const_pointer GetCrashpadDatabasePathImpl() {
if (!g_database_path)
return nullptr;
@@ -472,6 +509,10 @@ void ClearReportsBetweenImpl(time_t begi
namespace internal {
+void SetUploadConsentFromUserImpl(bool consent) {
+ ApplyUploadConsent(consent);
+}
+
crashpad::CrashReportDatabase* GetCrashReportDatabase() {
return g_database;
}
--- a/components/crash/core/app/crashpad.h
+++ b/components/crash/core/app/crashpad.h
@@ -139,6 +139,10 @@ void DestroyCrashpadClient();
// running.
void SetUploadConsent(bool consent);
+// Enables or disables uploads in response to Helium's explicit user consent.
+// Unlike SetUploadConsent(), this must only be called from Helium-owned UI.
+void SetUploadConsentFromUser(bool consent);
+
#endif // !BUILDFLAG(IS_CHROMEOS)
enum class ReportUploadState {
@@ -166,6 +170,11 @@ void GetReports(std::vector<Report>* rep
// Requests a user triggered upload for a crash report with a given id.
void RequestSingleCrashUpload(const std::string& local_id);
+// Permanently deletes the crash report with the given id. Any explicit upload
+// request is cleared before deletion so a deletion failure cannot leave the
+// report uploadable.
+bool DeleteCrashReport(const std::string& local_id);
+
void DumpWithoutCrashing();
#if BUILDFLAG(IS_IOS)
@@ -224,6 +233,9 @@ void GetReportsImpl(std::vector<Report>*
// The implementation function for RequestSingleCrashUpload.
void RequestSingleCrashUploadImpl(const std::string& local_id);
+// The implementation function for DeleteCrashReport.
+bool DeleteCrashReportImpl(const std::string& local_id);
+
// The implementation function for GetCrashpadDatabasePath.
base::FilePath::StringType::const_pointer GetCrashpadDatabasePathImpl();
@@ -291,6 +303,10 @@ bool GetHandlerSocket(int* sock, pid_t*
namespace internal {
+// Applies explicit Helium user consent in the module that owns the Crashpad
+// database. On Windows this is invoked through chrome_elf.dll.
+void SetUploadConsentFromUserImpl(bool consent);
+
#if BUILDFLAG(IS_WIN)
// Returns platform specific annotations. This is broken out on Windows only so
// that it may be reused by GetCrashKeysForKasko.
--- a/chrome/browser/crash_upload_list/BUILD.gn
+++ b/chrome/browser/crash_upload_list/BUILD.gn
@@ -12,6 +12,8 @@ static_library("crash_upload_list") {
sources = [
"crash_upload_list.cc",
"crash_upload_list.h",
+ "helium_crash_reporting.cc",
+ "helium_crash_reporting.h",
]
if (is_android) {
@@ -29,10 +31,15 @@ static_library("crash_upload_list") {
}
deps = [
+ "//chrome/browser:browser_process",
+ "//chrome/common",
"//chrome/common:constants",
"//components/crash/core/app",
"//components/crash/core/browser",
+ "//components/metrics:metrics_pref_names",
+ "//components/prefs",
"//components/upload_list",
+ "//third_party/crashpad/crashpad/client",
]
if (is_android) {
--- /dev/null
+++ b/chrome/browser/crash_upload_list/helium_crash_reporting.cc
@@ -0,0 +1,149 @@
+// Copyright 2026 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/crash_upload_list/helium_crash_reporting.h"
+
+#include <vector>
+
+#include "base/functional/bind.h"
+#include "base/logging.h"
+#include "base/no_destructor.h"
+#include "chrome/browser/browser_process.h"
+#include "chrome/common/pref_names.h"
+#include "components/crash/core/app/crashpad.h"
+#include "components/metrics/metrics_pref_names.h"
+#include "components/prefs/pref_change_registrar.h"
+#include "components/prefs/pref_service.h"
+
+namespace helium {
+
+namespace {
+
+void DeletePendingReports(bool include_explicitly_requested) {
+ std::vector<crash_reporter::Report> reports;
+ crash_reporter::GetReports(&reports);
+
+ for (const auto& report : reports) {
+ if (report.state != crash_reporter::ReportUploadState::Pending &&
+ report.state !=
+ crash_reporter::ReportUploadState::Pending_UserRequested) {
+ continue;
+ }
+ if (!include_explicitly_requested &&
+ report.state ==
+ crash_reporter::ReportUploadState::Pending_UserRequested) {
+ continue;
+ }
+
+ if (!crash_reporter::DeleteCrashReport(report.local_id)) {
+ LOG(ERROR) << "Failed to delete crash report: " << report.local_id;
+ }
+ }
+}
+
+} // namespace
+
+CrashReportingMode GetCrashReportingMode() {
+ PrefService* local_state = g_browser_process->local_state();
+ CHECK(local_state);
+
+ const int value =
+ local_state->GetInteger(prefs::kHeliumCrashReportingMode);
+ CHECK(IsValidCrashReportingMode(value));
+
+ return static_cast<CrashReportingMode>(value);
+}
+
+bool UploadsDisabledByPolicy() {
+ PrefService* local_state = g_browser_process->local_state();
+ if (!local_state) {
+ return false;
+ }
+
+ const PrefService::Preference* preference =
+ local_state->FindPreference(metrics::prefs::kMetricsReportingEnabled);
+ return preference && preference->IsManaged() &&
+ !local_state->GetBoolean(metrics::prefs::kMetricsReportingEnabled);
+}
+
+void InitializeCrashReportingMode() {
+ PrefService* local_state = g_browser_process->local_state();
+ if (!local_state) {
+ return;
+ }
+
+ const int stored_mode =
+ local_state->GetInteger(prefs::kHeliumCrashReportingMode);
+ if (!IsValidCrashReportingMode(stored_mode)) {
+ LOG(ERROR) << "Invalid crash reporting mode " << stored_mode
+ << "; resetting to default";
+ local_state->SetInteger(
+ prefs::kHeliumCrashReportingMode,
+ static_cast<int>(CrashReportingMode::kAsk));
+ }
+
+ static base::NoDestructor<PrefChangeRegistrar> policy_registrar;
+ policy_registrar->Init(local_state);
+ if (!policy_registrar->IsObserved(
+ metrics::prefs::kMetricsReportingEnabled)) {
+ policy_registrar->Add(
+ metrics::prefs::kMetricsReportingEnabled,
+ base::BindRepeating(&helium::InitializeCrashReportingMode));
+ }
+
+ crash_reporter::SetUploadConsentFromUser(false);
+
+ if (UploadsDisabledByPolicy()) {
+ // Policy overrides the stored mode without changing the user's selection.
+ // Explicit requests bypass Crashpad's global upload toggle, so discard
+ // those reports as well while reporting is forbidden by policy.
+ DeletePendingReports(/*include_explicitly_requested=*/true);
+ return;
+ }
+
+ const CrashReportingMode mode = GetCrashReportingMode();
+ switch (mode) {
+ case CrashReportingMode::kDisabled:
+ // Disabled mode must not retain any uploadable reports.
+ DeletePendingReports(/*include_explicitly_requested=*/true);
+ return;
+ case CrashReportingMode::kAsk:
+ // Leave reports pending so the crash dialog can offer them.
+ return;
+ case CrashReportingMode::kAutomatic:
+ // Allow Crashpad to upload pending reports without prompting.
+ crash_reporter::SetUploadConsentFromUser(true);
+ return;
+ }
+}
+
+void SetCrashReportingMode(CrashReportingMode mode) {
+ PrefService* local_state = g_browser_process->local_state();
+ if (!local_state) {
+ return;
+ }
+
+ // Make mode changes prospective: stop uploads and discard existing
+ // reports before applying the new mode. Explicitly requested reports are
+ // preserved unless reporting is disabled by the user or policy.
+ crash_reporter::SetUploadConsentFromUser(false);
+
+ const bool uploads_disabled_by_policy = UploadsDisabledByPolicy();
+ DeletePendingReports(
+ /*include_explicitly_requested=*/
+ uploads_disabled_by_policy || mode == CrashReportingMode::kDisabled);
+
+ if (uploads_disabled_by_policy) {
+ // Preserve the user's stored selection while policy is enforced.
+ return;
+ }
+
+ local_state->SetInteger(prefs::kHeliumCrashReportingMode,
+ static_cast<int>(mode));
+ if (mode == CrashReportingMode::kAutomatic) {
+ crash_reporter::SetUploadConsentFromUser(true);
+ }
+}
+
+} // namespace helium
--- /dev/null
+++ b/chrome/browser/crash_upload_list/helium_crash_reporting.h
@@ -0,0 +1,39 @@
+// Copyright 2026 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_CRASH_UPLOAD_LIST_HELIUM_CRASH_REPORTING_H_
+#define CHROME_BROWSER_CRASH_UPLOAD_LIST_HELIUM_CRASH_REPORTING_H_
+
+namespace helium {
+
+enum class CrashReportingMode {
+ kDisabled = -1,
+ kAsk,
+ kAutomatic,
+};
+
+constexpr bool IsValidCrashReportingMode(int value) {
+ return value >= static_cast<int>(CrashReportingMode::kDisabled) &&
+ value <= static_cast<int>(CrashReportingMode::kAutomatic);
+}
+
+CrashReportingMode GetCrashReportingMode();
+
+// Returns true only when policy explicitly disables crash reporting. A policy
+// that enables reporting does not constitute user consent.
+bool UploadsDisabledByPolicy();
+
+// Applies the stored mode at startup and discards all pending reports when
+// reporting is disabled by the user or policy.
+void InitializeCrashReportingMode();
+
+// Disables consent, discards existing unrequested reports, stores `mode`, and
+// then enables consent only when `mode` is automatic. Explicitly requested
+// reports are also discarded when reporting is disabled by the user or policy.
+// If policy disables crash reporting, the stored mode is preserved.
+void SetCrashReportingMode(CrashReportingMode mode);
+
+} // namespace helium
+
+#endif // CHROME_BROWSER_CRASH_UPLOAD_LIST_HELIUM_CRASH_REPORTING_H_
--- a/chrome/chrome_elf/chrome_elf.def
+++ b/chrome/chrome_elf/chrome_elf.def
@@ -9,10 +9,12 @@ EXPORTS
DumpHungProcessWithPtype_ExportThunk
GetCrashpadDatabasePath_ExportThunk
ClearReportsBetween_ExportThunk
+ DeleteCrashReport_ExportThunk
GetCrashReports_ExportThunk
InjectDumpForHungInput_ExportThunk
RequestSingleCrashUpload_ExportThunk
SetUploadConsent_ExportThunk
+ SetUploadConsentFromUser_ExportThunk
GetUploadConsent_ExportThunk
GetProductInfo_ExportThunk
--- a/components/crash/core/app/crash_export_stubs.cc
+++ b/components/crash/core/app/crash_export_stubs.cc
@@ -15,6 +15,10 @@
void RequestSingleCrashUpload_ExportThunk(const char* local_id) {}
+bool DeleteCrashReport_ExportThunk(const char* local_id) {
+ return false;
+}
+
size_t GetCrashReports_ExportThunk(crash_reporter::Report* reports,
size_t reports_size) {
return 0;
@@ -28,6 +32,8 @@ int CrashForException_ExportThunk(EXCEPT
void SetUploadConsent_ExportThunk(bool consent) {}
+void SetUploadConsentFromUser_ExportThunk(bool consent) {}
+
bool GetUploadConsent_ExportThunk() {
return crash_reporter::GetCrashReporterClient()->GetCollectStatsConsent();
}
--- a/components/crash/core/app/crash_export_thunks.cc
+++ b/components/crash/core/app/crash_export_thunks.cc
@@ -20,6 +20,10 @@ void RequestSingleCrashUpload_ExportThun
crash_reporter::RequestSingleCrashUploadImpl(local_id);
}
+bool DeleteCrashReport_ExportThunk(const char* local_id) {
+ return crash_reporter::DeleteCrashReportImpl(local_id);
+}
+
size_t GetCrashReports_ExportThunk(crash_reporter::Report* reports,
size_t reports_size) {
static_assert(std::is_trivially_copyable<crash_reporter::Report>::value,
@@ -56,6 +60,10 @@ void SetUploadConsent_ExportThunk(bool c
crash_reporter::SetUploadConsent(consent);
}
+void SetUploadConsentFromUser_ExportThunk(bool consent) {
+ crash_reporter::internal::SetUploadConsentFromUserImpl(consent);
+}
+
bool GetUploadConsent_ExportThunk() {
return crash_reporter::GetCrashReporterClient()->GetCollectStatsConsent();
}
--- a/components/crash/core/app/crash_export_thunks.h
+++ b/components/crash/core/app/crash_export_thunks.h
@@ -29,6 +29,10 @@ extern "C" {
// crash report upload. See CrashUploadListCrashpad.
void RequestSingleCrashUpload_ExportThunk(const char* local_id);
+// This function may be invoked across module boundaries to permanently delete
+// a single crash report. See crash_reporter::DeleteCrashReport.
+bool DeleteCrashReport_ExportThunk(const char* local_id);
+
// This function may be invoked across module boundaries to retrieve the crash
// list. It copies up to |report_count| reports into |reports| and returns the
// number of reports available. If the return value is less than or equal to
@@ -53,6 +57,10 @@ int CrashForException_ExportThunk(EXCEPT
// not enforced to avoid blocking startup code on synchronizing them.
void SetUploadConsent_ExportThunk(bool consent);
+// This function may be invoked across module boundaries to update upload
+// consent granted explicitly through Helium's crash reporting UI.
+void SetUploadConsentFromUser_ExportThunk(bool consent);
+
// Returns the current upload consent state.
// This function is used by JS Error reporting which lives in chrome.dll.
bool GetUploadConsent_ExportThunk();
--- a/chrome/app/chrome_crash_reporter_client_win.cc
+++ b/chrome/app/chrome_crash_reporter_client_win.cc
@@ -11,6 +11,7 @@
#include <assert.h>
#include <iterator>
#include <memory>
+#include <optional>
#include <string>
#include <vector>
@@ -26,6 +27,13 @@
#include "components/crash/core/app/crashpad.h"
#include "components/version_info/channel.h"
+namespace {
+
+constexpr wchar_t kCrashServerUrlCommandLine[] =
+ L"custom-crash-server-url";
+
+} // namespace
+
ChromeCrashReporterClient::ChromeCrashReporterClient() = default;
ChromeCrashReporterClient::~ChromeCrashReporterClient() = default;
@@ -96,6 +104,17 @@ void ChromeCrashReporterClient::GetProdu
product_info->channel = base::WideToUTF8(channel_name);
}
+std::string ChromeCrashReporterClient::GetUploadUrl() {
+ std::optional<std::wstring> upload_url =
+ install_static::GetCommandLineSwitch(::GetCommandLine(),
+ kCrashServerUrlCommandLine);
+ if (upload_url.has_value()) {
+ return base::WideToUTF8(*upload_url);
+ }
+
+ return CrashReporterClient::GetUploadUrl();
+}
+
bool ChromeCrashReporterClient::GetShouldDumpLargerDumps() {
// Capture larger dumps for Google Chrome beta, dev, and canary channels, and
// Chromium builds. The Google Chrome stable channel uses smaller dumps.
--- a/chrome/app/chrome_crash_reporter_client_win.h
+++ b/chrome/app/chrome_crash_reporter_client_win.h
@@ -30,6 +30,7 @@ class ChromeCrashReporterClient : public
std::wstring* special_build,
std::wstring* channel_name) override;
void GetProductInfo(ProductInfo* product_info) override;
+ std::string GetUploadUrl() override;
bool GetShouldDumpLargerDumps() override;
bool GetCrashDumpLocation(std::wstring* crash_dir) override;
@@ -104,7 +104,7 @@
+#endif // CHROME_BROWSER_UI_BROWSER_SHORTCUTS_BROWSER_SHORTCUT_METADATA_H_
--- /dev/null
+++ b/chrome/browser/ui/browser_shortcuts/browser_shortcut_metadata.cc
@@ -0,0 +1,260 @@
@@ -0,0 +1,263 @@
+// Copyright 2026 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.
@@ -272,6 +272,8 @@
+ return Label(ShouldUseVerticalCollapseLabel(prefs)
+ ? IDS_SHORTCUT_COMMAND_TOGGLE_VERTICAL_TABS
+ : IDS_SAVE_PAGE);
+ case IDC_TOGGLE_VERTICAL_TABS_COLLAPSE:
+ return Label(IDS_SHORTCUT_COMMAND_TOGGLE_VERTICAL_TABS);
+ case IDC_PRINT:
+ return Label(IDS_CONTENT_CONTEXT_PRINT);
+ case IDC_BASIC_PRINT:
@@ -354,6 +356,7 @@
+ if (ShouldUseVerticalCollapseLabel(prefs)) {
+ commands.push_back(IDC_SAVE_PAGE);
+ }
+ commands.push_back(IDC_TOGGLE_VERTICAL_TABS_COLLAPSE);
+
+ commands.push_back(ShouldUseCopyPageUrlLabel(prefs) ? IDC_DEV_TOOLS_INSPECT
+ : IDC_COPY_URL);
@@ -1552,10 +1555,10 @@
+#endif // CHROME_BROWSER_UI_BROWSER_SHORTCUTS_BROWSER_SHORTCUT_SERVICE_FACTORY_H_
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -1084,6 +1084,16 @@ static_library("ui") {
"accelerator_table.h",
"breadcrumb_manager_browser_agent.cc",
"breadcrumb_manager_browser_agent.h",
@@ -1415,6 +1415,16 @@ static_library("ui") {
# that //chrome/browser:browser has no remaining sources. It registers
# WebUI interface binders for desktop, which need this target's headers.
"//chrome/browser/chrome_browser_interface_binders_webui_parts_desktop.cc",
+ "browser_shortcuts/browser_shortcut_metadata.cc",
+ "browser_shortcuts/browser_shortcut_metadata.h",
+ "browser_shortcuts/browser_shortcut_prefs.cc",
@@ -1568,8 +1571,8 @@
+ "browser_shortcuts/browser_shortcut_service_factory.h",
"browser.cc",
"browser.h",
"browser_action_prefs_listener.cc",
@@ -1440,6 +1450,8 @@ static_library("ui") {
"browser_command_controller.cc",
@@ -1597,6 +1607,8 @@ static_library("ui") {
if (is_mac) {
sources += [
@@ -1580,7 +1583,7 @@
]
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -1848,6 +1848,96 @@ are declared in tools/grit/grit_args.gni
@@ -1874,6 +1874,96 @@ are declared in tools/grit/grit_args.gni
<message name="IDS_CHROME_WHATS_NEW" desc="The text label of the Help menu item which takes the user to the Chrome What's New page.">
What's New
</message>
@@ -1694,15 +1697,15 @@
</message>
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -84,6 +84,7 @@
#include "chrome/browser/ssl/ssl_config_service_manager.h"
@@ -85,6 +85,7 @@
#include "chrome/browser/themes/theme_service.h"
#include "chrome/browser/tips/core/tips_prefs.h"
#include "chrome/browser/tracing/chrome_tracing_delegate.h"
+#include "chrome/browser/ui/browser_shortcuts/browser_shortcut_prefs.h"
#include "chrome/browser/ui/browser_ui_prefs.h"
#include "chrome/browser/ui/network_profile_bubble.h"
#include "chrome/browser/ui/performance_controls/performance_controls_metrics.h"
@@ -1718,6 +1719,7 @@ void RegisterProfilePrefs(user_prefs::Pr
@@ -1792,6 +1793,7 @@ void RegisterProfilePrefs(user_prefs::Pr
PushMessagingUnsubscribedEntry::RegisterProfilePrefs(registry);
QuietNotificationPermissionUiState::RegisterProfilePrefs(registry);
regional_capabilities::prefs::RegisterProfilePrefs(registry);
@@ -1712,7 +1715,7 @@
RegisterGeminiSettingsPrefs(registry);
--- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
+++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
@@ -628,6 +628,7 @@
@@ -649,6 +649,7 @@
#if defined(TOOLKIT_VIEWS)
#include "chrome/browser/bookmarks/bookmark_expanded_state_tracker_factory.h"
#include "chrome/browser/bookmarks/bookmark_merged_surface_service_factory.h"
@@ -1720,7 +1723,7 @@
#endif
#if BUILDFLAG(USE_NSS_CERTS)
@@ -819,6 +820,9 @@ void ChromeBrowserMainExtraPartsProfiles
@@ -841,6 +842,9 @@ void ChromeBrowserMainExtraPartsProfiles
browser_switcher::BrowserSwitcherServiceFactory::GetInstance();
#endif
browser_sync::UserEventServiceFactory::GetInstance();
@@ -1732,7 +1735,16 @@
#endif
--- a/chrome/browser/global_keyboard_shortcuts_mac.mm
+++ b/chrome/browser/global_keyboard_shortcuts_mac.mm
@@ -79,7 +79,7 @@ bool MatchesEventForKeyboardShortcut(con
@@ -7,6 +7,8 @@
#import <AppKit/AppKit.h>
#include <Carbon/Carbon.h>
+#include <algorithm>
+
#include "base/apple/foundation_util.h"
#include "base/check.h"
#include "base/feature_list.h"
@@ -79,7 +81,7 @@ bool MatchesEventForKeyboardShortcut(con
}
const std::vector<KeyboardShortcutData>&
@@ -1741,35 +1753,17 @@
// clang-format off
static base::NoDestructor<std::vector<KeyboardShortcutData>> keys({
// cmd shift cntrl option vkeycode command
@@ -183,6 +183,39 @@ const std::vector<KeyboardShortcutData>&
@@ -183,6 +185,21 @@ const std::vector<KeyboardShortcutData>&
return *keys;
}
+namespace {
+
+const std::vector<KeyboardShortcutData>&
+GetShortcutsNotPresentInMainMenuForShortcutSettings() {
+ static const base::NoDestructor<std::vector<KeyboardShortcutData>> keys([]() {
+ std::vector<KeyboardShortcutData> result =
+ GetShortcutsNotPresentInMainMenu();
+ const std::vector<KeyboardShortcutData>& delayed_shortcuts =
+ GetDelayedShortcutsNotPresentInMainMenuImpl();
+ result.insert(result.end(), delayed_shortcuts.begin(),
+ delayed_shortcuts.end());
+ return result;
+ }());
+ return *keys;
+}
+
+} // namespace
+
+const std::vector<KeyboardShortcutAcceleratorData>&
+GetShortcutSettingsAcceleratorsNotPresentInMainMenu() {
+ static const base::NoDestructor<std::vector<KeyboardShortcutAcceleratorData>>
+ accelerators([]() {
+ std::vector<KeyboardShortcutAcceleratorData> result;
+ for (const KeyboardShortcutData& shortcut :
+ GetShortcutsNotPresentInMainMenuForShortcutSettings()) {
+ GetShortcutsNotPresentInMainMenu()) {
+ result.push_back(
+ {shortcut.chrome_command, AcceleratorFromShortcut(shortcut)});
+ }
@@ -1781,7 +1775,7 @@
const std::vector<NSMenuItem*>& GetMenuItemsNotPresentInMainMenu() {
static base::NoDestructor<std::vector<NSMenuItem*>> menu_items([]() {
std::vector<NSMenuItem*> menu_items;
@@ -241,7 +274,7 @@ int DelayedWebContentsCommandForKeyEvent
@@ -241,7 +258,7 @@ int DelayedWebContentsCommandForKeyEvent
// Scan through keycodes and see if it corresponds to one of the non-menu
// shortcuts.
+32 -31
View File
@@ -1,6 +1,6 @@
--- a/chrome/browser/profiles/profile_avatar_icon_util.cc
+++ b/chrome/browser/profiles/profile_avatar_icon_util.cc
@@ -451,6 +451,8 @@ constexpr std::string_view kDefaultUrlPr
@@ -564,6 +564,8 @@ constexpr std::string_view kDefaultUrlPr
"chrome://theme/IDR_PROFILE_AVATAR_";
constexpr base::FilePath::CharType kGAIAPictureFileName[] =
FILE_PATH_LITERAL("Google Profile Picture.png");
@@ -9,7 +9,7 @@
constexpr base::FilePath::CharType kHighResAvatarFolderName[] =
FILE_PATH_LITERAL("Avatars");
@@ -815,22 +817,17 @@ gfx::Image GetPlaceholderAvatarIconWithC
@@ -931,22 +933,17 @@ gfx::Image GetPlaceholderAvatarIconWithC
SkColor fill_color,
SkColor stroke_color,
int size,
@@ -36,7 +36,7 @@
if (icon_params.has_background) {
return gfx::Image(
@@ -906,13 +903,17 @@ base::DictValue GetAvatarIconAndLabelDic
@@ -1022,13 +1019,17 @@ base::DictValue GetAvatarIconAndLabelDic
const std::u16string& label,
size_t index,
bool selected,
@@ -55,7 +55,7 @@
return avatar_info;
}
@@ -920,13 +921,32 @@ base::DictValue GetDefaultProfileAvatarI
@@ -1036,13 +1037,32 @@ base::DictValue GetDefaultProfileAvatarI
SkColor stroke_color,
bool selected) {
gfx::Image icon = profiles::GetPlaceholderAvatarIconWithColors(
@@ -90,7 +90,7 @@
}
base::ListValue GetCustomProfileAvatarIconsAndLabels(
@@ -939,7 +959,8 @@ base::ListValue GetCustomProfileAvatarIc
@@ -1055,7 +1075,8 @@ base::ListValue GetCustomProfileAvatarIc
profiles::GetDefaultAvatarIconUrl(i),
l10n_util::GetStringUTF16(
profiles::GetDefaultAvatarLabelResourceIDAtIndex(i)),
@@ -100,7 +100,7 @@
}
return avatars;
}
@@ -972,13 +993,33 @@ base::ListValue GetIconsAndLabelsForProf
@@ -1088,13 +1109,33 @@ base::ListValue GetIconsAndLabelsForProf
DCHECK(entry);
bool using_gaia = entry->IsUsingGAIAPicture();
@@ -136,7 +136,7 @@
if (entry->GetSigninState() == SigninState::kNotSignedIn) {
ProfileThemeColors colors = entry->GetProfileThemeColors();
auto generic_avatar_info = GetDefaultProfileAvatarIconAndLabel(
@@ -997,7 +1038,8 @@ base::ListValue GetIconsAndLabelsForProf
@@ -1113,7 +1154,8 @@ base::ListValue GetIconsAndLabelsForProf
/*url=*/webui::GetBitmapDataUrl(avatar_icon.AsBitmap()),
/*label=*/
l10n_util::GetStringUTF16(IDS_SETTINGS_CHANGE_PICTURE_PROFILE_PHOTO),
@@ -146,7 +146,7 @@
avatars.Insert(avatars.begin(), base::Value(std::move(gaia_picture_info)));
}
@@ -1013,6 +1055,7 @@ void SetDefaultProfileAvatarIndex(Profil
@@ -1129,6 +1171,7 @@ void SetDefaultProfileAvatarIndex(Profil
pref_service->SetBoolean(prefs::kProfileUsingDefaultAvatar,
avatar_icon_index == GetPlaceholderAvatarIndex());
pref_service->SetBoolean(prefs::kProfileUsingGAIAAvatar, false);
@@ -174,7 +174,7 @@
const char ProfileAttributesEntry::kUseGAIAPictureKey[] = "use_gaia_picture";
const char ProfileAttributesEntry::kAccountIdKey[] = "account_id_key";
const char ProfileAttributesEntry::kIsGlicEligible[] = "is_glic_eligible";
@@ -280,7 +284,7 @@ bool ProfileAttributesEntry::ShouldUpdat
@@ -282,7 +286,7 @@ bool ProfileAttributesEntry::ShouldUpdat
// Updating from an empty image to a null image is a no-op and it is
// important to avoid firing |OnProfileAvatarChanged| in this case.
// See http://crbug.com/41423540
@@ -183,7 +183,7 @@
return false;
}
@@ -300,6 +304,26 @@ bool ProfileAttributesEntry::ShouldUpdat
@@ -302,6 +306,26 @@ bool ProfileAttributesEntry::ShouldUpdat
return IsUsingDefaultAvatar() || IsUsingGAIAPicture();
}
@@ -210,7 +210,7 @@
std::u16string ProfileAttributesEntry::GetLastNameToDisplay() const {
return last_name_to_display_;
}
@@ -367,7 +391,12 @@ ProfileAttributesEntry::GetAvatarIconWit
@@ -369,7 +393,12 @@ ProfileAttributesEntry::GetAvatarIconWit
int size_for_placeholder_avatar,
bool use_high_res_file,
const PlaceholderAvatarIconParams& icon_params) const {
@@ -224,7 +224,7 @@
// The picture may be null if it has not finished downloading yet; in that
// case fall through to return the avatar-index-based icon below.
if (const gfx::Image* image = GetGAIAPicture()) {
@@ -442,6 +471,19 @@ const gfx::Image* ProfileAttributesEntry
@@ -444,6 +473,19 @@ const gfx::Image* ProfileAttributesEntry
profile_path_, storage_key_, image_path);
}
@@ -244,7 +244,7 @@
bool ProfileAttributesEntry::IsUsingGAIAPicture() const {
bool result = GetBool(kUseGAIAPictureKey);
if (!result) {
@@ -514,6 +556,10 @@ bool ProfileAttributesEntry::IsUsingDefa
@@ -516,6 +558,10 @@ bool ProfileAttributesEntry::IsUsingDefa
return GetBool(kIsUsingDefaultAvatarKey);
}
@@ -255,7 +255,7 @@
bool ProfileAttributesEntry::IsSignedInWithCredentialProvider() const {
return false;
}
@@ -738,6 +784,39 @@ void ProfileAttributesEntry::SetIsUsingG
@@ -748,6 +794,39 @@ void ProfileAttributesEntry::SetIsUsingG
}
}
@@ -295,7 +295,7 @@
void ProfileAttributesEntry::SetLastDownloadedGAIAPictureUrlWithSize(
const std::string& image_url_with_size) {
SetString(kLastDownloadedGAIAPictureUrlWithSizeKey, image_url_with_size);
@@ -895,6 +974,21 @@ void ProfileAttributesEntry::SetAuthInfo
@@ -905,6 +984,21 @@ void ProfileAttributesEntry::SetAuthInfo
profile_attributes_storage_->NotifyProfileAuthInfoChanged(profile_path_);
}
@@ -339,7 +339,7 @@
// Indicates that profile was signed in through native OS credential provider.
bool IsSignedInWithCredentialProvider() const;
// Returns true if the profile is managed by a third party identity that is
@@ -252,6 +258,7 @@ class ProfileAttributesEntry {
@@ -255,6 +261,7 @@ class ProfileAttributesEntry {
void SetGAIAName(const std::u16string& name);
void SetGAIAGivenName(const std::u16string& name);
void SetGAIAPicture(const std::string& image_url_with_size, gfx::Image image);
@@ -347,7 +347,7 @@
void SetIsUsingGAIAPicture(bool value);
void SetLastDownloadedGAIAPictureUrlWithSize(
const std::string& image_url_with_size);
@@ -264,6 +271,7 @@ class ProfileAttributesEntry {
@@ -267,6 +274,7 @@ class ProfileAttributesEntry {
void SetUserAcceptedAccountManagement(bool value);
bool UserAcceptedAccountManagement() const;
void SetIsUsingDefaultAvatar(bool value);
@@ -355,9 +355,9 @@
void SetAvatarIconIndex(size_t icon_index);
// std::nullopt resets colors to default.
void SetProfileThemeColors(const std::optional<ProfileThemeColors>& colors);
@@ -285,6 +293,9 @@ class ProfileAttributesEntry {
@@ -290,6 +298,9 @@ class ProfileAttributesEntry {
void SetIsGlicEligible(bool value);
void SetAiSubscriptionTier(int tier);
+ // Clears the custom avatar of the profile, if it exists.
+ void ClearCustomAvatar();
@@ -365,7 +365,7 @@
// Lock/Unlock the profile, should be called only if force-sign-in is enabled.
void LockForceSigninProfile(bool is_lock);
@@ -299,6 +310,7 @@ class ProfileAttributesEntry {
@@ -304,6 +315,7 @@ class ProfileAttributesEntry {
static const char kEnterpriseLabelKey[];
static const char kIsUsingDefaultNameKey[];
static const char kIsUsingDefaultAvatarKey[];
@@ -373,7 +373,7 @@
static const char kUseGAIAPictureKey[];
static const char kAccountIdKey[];
static const char kIsGlicEligible[];
@@ -338,6 +350,11 @@ class ProfileAttributesEntry {
@@ -344,6 +356,11 @@ class ProfileAttributesEntry {
bool ShouldUpdateGAIAPicture(const std::string& image_url_with_size,
bool image_is_empty) const;
@@ -387,19 +387,20 @@
const gfx::Image* GetHighResAvatar() const;
--- a/chrome/browser/profiles/profile_avatar_icon_util.h
+++ b/chrome/browser/profiles/profile_avatar_icon_util.h
@@ -14,9 +14,11 @@
@@ -15,10 +15,12 @@
#include "base/files/file_path.h"
#include "base/values.h"
#include "build/build_config.h"
+#include "components/vector_icons/vector_icons.h"
#include "third_party/abseil-cpp/absl/container/flat_hash_set.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkPath.h"
#include "ui/base/models/image_model.h"
+#include "ui/base/ui_base_features.h"
#include "ui/gfx/geometry/point.h"
namespace base {
@@ -70,6 +72,7 @@ inline constexpr int kProfileAvatarBadge
#include "ui/gfx/geometry/point_f.h"
#include "ui/gfx/geometry/rect.h"
@@ -74,6 +76,7 @@ inline constexpr int kProfileAvatarBadge
// Avatar access.
extern const base::FilePath::CharType kGAIAPictureFileName[];
extern const base::FilePath::CharType kHighResAvatarFolderName[];
@@ -407,7 +408,7 @@
// Avatar formatting.
extern const int kAvatarIconSize;
@@ -169,7 +172,11 @@ gfx::Image GetPlaceholderAvatarIconWithC
@@ -173,7 +176,11 @@ gfx::Image GetPlaceholderAvatarIconWithC
SkColor fill_color,
SkColor stroke_color,
int size,
@@ -420,7 +421,7 @@
// Gets the resource ID of the default avatar icon at |index|.
int GetDefaultAvatarIconResourceIDAtIndex(size_t index);
@@ -209,7 +216,9 @@ base::DictValue GetAvatarIconAndLabelDic
@@ -213,7 +220,9 @@ base::DictValue GetAvatarIconAndLabelDic
const std::u16string& label,
size_t index,
bool selected,
@@ -479,7 +480,7 @@
void DownloadHighResAvatarIfNeeded(size_t icon_index,
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -406,6 +406,7 @@ void ProfileImpl::RegisterProfilePrefs(
@@ -409,6 +409,7 @@ void ProfileImpl::RegisterProfilePrefs(
// (i.e. was assigned by default by legacy profile creation).
registry->RegisterBooleanPref(prefs::kProfileUsingDefaultAvatar, true);
registry->RegisterBooleanPref(prefs::kProfileUsingGAIAAvatar, false);
@@ -487,7 +488,7 @@
// Whether a profile is using a default avatar name (eg. Pickles or Person 1).
registry->RegisterBooleanPref(prefs::kProfileUsingDefaultName, true);
registry->RegisterStringPref(prefs::kProfileName, std::string());
@@ -748,6 +749,10 @@ void ProfileImpl::DoFinalInit(CreateMode
@@ -760,6 +761,10 @@ void ProfileImpl::DoFinalInit(CreateMode
prefs::kProfileUsingGAIAAvatar,
base::BindRepeating(&ProfileImpl::UpdateAvatarInStorage,
base::Unretained(this)));
@@ -498,7 +499,7 @@
// Changes in the profile name.
pref_change_registrar_.Add(
@@ -1709,6 +1714,8 @@ void ProfileImpl::UpdateAvatarInStorage(
@@ -1735,6 +1740,8 @@ void ProfileImpl::UpdateAvatarInStorage(
GetPrefs()->GetBoolean(prefs::kProfileUsingDefaultAvatar));
entry->SetIsUsingGAIAPicture(
GetPrefs()->GetBoolean(prefs::kProfileUsingGAIAAvatar));
@@ -509,7 +510,7 @@
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -1015,6 +1015,8 @@ inline constexpr char kProfileUsingDefau
@@ -959,6 +959,8 @@ inline constexpr char kProfileUsingDefau
inline constexpr char kProfileUsingDefaultAvatar[] =
"profile.using_default_avatar";
inline constexpr char kProfileUsingGAIAAvatar[] = "profile.using_gaia_avatar";
@@ -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
@@ -1279,17 +1279,6 @@ void RenderViewContextMenu::InitMenu() {
@@ -1290,17 +1290,6 @@ void RenderViewContextMenu::InitMenu() {
AppendSpellingAndSearchSuggestionItems();
}
@@ -18,7 +18,7 @@
if (editable) {
AppendOtherEditableItems();
}
@@ -2454,46 +2443,6 @@ void RenderViewContextMenu::AppendPageIt
@@ -2472,46 +2461,6 @@ void RenderViewContextMenu::AppendPageIt
IDS_CONTENT_CONTEXT_SAVEPAGEAS);
menu_model_.AddItemWithStringId(IDC_PRINT, IDS_CONTENT_CONTEXT_PRINT);
@@ -65,7 +65,7 @@
menu_model_.AddSeparator(ui::NORMAL_SEPARATOR);
return;
}
@@ -2509,7 +2458,6 @@ void RenderViewContextMenu::AppendPageIt
@@ -2527,7 +2476,6 @@ void RenderViewContextMenu::AppendPageIt
IDS_CONTENT_CONTEXT_SAVEPAGEAS);
menu_model_.AddItemWithStringId(IDC_PRINT, IDS_CONTENT_CONTEXT_PRINT);
AppendLiveCaptionItem();
@@ -73,7 +73,7 @@
if (features::IsReadAnythingMenuShuffleExperimentEnabled()) {
// This will be set to false in AppendRegionSearchItem() if it is called.
@@ -2723,7 +2671,7 @@ void RenderViewContextMenu::AppendReadAn
@@ -2741,7 +2689,7 @@ void RenderViewContextMenu::AppendReadAn
}
// Show Read Anything option if it's not already open in the side panel.
@@ -82,7 +82,7 @@
std::u16string label;
const std::u16string printable_selection_text = PrintableSelectionText();
if (is_menu_simplification_enabled && !printable_selection_text.empty()) {
@@ -4094,30 +4042,9 @@ void RenderViewContextMenu::ExecuteComma
@@ -4143,30 +4091,9 @@ void RenderViewContextMenu::ExecuteComma
}
}
@@ -115,7 +115,7 @@
// static
void RenderViewContextMenu::RegisterMenuShownCallbackForTesting(
@@ -4499,7 +4426,7 @@ bool RenderViewContextMenu::AppendQRCode
@@ -4548,7 +4475,7 @@ bool RenderViewContextMenu::AppendQRCode
return false;
}
@@ -124,7 +124,7 @@
return false;
}
@@ -5516,19 +5443,11 @@ ToastController* RenderViewContextMenu::
@@ -5625,19 +5552,11 @@ ToastController* RenderViewContextMenu::
}
bool RenderViewContextMenu::CanTranslate(bool menu_logging) {
@@ -148,7 +148,7 @@
void RenderViewContextMenu::MaybePrepareForLensQuery() {
--- a/chrome/browser/ui/browser_tab_strip_model_delegate.cc
+++ b/chrome/browser/ui/browser_tab_strip_model_delegate.cc
@@ -359,7 +359,7 @@ void BrowserTabStripModelDelegate::AddTo
@@ -326,7 +326,7 @@ void BrowserTabStripModelDelegate::AddTo
}
bool BrowserTabStripModelDelegate::SupportsReadLater() {
@@ -1,6 +1,6 @@
--- a/services/network/public/cpp/features.cc
+++ b/services/network/public/cpp/features.cc
@@ -431,7 +431,7 @@ BASE_FEATURE(kUpdateRequestForCorsRedire
@@ -440,7 +440,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
@@ -510,7 +510,7 @@ BASE_FEATURE(kSharedStorageTransactional
@@ -519,7 +519,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 -1
View File
@@ -1,6 +1,6 @@
--- a/components/search/ntp_features.cc
+++ b/components/search/ntp_features.cc
@@ -243,7 +243,7 @@ BASE_FEATURE(kNtpNextCanvasChip, base::F
@@ -238,7 +238,7 @@ BASE_FEATURE(kNtpStarterChip, base::FEAT
BASE_FEATURE(kNtpOneGoogleBarAsyncBarParts, base::FEATURE_DISABLED_BY_DEFAULT);
// If enabled, a footer will show on the NTP.
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/ui_features.cc
+++ b/chrome/browser/ui/ui_features.cc
@@ -98,7 +98,7 @@ BASE_FEATURE(kExtensionsCollapseMainMenu
@@ -122,7 +122,7 @@ BASE_FEATURE(kExtensionsPinnedByDefault,
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC)
// Shows an infobar on PDFs offering to become the default PDF viewer if Chrome
// isn't the default already.
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/ui_features.cc
+++ b/chrome/browser/ui/ui_features.cc
@@ -232,13 +232,7 @@ BASE_FEATURE(kPasswordSaveUpdateDropdown
@@ -267,13 +267,7 @@ BASE_FEATURE(kPasswordSaveUpdateDropdown
base::FEATURE_DISABLED_BY_DEFAULT);
#endif
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/ui_features.cc
+++ b/chrome/browser/ui/ui_features.cc
@@ -385,7 +385,7 @@ BASE_FEATURE(kTabsFromOtherDevicesSidePa
@@ -419,7 +419,7 @@ BASE_FEATURE(kTabsFromOtherDevicesSidePa
BASE_FEATURE(kTabsFromOtherDevicesSidePanelPinnedByDefault,
base::FEATURE_DISABLED_BY_DEFAULT);
@@ -0,0 +1,11 @@
--- a/components/search/ntp_features.cc
+++ b/components/search/ntp_features.cc
@@ -292,7 +292,7 @@ BASE_FEATURE(kNtpShortcutsRedesign, base
// If enabled, the bookmark bar may be auto-removed on the NTP and new
// visibility settings are added.
-BASE_FEATURE(kNtpSimplificationBookmarkBar, base::FEATURE_DISABLED_BY_DEFAULT);
+BASE_FEATURE(kNtpSimplificationBookmarkBar, base::FEATURE_ENABLED_BY_DEFAULT);
// If enabled, the bookmark bar time interval and number of times it's shown on
// the NTP before auto-hiding is decreased for testing.
@@ -1,13 +1,13 @@
--- a/chrome/browser/ui/ui_features.cc
+++ b/chrome/browser/ui/ui_features.cc
@@ -54,8 +54,8 @@ BASE_FEATURE(kInfoBarInlineLinks, base::
BASE_FEATURE(kTabStripDeclutter, base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kToolbarGlowUp, base::FEATURE_DISABLED_BY_DEFAULT);
@@ -65,8 +65,8 @@ BASE_FEATURE_PARAM(bool,
"back-forward",
true);
BASE_FEATURE(kMenuSimplification, base::FEATURE_DISABLED_BY_DEFAULT);
-BASE_FEATURE(kTabGroupColorRefresh, base::FEATURE_DISABLED_BY_DEFAULT);
-BASE_FEATURE(kWebuiRefresh2026, base::FEATURE_DISABLED_BY_DEFAULT);
+BASE_FEATURE(kTabGroupColorRefresh, base::FEATURE_ENABLED_BY_DEFAULT);
+BASE_FEATURE(kWebuiRefresh2026, base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kAppMenuGlowUp, base::FEATURE_DISABLED_BY_DEFAULT);
bool IsTabStripDeclutterEnabled() {
return base::FeatureList::IsEnabled(kDesktopGlowUp) ||
@@ -1,6 +1,6 @@
--- a/components/download/public/common/download_features.cc
+++ b/components/download/public/common/download_features.cc
@@ -9,13 +9,7 @@
@@ -10,13 +10,7 @@
namespace download {
namespace features {
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/ui_features.cc
+++ b/chrome/browser/ui/ui_features.cc
@@ -212,13 +212,7 @@ bool IsTabGroupHoverCardsEnabled() {
@@ -245,13 +245,7 @@ bool IsTabGroupHoverCardsEnabled() {
// Enables preview images in tab-hover cards.
// https://crbug.com/41439486
@@ -1,6 +1,6 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -13168,11 +13168,496 @@ const FeatureEntry kFeatureEntries[] = {
@@ -13332,11 +13332,496 @@ const FeatureEntry kFeatureEntries[] = {
// AboutFlagsHistogramTest unit test to verify this process).
};
@@ -401,7 +401,7 @@
+ "test-third-party-cookie-phaseout",
+ "mac-enable-okta-sso",
+ "saas-usage-reporting",
+ "toolbar-glow-up", // adds a chrome logo animation to app menu button
+ "toolbar-glow-up", // Adds a Chrome logo animation to the app menu button.
+ "autofill-at-memory",
+ "energy-effect",
+ "energy-effect-animation",
@@ -498,7 +498,7 @@
FlagsStateSingleton(const FlagsStateSingleton&) = delete;
FlagsStateSingleton& operator=(const FlagsStateSingleton&) = delete;
~FlagsStateSingleton() override = default;
@@ -13191,7 +13676,7 @@ class FlagsStateSingleton : public flags
@@ -13355,7 +13840,7 @@ class FlagsStateSingleton : public flags
void RestoreDefaultState() {
flags_state_ =
@@ -507,7 +507,7 @@
}
private:
@@ -13524,7 +14009,7 @@ base::span<const FeatureEntry> GetFeatur
@@ -13680,7 +14165,7 @@ base::span<const FeatureEntry> GetFeatur
!entries_for_testing->empty()) {
return *entries_for_testing;
}
@@ -1,6 +1,6 @@
--- a/components/resources/BUILD.gn
+++ b/components/resources/BUILD.gn
@@ -103,7 +103,7 @@ grit("components_resources") {
@@ -105,7 +105,7 @@ grit("components_resources") {
deps += [ "//components/resources/ssl/ssl_error_assistant:make_ssl_error_assistant_protobuf" ]
}
@@ -85,7 +85,7 @@
},
--- a/chrome/chrome_paks.gni
+++ b/chrome/chrome_paks.gni
@@ -145,6 +145,7 @@ template("chrome_extra_paks") {
@@ -146,6 +146,7 @@ template("chrome_extra_paks") {
"$root_gen_dir/components/translate_internals_resources.pak",
"$root_gen_dir/components/user_actions_ui_resources.pak",
"$root_gen_dir/components/version_ui_resources.pak",
@@ -93,7 +93,7 @@
"$root_gen_dir/content/attribution_internals_resources.pak",
"$root_gen_dir/content/content_resources.pak",
"$root_gen_dir/content/histograms_resources.pak",
@@ -179,6 +180,7 @@ template("chrome_extra_paks") {
@@ -181,6 +182,7 @@ template("chrome_extra_paks") {
"//chrome/browser/resources",
"//chrome/common:resources",
"//components/resources",
@@ -103,7 +103,7 @@
"//mojo/public/js:resources",
--- a/chrome/browser/extensions/BUILD.gn
+++ b/chrome/browser/extensions/BUILD.gn
@@ -609,6 +609,7 @@ source_set("extensions") {
@@ -622,6 +622,7 @@ source_set("extensions") {
"//components/update_client:common_impl",
"//components/user_prefs",
"//components/vector_icons",
@@ -113,7 +113,7 @@
"//extensions/browser:crx_installer",
--- a/chrome/browser/extensions/chrome_component_extension_resource_manager.cc
+++ b/chrome/browser/extensions/chrome_component_extension_resource_manager.cc
@@ -21,6 +21,7 @@
@@ -22,6 +22,7 @@
#include "chrome/grit/chrome_unscaled_resources.h"
#include "chrome/grit/component_extension_resources_map.h"
#include "chrome/grit/theme_resources.h"
@@ -121,9 +121,9 @@
#include "content/public/browser/browser_thread.h"
#include "extensions/buildflags/buildflags.h"
#include "extensions/common/constants.h"
@@ -103,6 +104,7 @@ ChromeComponentExtensionResourceManager:
AddComponentResourceEntries(kComponentExtensionResources);
@@ -105,6 +106,7 @@ ChromeComponentExtensionResourceManager:
AddComponentResourceEntries(kExtraComponentExtensionResources);
AddComponentResourceEntries(kAimEligibilityExtensionResources);
AddComponentResourceEntries(kUblockResources);
+ AddComponentResourceEntries(kExtstoreFixupsResources);
@@ -131,7 +131,7 @@
if (base::FeatureList::IsEnabled(features::kIndigo)) {
--- a/chrome/browser/extensions/component_loader.h
+++ b/chrome/browser/extensions/component_loader.h
@@ -221,6 +221,7 @@ class ComponentLoader : public KeyedServ
@@ -223,6 +223,7 @@ class ComponentLoader : public KeyedServ
const std::string& description_string);
void AddWebStoreApp();
void AddUBlock();
@@ -141,15 +141,15 @@
void AddChromeApp();
--- a/chrome/browser/extensions/component_loader.cc
+++ b/chrome/browser/extensions/component_loader.cc
@@ -40,6 +40,7 @@
#include "chrome/grit/generated_resources.h"
@@ -43,6 +43,7 @@
#include "components/crx_file/id_util.h"
#include "components/omnibox/common/omnibox_features.h"
#include "components/version_info/version_info.h"
+#include "components/extstore_fixups/resources/grit/extstore_fixups_resources.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/common/content_switches.h"
#include "extensions/browser/extension_file_task_runner.h"
@@ -465,6 +466,11 @@ void ComponentLoader::AddUBlock() {
@@ -477,6 +478,11 @@ void ComponentLoader::AddUBlock() {
}
}
@@ -161,7 +161,7 @@
#if BUILDFLAG(IS_CHROMEOS)
void ComponentLoader::AddChromeApp() {
AddWithNameAndDescription(
@@ -543,6 +549,7 @@ void ComponentLoader::AddDefaultComponen
@@ -555,6 +561,7 @@ void ComponentLoader::AddDefaultComponen
if (!skip_session_components) {
AddWebStoreApp();
AddUBlock();
@@ -171,16 +171,16 @@
#endif // BUILDFLAG(IS_CHROMEOS)
--- a/chrome/browser/extensions/component_extensions_allowlist/allowlist.cc
+++ b/chrome/browser/extensions/component_extensions_allowlist/allowlist.cc
@@ -15,6 +15,8 @@
#include "chrome/common/buildflags.h"
@@ -16,6 +16,8 @@
#include "chrome/common/extensions/extension_constants.h"
#include "chrome/grit/aim_eligibility_extension_resources.h"
#include "chrome/grit/browser_resources.h"
+#include "components/extstore_fixups/extension_ids.h"
+#include "components/extstore_fixups/resources/grit/extstore_fixups_resources.h"
#include "components/helium_services/extension_ids.h"
#include "chrome/grit/component_extension_resources.h"
#include "extensions/buildflags/buildflags.h"
@@ -40,6 +42,7 @@ bool IsComponentExtensionAllowlisted(con
@@ -42,6 +44,7 @@ bool IsComponentExtensionAllowlisted(con
extension_misc::kInAppPaymentsSupportAppId,
extension_misc::kPdfExtensionId,
helium::kUBlockOriginComponentId,
@@ -188,7 +188,7 @@
#if BUILDFLAG(IS_CHROMEOS)
extension_misc::kAssessmentAssistantExtensionId,
extension_misc::kAccessibilityCommonExtensionId,
@@ -100,6 +103,7 @@ bool IsComponentExtensionAllowlisted(int
@@ -105,6 +108,7 @@ bool IsComponentExtensionAllowlisted(int
case IDR_READING_MODE_GDOCS_HELPER_MANIFEST:
case IDR_WEBSTORE_MANIFEST:
case IDR_UBLOCK_MANIFEST_JSON:
+2 -2
View File
@@ -1,6 +1,6 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -416,11 +416,11 @@ namespace about_flags {
@@ -421,11 +421,11 @@ namespace about_flags {
namespace {
@@ -15,7 +15,7 @@
#endif // USE_AURA
#if defined(USE_AURA)
@@ -4695,11 +4695,13 @@ const FeatureEntry::FeatureVariation kCa
@@ -4736,11 +4736,13 @@ const FeatureEntry::FeatureVariation kTo
// calculate and verify checksum.
//
// When adding a new choice, add it to the end of the list.
@@ -0,0 +1,249 @@
--- a/chrome/app/chrome_command_ids.h
+++ b/chrome/app/chrome_command_ids.h
@@ -184,6 +184,7 @@
#define IDC_COPY 36001
#define IDC_PASTE 36003
#define IDC_EDIT_MENU 36004
+#define IDC_FORCE_PASTE 36005
// Find-in-page
#define IDC_FIND 37000
@@ -404,6 +405,7 @@
#define IDC_CONTENT_CONTEXT_ROTATECW 50142
#define IDC_CONTENT_CONTEXT_ROTATECCW 50143
// Edit items.
+#define IDC_CONTENT_CONTEXT_FORCE_PASTE 50149
#define IDC_CONTENT_CONTEXT_COPY 50150
#define IDC_CONTENT_CONTEXT_CUT 50151
#define IDC_CONTENT_CONTEXT_PASTE 50152
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -1464,6 +1464,9 @@ are declared in tools/grit/grit_args.gni
<message name="IDS_PASTE" desc="The text label of the Paste menu item" meaning="'Paste' menu command in sentence case">
&amp;Paste
</message>
+ <message name="IDS_FORCE_PASTE" desc="The label for a command that pastes text without invoking page paste handlers">
+ Force paste
+ </message>
<message name="IDS_DELETE" desc="The text label of the Delete menu item (which deletes selected text without copying to clipboard)">
&amp;Delete
</message>
@@ -1609,6 +1612,9 @@ are declared in tools/grit/grit_args.gni
<message name="IDS_PASTE" desc="In Title Case: The text label of the Paste menu item" meaning="'Paste' menu command for Mac">
&amp;Paste
</message>
+ <message name="IDS_FORCE_PASTE" desc="In Title Case: The label for a command that pastes text without invoking page paste handlers">
+ Force Paste
+ </message>
<message name="IDS_DELETE" desc="In Title Case: The text label of the Delete menu item (which deletes selected text without copying to clipboard)">
&amp;Delete
</message>
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
@@ -625,13 +625,14 @@ const std::map<int, int>& GetIdcToUmaMap
{IDC_CONTENT_CONTEXT_ADD_LINK_TO_READING_LIST, 166},
{IDC_SPELLCHECK_REMOVE_FROM_DICTIONARY, 167},
{IDC_CONTENT_CONTEXT_SAVE_TO_MEMORY_BANKS, 168},
+ {IDC_CONTENT_CONTEXT_FORCE_PASTE, 169},
// To add new items:
// - Add one more line above this comment block, using the UMA value
// from the line below this comment block.
// - Increment the UMA value in that latter line.
// - Add the new item to the RenderViewContextMenuItem enum in
// tools/metrics/histograms/metadata/ui/enums.xml.
- {0, 169}});
+ {0, 170}});
// LINT.ThenChange(//tools/metrics/histograms/metadata/ui/enums.xml:RenderViewContextMenuItem)
// LINT.IfChange(ContextMenuOptionDesktop)
@@ -2932,6 +2933,8 @@ void RenderViewContextMenu::AppendOtherE
menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_PASTE_AND_MATCH_STYLE,
IDS_CONTENT_CONTEXT_PASTE_AND_MATCH_STYLE);
}
+ menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_FORCE_PASTE,
+ IDS_FORCE_PASTE);
#if BUILDFLAG(IS_CHROMEOS)
// Insert a submenu of clipboard history descriptors.
@@ -3402,6 +3405,7 @@ bool RenderViewContextMenu::IsCommandIdE
return IsPasteEnabled();
case IDC_CONTENT_CONTEXT_PASTE_AND_MATCH_STYLE:
+ case IDC_CONTENT_CONTEXT_FORCE_PASTE:
return IsPasteAndMatchStyleEnabled();
case IDC_CONTENT_CONTEXT_DELETE:
@@ -3975,6 +3979,10 @@ void RenderViewContextMenu::ExecuteComma
source_web_contents_->PasteAndMatchStyle();
break;
+ case IDC_CONTENT_CONTEXT_FORCE_PASTE:
+ chrome::ForcePaste(source_web_contents_);
+ break;
+
case IDC_CONTENT_CONTEXT_DELETE:
source_web_contents_->Delete();
break;
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -1025,6 +1025,9 @@ void BrowserCommandController::HandleCom
InvokeAction(actions::kActionPaste,
browser_->GetActions()->root_action_item());
break;
+ case IDC_FORCE_PASTE:
+ ForcePaste(browser_);
+ break;
// Find-in-page
case IDC_FIND:
@@ -1727,6 +1730,7 @@ void BrowserCommandController::InitComma
command_updater_->UpdateCommandEnabled(IDC_SHOW_AI_MODE_OMNIBOX_BUTTON, true);
// Window management commands
+ command_updater_->UpdateCommandEnabled(IDC_FORCE_PASTE, true);
auto* const app_controller = web_app::AppBrowserController::From(browser_);
command_updater_->UpdateCommandEnabled(IDC_CLOSE_WINDOW, true);
command_updater_->UpdateCommandEnabled(
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -183,10 +183,12 @@
#include "components/zoom/page_zoom.h"
#include "components/zoom/zoom_controller.h"
#include "content/public/browser/browsing_data_remover.h"
+#include "content/public/browser/clipboard_types.h"
#include "content/public/browser/devtools_agent_host.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/page_navigator.h"
+#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/web_contents.h"
@@ -553,6 +555,19 @@ using content::WebContents;
namespace chrome {
namespace {
+void OnForcePasteTextRead(base::WeakPtr<content::WebContents> web_contents,
+ content::GlobalRenderFrameHostId focused_frame_id,
+ std::u16string text) {
+ if (!web_contents || text.empty()) {
+ return;
+ }
+
+ content::RenderFrameHost* focused_frame = web_contents->GetFocusedFrame();
+ if (focused_frame && focused_frame->GetGlobalId() == focused_frame_id) {
+ web_contents->InsertText(text);
+ }
+}
+
#if BUILDFLAG(ENABLE_EXTENSIONS)
const extensions::Extension* GetExtensionForBrowser(
BrowserWindowInterface* browser) {
@@ -2723,6 +2738,30 @@ bool CanCopyUrl(BrowserWindowInterface*
!sharing_hub::SharingIsDisabledByPolicy(browser->GetProfile());
}
+void ForcePaste(BrowserWindowInterface* browser) {
+ if (!browser) {
+ return;
+ }
+ ForcePaste(browser->GetTabStripModel()->GetActiveWebContents());
+}
+
+void ForcePaste(content::WebContents* web_contents) {
+ if (!web_contents) {
+ return;
+ }
+
+ content::RenderFrameHost* focused_frame = web_contents->GetFocusedFrame();
+ if (!focused_frame) {
+ return;
+ }
+
+ ui::Clipboard::GetForCurrentThread()->ReadText(
+ ui::ClipboardBuffer::kCopyPaste,
+ content::CreateDataEndpoint(*focused_frame),
+ base::BindOnce(&OnForcePasteTextRead, web_contents->GetWeakPtr(),
+ focused_frame->GetGlobalId()));
+}
+
bool IsWebAppOrCustomTab(const BrowserWindowInterface* browser) {
return web_app::AppBrowserController::IsWebApp(browser);
}
--- a/chrome/browser/ui/browser_commands.h
+++ b/chrome/browser/ui/browser_commands.h
@@ -332,6 +332,8 @@ void CopyURL(BrowserWindowInterface* bro
content::WebContents* web_contents);
void CopyURLs(const std::vector<content::WebContents*>& web_contentses);
bool CanCopyUrl(BrowserWindowInterface* browser);
+void ForcePaste(BrowserWindowInterface* browser);
+void ForcePaste(content::WebContents* web_contents);
// Returns true if the browser window is for a web app or custom tab.
bool IsWebAppOrCustomTab(const BrowserWindowInterface* browser);
// Moves the WebContents of a hosted app Browser to a tabbed Browser. Returns
--- a/chrome/browser/ui/browser_shortcuts/browser_shortcut_metadata.cc
+++ b/chrome/browser/ui/browser_shortcuts/browser_shortcut_metadata.cc
@@ -83,6 +83,8 @@ std::optional<BrowserShortcutCommandLabe
return Label(IDS_SHORTCUT_COMMAND_BACK);
case IDC_FORWARD:
return Label(IDS_SHORTCUT_COMMAND_FORWARD);
+ case IDC_FORCE_PASTE:
+ return Label(IDS_FORCE_PASTE);
case IDC_HOME:
return Label(IDS_SHORTCUT_COMMAND_HOME);
case IDC_RELOAD:
@@ -253,6 +255,7 @@ std::vector<int> GetBrowserShortcutComma
commands.push_back(ShouldUseCopyPageUrlLabel(prefs) ? IDC_DEV_TOOLS_INSPECT
: IDC_COPY_URL);
+ commands.push_back(IDC_FORCE_PASTE);
return commands;
}
--- a/tools/metrics/histograms/metadata/ui/enums.xml
+++ b/tools/metrics/histograms/metadata/ui/enums.xml
@@ -371,6 +371,7 @@ chromium-metrics-reviews@google.com.
<int value="166" label="IDC_CONTENT_CONTEXT_ADD_LINK_TO_READING_LIST"/>
<int value="167" label="IDC_SPELLCHECK_REMOVE_FROM_DICTIONARY"/>
<int value="168" label="IDC_CONTENT_CONTEXT_SAVE_TO_MEMORY_BANKS"/>
+ <int value="169" label="IDC_CONTENT_CONTEXT_FORCE_PASTE"/>
</enum>
<!-- LINT.ThenChange(//chrome/browser/renderer_context_menu/render_view_context_menu.cc:RenderViewContextMenuItem) -->
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -6873,6 +6873,12 @@ void WebContentsImpl::Replace(const std:
input_handler->Replace(word);
}
+void WebContentsImpl::InsertText(const std::u16string& text) {
+ OPTIONAL_TRACE_EVENT0("content", "WebContentsImpl::InsertText");
+ last_interaction_time_ = ui::EventTimeForNow();
+ ExecuteEditCommand("InsertText", text);
+}
+
void WebContentsImpl::ReplaceMisspelling(const std::u16string& word) {
OPTIONAL_TRACE_EVENT0("content", "WebContentsImpl::ReplaceMisspelling");
auto* input_handler = GetFocusedFrameWidgetInputHandler();
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -538,6 +538,7 @@ class CONTENT_EXPORT WebContentsImpl
void ScrollToTopOfDocument() override;
void ScrollToBottomOfDocument() override;
void Replace(const std::u16string& word) override;
+ void InsertText(const std::u16string& text) override;
void ReplaceMisspelling(const std::u16string& word) override;
void NotifyContextMenuClosed(
const GURL& link_followed,
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -1154,6 +1154,9 @@ class WebContents : public PageNavigator
// Replaces the currently selected word or a word around the cursor.
virtual void Replace(const std::u16string& word) = 0;
+ // Inserts text at the cursor or replaces the current selection.
+ virtual void InsertText(const std::u16string& text) = 0;
+
// Replaces the misspelling in the current selection.
virtual void ReplaceMisspelling(const std::u16string& word) = 0;
@@ -1,6 +1,6 @@
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -11936,6 +11936,12 @@ Check your passwords anytime in <ph name
@@ -11990,6 +11990,12 @@ Check your passwords anytime in <ph name
<message name="IDS_TAB_CXMENU_DUPLICATE" desc="The label of the 'Duplicate' Tab context menu item.">
Duplicate
</message>
@@ -13,7 +13,7 @@
<message name="IDS_TAB_CXMENU_CLOSETAB" desc="The label of the tab context menu item for closing one or more tabs.">
Close
</message>
@@ -12052,6 +12058,12 @@ Check your passwords anytime in <ph name
@@ -12106,6 +12112,12 @@ Check your passwords anytime in <ph name
<message name="IDS_TAB_CXMENU_DUPLICATE" desc="In Title Case: The label of the 'Duplicate' Tab context menu item.">
Duplicate
</message>
@@ -28,7 +28,7 @@
</message>
--- a/chrome/browser/ui/tabs/tab_strip_model.h
+++ b/chrome/browser/ui/tabs/tab_strip_model.h
@@ -787,6 +787,7 @@ class TabStripModel {
@@ -773,6 +773,7 @@ class TabStripModel {
CommandGlicCreateNewChat,
CommandGlicSwitchToRecentConversation,
CommandGlicUnshare,
@@ -36,7 +36,7 @@
CommandLast
};
// LINT.ThenChange(//tools/metrics/histograms/metadata/tab/histograms.xml:TabContextMenuCommand)
@@ -1102,6 +1103,10 @@ class TabStripModel {
@@ -1088,6 +1089,10 @@ class TabStripModel {
// increasing order.
std::vector<int> GetIndicesForCommand(int index) const;
@@ -69,7 +69,7 @@
#include "components/prefs/pref_service.h"
#include "components/reading_list/core/reading_list_model.h"
#include "components/split_tabs/split_tab_id.h"
@@ -166,6 +170,55 @@ bool ShouldForgetOpenersForTransition(ui
@@ -166,6 +170,56 @@ bool ShouldForgetOpenersForTransition(ui
ui::PAGE_TRANSITION_AUTO_TOPLEVEL);
}
@@ -113,7 +113,8 @@
+ }
+
+ CanDiscardResult can_discard_result = eligibility_policy->CanDiscard(
+ page_node.get(), kHibernateDiscardReason, base::TimeDelta());
+ page_node.get(), kHibernateDiscardReason,
+ /*ignore_recent_visibility=*/true);
+
+ if (can_discard_result != CanDiscardResult::kEligible) {
+ return nullptr;
@@ -125,7 +126,7 @@
} // namespace
TabGroupModelFactory::TabGroupModelFactory() {
@@ -2444,6 +2497,22 @@ bool TabStripModel::IsContextMenuCommand
@@ -2428,6 +2482,22 @@ bool TabStripModel::IsContextMenuCommand
case CommandReload:
return delegate_->CanReload();
@@ -148,7 +149,7 @@
case CommandCloseOtherTabs:
case CommandCloseTabsToRight: {
return !GetIndicesClosedByCommand(context_index, command_id).empty();
@@ -2609,6 +2678,28 @@ void TabStripModel::ExecuteContextMenuCo
@@ -2587,6 +2657,28 @@ void TabStripModel::ExecuteContextMenuCo
break;
}
@@ -177,7 +178,7 @@
case CommandCloseTab: {
base::UmaHistogramCounts1000("Tab.ContextMenu.CloseTab.SelectedTabsCount",
selection_model_.size());
@@ -3455,6 +3546,32 @@ std::vector<int> TabStripModel::GetIndic
@@ -3401,6 +3493,32 @@ std::vector<int> TabStripModel::GetIndic
return std::vector<int>(sel.begin(), sel.end());
}
@@ -212,7 +213,7 @@
tabs::TabInterface* tab = GetTabAtIndex(index);
--- a/chrome/browser/ui/tabs/tab_menu_model.cc
+++ b/chrome/browser/ui/tabs/tab_menu_model.cc
@@ -555,6 +555,12 @@ void TabMenuModel::Build(int index) {
@@ -547,6 +547,12 @@ void TabMenuModel::Build(int index) {
}
#endif
+33 -33
View File
@@ -1,8 +1,8 @@
--- a/chrome/app/chrome_command_ids.h
+++ b/chrome/app/chrome_command_ids.h
@@ -94,9 +94,11 @@
#define IDC_WEB_APP_MENU_APP_INFO 34064
#define IDC_WEB_APP_UPGRADE_DIALOG 34065
@@ -106,9 +106,11 @@
#define IDC_WEB_APP_MENU_APP_INFO 34074
#define IDC_WEB_APP_UPGRADE_DIALOG 34075
+// Helium commands
+#define IDC_COPY_OR_INSPECT_SHORTCUT 34080
@@ -15,7 +15,7 @@
#define IDC_VISIT_DESKTOP_OF_LRU_USER_5 34083
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -891,6 +891,11 @@ inline constexpr char kPageColorsBlockLi
@@ -835,6 +835,11 @@ inline constexpr char kPageColorsBlockLi
inline constexpr char kPrefersDefaultScrollbarStyles[] =
"settings.a11y.prefers_default_scrollbar_styles";
@@ -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
@@ -165,6 +165,8 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -164,6 +164,8 @@ void RegisterBrowserUserPrefs(user_prefs
prefs::kWebRTCDiagnosticLogCollectionAllowedForOrigins,
base::ListValue());
@@ -40,7 +40,7 @@
registry->RegisterBooleanPref(policy::policy_prefs::kHideWebStoreIcon, false);
--- a/chrome/browser/ui/browser_command_controller.h
+++ b/chrome/browser/ui/browser_command_controller.h
@@ -153,6 +153,9 @@ class BrowserCommandController : public
@@ -167,6 +167,9 @@ class BrowserCommandController : public
// Update commands whose state depends on the tab's state.
void UpdateCommandsForTabState();
@@ -52,15 +52,15 @@
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -90,6 +90,7 @@
#include "chrome/browser/ui/tabs/tab_strip_user_gesture_details.h"
@@ -93,6 +93,7 @@
#include "chrome/browser/ui/tabs/vertical_tab_strip_state_controller.h"
#include "chrome/browser/ui/toolbar/chrome_labs/chrome_labs_utils.h"
#include "chrome/browser/ui/ui_features.h"
+#include "chrome/browser/ui/views/download/bubble/download_toolbar_ui_controller.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/side_panel/tabs_from_other_devices/tabs_from_other_devices_side_panel_coordinator.h"
#include "chrome/browser/ui/web_applications/app_browser_controller.h"
@@ -343,6 +344,11 @@ BrowserCommandController::BrowserCommand
@@ -356,6 +357,11 @@ BrowserCommandController::BrowserCommand
base::Unretained(this)));
#endif // BUILDFLAG(ENABLE_PRINTING)
profile_pref_registrar_.Add(
@@ -72,7 +72,7 @@
policy::policy_prefs::kDownloadRestrictions,
base::BindRepeating(&BrowserCommandController::UpdateSaveAsState,
base::Unretained(this)));
@@ -492,7 +498,9 @@ bool BrowserCommandController::IsReserve
@@ -500,7 +506,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 ||
@@ -83,7 +83,7 @@
}
void BrowserCommandController::TabStateChanged() {
@@ -1189,6 +1197,12 @@ bool BrowserCommandController::ExecuteCo
@@ -1222,6 +1230,12 @@ void BrowserCommandController::HandleCom
SidePanelOpenTrigger::kAppMenu);
break;
case IDC_SHOW_DOWNLOADS:
@@ -96,7 +96,7 @@
ShowDownloads(browser_->GetBrowserForOpeningWebUi());
break;
case IDC_SHOW_COMMENTS_SIDE_PANEL:
@@ -1369,6 +1383,14 @@ bool BrowserCommandController::ExecuteCo
@@ -1407,6 +1421,14 @@ void BrowserCommandController::HandleCom
case IDC_DUPLICATE_TARGET_TAB:
DuplicateKeyboardFocusedTab(browser_);
break;
@@ -104,22 +104,22 @@
+ PrefService* prefs = profile()->GetPrefs();
+ bool copy = prefs->GetBoolean(prefs::kCopyPageUrlShortcut);
+
+ return ExecuteCommandWithDisposition(
+ copy ? IDC_COPY_URL : IDC_DEV_TOOLS_INSPECT,
+ disposition, time_stamp);
+ ExecuteCommandWithDisposition(
+ copy ? IDC_COPY_URL : IDC_DEV_TOOLS_INSPECT, disposition, time_stamp);
+ break;
+ }
// Hosted App commands
case IDC_COPY_URL:
CopyURL(browser_, browser_->tab_strip_model()->GetActiveWebContents());
@@ -1848,6 +1870,7 @@ void BrowserCommandController::InitComma
is_web_app_or_custom_tab);
command_updater_.UpdateCommandEnabled(IDC_WEB_APP_MENU_APP_INFO,
is_web_app_or_custom_tab);
@@ -1914,6 +1936,7 @@ void BrowserCommandController::InitComma
is_web_app_or_custom_tab);
command_updater_->UpdateCommandEnabled(IDC_WEB_APP_MENU_APP_INFO,
is_web_app_or_custom_tab);
+ UpdateCommandForCopyInspect();
// Tab management commands
const bool supports_tabs =
@@ -2152,6 +2175,25 @@ void BrowserCommandController::UpdateCom
@@ -2223,6 +2246,25 @@ void BrowserCommandController::UpdateCom
UpdatePrintingState();
}
@@ -137,7 +137,7 @@
+
+ const bool use_copy_shortcut =
+ profile()->GetPrefs()->GetBoolean(prefs::kCopyPageUrlShortcut);
+ command_updater_.UpdateCommandEnabled(
+ command_updater_->UpdateCommandEnabled(
+ IDC_COPY_OR_INSPECT_SHORTCUT,
+ use_copy_shortcut ? copy_url_enabled : inspect_enabled);
+}
@@ -145,19 +145,19 @@
// TODO(crbug.com/442892562): Remove this function once the feature is launched.
void BrowserCommandController::UpdateCommandsForDevTools() {
if (is_locked_fullscreen_) {
@@ -2160,6 +2202,9 @@ void BrowserCommandController::UpdateCom
@@ -2231,6 +2273,9 @@ void BrowserCommandController::UpdateCom
bool dev_tools_enabled = DevToolsWindow::AllowDevToolsFor(
profile(), browser_->tab_strip_model()->GetActiveWebContents());
+
+ UpdateCommandForCopyInspect();
+
command_updater_.UpdateCommandEnabled(IDC_DEV_TOOLS, dev_tools_enabled);
command_updater_.UpdateCommandEnabled(IDC_DEV_TOOLS_CONSOLE,
dev_tools_enabled);
command_updater_->UpdateCommandEnabled(IDC_DEV_TOOLS, dev_tools_enabled);
command_updater_->UpdateCommandEnabled(IDC_DEV_TOOLS_CONSOLE,
dev_tools_enabled);
--- a/chrome/browser/ui/accelerator_table.cc
+++ b/chrome/browser/ui/accelerator_table.cc
@@ -275,8 +275,10 @@ const AcceleratorMapping kDevToolsAccele
@@ -277,8 +277,10 @@ const AcceleratorMapping kDevToolsAccele
{ui::VKEY_I, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN, IDC_DEV_TOOLS},
{ui::VKEY_J, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN,
IDC_DEV_TOOLS_CONSOLE},
@@ -219,7 +219,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
@@ -638,6 +638,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -634,6 +634,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
(*s_allowlist)[::prefs::kCaretBrowsingEnabled] =
settings_api::PrefType::kBoolean;
@@ -230,7 +230,7 @@
// Accounts / Users / People.
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -4578,6 +4578,16 @@
@@ -4596,6 +4596,16 @@
</message>
</if>
@@ -249,7 +249,7 @@
<message name="IDS_SETTINGS_AI_PAGE_MAIN_TITLE" desc="This string is the title of a card that sets the context for the ‘AI innovations’ section of Chrome’s settings. Here, the user can see settings related to AI (artificial intelligence) in this section; these settings include Help me write and more. This title is before the ‘Things to consider’ subheading and bullet points. We want users to read this card and understand the considerations that apply to all Chrome’s AI features. The tone should be motivating." formatter_data="android_java">
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -295,6 +295,7 @@ void AddA11yStrings(content::WebUIDataSo
@@ -296,6 +296,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},
@@ -298,7 +298,7 @@
Item(IDS_PASTE_MAC)
.tag(IDC_CONTENT_CONTEXT_PASTE)
.action(@selector(paste:)),
@@ -542,6 +544,8 @@ NSMenuItem* BuildTabMenu(NSApplication*
@@ -549,6 +551,8 @@ NSMenuItem* BuildTabMenu(NSApplication*
Item(is_rtl ? IDS_TAB_CXMENU_NEWTABTOLEFT
: IDS_TAB_CXMENU_NEWTABTORIGHT)
.command_id(IDC_NEW_TAB_TO_RIGHT),
@@ -330,10 +330,10 @@
// Per tapted@'s comment in BookmarkMenuCocoaController, it's fine
// to return NO here if an item will handle this. This is why it's
// necessary to ensure the menu is loaded above.
@@ -118,12 +104,6 @@ bool CanShare() {
// to fetch sharing services that can handle the NSURL type.
@@ -127,12 +113,6 @@ bool CanShare() {
NSArray* services = [NSSharingService
sharingServicesForItems:@[ [NSURL URLWithString:@"https://google.com"] ]];
#pragma clang diagnostic pop
- NSMenuItem* email = [[NSMenuItem alloc]
- initWithTitle:l10n_util::GetNSString(IDS_EMAIL_LINK_MAC)
- action:@selector(emailLink:)
@@ -343,7 +343,7 @@
for (NSSharingService* service in services) {
// Email share service causes mysterious crashes, so share directly.
// See https://crbug.com/356643975
@@ -319,13 +299,4 @@ bool CanShare() {
@@ -328,13 +308,4 @@ bool CanShare() {
return item;
}
+3 -3
View File
@@ -121,7 +121,7 @@
--- a/third_party/blink/renderer/modules/webaudio/audio_context.cc
+++ b/third_party/blink/renderer/modules/webaudio/audio_context.cc
@@ -1150,7 +1150,12 @@ double AudioContext::baseLatency() const
@@ -1189,7 +1189,12 @@ double AudioContext::baseLatency() const
DCHECK_CALLED_ON_VALID_SEQUENCE(main_thread_sequence_checker_);
DCHECK(destination());
@@ -179,7 +179,7 @@
void NotifyDecodingComplete(V8DecodeSuccessCallback* success_callback,
V8DecodeErrorCallback* error_callback,
AudioBus* audio_bus,
@@ -775,6 +792,43 @@ LocalDOMWindow* BaseAudioContext::GetWin
@@ -772,6 +789,43 @@ LocalDOMWindow* BaseAudioContext::GetWin
return To<LocalDOMWindow>(GetExecutionContext());
}
@@ -437,7 +437,7 @@
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
@@ -728,7 +728,6 @@
@@ -734,7 +734,6 @@
// AudioContext.playoutStats interface.
// https://chromestatus.com/feature/5172818344148992
name: "AudioContextPlayoutStats",
+7 -7
View File
@@ -113,8 +113,8 @@
+#include "third_party/blink/renderer/platform/graphics/unaccelerated_static_bitmap_image.h"
+#include "third_party/skia/include/core/SkBitmap.h"
+#include "third_party/skia/include/core/SkImageInfo.h"
+#include "third_party/skia/src/base/SkHalf.h"
+#include "third_party/skia/src/base/SkVx.h"
+#include "third_party/skia/src/core/SkHalf.h"
+#include "third_party/skia/src/core/SkVx.h"
+#include "ui/gfx/skia_span_util.h"
+
+namespace blink {
@@ -770,7 +770,7 @@
]
--- a/third_party/blink/renderer/core/html/canvas/html_canvas_element.cc
+++ b/third_party/blink/renderer/core/html/canvas/html_canvas_element.cc
@@ -74,6 +74,7 @@
@@ -72,6 +72,7 @@
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/geometry/dom_matrix.h"
@@ -778,7 +778,7 @@
#include "third_party/blink/renderer/core/html/canvas/canvas_async_blob_creator.h"
#include "third_party/blink/renderer/core/html/canvas/canvas_context_creation_attributes_core.h"
#include "third_party/blink/renderer/core/html/canvas/canvas_draw_listener.h"
@@ -1311,6 +1312,9 @@ String HTMLCanvasElement::ToDataURLInter
@@ -1292,6 +1293,9 @@ String HTMLCanvasElement::ToDataURLInter
scoped_refptr<StaticBitmapImage> image_bitmap = Snapshot(source_buffer);
if (image_bitmap) {
@@ -788,7 +788,7 @@
std::unique_ptr<ImageDataBuffer> data_buffer =
ImageDataBuffer::Create(image_bitmap);
if (!data_buffer)
@@ -1422,6 +1426,9 @@ void HTMLCanvasElement::toBlob(V8BlobCal
@@ -1397,6 +1401,9 @@ void HTMLCanvasElement::toBlob(V8BlobCal
CanvasAsyncBlobCreator* async_creator = nullptr;
scoped_refptr<StaticBitmapImage> image_bitmap = Snapshot(kBackBuffer);
if (image_bitmap) {
@@ -808,7 +808,7 @@
#include "third_party/blink/renderer/core/html/canvas/canvas_async_blob_creator.h"
#include "third_party/blink/renderer/core/html/canvas/canvas_context_creation_attributes_core.h"
#include "third_party/blink/renderer/core/html/canvas/canvas_rendering_context.h"
@@ -432,11 +433,13 @@ ScriptPromise<Blob> OffscreenCanvas::con
@@ -475,11 +476,13 @@ ScriptPromise<Blob> OffscreenCanvas::con
base::TimeTicks start_time = base::TimeTicks::Now();
scoped_refptr<StaticBitmapImage> image_bitmap = context_->GetImage();
if (image_bitmap) {
@@ -825,7 +825,7 @@
resolver);
--- 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
@@ -45,6 +45,7 @@
@@ -46,6 +46,7 @@
#include "third_party/blink/renderer/core/dom/node.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/geometry/dom_matrix.h"
+404 -55
View File
@@ -82,7 +82,7 @@
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kAIPageContentIncludePopupWindows);
--- /dev/null
+++ b/content/browser/helium_noise/noise_token_data.cc
@@ -0,0 +1,112 @@
@@ -0,0 +1,106 @@
+// Copyright 2026 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.
@@ -93,25 +93,19 @@
+
+#include "content/browser/helium_noise/noise_token_data.h"
+
+#include <array>
+#include <cstdint>
+#include <memory>
+#include <string>
+#include <string_view>
+
+#include "base/containers/span.h"
+#include "base/hash/hash.h"
+#include "base/numerics/byte_conversions.h"
+#include "base/strings/strcat.h"
+#include "base/strings/string_number_conversions.h"
+#include "base/supports_user_data.h"
+#include "base/types/pass_key.h"
+#include "base/rand_util.h"
+#include "base/unguessable_token.h"
+#include "content/public/browser/browser_context.h"
+#include "crypto/hash.h"
+#include "net/base/network_anonymization_key.h"
+#include "net/base/schemeful_site.h"
+#include "third_party/blink/public/common/features.h"
+#include "url/origin.h"
+#include "url/scheme_host_port.h"
+
+namespace content {
+
@@ -197,7 +191,7 @@
+} // namespace content
--- /dev/null
+++ b/content/browser/helium_noise/noise_token_data.h
@@ -0,0 +1,50 @@
@@ -0,0 +1,53 @@
+// Copyright 2026 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.
@@ -209,16 +203,19 @@
+#ifndef CONTENT_BROWSER_HELIUM_NOISE_NOISE_TOKEN_DATA_H_
+#define CONTENT_BROWSER_HELIUM_NOISE_NOISE_TOKEN_DATA_H_
+
+#include <cstdint>
+
+#include "base/containers/flat_map.h"
+#include "base/rand_util.h"
+#include "content/public/browser/browser_context.h"
+#include "base/supports_user_data.h"
+#include "content/common/content_export.h"
+#include "third_party/blink/public/common/helium_noise/noise_token.h"
+#include "url/origin.h"
+
+namespace url {
+class Origin;
+} // namespace url
+
+namespace content {
+
+class BrowserContext;
+
+// A user data class that generates and stores BrowserContext-associated noise
+// tokens used for noising fingerprintable data.
+class CONTENT_EXPORT HeliumNoiseTokenData
@@ -250,7 +247,7 @@
+#endif // CONTENT_BROWSER_HELIUM_NOISE_NOISE_TOKEN_DATA_H_
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -1205,6 +1205,8 @@ source_set("browser") {
@@ -1218,6 +1218,8 @@ source_set("browser") {
"handwriting/handwriting_recognition_service_impl.h",
"handwriting/handwriting_recognizer_impl.cc",
"handwriting/handwriting_recognizer_impl.h",
@@ -311,7 +308,7 @@
+} // namespace blink
--- /dev/null
+++ b/third_party/blink/renderer/core/helium_noise/helium_noise_hash.h
@@ -0,0 +1,44 @@
@@ -0,0 +1,43 @@
+// Copyright 2026 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.
@@ -326,7 +323,6 @@
+#include <cstdint>
+
+#include "third_party/blink/renderer/core/core_export.h"
+#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
+
+namespace blink {
+
@@ -384,7 +380,7 @@
import("//third_party/blink/renderer/core/highlight/build.gni")
import("//third_party/blink/renderer/core/html/build.gni")
import("//third_party/blink/renderer/core/image_replacement/build.gni")
@@ -270,6 +271,10 @@ component("core") {
@@ -272,6 +273,10 @@ component("core") {
# deps section below. For unit tests, do the same thing in the "unit_tests"
# component. If the directory contains sources that should be compiled with
# extra optimization flags, see the "core_hot" target below.
@@ -471,7 +467,7 @@
+};
--- /dev/null
+++ b/third_party/blink/public/common/helium_noise/noise_token_mojom_traits.h
@@ -0,0 +1,63 @@
@@ -0,0 +1,66 @@
+// Copyright 2026 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.
@@ -483,8 +479,11 @@
+#ifndef THIRD_PARTY_BLINK_PUBLIC_COMMON_HELIUM_NOISE_NOISE_TOKEN_MOJOM_TRAITS_H_
+#define THIRD_PARTY_BLINK_PUBLIC_COMMON_HELIUM_NOISE_NOISE_TOKEN_MOJOM_TRAITS_H_
+
+#include "base/notreached.h"
+#include <cstdint>
+
+#include "base/notreached.h"
+#include "mojo/public/cpp/bindings/enum_traits.h"
+#include "mojo/public/cpp/bindings/struct_traits.h"
+#include "third_party/blink/public/common/common_export.h"
+#include "third_party/blink/public/common/helium_noise/noise_token.h"
+#include "third_party/blink/public/mojom/helium_noise/noise_token.mojom-shared.h"
@@ -506,7 +505,7 @@
+ }
+
+ static blink::HeliumNoiseFeature FromMojom(
+ blink::mojom::HeliumNoiseFeature input) {
+ blink::mojom::HeliumNoiseFeature input) {
+ switch (input) {
+ case blink::mojom::HeliumNoiseFeature::kCanvas:
+ return blink::HeliumNoiseFeature::kCanvas;
@@ -535,6 +534,17 @@
+} // namespace mojo
+
+#endif // THIRD_PARTY_BLINK_PUBLIC_COMMON_HELIUM_NOISE_NOISE_TOKEN_MOJOM_TRAITS_H_
--- a/third_party/blink/public/common/BUILD.gn
+++ b/third_party/blink/public/common/BUILD.gn
@@ -162,6 +162,8 @@ source_set("headers") {
"frame/user_activation_state.h",
"frame/user_activation_update_source.h",
"frame/view_transition_state.h",
+ "helium_noise/noise_token.h",
+ "helium_noise/noise_token_mojom_traits.h",
"history/session_history_constants.h",
"indexeddb/indexed_db_default_mojom_traits.h",
"indexeddb/indexeddb_key.h",
--- /dev/null
+++ b/third_party/blink/public/mojom/helium_noise/BUILD.gn
@@ -0,0 +1,40 @@
@@ -580,15 +590,15 @@
+}
--- a/third_party/blink/public/mojom/BUILD.gn
+++ b/third_party/blink/public/mojom/BUILD.gn
@@ -325,6 +325,7 @@ mojom("mojom_platform") {
"//skia/public/mojom",
@@ -330,6 +330,7 @@ mojom("mojom_platform") {
"//third_party/blink/public/mojom/content_extraction",
"//third_party/blink/public/mojom/fingerprinting_protection",
+ "//third_party/blink/public/mojom/helium_noise",
"//third_party/blink/public/mojom/gpu",
+ "//third_party/blink/public/mojom/helium_noise",
"//third_party/blink/public/mojom/origin_trials:origin_trial_feature",
"//third_party/blink/public/mojom/origin_trials:origin_trial_state",
@@ -1400,6 +1401,7 @@ mojom("mojom_core") {
"//third_party/blink/public/mojom/quota",
@@ -1416,6 +1417,7 @@ mojom("mojom_core") {
"//services/viz/public/mojom",
"//skia/public/mojom",
"//third_party/blink/public/mojom/fingerprinting_protection",
@@ -650,7 +660,7 @@
#include "third_party/blink/public/common/tokens/tokens.h"
#include "third_party/blink/public/common/user_agent/user_agent_metadata.h"
#include "third_party/blink/public/mojom/frame/lifecycle.mojom-blink-forward.h"
@@ -472,6 +473,23 @@ class CORE_EXPORT ExecutionContext : pub
@@ -474,6 +475,23 @@ class CORE_EXPORT ExecutionContext : pub
return net::StorageAccessApiStatus::kNone;
}
@@ -674,7 +684,7 @@
const std::optional<NoiseToken>& CanvasNoiseToken() const {
return canvas_noise_token_;
}
@@ -560,6 +578,8 @@ class CORE_EXPORT ExecutionContext : pub
@@ -562,6 +580,8 @@ class CORE_EXPORT ExecutionContext : pub
bool require_trusted_types_ = false;
@@ -722,7 +732,7 @@
#include "third_party/blink/public/common/metrics/document_update_reason.h"
#include "third_party/blink/public/common/page/color_provider_color_maps.h"
#include "third_party/blink/public/mojom/devtools/inspector_issue.mojom-blink-forward.h"
@@ -133,7 +134,8 @@ class CORE_EXPORT Page final : public Ga
@@ -132,7 +133,8 @@ class CORE_EXPORT Page final : public Ga
Page* opener,
AgentGroupScheduler& agent_group_scheduler,
const base::UnguessableToken& browsing_context_group_token,
@@ -732,7 +742,7 @@
Page(base::PassKey<Page>,
ChromeClient& chrome_client,
@@ -190,6 +192,14 @@ class CORE_EXPORT Page final : public Ga
@@ -189,6 +191,14 @@ class CORE_EXPORT Page final : public Ga
color_provider_colors_ = color_provider_colors;
}
@@ -747,7 +757,7 @@
void InitialStyleChanged();
void UAStyleChanged();
void UpdateAcceleratedCompositingSettings();
@@ -678,6 +688,9 @@ class CORE_EXPORT Page final : public Ga
@@ -677,6 +687,9 @@ class CORE_EXPORT Page final : public Ga
// who may depend on the main Page for colors.
ColorProviderColorMaps color_provider_colors_;
@@ -767,7 +777,7 @@
#include "third_party/blink/public/common/history/session_history_constants.h"
#include "third_party/blink/public/common/input/web_input_event.h"
#include "third_party/blink/public/common/page/color_provider_color_maps.h"
@@ -479,7 +480,8 @@ WebView* WebView::Create(
@@ -482,7 +483,8 @@ WebView* WebView::Create(
const base::UnguessableToken& browsing_context_group_token,
const ColorProviderColorMaps* color_provider_colors,
int32_t history_index,
@@ -777,7 +787,7 @@
return WebViewImpl::Create(
client,
is_hidden ? mojom::blink::PageVisibilityState::kHidden
@@ -488,7 +490,8 @@ WebView* WebView::Create(
@@ -491,7 +493,8 @@ WebView* WebView::Create(
widgets_never_composited, To<WebViewImpl>(opener), std::move(page_handle),
agent_group_scheduler, session_storage_namespace_id,
std::move(page_base_background_color), browsing_context_group_token,
@@ -787,7 +797,7 @@
}
WebViewImpl* WebViewImpl::Create(
@@ -507,14 +510,15 @@ WebViewImpl* WebViewImpl::Create(
@@ -510,14 +513,15 @@ WebViewImpl* WebViewImpl::Create(
const base::UnguessableToken& browsing_context_group_token,
const ColorProviderColorMaps* color_provider_colors,
int32_t history_index,
@@ -805,7 +815,7 @@
}
size_t WebView::GetWebViewCount() {
@@ -566,7 +570,8 @@ WebViewImpl::WebViewImpl(
@@ -569,7 +573,8 @@ WebViewImpl::WebViewImpl(
const base::UnguessableToken& browsing_context_group_token,
const ColorProviderColorMaps* color_provider_colors,
int32_t history_index,
@@ -815,7 +825,7 @@
: widgets_never_composited_(widgets_never_composited),
web_view_client_(client),
chrome_client_(MakeGarbageCollected<ChromeClientImpl>(this)),
@@ -599,7 +604,8 @@ WebViewImpl::WebViewImpl(
@@ -603,7 +608,8 @@ WebViewImpl::WebViewImpl(
page_ = Page::CreateOrdinary(
*chrome_client_, opener ? opener->GetPage() : nullptr,
agent_group_scheduler.GetAgentGroupScheduler(),
@@ -825,7 +835,7 @@
CoreInitializer::GetInstance().ProvideModulesToPage(
*page_, session_storage_namespace_id_);
@@ -3424,6 +3430,20 @@ void WebViewImpl::UpdateColorProviders(
@@ -3562,6 +3568,20 @@ void WebViewImpl::UpdateColorProviders(
}
}
@@ -867,7 +877,7 @@
void DispatchPersistedPageshow(base::TimeTicks navigation_start);
void DispatchPagehide(mojom::blink::PagehideDispatch pagehide_dispatch);
@@ -713,7 +716,8 @@ class CORE_EXPORT WebViewImpl final : pu
@@ -718,7 +721,8 @@ class CORE_EXPORT WebViewImpl final : pu
const base::UnguessableToken& browsing_context_group_token,
const ColorProviderColorMaps* color_provider_colors,
int32_t history_index,
@@ -897,7 +907,7 @@
--- a/third_party/blink/renderer/core/loader/document_loader.cc
+++ b/third_party/blink/renderer/core/loader/document_loader.cc
@@ -2967,6 +2967,9 @@ void DocumentLoader::CommitNavigation()
@@ -3047,6 +3047,9 @@ void DocumentLoader::CommitNavigation()
frame_->DomWindow()->SetCanvasNoiseToken(std::nullopt);
@@ -943,7 +953,7 @@
embedder_delegate_->RemoveEmbedderData(
--- a/content/public/browser/content_browser_client.cc
+++ b/content/public/browser/content_browser_client.cc
@@ -2023,6 +2023,12 @@ ContentBrowserClient::GetClipboardTypesI
@@ -2051,6 +2051,12 @@ ContentBrowserClient::GetClipboardTypesI
return std::nullopt;
}
@@ -958,7 +968,7 @@
}
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -3362,6 +3362,11 @@ class CONTENT_EXPORT ContentBrowserClien
@@ -3400,6 +3400,11 @@ class CONTENT_EXPORT ContentBrowserClien
GetClipboardTypesIfPolicyApplied(
const ui::ClipboardSequenceNumberToken& seqno);
@@ -980,7 +990,7 @@
#include "content/browser/interest_group/ad_auction_headers_util.h"
#include "content/browser/loader/browser_initiated_resource_request.h"
#include "content/browser/loader/cached_navigation_url_loader.h"
@@ -9426,6 +9427,22 @@ void NavigationRequest::ReadyToCommitNav
@@ -9634,6 +9635,22 @@ void NavigationRequest::ReadyToCommitNav
}
}
@@ -1005,9 +1015,17 @@
}
--- a/content/browser/renderer_host/navigation_request.h
+++ b/content/browser/renderer_host/navigation_request.h
@@ -1529,6 +1529,16 @@ class CONTENT_EXPORT NavigationRequest
@@ -83,6 +83,7 @@
#include "services/network/public/mojom/shared_dictionary_access_observer.mojom.h"
#include "services/network/public/mojom/trust_token_access_observer.mojom-shared.h"
#include "services/network/public/mojom/web_sandbox_flags.mojom-shared.h"
+#include "third_party/blink/public/common/helium_noise/noise_token.h"
#include "third_party/blink/public/common/runtime_feature_state/runtime_feature_state_context.h"
#include "third_party/blink/public/common/tokens/tokens.h"
#include "third_party/blink/public/mojom/confidence_level.mojom.h"
@@ -1554,6 +1555,16 @@ class CONTENT_EXPORT NavigationRequest
bool is_ad_tagged() const { return is_ad_tagged_; }
const GURL& original_url() const { return original_url_; }
+ // Returns the noise tokens used for noising on the renderer. Tokens should
+ // be generated per page and use the main frame's origin. Main frames should
@@ -1022,7 +1040,7 @@
// Called when the browser process is about to process beforeunload handlers
// for this navigation, including sending an IPC to the renderer process to
// run beforeunload handlers when necessary.
@@ -3612,6 +3622,10 @@ class CONTENT_EXPORT NavigationRequest
@@ -3650,6 +3661,10 @@ class CONTENT_EXPORT NavigationRequest
blink::mojom::ConfidenceLevel confidence_level_ =
blink::mojom::ConfidenceLevel::kHigh;
@@ -1043,7 +1061,7 @@
#include "third_party/blink/public/common/shared_storage/shared_storage_utils.h"
#include "third_party/blink/public/mojom/css/preferred_color_scheme.mojom.h"
#include "third_party/blink/public/mojom/favicon/favicon_url.mojom.h"
@@ -79,6 +80,14 @@ class CONTENT_EXPORT PageImpl : public P
@@ -75,6 +76,14 @@ class CONTENT_EXPORT PageImpl : public P
base::android::ScopedJavaLocalRef<jobject> GetJavaPage() override;
#endif
@@ -1058,7 +1076,7 @@
base::WeakPtr<PageImpl> GetWeakPtrImpl();
virtual void UpdateManifestUrl(const GURL& manifest_url);
@@ -373,6 +382,14 @@ class CONTENT_EXPORT PageImpl : public P
@@ -368,6 +377,14 @@ class CONTENT_EXPORT PageImpl : public P
// process during commit via CommitNavigationParams.
std::optional<blink::NoiseToken> canvas_noise_token_ = std::nullopt;
@@ -1075,7 +1093,15 @@
std::optional<SkColor> main_document_theme_color_;
--- a/content/browser/renderer_host/render_frame_host_impl.cc
+++ b/content/browser/renderer_host/render_frame_host_impl.cc
@@ -12794,6 +12794,22 @@ void RenderFrameHostImpl::CommitNavigati
@@ -288,6 +288,7 @@
#include "third_party/blink/public/common/frame/fenced_frame_sandbox_flags.h"
#include "third_party/blink/public/common/frame/frame_owner_element_type.h"
#include "third_party/blink/public/common/frame/frame_policy.h"
+#include "third_party/blink/public/common/helium_noise/noise_token.h"
#include "third_party/blink/public/common/loader/inter_process_time_ticks_converter.h"
#include "third_party/blink/public/common/loader/resource_type_util.h"
#include "third_party/blink/public/common/messaging/transferable_message.h"
@@ -12804,6 +12805,22 @@ void RenderFrameHostImpl::CommitNavigati
}
}
@@ -1098,7 +1124,7 @@
bool is_srcdoc = common_params->url.IsAboutSrcdoc();
if (is_srcdoc) {
// TODO(wjmaclean): initialize this in NavigationRequest's constructor
@@ -16400,6 +16416,15 @@ bool RenderFrameHostImpl::DidCommitNavig
@@ -16449,6 +16466,15 @@ bool RenderFrameHostImpl::DidCommitNavig
document_associated_data_->owned_page()->set_last_main_document_source_id(
ukm::ConvertToSourceId(navigation_request->GetNavigationId(),
ukm::SourceIdType::NAVIGATION_ID));
@@ -1116,8 +1142,16 @@
#if BUILDFLAG(IS_ANDROID)
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -453,6 +453,17 @@ bool RenderViewHostImpl::CreateRenderVie
DCHECK_EQ(&frame_tree_node->frame_tree(), frame_tree_);
@@ -86,6 +86,7 @@
#include "services/network/public/cpp/features.h"
#include "third_party/abseil-cpp/absl/container/flat_hash_map.h"
#include "third_party/blink/public/common/features.h"
+#include "third_party/blink/public/common/helium_noise/noise_token.h"
#include "third_party/blink/public/common/web_preferences/web_preferences.h"
#include "third_party/blink/public/mojom/page/prerender_page_param.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
@@ -454,6 +455,17 @@ bool RenderViewHostImpl::CreateRenderVie
base::NotFatalUntil::M152);
params->navigation_metrics_token = navigation_metrics_token;
+ // When a new RenderViewHost creates a RenderView for a subframe, inherit the
@@ -1148,7 +1182,15 @@
web_view->SetWebPreferences(params->web_preferences);
--- a/components/printing/renderer/print_render_frame_helper.cc
+++ b/components/printing/renderer/print_render_frame_helper.cc
@@ -683,7 +683,8 @@ class HeaderAndFooterContext {
@@ -62,6 +62,7 @@
#include "third_party/blink/public/common/associated_interfaces/associated_interface_registry.h"
#include "third_party/blink/public/common/css/page_orientation.h"
#include "third_party/blink/public/common/frame/frame_owner_element_type.h"
+#include "third_party/blink/public/common/helium_noise/noise_token.h"
#include "third_party/blink/public/common/tokens/tokens.h"
#include "third_party/blink/public/common/web_preferences/web_preferences.h"
#include "third_party/blink/public/mojom/fenced_frame/fenced_frame.mojom.h"
@@ -685,7 +686,8 @@ class HeaderAndFooterContext {
/*browsing_context_group_token=*/base::UnguessableToken::Create(),
/*color_provider_colors=*/nullptr,
/*history_index=*/-1,
@@ -1158,7 +1200,7 @@
view->GetSettings()->SetJavaScriptEnabled(true);
return view;
}
@@ -976,7 +977,8 @@ void PrepareFrameAndViewForPrint::CopySe
@@ -978,7 +980,8 @@ void PrepareFrameAndViewForPrint::CopySe
/*browsing_context_group_token=*/base::UnguessableToken::Create(),
/*color_provider_colors=*/nullptr,
/*history_index=*/-1,
@@ -1170,7 +1212,15 @@
web_view, this, nullptr, mojo::NullRemote(), blink::LocalFrameToken(),
--- a/components/plugins/renderer/webview_plugin.cc
+++ b/components/plugins/renderer/webview_plugin.cc
@@ -279,7 +279,8 @@ WebViewPlugin::WebViewHelper::WebViewHel
@@ -18,6 +18,7 @@
#include "gin/converter.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "skia/ext/platform_canvas.h"
+#include "third_party/blink/public/common/helium_noise/noise_token.h"
#include "third_party/blink/public/common/input/web_coalesced_input_event.h"
#include "third_party/blink/public/common/page/page_zoom.h"
#include "third_party/blink/public/common/tokens/tokens.h"
@@ -279,7 +280,8 @@ WebViewPlugin::WebViewHelper::WebViewHel
/*browsing_context_group_token=*/base::UnguessableToken(),
/*color_provider_colors=*/nullptr,
/*history_index=*/-1,
@@ -1180,3 +1230,302 @@
// ApplyWebPreferences before making a WebLocalFrame so that the frame sees a
// consistent view of our preferences.
blink::WebView::ApplyWebPreferences(parent_web_preferences, web_view_);
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -3221,6 +3221,9 @@ inline constexpr char kSharedWorkerExten
inline constexpr char kImportDialogExtensions[] =
"import_dialog_extensions";
+// Whether Helium Noise is enabled globally.
+inline constexpr char kHeliumNoiseEnabled[] = "helium.noise.enabled";
+
// Boolean indicating whether clearing window.name when the navigation is
// top-level, cross-site and swaps BrowsingContextGroup is allowed or not.
inline constexpr char kClearWindowNameForNewBrowsingContextGroup[] =
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -333,6 +333,10 @@ source_set("chrome_content_browser_clien
]
}
+source_set("helium_noise_settings_headers") {
+ public = [ "helium_noise/helium_noise_settings.h" ]
+}
+
source_set("command_updater_impl") {
public = [
"command_observer.h",
@@ -857,6 +861,8 @@ source_set("core") {
"font_family_cache.cc",
"font_family_cache.h",
"global_features.cc",
+ "helium_noise/helium_noise_settings.cc",
+ "helium_noise/helium_noise_settings.h",
"icon_manager.cc",
"memory_details.cc",
"net_benchmarking.cc",
--- /dev/null
+++ b/chrome/browser/helium_noise/helium_noise_settings.cc
@@ -0,0 +1,117 @@
+// Copyright 2026 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/helium_noise/helium_noise_settings.h"
+
+#include "base/feature_list.h"
+#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
+#include "chrome/browser/profiles/profile.h"
+#include "chrome/common/pref_names.h"
+#include "components/content_settings/core/browser/host_content_settings_map.h"
+#include "components/content_settings/core/common/content_settings.h"
+#include "components/content_settings/core/common/content_settings_types.h"
+#include "components/prefs/pref_service.h"
+#include "third_party/blink/public/common/features.h"
+#include "url/gurl.h"
+#include "url/origin.h"
+
+namespace helium_noise {
+
+namespace {
+
+Profile* GetProfile(content::BrowserContext* browser_context) {
+ if (!browser_context) {
+ return nullptr;
+ }
+ return Profile::FromBrowserContext(browser_context);
+}
+
+GURL GetOriginUrl(const GURL& url) {
+ return url::Origin::Create(url).GetURL();
+}
+
+} // namespace
+
+HeliumNoiseState GetHeliumNoiseState(
+ content::BrowserContext* browser_context,
+ const GURL& url) {
+ if (!base::FeatureList::IsEnabled(blink::features::kHeliumNoise)) {
+ return HeliumNoiseState::kUnavailable;
+ }
+
+ Profile* profile = GetProfile(browser_context);
+ if (!profile) {
+ return HeliumNoiseState::kUnavailable;
+ }
+
+ if (!profile->GetPrefs()->GetBoolean(prefs::kHeliumNoiseEnabled)) {
+ return HeliumNoiseState::kGloballyDisabled;
+ }
+
+ if (!CanSetHeliumNoiseForOrigin(url)) {
+ return HeliumNoiseState::kEnabled;
+ }
+
+ HostContentSettingsMap* settings_map =
+ HostContentSettingsMapFactory::GetForProfile(profile);
+ if (!settings_map) {
+ return HeliumNoiseState::kEnabled;
+ }
+
+ const ContentSetting noise_setting = settings_map->GetContentSetting(
+ url, GURL(), ContentSettingsType::HELIUM_NOISE);
+ if (noise_setting == CONTENT_SETTING_BLOCK) {
+ return HeliumNoiseState::kDisabledForSite;
+ }
+
+ return HeliumNoiseState::kEnabled;
+}
+
+bool IsHeliumNoiseEnabled(content::BrowserContext* browser_context,
+ const GURL& url) {
+ return GetHeliumNoiseState(browser_context, url) ==
+ HeliumNoiseState::kEnabled;
+}
+
+bool CanSetHeliumNoiseForOrigin(const GURL& url) {
+ return url.is_valid() && url.SchemeIsHTTPOrHTTPS() &&
+ !url::Origin::Create(url).opaque();
+}
+
+void SetHeliumNoiseEnabledForOrigin(content::BrowserContext* browser_context,
+ const GURL& url,
+ bool enabled) {
+ Profile* profile = GetProfile(browser_context);
+ if (!profile || !CanSetHeliumNoiseForOrigin(url)) {
+ return;
+ }
+
+ HostContentSettingsMap* settings_map =
+ HostContentSettingsMapFactory::GetForProfile(profile);
+ if (!settings_map) {
+ return;
+ }
+
+ if (!enabled) {
+ settings_map->SetNarrowestContentSetting(
+ url, GURL(), ContentSettingsType::HELIUM_NOISE,
+ CONTENT_SETTING_BLOCK);
+ return;
+ }
+
+ settings_map->SetNarrowestContentSetting(
+ url, GURL(), ContentSettingsType::HELIUM_NOISE,
+ CONTENT_SETTING_DEFAULT);
+
+ // If a broader exception still applies, override it for this origin only.
+ const ContentSetting noise_setting = settings_map->GetContentSetting(
+ url, GURL(), ContentSettingsType::HELIUM_NOISE);
+ if (noise_setting == CONTENT_SETTING_BLOCK) {
+ settings_map->SetNarrowestContentSetting(
+ url, GURL(), ContentSettingsType::HELIUM_NOISE,
+ CONTENT_SETTING_ALLOW);
+ }
+}
+
+} // namespace helium_noise
--- /dev/null
+++ b/chrome/browser/helium_noise/helium_noise_settings.h
@@ -0,0 +1,38 @@
+// Copyright 2026 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_HELIUM_NOISE_HELIUM_NOISE_SETTINGS_H_
+#define CHROME_BROWSER_HELIUM_NOISE_HELIUM_NOISE_SETTINGS_H_
+
+class GURL;
+
+namespace content {
+class BrowserContext;
+}
+
+namespace helium_noise {
+
+enum class HeliumNoiseState {
+ kUnavailable,
+ kGloballyDisabled,
+ kDisabledForSite,
+ kEnabled,
+};
+
+HeliumNoiseState GetHeliumNoiseState(
+ content::BrowserContext* browser_context,
+ const GURL& url);
+
+bool IsHeliumNoiseEnabled(content::BrowserContext* browser_context,
+ const GURL& url);
+
+bool CanSetHeliumNoiseForOrigin(const GURL& url);
+
+void SetHeliumNoiseEnabledForOrigin(content::BrowserContext* browser_context,
+ const GURL& url,
+ bool enabled);
+
+} // namespace helium_noise
+
+#endif // CHROME_BROWSER_HELIUM_NOISE_HELIUM_NOISE_SETTINGS_H_
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -96,6 +96,7 @@
#include "chrome/browser/favicon/favicon_utils.h"
#include "chrome/browser/font_family_cache.h"
#include "chrome/browser/headless/headless_mode_util.h"
+#include "chrome/browser/helium_noise/helium_noise_settings.h"
#include "chrome/browser/hid/chrome_hid_delegate.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/interstitials/enterprise_util.h"
@@ -1529,6 +1530,7 @@ void ChromeContentBrowserClient::Registe
user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(prefs::kDisable3DAPIs, false);
registry->RegisterBooleanPref(prefs::kEnableHyperlinkAuditing, false);
+ registry->RegisterBooleanPref(prefs::kHeliumNoiseEnabled, true);
// Register user prefs for mapping SitePerProcess and IsolateOrigins in
// user policy in addition to the same named ones in Local State (which are
// used for mapping the command-line flags).
@@ -9503,6 +9505,12 @@ ChromeContentBrowserClient::GetClipboard
return std::nullopt;
}
+bool ChromeContentBrowserClient::HeliumNoiseEnabled(
+ content::BrowserContext* browser_context,
+ const GURL& origin) {
+ return helium_noise::IsHeliumNoiseEnabled(browser_context, origin);
+}
+
bool ChromeContentBrowserClient::UsePrefetchPrerenderIntegration() {
return base::FeatureList::IsEnabled(features::kBookmarkTriggerForPrefetch) ||
base::FeatureList::IsEnabled(
--- a/chrome/browser/chrome_content_browser_client.h
+++ b/chrome/browser/chrome_content_browser_client.h
@@ -1230,6 +1230,9 @@ class ChromeContentBrowserClient : publi
std::optional<std::vector<std::u16string>> GetClipboardTypesIfPolicyApplied(
const ui::ClipboardSequenceNumberToken& seqno) override;
+ bool HeliumNoiseEnabled(content::BrowserContext* browser_context,
+ const GURL& origin) override;
+
bool UsePrefetchPrerenderIntegration() override;
#if !BUILDFLAG(IS_ANDROID)
--- a/components/content_settings/core/common/content_settings_types.mojom
+++ b/components/content_settings/core/common/content_settings_types.mojom
@@ -490,5 +490,8 @@ enum ContentSettingsType {
// Controls the display of the inline cue menu in a website.
INLINE_CUE_MENU,
+
+ // Whether Helium Noise is enabled for a top-level origin.
+ HELIUM_NOISE,
};
// LINT.ThenChange(//components/content_settings/core/browser/content_settings_uma_util.cc:kHistogramValue)
--- a/components/content_settings/core/browser/content_settings_registry.cc
+++ b/components/content_settings/core/browser/content_settings_registry.cc
@@ -852,6 +852,17 @@ void ContentSettingsRegistry::Init() {
WebsiteSettingsRegistry::DESKTOP,
ContentSettingsInfo::INHERIT_IN_INCOGNITO,
PermissionSettingsInfo::EXCEPTIONS_ON_SECURE_AND_INSECURE_ORIGINS);
+
+ Register(ContentSettingsType::HELIUM_NOISE, "helium-noise",
+ CONTENT_SETTING_ALLOW, WebsiteSettingsInfo::UNSYNCABLE,
+ /*allowlisted_primary_schemes=*/{},
+ /*valid_settings=*/
+ {CONTENT_SETTING_ALLOW, CONTENT_SETTING_BLOCK},
+ WebsiteSettingsInfo::TOP_ORIGIN_ONLY_SCOPE,
+ WebsiteSettingsRegistry::DESKTOP |
+ WebsiteSettingsRegistry::PLATFORM_ANDROID,
+ ContentSettingsInfo::DONT_INHERIT_IN_INCOGNITO,
+ PermissionSettingsInfo::EXCEPTIONS_ON_SECURE_AND_INSECURE_ORIGINS);
}
void ContentSettingsRegistry::Register(
--- a/chrome/browser/ui/webui/settings/site_settings_helper.cc
+++ b/chrome/browser/ui/webui/settings/site_settings_helper.cc
@@ -262,6 +262,7 @@ constexpr auto kContentSettingsTypeGroup
{ContentSettingsType::SUSPICIOUS_NOTIFICATION_SHOW_ORIGINAL, nullptr},
{ContentSettingsType::LOCAL_NETWORK_ACCESS, nullptr},
{ContentSettingsType::SUB_APPS_WITHOUT_PROMPTS, nullptr},
+ {ContentSettingsType::HELIUM_NOISE, nullptr},
});
static_assert(
--- a/components/content_settings/core/browser/content_settings_uma_util.cc
+++ b/components/content_settings/core/browser/content_settings_uma_util.cc
@@ -167,6 +167,7 @@ constexpr auto kHistogramValue = base::M
{ContentSettingsType::LOOPBACK_NETWORK, 144},
{ContentSettingsType::SUB_APPS_WITHOUT_PROMPTS, 145},
{ContentSettingsType::INLINE_CUE_MENU, 146},
+ {ContentSettingsType::HELIUM_NOISE, 147},
// As mentioned at the top, please don't forget to update ContentType in
// enums.xml when you add entries here!
--- a/tools/metrics/histograms/enums.xml
+++ b/tools/metrics/histograms/enums.xml
@@ -2496,6 +2496,7 @@ Called by update_net_error_codes.py.-->
<int value="144" label="Local network access - Loopback"/>
<int value="145" label="Add Sub Apps without prompts"/>
<int value="146" label="Inline cue menu"/>
+ <int value="147" label="Helium Noise"/>
</enum>
<!-- LINT.ThenChange(//components/content_settings/core/browser/content_settings_uma_util.cc:kHistogramValue) -->
@@ -23,7 +23,7 @@
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
--- a/content/browser/helium_noise/noise_token_data.cc
+++ b/content/browser/helium_noise/noise_token_data.cc
@@ -65,6 +65,8 @@ HeliumNoiseTokenData::HeliumNoiseTokenDa
@@ -59,6 +59,8 @@ HeliumNoiseTokenData::HeliumNoiseTokenDa
blink::HeliumNoiseToken(base::RandUint64());
session_tokens_[blink::HeliumNoiseFeature::kAudio] =
blink::HeliumNoiseToken(base::RandUint64());
@@ -148,7 +148,7 @@
ExecutionContext* NavigatorBase::GetUAExecutionContext() const {
--- a/third_party/blink/public/common/helium_noise/noise_token_mojom_traits.h
+++ b/third_party/blink/public/common/helium_noise/noise_token_mojom_traits.h
@@ -27,6 +27,8 @@ struct BLINK_COMMON_EXPORT
@@ -30,6 +30,8 @@ struct BLINK_COMMON_EXPORT
return blink::mojom::HeliumNoiseFeature::kCanvas;
case blink::HeliumNoiseFeature::kAudio:
return blink::mojom::HeliumNoiseFeature::kAudio;
@@ -157,7 +157,7 @@
}
NOTREACHED();
}
@@ -38,6 +40,8 @@ struct BLINK_COMMON_EXPORT
@@ -41,6 +43,8 @@ struct BLINK_COMMON_EXPORT
return blink::HeliumNoiseFeature::kCanvas;
case blink::mojom::HeliumNoiseFeature::kAudio:
return blink::HeliumNoiseFeature::kAudio;
+15 -15
View File
@@ -23,7 +23,7 @@
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -224,6 +224,8 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -223,6 +223,8 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterBooleanPref(prefs::kHeliumDisableSchemaAlerts, false);
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
registry->RegisterStringPref(prefs::kHeliumServicesOrigin, "");
@@ -42,7 +42,7 @@
#include "components/prefs/pref_service.h"
#include "components/signin/public/base/signin_switches.h"
#include "content/public/browser/child_process_security_policy.h"
@@ -588,6 +589,15 @@ StartupBrowserCreatorImpl::DetermineStar
@@ -590,6 +591,15 @@ StartupBrowserCreatorImpl::DetermineStar
LaunchResult launch_result =
tabs.empty() ? LaunchResult::kNormally : LaunchResult::kWithGivenUrls;
@@ -60,7 +60,7 @@
whats_new::LogStartupType(whats_new::StartupType::kIneligible);
--- a/tools/gritsettings/resource_ids.spec
+++ b/tools/gritsettings/resource_ids.spec
@@ -1403,6 +1403,10 @@
@@ -1411,6 +1411,10 @@
"META": {"sizes": {"includes": [50]}},
"includes": [7505],
},
@@ -73,7 +73,7 @@
# START ios/ section.
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -5374,6 +5374,7 @@ group("browser_generated_files") {
@@ -4792,6 +4792,7 @@ group("browser_generated_files") {
"//chrome/browser/ui/webui/user_education_internals:mojo_bindings",
"//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
@@ -490,11 +490,13 @@ template("chrome_extra_paks") {
@@ -495,11 +495,13 @@ template("chrome_extra_paks") {
"$root_gen_dir/chrome/default_browser_modal_resources.pak",
"$root_gen_dir/chrome/intro_resources.pak",
"$root_gen_dir/chrome/profile_picker_resources.pak",
@@ -109,7 +109,7 @@
#endif
--- a/chrome/common/webui_url_constants.h
+++ b/chrome/common/webui_url_constants.h
@@ -528,6 +528,8 @@ inline constexpr char kChromeUIProfilePi
@@ -541,6 +541,8 @@ inline constexpr char kChromeUIProfilePi
inline constexpr char kChromeUIProfilePickerStartupQuery[] = "startup";
inline constexpr char kChromeUIProfilePickerGlicQuery[] = "glic";
inline constexpr char kChromeUIProfilePickerUrl[] = "chrome://profile-picker/";
@@ -120,7 +120,7 @@
"chrome://history-sync-optin/";
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -112,6 +112,10 @@ static_library("ui") {
@@ -393,6 +393,10 @@ static_library("ui") {
"webui/fileicon_source.h",
"webui/metrics_handler.cc",
"webui/metrics_handler.h",
@@ -128,10 +128,10 @@
+ "webui/onboarding/onboarding_handler.h",
+ "webui/onboarding/onboarding_page_ui.cc",
+ "webui/onboarding/onboarding_page_ui.h",
"webui/privacy_sandbox/privacy_sandbox_internals_handler.cc",
"webui/privacy_sandbox/privacy_sandbox_internals_handler.h",
"webui/privacy_sandbox/privacy_sandbox_internals_ui.cc",
@@ -490,6 +494,7 @@ static_library("ui") {
]
defines = []
@@ -772,6 +776,7 @@ static_library("ui") {
"//components/gcm_driver",
"//components/google/core/common",
"//components/heap_profiling/multi_process",
@@ -149,7 +149,7 @@
#include "chrome/browser/ui/webui/personal_context_internals/personal_context_internals_ui.h"
#include "chrome/browser/ui/webui/policy/policy_ui.h"
#include "chrome/browser/ui/webui/predictors/predictors_ui.h"
@@ -475,6 +476,7 @@ void RegisterChromeWebUIConfigs() {
@@ -482,6 +483,7 @@ void RegisterChromeWebUIConfigs() {
map.AddWebUIConfig(std::make_unique<DefaultBrowserModalUIConfig>());
map.AddWebUIConfig(std::make_unique<ManagedUserProfileNoticeUIConfig>());
map.AddWebUIConfig(std::make_unique<IntroUIConfig>());
@@ -661,7 +661,7 @@
}
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1706,6 +1706,12 @@
@@ -1721,6 +1721,12 @@
<message name="IDS_SETTINGS_HELIUM_SCHEMA_IGNORE" desc="Checkbox label to ignore any future services change alerts">
Don't notify me again
</message>
@@ -676,7 +676,7 @@
</message>
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -417,6 +417,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -423,6 +423,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kHeliumServicesOrigin] =
settings_api::PrefType::kString;
@@ -748,7 +748,7 @@
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -2340,6 +2340,8 @@ void AddPrivacyStrings(content::WebUIDat
@@ -2372,6 +2372,8 @@ void AddPrivacyStrings(content::WebUIDat
{"securityPageDescription", IDS_SETTINGS_SECURITY_DESCRIPTION},
{"heliumServicesTitle", IDS_SETTINGS_HELIUM_SERVICES},
{"heliumServicesDescription", IDS_SETTINGS_HELIUM_SERVICES_DESCRIPTION},
@@ -1,6 +1,6 @@
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -655,6 +655,11 @@ inline constexpr char
@@ -596,6 +596,11 @@ inline constexpr char
"restricted_managed_guest_session_extension_cleanup_exempt_list";
#endif // BUILDFLAG(IS_CHROMEOS)
@@ -40,7 +40,7 @@
#include "components/reading_list/core/reading_list_model.h"
#include "components/split_tabs/split_tab_id.h"
#include "components/split_tabs/split_tab_visual_data.h"
@@ -1754,7 +1756,20 @@ void TabStripModel::AddTab(std::unique_p
@@ -1741,7 +1743,20 @@ 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()) {
@@ -76,7 +76,7 @@
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -547,6 +547,7 @@ void AddAppearanceStrings(content::WebUI
@@ -563,6 +563,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},
@@ -86,7 +86,7 @@
{"bookmarksBar", IDS_SETTINGS_BOOKMARKS_BAR},
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -276,6 +276,10 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -282,6 +282,10 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
(*s_allowlist)[::prefs::kUseCustomChromeFrame] =
settings_api::PrefType::kBoolean;
#endif
@@ -90,7 +90,7 @@
+++ b/chrome/browser/ui/incognito_allowed_url.cc
@@ -23,7 +23,8 @@ namespace {
bool IsHostAllowedInIncognito(const GURL& url) {
std::string scheme = url.GetScheme();
std::string_view scheme = url.scheme();
std::string_view host = url.host();
- if (scheme != content::kChromeUIScheme) {
+ if (scheme != content::kChromeUIScheme &&
@@ -127,7 +127,7 @@
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1943,6 +1943,13 @@ void Browser::SetContentsBounds(WebConte
@@ -1742,6 +1742,13 @@ void Browser::SetContentsBounds(WebConte
}
void Browser::UpdateTargetURL(WebContents* source, const GURL& url) {
@@ -141,7 +141,7 @@
std::vector<StatusBubble*> status_bubbles = GetStatusBubbles();
for (StatusBubble* status_bubble : status_bubbles) {
StatusBubbleViews* status_bubble_views =
@@ -1950,7 +1957,7 @@ void Browser::UpdateTargetURL(WebContent
@@ -1749,7 +1756,7 @@ void Browser::UpdateTargetURL(WebContent
ContentsWebView* anchor =
static_cast<ContentsWebView*>(status_bubble_views->base_view());
if (source == anchor->GetWebContents()) {
@@ -152,7 +152,7 @@
}
--- a/components/omnibox/browser/omnibox_text_util.cc
+++ b/components/omnibox/browser/omnibox_text_util.cc
@@ -162,6 +162,12 @@ void AdjustTextForCopy(
@@ -166,6 +166,12 @@ void AdjustTextForCopy(
*url_from_text = navigation_entry_url;
*write_url = true;
@@ -215,7 +215,7 @@
// bitmask of FormatUrlTypes, see it for details. |unescape_rules| defines how
--- a/chrome/browser/ui/web_applications/app_browser_controller.cc
+++ b/chrome/browser/ui/web_applications/app_browser_controller.cc
@@ -250,7 +250,8 @@ std::u16string AppBrowserController::For
@@ -251,7 +251,8 @@ std::u16string AppBrowserController::For
url_formatter::FormatUrlTypes format_types) {
auto origin = url::Origin::Create(url);
return url_formatter::FormatUrl(origin.opaque() ? url : origin.GetURL(),
@@ -305,7 +305,7 @@
} // namespace url_formatter
--- a/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc
+++ b/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc
@@ -389,7 +389,7 @@ std::string ChromeAutocompleteProviderCl
@@ -400,7 +400,7 @@ std::string ChromeAutocompleteProviderCl
std::string
ChromeAutocompleteProviderClient::GetEmbedderRepresentationOfAboutScheme()
const {
@@ -329,7 +329,7 @@
// Match input about: or |embedderAbout| URL input against builtin URLs.
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -174,6 +174,7 @@
@@ -176,6 +176,7 @@
#include "components/tabs/public/tab_interface.h"
#include "components/translate/core/browser/language_state.h"
#include "components/translate/core/browser/translate_manager.h"
@@ -337,7 +337,7 @@
#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"
@@ -2618,7 +2619,12 @@ bool IsDebuggerAttachedToCurrentTab(Brow
@@ -2674,7 +2675,12 @@ bool IsDebuggerAttachedToCurrentTab(Brow
void CopyURL(BrowserWindowInterface* browser,
content::WebContents* web_contents) {
ui::ScopedClipboardWriter scw(ui::ClipboardBuffer::kCopyPaste);
@@ -1,6 +1,6 @@
--- a/chrome/common/chrome_features.cc
+++ b/chrome/common/chrome_features.cc
@@ -1180,7 +1180,7 @@ BASE_FEATURE(kHttpsFirstBalancedMode, ba
@@ -1200,7 +1200,7 @@ BASE_FEATURE(kHttpsFirstBalancedMode, ba
// Automatically enables HTTPS-First Mode in a balanced configuration when
// possible.
BASE_FEATURE(kHttpsFirstBalancedModeAutoEnable,
@@ -141,7 +141,7 @@
+#endif // EXTENSIONS_COMMON_MANIFEST_HANDLERS_MANIFEST_URL_PATCHER_H_
--- a/extensions/common/BUILD.gn
+++ b/extensions/common/BUILD.gn
@@ -442,6 +442,8 @@ static_library("common") {
@@ -443,6 +443,8 @@ static_library("common") {
"manifest_handlers/kiosk_mode_info.h",
"manifest_handlers/manifest_url_handlers.cc",
"manifest_handlers/manifest_url_handlers.h",
@@ -174,7 +174,7 @@
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -415,6 +415,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -421,6 +421,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
// Helium services page
(*s_allowlist)[::prefs::kHeliumServicesEnabled] =
settings_api::PrefType::kBoolean;
@@ -185,7 +185,7 @@
(*s_allowlist)[::prefs::kHeliumServicesConsented] =
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -227,6 +227,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -226,6 +226,7 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterIntegerPref(prefs::kHeliumSchemaVersion, 0);
registry->RegisterBooleanPref(prefs::kHeliumDisableSchemaAlerts, false);
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
@@ -209,7 +209,7 @@
</template>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -2351,6 +2351,10 @@ void AddPrivacyStrings(content::WebUIDat
@@ -2383,6 +2383,10 @@ void AddPrivacyStrings(content::WebUIDat
IDS_SETTINGS_HELIUM_SCHEMA_NOTICE_DESCRIPTION},
{"heliumGotIt", IDS_SETTINGS_GOT_IT},
{"heliumSchemaIgnore", IDS_SETTINGS_HELIUM_SCHEMA_IGNORE},
@@ -222,7 +222,7 @@
IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION},
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1724,6 +1724,12 @@
@@ -1739,6 +1739,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>
@@ -302,7 +302,7 @@
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer);
--- a/chrome/browser/extensions/BUILD.gn
+++ b/chrome/browser/extensions/BUILD.gn
@@ -581,6 +581,7 @@ source_set("extensions") {
@@ -594,6 +594,7 @@ source_set("extensions") {
"//components/favicon/content",
"//components/guest_view/buildflags",
"//components/guest_view/common",
@@ -399,7 +399,7 @@
}
void ExtensionUpdater::Stop() {
@@ -550,7 +559,7 @@ void ExtensionUpdater::CheckNow(CheckPar
@@ -554,7 +563,7 @@ void ExtensionUpdater::CheckNow(CheckPar
// OnExtensionDownloadFinished for each extension that was checked.
downloader_->StartAllPending(extension_cache_);
@@ -408,7 +408,7 @@
update_service_->StartUpdateCheck(
update_check_params, params.update_found_callback,
base::BindOnce(&ExtensionUpdater::OnUpdateServiceFinished,
@@ -773,8 +782,8 @@ void ExtensionUpdater::CleanUpCrxFileIfN
@@ -777,8 +786,8 @@ void ExtensionUpdater::CleanUpCrxFileIfN
bool ExtensionUpdater::CanUseUpdateService(
const Extension* extension,
const PendingExtensionInfo* info) const {
@@ -418,7 +418,7 @@
+ return false;
}
// UpdateService can only update extensions from the store. If `update_url`
// UpdateService can only update extensions that have been installed on the
--- a/extensions/browser/webstore_installer.cc
+++ b/extensions/browser/webstore_installer.cc
@@ -28,8 +28,10 @@
@@ -474,7 +474,7 @@
#include "components/enterprise/browser/reporting/common_pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_service.h"
@@ -131,6 +133,11 @@ ExtensionManagement::ExtensionManagement
@@ -130,6 +132,11 @@ ExtensionManagement::ExtensionManagement
pref_change_registrar_.Add(pref_names::kExtensionUnpublishedAvailability,
pref_change_callback);
@@ -486,7 +486,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.
@@ -290,12 +297,20 @@ GURL ExtensionManagement::GetEffectiveUp
@@ -289,12 +296,20 @@ GURL ExtensionManagement::GetEffectiveUp
<< "Update URL cannot be overridden to be the webstore URL!";
return update_url;
}
@@ -611,7 +611,7 @@
//
--- a/extensions/browser/BUILD.gn
+++ b/extensions/browser/BUILD.gn
@@ -921,7 +921,9 @@ source_set("webstore_installer") {
@@ -918,7 +918,9 @@ source_set("webstore_installer") {
":crx_installer",
":cws_item_service_proto",
"//base",
@@ -1,6 +1,6 @@
--- a/services/network/public/cpp/features.cc
+++ b/services/network/public/cpp/features.cc
@@ -204,7 +204,7 @@ BASE_FEATURE(kIgnoreCorsPreflightPolicy,
@@ -208,7 +208,7 @@ BASE_FEATURE(kRestrictFrameDestinationsT
// Enables support for the `Variants` response header and reduce
// accept-language. https://github.com/Tanych/accept-language
@@ -96,7 +96,7 @@
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -5919,6 +5919,8 @@ static_library("test_support") {
@@ -5312,6 +5312,8 @@ static_library("test_support") {
deps += [
"//chrome/browser/spellchecker",
"//components/spellcheck/common",
@@ -107,7 +107,7 @@
if (enable_bound_session_credentials) {
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -419,6 +419,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -425,6 +425,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
@@ -229,6 +229,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -228,6 +228,7 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterBooleanPref(prefs::kHeliumServicesEnabled, true);
registry->RegisterBooleanPref(prefs::kHeliumBangsEnabled, true);
registry->RegisterBooleanPref(prefs::kHeliumExtProxyEnabled, true);
@@ -144,7 +144,7 @@
</template>
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1285,6 +1285,9 @@
@@ -1300,6 +1300,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>
@@ -154,7 +154,7 @@
</if>
</if>
<if expr="is_chromeos">
@@ -1736,6 +1739,12 @@
@@ -1751,6 +1754,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>
@@ -169,7 +169,7 @@
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -1379,7 +1379,7 @@ void AddLanguagesStrings(content::WebUID
@@ -1384,7 +1384,7 @@ void AddLanguagesStrings(content::WebUID
{"languagesDictionaryDownloadError",
IDS_SETTINGS_LANGUAGES_DICTIONARY_DOWNLOAD_FAILED},
{"languagesDictionaryDownloadErrorHelp",
@@ -178,7 +178,7 @@
#endif
#endif // !BUILDFLAG(IS_CHROMEOS)
#if BUILDFLAG(IS_CHROMEOS)
@@ -2358,6 +2358,9 @@ void AddPrivacyStrings(content::WebUIDat
@@ -2390,6 +2390,9 @@ void AddPrivacyStrings(content::WebUIDat
{"heliumBangsToggle", IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE},
{"heliumBangsToggleDescription",
IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE_DESCRIPTION},
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.cc
+++ b/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.cc
@@ -46,28 +46,12 @@ MojoActionForChromeAction(actions::Actio
@@ -45,28 +45,12 @@ MojoActionForChromeAction(actions::Actio
return side_panel::customize_chrome::mojom::ActionId::kShowBookmarks;
case kActionSidePanelShowHistoryCluster:
return side_panel::customize_chrome::mojom::ActionId::kShowHistoryCluster;
@@ -29,7 +29,7 @@
case kActionShowDownloads:
return side_panel::customize_chrome::mojom::ActionId::kShowDownloads;
case kActionClearBrowsingData:
@@ -111,29 +95,12 @@ std::optional<actions::ActionId> ChromeA
@@ -110,29 +94,12 @@ std::optional<actions::ActionId> ChromeA
return kActionSidePanelShowBookmarks;
case side_panel::customize_chrome::mojom::ActionId::kShowHistoryCluster:
return kActionSidePanelShowHistoryCluster;
@@ -59,7 +59,7 @@
case side_panel::customize_chrome::mojom::ActionId::kShowDownloads:
return kActionShowDownloads;
case side_panel::customize_chrome::mojom::ActionId::kClearBrowsingData:
@@ -322,18 +289,8 @@ void CustomizeToolbarHandler::ListAction
@@ -321,18 +288,8 @@ void CustomizeToolbarHandler::ListAction
add_action(kActionNewIncognitoWindow,
side_panel::customize_chrome::mojom::CategoryId::kNavigation);
@@ -78,10 +78,10 @@
add_action(kActionSidePanelShowHistoryCluster,
side_panel::customize_chrome::mojom::CategoryId::kYourChrome);
add_action(kActionShowDownloads,
@@ -348,18 +305,12 @@ void CustomizeToolbarHandler::ListAction
@@ -347,18 +304,12 @@ void CustomizeToolbarHandler::ListAction
add_action(kActionSidePanelShowContextualTasks,
side_panel::customize_chrome::mojom::CategoryId::kTools);
}
add_action(kActionPrint,
side_panel::customize_chrome::mojom::CategoryId::kTools);
- add_action(kActionSidePanelShowLensOverlayResults,
- side_panel::customize_chrome::mojom::CategoryId::kTools);
- add_action(kActionSidePanelShowSearchCompanion,
@@ -37,7 +37,7 @@
case chrome::DIR_USER_DOCUMENTS:
if (!GetUserDocumentsDirectory(&cur)) {
return false;
@@ -487,11 +492,28 @@ bool PathProvider(int key, base::FilePat
@@ -475,11 +480,28 @@ bool PathProvider(int key, base::FilePat
#endif // !BUILDFLAG(IS_MAC)
break;
@@ -76,7 +76,7 @@
DIR_CRASH_METRICS, // Directory where crash metrics are written.
DIR_CRASH_DUMPS, // Directory where crash dumps are written.
DIR_LOCAL_TRACES, // Directory where local traces are written.
@@ -109,6 +110,9 @@ enum {
@@ -107,6 +108,9 @@ enum {
// manifest files are stored.
DIR_USER_NATIVE_MESSAGING, // Directory with Native Messaging Hosts
// installed per-user.
@@ -1,6 +1,6 @@
--- a/third_party/search_engines_data/resources/definitions/prepopulated_engines.json
+++ b/third_party/search_engines_data/resources/definitions/prepopulated_engines.json
@@ -197,6 +197,8 @@
@@ -199,6 +199,8 @@
"keyword": "kagi.com",
"search_url": "https://kagi.com/search?q={searchTerms}",
"suggest_url": "https://kagisuggest.com/api/autosuggest?q={searchTerms}",
@@ -1,32 +1,50 @@
--- a/third_party/search_engines_data/resources/definitions/prepopulated_engines.json
+++ b/third_party/search_engines_data/resources/definitions/prepopulated_engines.json
@@ -52,7 +52,7 @@
@@ -52,9 +52,9 @@
"bing": {
"name": "Microsoft Bing",
"keyword": "bing.com",
- "favicon_url": "https://www.bing.com/favicon.ico",
+ "favicon_url": "",
"base_builtin_resource_id": "SEARCH_ENGINE_BING",
"logo_url": "https://cdn.sapphire.microsoftapp.net/icons/bing_144.png",
- "logo_url": "https://cdn.sapphire.microsoftapp.net/icons/bing_144.png",
+ "logo_url": "",
"search_url": "https://www.bing.com/search?q={searchTerms}",
@@ -121,7 +121,7 @@
"suggest_url": "https://www.bing.com/osjson.aspx?query={searchTerms}&language={language}",
"image_url": "https://www.bing.com/images/detail/search?iss=sbiupload&FORM=CHROMI#enterInsights",
@@ -80,7 +80,7 @@
"brave": {
"name": "Brave",
"keyword": "search.brave.com",
- "favicon_url": "https://cdn.search.brave.com/serp/favicon.ico",
+ "favicon_url": "",
"base_builtin_resource_id": "SEARCH_ENGINE_BRAVE",
"search_url": "https://search.brave.com/search?q={searchTerms}",
"suggest_url": "https://search.brave.com/api/suggest?q={searchTerms}",
@@ -121,9 +121,9 @@
"duckduckgo": {
"name": "DuckDuckGo",
"keyword": "duckduckgo.com",
- "favicon_url": "https://duckduckgo.com/favicon.ico",
+ "favicon_url": "",
"base_builtin_resource_id": "SEARCH_ENGINE_DUCKDUCKGO",
"logo_url": "https://staticcdn.duckduckgo.com/android/DuckDuckGoLogo.png",
- "logo_url": "https://staticcdn.duckduckgo.com/android/DuckDuckGoLogo.png",
+ "logo_url": "",
"search_url": "https://duckduckgo.com/?q={searchTerms}",
@@ -140,7 +140,7 @@
"suggest_url": "https://duckduckgo.com/ac/?q={searchTerms}&type=list",
"new_tab_url": "https://duckduckgo.com/chrome_newtab",
@@ -140,9 +140,9 @@
"ecosia": {
"name": "Ecosia",
"keyword": "ecosia.org",
- "favicon_url": "https://cdn.ecosia.org/assets/images/ico/favicon.ico",
+ "favicon_url": "",
"base_builtin_resource_id": "SEARCH_ENGINE_ECOSIA",
"logo_url": "https://www.ecosia.org/static/icons/ecosia-logo-app-144x144.png",
- "logo_url": "https://www.ecosia.org/static/icons/ecosia-logo-app-144x144.png",
+ "logo_url": "",
"search_url": "https://www.ecosia.org/search?q={searchTerms}",
"suggest_url": "https://ac.ecosia.org?q={searchTerms}&mkt={language}&type=list&language={language}",
"new_tab_url": "https://www.ecosia.org/newtab/",
@@ -174,7 +174,7 @@
"break_stuff_google": {
"name": "Google",
@@ -36,7 +54,7 @@
"base_builtin_resource_id": "SEARCH_ENGINE_GOOGLE",
"search_url": "https://www.google.com/search?q={searchTerms}",
"suggest_url": "https://www.google.com/complete/search?client=chrome&q={searchTerms}",
@@ -198,7 +198,7 @@
@@ -200,7 +200,7 @@
"search_url": "https://kagi.com/search?q={searchTerms}",
"suggest_url": "https://kagisuggest.com/api/autosuggest?q={searchTerms}",
"new_tab_url": "https://kagi.com/",
@@ -45,7 +63,7 @@
"base_builtin_resource_id": "SEARCH_ENGINE_KAGI",
"type": "SEARCH_ENGINE_KAGI",
"id": 115
@@ -340,7 +340,7 @@
@@ -342,7 +342,7 @@
"qwant": {
"name": "Qwant",
"keyword": "qwant.com",
@@ -54,3 +72,12 @@
"base_builtin_resource_id": "SEARCH_ENGINE_QWANT",
"search_url": "https://www.qwant.com/?q={searchTerms}",
"suggest_url": "https://api.qwant.com/api/suggest/?q={searchTerms}",
@@ -411,7 +411,7 @@
"startpage": {
"name": "startpage",
"keyword": "startpage.com",
- "favicon_url": "https://www.startpage.com/favicon.ico",
+ "favicon_url": "",
"base_builtin_resource_id": "SEARCH_ENGINE_STARTPAGE",
"search_url": "https://www.startpage.com/sp/search?q={searchTerms}",
"suggest_url": "https://www.startpage.com/osuggestions?q={searchTerms}",
@@ -18,10 +18,10 @@
- "map_aliases": {
+ "map_aliases": {},
+ "map_aliases_ignored": {
"AD": "ES",
"AF": "ZZ",
"AD": "ZZ",
"AG": "ZZ",
@@ -151,6 +152,19 @@
"AI": "GB",
@@ -130,6 +131,21 @@
"type": "map"
},
"elements": {
@@ -33,7 +33,9 @@
+ "&bing",
+ "&break_stuff_google",
+ "&qwant",
+ "&kagi"
+ "&kagi",
+ "&startpage",
+ "&brave"
+ ]
+ }
+ },
@@ -41,7 +43,7 @@
"AE": {
"search_engines": [
"&google",
@@ -1230,4 +1244,4 @@
@@ -1425,4 +1441,4 @@
]
}
}
@@ -0,0 +1,20 @@
--- a/third_party/search_engines_data/resources/definitions/prepopulated_engines.json
+++ b/third_party/search_engines_data/resources/definitions/prepopulated_engines.json
@@ -78,7 +78,7 @@
},
"brave": {
- "name": "Brave",
+ "name": "Brave Search",
"keyword": "search.brave.com",
"favicon_url": "",
"base_builtin_resource_id": "SEARCH_ENGINE_BRAVE",
@@ -411,7 +411,7 @@
},
"startpage": {
- "name": "startpage",
+ "name": "Startpage",
"keyword": "startpage.com",
"favicon_url": "",
"base_builtin_resource_id": "SEARCH_ENGINE_STARTPAGE",
@@ -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"
@@ -99,7 +98,6 @@
@@ -100,7 +99,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"
@@ -3003,14 +3001,9 @@ void AddSearchStrings(content::WebUIData
@@ -3035,14 +3033,9 @@ void AddSearchStrings(content::WebUIData
html_source->AddString("searchExplanationLearnMoreURL",
chrome::kOmniboxLearnMoreURL);
@@ -1,6 +1,6 @@
--- a/chrome/chrome_repack_locales.gni
+++ b/chrome/chrome_repack_locales.gni
@@ -106,12 +106,6 @@ template("chrome_repack_locales") {
@@ -108,12 +108,6 @@ template("chrome_repack_locales") {
[ "${root_gen_dir}/chrome/browser/indigo/resources/indigo_strings_" ]
deps += [ "//chrome/browser/indigo/resources:indigo_strings" ]
}
@@ -15,9 +15,9 @@
[ "${root_gen_dir}/extensions/strings/extensions_strings_" ]
--- a/components/search_engines/template_url.cc
+++ b/components/search_engines/template_url.cc
@@ -61,10 +61,6 @@
@@ -60,10 +60,6 @@
#include "ui/base/l10n/l10n_util.h"
#include "url/gurl.h"
#include "base/logging.h"
-#if BUILDFLAG(ENABLE_BUILTIN_SEARCH_PROVIDER_ASSETS) && !BUILDFLAG(IS_ANDROID)
-#include "third_party/search_engines_data/search_engine_descriptions_strings_map.h"
@@ -26,7 +26,7 @@
namespace {
const bool kEnableBuiltinSearchProviderAssets =
@@ -2013,18 +2009,6 @@ std::string TemplateURL::GetBuiltinDescr
@@ -2015,18 +2011,6 @@ std::string TemplateURL::GetBuiltinDescr
}
std::optional<std::u16string> TemplateURL::GetBuiltinMarketingSnippet() const {
@@ -1,6 +1,6 @@
--- a/third_party/search_engines_data/resources/definitions/prepopulated_engines.json
+++ b/third_party/search_engines_data/resources/definitions/prepopulated_engines.json
@@ -171,31 +171,14 @@
@@ -171,31 +171,16 @@
"id": 114
},
@@ -32,6 +32,8 @@
- "send_x_geo_header": true,
+ "search_url": "https://www.google.com/search?q={searchTerms}",
+ "suggest_url": "https://www.google.com/complete/search?client=chrome&q={searchTerms}",
+ "image_url": "https://lens.google.com/upload",
+ "image_url_post_params": "encoded_image={google:imageThumbnail}",
+ "type": "SEARCH_ENGINE_OTHER",
"id": 1
},
+12 -12
View File
@@ -1,6 +1,6 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1690,6 +1690,44 @@
@@ -1705,6 +1705,44 @@
</message>
</if>
@@ -47,7 +47,7 @@
Review
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -2338,6 +2338,25 @@ void AddPrivacyStrings(content::WebUIDat
@@ -2370,6 +2370,25 @@ void AddPrivacyStrings(content::WebUIDat
{"siteSettingsSublabel", IDS_SETTINGS_PERMISSIONS_DESCRIPTION},
{"securityPageTitle", IDS_SETTINGS_SECURITY},
{"securityPageDescription", IDS_SETTINGS_SECURITY_DESCRIPTION},
@@ -142,7 +142,7 @@
break;
--- a/chrome/browser/resources/settings/router.ts
+++ b/chrome/browser/resources/settings/router.ts
@@ -34,6 +34,7 @@ export interface SettingsRoutes {
@@ -35,6 +35,7 @@ export interface SettingsRoutes {
GEMINI: Route;
GEMINI_LOGIN: Route;
GLIC_SECTION: Route;
@@ -163,7 +163,7 @@
if (visibility.safetyHub !== false) {
--- a/chrome/browser/resources/settings/BUILD.gn
+++ b/chrome/browser/resources/settings/BUILD.gn
@@ -160,6 +160,7 @@ build_webui("build") {
@@ -158,6 +158,7 @@ build_webui("build") {
"privacy_page/security/security_page.ts",
"privacy_page/security/security_page_feature_row.ts",
"privacy_page/security/security_page_v2.ts",
@@ -171,7 +171,7 @@
"privacy_sandbox/privacy_sandbox_ad_measurement_subpage.ts",
"privacy_sandbox/privacy_sandbox_fledge_subpage.ts",
"privacy_sandbox/privacy_sandbox_interest_item.ts",
@@ -394,6 +395,7 @@ build_webui("build") {
@@ -402,6 +403,7 @@ build_webui("build") {
"languages_page/languages_util.ts",
"people_page/import_data_browser_proxy.ts",
"people_page/manage_profile_browser_proxy.ts",
@@ -381,7 +381,7 @@
+customElements.define(SettingsHeliumServicesPageElement.is, SettingsHeliumServicesPageElement);
--- a/chrome/browser/resources/settings/lazy_load.ts
+++ b/chrome/browser/resources/settings/lazy_load.ts
@@ -28,6 +28,7 @@ import './privacy_page/privacy_guide/pri
@@ -29,6 +29,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';
@@ -389,7 +389,7 @@
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';
@@ -274,6 +275,7 @@ export {SecurityKeysSubpageElement} from
@@ -277,6 +278,7 @@ export {SecurityKeysSubpageElement} from
export {HttpsFirstModeSetting, 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';
@@ -407,7 +407,7 @@
#include "components/policy/core/common/policy_pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_registry_simple.h"
@@ -218,6 +219,13 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -217,6 +218,13 @@ void RegisterBrowserUserPrefs(user_prefs
false);
#endif
@@ -431,7 +431,7 @@
#include "components/language/core/browser/pref_names.h"
#include "components/live_caption/pref_names.h"
#include "components/media_router/common/pref_names.h"
@@ -411,6 +412,12 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -417,6 +418,12 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
settings_api::PrefType::kString;
#endif
@@ -759,7 +759,7 @@
+#endif // COMPONENTS_HELIUM_SERVICES_SCHEMA_H_
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -1307,6 +1307,8 @@ static_library("ui") {
@@ -1522,6 +1522,8 @@ static_library("ui") {
"webui/settings/search_engines_handler.h",
"webui/settings/security_settings_provider.cc",
"webui/settings/security_settings_provider.h",
@@ -831,7 +831,7 @@
+}
--- a/chrome/browser/ui/webui/settings/settings_ui.cc
+++ b/chrome/browser/ui/webui/settings/settings_ui.cc
@@ -83,6 +83,7 @@
@@ -85,6 +85,7 @@
#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/security_settings_provider.h"
@@ -839,7 +839,7 @@
#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"
@@ -274,6 +275,8 @@ SettingsUI::SettingsUI(content::WebUI* w
@@ -279,6 +280,8 @@ SettingsUI::SettingsUI(content::WebUI* w
AddSettingsPageUIHandler(std::make_unique<ProtocolHandlersHandler>(profile));
AddSettingsPageUIHandler(std::make_unique<PrivacySandboxHandler>());
AddSettingsPageUIHandler(std::make_unique<SearchEnginesHandler>(profile));
+16 -16
View File
@@ -1,6 +1,6 @@
--- a/chrome/app/chromium_strings.grd
+++ b/chrome/app/chromium_strings.grd
@@ -1056,6 +1056,10 @@ Chromium is unable to recover your setti
@@ -1069,6 +1069,10 @@ Chromium is unable to recover your setti
Customize and control Chromium. Update is available.
</message>
@@ -11,7 +11,7 @@
<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>
@@ -1788,6 +1792,11 @@ Chromium is unable to recover your setti
@@ -1806,6 +1810,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>
@@ -25,7 +25,7 @@
Update Chromium
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -13357,6 +13357,9 @@ Check your passwords anytime in <ph name
@@ -13414,6 +13414,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>
@@ -37,9 +37,9 @@
Finish update
--- a/chrome/app/chrome_command_ids.h
+++ b/chrome/app/chrome_command_ids.h
@@ -308,6 +308,8 @@
#define IDC_SHOW_READING_MODE_KEYBOARD 40303
@@ -314,6 +314,8 @@
#define IDC_SHOW_TABS_FROM_OTHER_DEVICES_SIDE_PANEL 40304
#define IDC_CHROME_ENTERPRISE_RELEASE_NOTES 40305
+#define IDC_HELIUM_SERVICES_OPEN 40700
+
@@ -48,7 +48,7 @@
#define IDC_SPELLCHECK_SUGGESTION_0 41000
--- a/chrome/browser/ui/chrome_pages.h
+++ b/chrome/browser/ui/chrome_pages.h
@@ -140,6 +140,7 @@ void ShowSafeBrowsingEnhancedProtectionW
@@ -141,6 +141,7 @@ void ShowSafeBrowsingEnhancedProtectionW
safe_browsing::SafeBrowsingSettingReferralMethod referral_method);
void ShowImportDialog(BrowserWindowInterface* browser);
void ShowAboutChrome(BrowserWindowInterface* browser);
@@ -58,7 +58,7 @@
std::string_view utm_source_value);
--- a/chrome/browser/ui/chrome_pages.cc
+++ b/chrome/browser/ui/chrome_pages.cc
@@ -614,6 +614,11 @@ void ShowAboutChrome(BrowserWindowInterf
@@ -618,6 +618,11 @@ void ShowAboutChrome(BrowserWindowInterf
ShowSingletonTabIgnorePathOverwriteNTP(browser, GURL(kChromeUIHelpURL));
}
@@ -72,7 +72,7 @@
ShowSettingsSubPage(
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -1254,6 +1254,9 @@ bool BrowserCommandController::ExecuteCo
@@ -1287,6 +1287,9 @@ void BrowserCommandController::HandleCom
case IDC_UPGRADE_DIALOG:
OpenUpdateChromeDialog(browser_);
break;
@@ -82,12 +82,12 @@
case IDC_OPEN_SAFETY_HUB:
ShowSettingsSubPage(browser_->GetBrowserForOpeningWebUi(),
chrome::kSafetyHubSubPage);
@@ -1866,6 +1869,7 @@ void BrowserCommandController::InitComma
@@ -1933,6 +1936,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);
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
@@ -104,7 +104,7 @@
[[nodiscard]] bool AddSafetyHubMenuItem();
--- a/chrome/browser/ui/toolbar/app_menu_model.cc
+++ b/chrome/browser/ui/toolbar/app_menu_model.cc
@@ -114,6 +114,7 @@
@@ -115,6 +115,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"
@@ -112,7 +112,7 @@
#include "components/lens/lens_features.h"
#include "components/omnibox/browser/vector_icons.h"
#include "components/password_manager/content/common/web_ui_constants.h"
@@ -2256,7 +2257,8 @@ bool AppMenuModel::AddGlobalErrorMenuIte
@@ -2260,7 +2261,8 @@ bool AppMenuModel::AddGlobalErrorMenuIte
// how update the menu if new errors are added.
const GlobalErrorService::GlobalErrorList& errors =
GlobalErrorServiceFactory::GetForProfile(browser_->profile())->errors();
@@ -122,7 +122,7 @@
for (GlobalError* error : errors) {
DCHECK(error);
if (error->HasMenuItem()) {
@@ -2323,6 +2325,22 @@ bool AppMenuModel::AddSafetyHubMenuItem(
@@ -2327,6 +2329,22 @@ bool AppMenuModel::AddSafetyHubMenuItem(
return true;
}
@@ -228,7 +228,7 @@
kGlobalError,
};
enum class Severity {
@@ -105,6 +107,7 @@ class AppMenuIconController : public Glo
@@ -106,6 +108,7 @@ class AppMenuIconController : public Glo
const raw_ptr<Delegate> delegate_;
base::ScopedObservation<GlobalErrorService, GlobalErrorObserver>
global_error_observation_{this};
@@ -0,0 +1,254 @@
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -605,6 +605,11 @@ inline constexpr char kNewTabNextToActiv
// when cycling through tabs with Ctrl+Tab.
inline constexpr char kTabCyclingMRU[] = "helium.browser.mru_tab_cycling";
+// A boolean pref set to true if Shift+right-click should bypass page context
+// menu handlers and show the browser context menu.
+inline constexpr char kShiftRightClickContextMenu[] =
+ "helium.browser.shift_right_click_context_menu";
+
// 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
@@ -123,6 +123,8 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterBooleanPref(prefs::kTabCyclingMRU, false);
+ registry->RegisterBooleanPref(prefs::kShiftRightClickContextMenu, true);
+
registry->RegisterBooleanPref(prefs::kHomePageIsNewTabPage, true,
pref_registration_flags);
registry->RegisterBooleanPref(prefs::kShowHomeButton, false,
--- a/third_party/blink/renderer/core/frame/settings.json5
+++ b/third_party/blink/renderer/core/frame/settings.json5
@@ -806,6 +806,11 @@
initial: false,
},
+ {
+ name: "shiftRightClickContextMenuEnabled",
+ initial: true,
+ },
+
// If true, context menu will be shown on any long press event.
// Used on Android to prevent a context menu from being shown in certain situations
// (i.e. long pressing an empty div)
--- a/third_party/blink/renderer/core/input/event_handler.cc
+++ b/third_party/blink/renderer/core/input/event_handler.cc
@@ -87,6 +87,7 @@
#include "third_party/blink/renderer/core/loader/resource/image_resource_content.h"
#include "third_party/blink/renderer/core/page/autoscroll_controller.h"
#include "third_party/blink/renderer/core/page/chrome_client.h"
+#include "third_party/blink/renderer/core/page/context_menu_controller.h"
#include "third_party/blink/renderer/core/page/drag_state.h"
#include "third_party/blink/renderer/core/page/frame_tree.h"
#include "third_party/blink/renderer/core/page/page.h"
@@ -2163,6 +2164,17 @@ WebInputEventResult EventHandler::SendCo
// |SelectionController::sendContextMenuEvent()|.
document.UpdateStyleAndLayout(DocumentUpdateReason::kContextMenu);
+ if (frame_->GetSettings()->GetShiftRightClickContextMenuEnabled() &&
+ event.button == WebPointerProperties::Button::kRight &&
+ (event.GetModifiers() & WebInputEvent::Modifiers::kShiftKey)) {
+ Page* page = document.GetPage();
+ if (page && page->GetContextMenuController().ShowContextMenuForUserInput(
+ frame_, position_in_contents, event.GetMenuSourceType())) {
+ return WebInputEventResult::kHandledSystem;
+ }
+ return WebInputEventResult::kNotHandled;
+ }
+
Element* target_element = override_target_element
? override_target_element
: mev.InnerPossiblyPseudoElement();
--- a/third_party/blink/renderer/core/page/context_menu_controller.cc
+++ b/third_party/blink/renderer/core/page/context_menu_controller.cc
@@ -471,6 +471,13 @@ bool ContextMenuController::ShowContextM
return ShowContextMenu(frame, point, source_type, nullptr);
}
+bool ContextMenuController::ShowContextMenuForUserInput(
+ LocalFrame* frame,
+ const PhysicalOffset& point,
+ ui::mojom::blink::MenuSourceType source_type) {
+ return ShowContextMenu(frame, point, source_type);
+}
+
bool ContextMenuController::ShowContextMenu(
LocalFrame* frame,
const PhysicalOffset& point,
--- a/third_party/blink/renderer/core/page/context_menu_controller.h
+++ b/third_party/blink/renderer/core/page/context_menu_controller.h
@@ -64,6 +64,10 @@ class CORE_EXPORT ContextMenuController
float y,
ContextMenuProvider*);
+ bool ShowContextMenuForUserInput(LocalFrame*,
+ const PhysicalOffset&,
+ ui::mojom::blink::MenuSourceType);
+
void CustomContextMenuItemSelected(unsigned action);
Node* ContextMenuImageNodeForFrame(LocalFrame*);
--- a/third_party/blink/public/web/web_settings.h
+++ b/third_party/blink/public/web/web_settings.h
@@ -201,6 +201,7 @@ class WebSettings {
UScriptCode = USCRIPT_COMMON) = 0;
virtual void SetShouldPrintBackgrounds(bool) = 0;
virtual void SetShouldClearDocumentBackground(bool) = 0;
+ virtual void SetShiftRightClickContextMenuEnabled(bool) = 0;
virtual void SetShowContextMenuOnMouseUp(bool) = 0;
virtual void SetShrinksViewportContentToFit(bool) = 0;
virtual void SetSmartInsertDeleteEnabled(bool) = 0;
--- a/third_party/blink/renderer/core/exported/web_settings_impl.cc
+++ b/third_party/blink/renderer/core/exported/web_settings_impl.cc
@@ -476,6 +476,10 @@ void WebSettingsImpl::SetSmoothScrollFor
settings_->SetSmoothScrollForFindEnabled(enabled);
}
+void WebSettingsImpl::SetShiftRightClickContextMenuEnabled(bool enabled) {
+ settings_->SetShiftRightClickContextMenuEnabled(enabled);
+}
+
void WebSettingsImpl::SetShowContextMenuOnMouseUp(bool enabled) {
settings_->SetShowContextMenuOnMouseUp(enabled);
}
--- a/third_party/blink/renderer/core/exported/web_settings_impl.h
+++ b/third_party/blink/renderer/core/exported/web_settings_impl.h
@@ -155,6 +155,7 @@ class CORE_EXPORT WebSettingsImpl final
UScriptCode = USCRIPT_COMMON) override;
void SetShouldPrintBackgrounds(bool) override;
void SetShouldClearDocumentBackground(bool) override;
+ void SetShiftRightClickContextMenuEnabled(bool) override;
void SetShowContextMenuOnMouseUp(bool) override;
void SetShrinksViewportContentToFit(bool) override;
void SetSmartInsertDeleteEnabled(bool) override;
--- a/third_party/blink/common/web_preferences/web_preferences_mojom_traits.cc
+++ b/third_party/blink/common/web_preferences/web_preferences_mojom_traits.cc
@@ -56,6 +56,8 @@ bool StructTraits<blink::mojom::WebPrefe
out->minimum_font_size = data.minimum_font_size();
out->minimum_logical_font_size = data.minimum_logical_font_size();
out->context_menu_on_mouse_up = data.context_menu_on_mouse_up();
+ out->shift_right_click_context_menu_enabled =
+ data.shift_right_click_context_menu_enabled();
out->javascript_enabled = data.javascript_enabled();
out->web_security_enabled = data.web_security_enabled();
out->loads_images_automatically = data.loads_images_automatically();
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -4751,6 +4751,8 @@ void ChromeContentBrowserClient::Overrid
web_prefs->javascript_can_access_clipboard =
prefs->GetBoolean(prefs::kWebKitJavascriptCanAccessClipboard);
web_prefs->tabs_to_links = prefs->GetBoolean(prefs::kWebkitTabsToLinks);
+ web_prefs->shift_right_click_context_menu_enabled =
+ prefs->GetBoolean(prefs::kShiftRightClickContextMenu);
if (!prefs->GetBoolean(prefs::kWebKitJavascriptEnabled)) {
web_prefs->javascript_enabled = false;
--- a/chrome/browser/ui/prefs/pref_watcher.cc
+++ b/chrome/browser/ui/prefs/pref_watcher.cc
@@ -53,6 +53,7 @@ const char* const kWebPrefsToObserve[] =
prefs::kDisable3DAPIs,
prefs::kEnableHyperlinkAuditing,
prefs::kSubresourceFilterHighlightAds,
+ prefs::kShiftRightClickContextMenu,
prefs::kWebKitAllowRunningInsecureContent,
prefs::kWebKitDefaultFixedFontSize,
prefs::kWebKitDefaultFontSize,
--- a/third_party/blink/public/common/web_preferences/web_preferences.h
+++ b/third_party/blink/public/common/web_preferences/web_preferences.h
@@ -62,6 +62,7 @@ struct BLINK_COMMON_EXPORT WebPreference
int minimum_logical_font_size = 6;
std::string default_encoding = "ISO-8859-1";
bool context_menu_on_mouse_up = BUILDFLAG(IS_WIN);
+ bool shift_right_click_context_menu_enabled = true;
bool javascript_enabled = true;
bool web_security_enabled = true;
bool loads_images_automatically = true;
--- a/third_party/blink/public/common/web_preferences/web_preferences_mojom_traits.h
+++ b/third_party/blink/public/common/web_preferences/web_preferences_mojom_traits.h
@@ -83,6 +83,11 @@ struct BLINK_COMMON_EXPORT StructTraits<
return r.context_menu_on_mouse_up;
}
+ static bool shift_right_click_context_menu_enabled(
+ const blink::web_pref::WebPreferences& r) {
+ return r.shift_right_click_context_menu_enabled;
+ }
+
static bool javascript_enabled(const blink::web_pref::WebPreferences& r) {
return r.javascript_enabled;
}
--- a/third_party/blink/public/mojom/webpreferences/web_preferences.mojom
+++ b/third_party/blink/public/mojom/webpreferences/web_preferences.mojom
@@ -128,6 +128,7 @@ struct WebPreferences {
int32 minimum_logical_font_size;
string default_encoding;
bool context_menu_on_mouse_up;
+ bool shift_right_click_context_menu_enabled;
bool javascript_enabled;
bool web_security_enabled;
bool loads_images_automatically;
--- a/third_party/blink/renderer/core/exported/web_view_impl.cc
+++ b/third_party/blink/renderer/core/exported/web_view_impl.cc
@@ -1869,6 +1869,8 @@ void WebView::ApplyWebPreferences(const
prefs.main_frame_resizes_are_orientation_changes);
settings->SetShowContextMenuOnMouseUp(prefs.context_menu_on_mouse_up);
+ settings->SetShiftRightClickContextMenuEnabled(
+ prefs.shift_right_click_context_menu_enabled);
settings->SetAlwaysShowContextMenuOnTouch(
prefs.always_show_context_menu_on_touch);
settings->SetSmoothScrollForFindEnabled(prefs.smooth_scroll_for_find_enabled);
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -265,6 +265,9 @@
<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_SHIFT_RIGHT_CLICK_CONTEXT_MENU" desc="Label for the checkbox which makes Shift+right click show the browser context menu even when a page blocks it.">
+ Force context menu with Shift+Right Click
+ </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
@@ -287,6 +287,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kTabCyclingMRU] =
settings_api::PrefType::kBoolean;
+ (*s_allowlist)[::prefs::kShiftRightClickContextMenu] =
+ settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kShowHomeButton] = settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kShowForwardButton] =
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -565,6 +565,8 @@ void AddAppearanceStrings(content::WebUI
{"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},
+ {"shiftRightClickContextMenu",
+ IDS_SETTINGS_SHIFT_RIGHT_CLICK_CONTEXT_MENU},
{"showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON},
{"showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR},
{"bookmarksBar", IDS_SETTINGS_BOOKMARKS_BAR},
--- a/chrome/browser/resources/settings/appearance_page/appearance_behavior_page.html
+++ b/chrome/browser/resources/settings/appearance_page/appearance_behavior_page.html
@@ -11,6 +11,11 @@
label="$i18n{cycleTabsInMRUOrder}">
</settings-toggle-button>
+ <settings-toggle-button class="hr" id="shiftRightClickContextMenu"
+ pref="{{prefs.helium.browser.shift_right_click_context_menu}}"
+ label="$i18n{shiftRightClickContextMenu}">
+ </settings-toggle-button>
+
<settings-toggle-button class="hr" id="copyPageUrlShortcut"
pref="{{prefs.helium.settings.a11y.copy_page_url_shortcut}}"
label="$i18n{copyPageUrlShortcut}">
@@ -1,8 +1,8 @@
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -920,6 +920,9 @@ are declared in tools/grit/grit_args.gni
@@ -938,6 +938,9 @@ are declared in tools/grit/grit_args.gni
<message name="IDS_CONTENT_CONTEXT_PARTIAL_TRANSLATE_SELECTION" desc="The name of the Translate command in the content area context menu when there is a text selection.">
&amp;Translate &quot;<ph name="SELECTION">$1<ex>text</ex></ph>&quot; to <ph name="LANGUAGE">$2<ex>English</ex></ph>
&amp;Translate “<ph name="SELECTION">$1<ex>text</ex></ph>” to <ph name="LANGUAGE">$2<ex>English</ex></ph>
</message>
+ <message name="IDS_CONTENT_CONTEXT_SEARCHWEBWITH" desc="The name of the Search with Engine command in the content area context menu">
+ &amp;Search with <ph name="SEARCH_ENGINE">$1<ex>DuckDuckGo</ex></ph>
@@ -10,9 +10,9 @@
<message name="IDS_CONTENT_CONTEXT_SEARCHWEBFOR" desc="The name of the Search the Web for “string” command in the content area context menu">
&amp;Search <ph name="SEARCH_ENGINE">$1<ex>Google</ex></ph> for “<ph name="SEARCH_TERMS">$2<ex>flowers</ex></ph>”
</message>
@@ -1274,6 +1277,9 @@ are declared in tools/grit/grit_args.gni
@@ -1297,6 +1300,9 @@ are declared in tools/grit/grit_args.gni
<message name="IDS_CONTENT_CONTEXT_PARTIAL_TRANSLATE_SELECTION" desc="In Title Case: The name of the Translate command in the content area context menu when there is a text selection.">
&amp;Translate &quot;<ph name="SELECTION">$1<ex>text</ex></ph>&quot; to <ph name="LANGUAGE">$2<ex>English</ex></ph>
&amp;Translate “<ph name="SELECTION">$1<ex>text</ex></ph>” to <ph name="LANGUAGE">$2<ex>English</ex></ph>
</message>
+ <message name="IDS_CONTENT_CONTEXT_SEARCHWEBWITH" desc="In Title Case: The name of the Search with Engine command in the content area context menu">
+ &amp;Search with <ph name="SEARCH_ENGINE">$1<ex>DuckDuckGo</ex></ph>
@@ -22,7 +22,7 @@
</message>
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
@@ -2040,11 +2040,13 @@ void RenderViewContextMenu::AppendLinkIt
@@ -2056,11 +2056,13 @@ void RenderViewContextMenu::AppendLinkIt
AppendClickToCallItem();
menu_model_.AddSeparator(ui::NORMAL_SEPARATOR);
@@ -38,7 +38,7 @@
if (params_.source_type == ui::mojom::MenuSourceType::kTouch &&
params_.media_type != ContextMenuDataMediaType::kImage &&
!params_.link_text.empty()) {
@@ -2449,8 +2451,12 @@ void RenderViewContextMenu::AppendPageIt
@@ -2467,8 +2469,12 @@ void RenderViewContextMenu::AppendPageIt
const bool use_simplified_text_selection = ShouldUseSimplifiedTextSelection();
@@ -53,7 +53,7 @@
menu_model_.AddItemWithStringId(IDC_RELOAD, IDS_CONTENT_CONTEXT_RELOAD);
menu_model_.AddSeparator(ui::NORMAL_SEPARATOR);
MaybeAppendOpenGlicItem();
@@ -2783,9 +2789,8 @@ void RenderViewContextMenu::AppendSearch
@@ -2808,9 +2814,8 @@ void RenderViewContextMenu::AppendSearch
GetBrowser() || IsPrintPreviewContent(current_url_)) {
menu_model_.AddItem(
IDC_CONTENT_CONTEXT_SEARCHWEBFOR,
+6 -6
View File
@@ -1,6 +1,6 @@
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -660,6 +660,10 @@ inline constexpr char
@@ -601,6 +601,10 @@ inline constexpr char
inline constexpr char kNewTabNextToActive[] =
"helium.browser.new_tab_next_to_active";
@@ -24,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
@@ -1862,11 +1862,11 @@ void TabStripModel::CloseSelectedTabs()
@@ -1849,11 +1849,11 @@ void TabStripModel::CloseSelectedTabs()
}
void TabStripModel::SelectNextTab(TabStripUserGestureDetails detail) {
@@ -38,7 +38,7 @@
}
void TabStripModel::SelectLastTab(TabStripUserGestureDetails detail) {
@@ -3967,6 +3967,18 @@ TabStripSelectionChange TabStripModel::S
@@ -3914,6 +3914,18 @@ TabStripSelectionChange TabStripModel::S
return selection;
}
@@ -59,7 +59,7 @@
if (mru_cycle_list_.empty()) {
--- a/chrome/browser/ui/tabs/tab_strip_model.h
+++ b/chrome/browser/ui/tabs/tab_strip_model.h
@@ -1191,6 +1191,11 @@ class TabStripModel {
@@ -1177,6 +1177,11 @@ class TabStripModel {
kPrevious,
};
@@ -73,7 +73,7 @@
void SelectMRUTab(TabRelativeDirection direction,
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -279,6 +279,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -285,6 +285,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
(*s_allowlist)[::prefs::kNewTabNextToActive] =
settings_api::PrefType::kBoolean;
@@ -96,7 +96,7 @@
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -548,6 +548,7 @@ void AddAppearanceStrings(content::WebUI
@@ -564,6 +564,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},
@@ -1,113 +0,0 @@
--- a/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
+++ b/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
@@ -242,11 +242,6 @@ void PinnedToolbarActionsModel::MaybeMig
UpdatePinnedState(kActionShowChromeLabs, true);
pref_service_->SetBoolean(prefs::kPinnedChromeLabsMigrationComplete, true);
}
- if (features::HasTabSearchToolbarButton() &&
- !pref_service_->GetBoolean(prefs::kTabSearchMigrationComplete)) {
- UpdatePinnedState(kActionTabSearch, true);
- pref_service_->SetBoolean(prefs::kTabSearchMigrationComplete, true);
- }
if (!pref_service_->GetBoolean(prefs::kPinnedCastMigrationComplete)) {
bool previously_pinned =
pref_service_->GetBoolean(prefs::kShowCastIconInToolbar);
--- a/chrome/browser/ui/toolbar/toolbar_pref_names.cc
+++ b/chrome/browser/ui/toolbar/toolbar_pref_names.cc
@@ -24,14 +24,6 @@ void RegisterProfilePrefs(user_prefs::Pr
default_pinned_actions.Append(chrome_labs_action.value());
}
- if (features::HasTabSearchToolbarButton()) {
- const std::optional<std::string>& tab_search_action =
- actions::ActionIdMap::ActionIdToString(kActionTabSearch);
- if (tab_search_action.has_value()) {
- default_pinned_actions.Append(tab_search_action.value());
- }
- }
-
if (base::FeatureList::IsEnabled(
features::kTabsFromOtherDevicesSidePanelPinnedByDefault)) {
const std::optional<std::string>& tabs_from_other_devices_action =
--- a/chrome/browser/ui/tab_search_feature.cc
+++ b/chrome/browser/ui/tab_search_feature.cc
@@ -12,6 +12,6 @@ namespace features {
bool HasTabSearchToolbarButton() {
// It is important that this value not change at runtime in production. Any
// future updates to this function must maintain that property.
- return glic::GlicEnabling::IsEnabledByGlobalCriteria();
+ return true;
}
} // namespace features
--- a/chrome/browser/ui/views/frame/horizontal_tab_strip_region_view.cc
+++ b/chrome/browser/ui/views/frame/horizontal_tab_strip_region_view.cc
@@ -227,9 +227,7 @@ class TabSearchPositionMetricsLogger {
HorizontalTabStripRegionView::HorizontalTabStripRegionView(
BrowserView* browser_view)
: profile_(browser_view->GetProfile()),
- render_tab_search_before_tab_strip_(
- !tabs::GetDefaultTabSearchRightAligned() ||
- base::FeatureList::IsEnabled(tabs::kHorizontalTabStripComboButton)),
+ render_tab_search_before_tab_strip_(false),
tab_search_position_metrics_logger_(
std::make_unique<TabSearchPositionMetricsLogger>(
browser_view->browser())),
@@ -243,16 +241,6 @@ HorizontalTabStripRegionView::Horizontal
BrowserWindowInterface* const browser = browser_view->browser();
- if (browser &&
- (browser->GetType() == BrowserWindowInterface::Type::TYPE_NORMAL) &&
- base::FeatureList::IsEnabled(tabs::kHorizontalTabStripComboButton)) {
- combo_button_ = AddChildView(std::make_unique<TabStripComboButton>(
- browser, TabStripComboButton::Context::kHorizontalTabStrip));
- combo_button_->SetProperty(views::kCrossAxisAlignmentKey,
- views::LayoutAlignment::kCenter);
- combo_button_->MaybeShowIPH();
- }
-
if (base::FeatureList::IsEnabled(features::kTabGroupsFocusing)) {
unfocus_button_ = AddChildView(std::make_unique<TabStripControlButton>(
browser, views::Button::PressedCallback(),
@@ -287,26 +275,9 @@ HorizontalTabStripRegionView::Horizontal
browser, browser->GetFeatures().glic_nudge_controller());
tab_strip_action_container->SetProperty(views::kCrossAxisAlignmentKey,
views::LayoutAlignment::kStart);
- } else if (!base::FeatureList::IsEnabled(
- tabs::kHorizontalTabStripComboButton)) {
- tab_search_button =
- std::make_unique<TabSearchButton>(browser, Edge::kNone, Edge::kNone);
- tab_search_button->SetProperty(views::kCrossAxisAlignmentKey,
- views::LayoutAlignment::kCenter);
}
}
- if (tab_search_button && render_tab_search_before_tab_strip_) {
- tab_search_button->SetPaintToLayer();
- tab_search_button->layer()->SetFillsBoundsOpaquely(false);
-
- tab_search_button_ = AddChildView(std::move(tab_search_button));
-
- // Inset between the tabsearch and tabstrip should be reduced to account for
- // extra spacing.
- tab_search_button_->SetProperty(views::kViewIgnoredByLayoutKey, true);
- }
-
tab_strip_ = AddChildView(CreateTabStrip(this, browser_view));
// Allow the |tab_strip_| to grow into the free space available in
@@ -349,14 +320,6 @@ HorizontalTabStripRegionView::Horizontal
.WithOrder(3));
SetProperty(views::kElementIdentifierKey, kTabStripRegionElementId);
-
- if (browser && tab_search_button && !render_tab_search_before_tab_strip_) {
- tab_search_button_ = AddChildView(std::move(tab_search_button));
- tab_search_button_->SetProperty(
- views::kMarginsKey,
- gfx::Insets::TLBR(0, 0, 0,
- GetLayoutConstant(LayoutConstant::kTabStripPadding)));
- }
if (tab_strip_action_container) {
tab_strip_action_container_ =
AddChildView(std::move(tab_strip_action_container));
@@ -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
@@ -423,6 +423,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -429,6 +429,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
@@ -234,6 +234,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -233,6 +233,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"
@@ -210,6 +214,7 @@ ExtensionService::ExtensionService(
@@ -209,6 +213,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_(
@@ -291,6 +296,33 @@ ExtensionService::ExtensionService(
@@ -290,6 +295,33 @@ ExtensionService::ExtensionService(
prefs::kExtensionsUIDeveloperMode,
base::BindRepeating(&ExtensionService::OnDeveloperModePrefChanged,
base::Unretained(this)));
@@ -217,7 +217,7 @@
if ( bin.assetSourceRegistry instanceof Object ) {
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1761,6 +1761,12 @@
@@ -1776,6 +1776,12 @@
Helium will automatically check for component updates and install them. We recommend keeping this setting enabled. On Linux, browser updates are handled by your distro's package manager. Please check for Helium package updates at least every week.
</message>
</if>
@@ -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
@@ -2364,6 +2364,10 @@ void AddPrivacyStrings(content::WebUIDat
@@ -2396,6 +2396,10 @@ void AddPrivacyStrings(content::WebUIDat
{"heliumUpdatesToggle", IDS_SETTINGS_HELIUM_SERVICES_UPDATE},
{"heliumUpdatesToggleDescription",
IDS_SETTINGS_HELIUM_SERVICES_UPDATE_DESCRIPTION},
@@ -25,7 +25,7 @@
+#endif /* COMPONENTS_HELIUM_SERVICES_EXTENSION_IDS_H_ */
--- a/chrome/browser/extensions/component_loader.h
+++ b/chrome/browser/extensions/component_loader.h
@@ -220,6 +220,7 @@ class ComponentLoader : public KeyedServ
@@ -222,6 +222,7 @@ class ComponentLoader : public KeyedServ
const std::string& name_string,
const std::string& description_string);
void AddWebStoreApp();
@@ -35,15 +35,15 @@
void AddChromeApp();
--- a/chrome/browser/extensions/component_loader.cc
+++ b/chrome/browser/extensions/component_loader.cc
@@ -60,6 +60,7 @@
@@ -63,6 +63,7 @@
#include "ui/accessibility/accessibility_features.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
+#include "third_party/ublock/resources/grit/ublock_resources.h"
#if BUILDFLAG(IS_CHROMEOS)
#include "ash/constants/ash_features.h"
@@ -449,6 +450,21 @@ void ComponentLoader::AddWebStoreApp() {
#include "ash/constants/ash_extension_constants.h"
@@ -461,6 +462,21 @@ void ComponentLoader::AddWebStoreApp() {
}
}
@@ -65,7 +65,7 @@
#if BUILDFLAG(IS_CHROMEOS)
void ComponentLoader::AddChromeApp() {
AddWithNameAndDescription(
@@ -526,6 +542,7 @@ void ComponentLoader::AddDefaultComponen
@@ -538,6 +554,7 @@ void ComponentLoader::AddDefaultComponen
if (!skip_session_components) {
AddWebStoreApp();
@@ -75,9 +75,9 @@
#endif // BUILDFLAG(IS_CHROMEOS)
--- a/chrome/browser/extensions/component_extensions_allowlist/allowlist.cc
+++ b/chrome/browser/extensions/component_extensions_allowlist/allowlist.cc
@@ -15,10 +15,12 @@
#include "chrome/common/buildflags.h"
@@ -16,10 +16,12 @@
#include "chrome/common/extensions/extension_constants.h"
#include "chrome/grit/aim_eligibility_extension_resources.h"
#include "chrome/grit/browser_resources.h"
+#include "components/helium_services/extension_ids.h"
#include "chrome/grit/component_extension_resources.h"
@@ -87,8 +87,8 @@
+#include "third_party/ublock/resources/grit/ublock_resources.h"
#if BUILDFLAG(IS_CHROMEOS)
#include "ash/keyboard/ui/grit/keyboard_resources.h"
@@ -37,6 +39,7 @@ bool IsComponentExtensionAllowlisted(con
#include "ash/constants/ash_extension_constants.h"
@@ -39,6 +41,7 @@ bool IsComponentExtensionAllowlisted(con
extension_misc::kGlicExtensionId,
extension_misc::kInAppPaymentsSupportAppId,
extension_misc::kPdfExtensionId,
@@ -96,7 +96,7 @@
#if BUILDFLAG(IS_CHROMEOS)
extension_misc::kAssessmentAssistantExtensionId,
extension_misc::kAccessibilityCommonExtensionId,
@@ -96,6 +99,7 @@ bool IsComponentExtensionAllowlisted(int
@@ -101,6 +104,7 @@ bool IsComponentExtensionAllowlisted(int
case IDR_NETWORK_SPEECH_SYNTHESIS_MANIFEST_MV3:
case IDR_READING_MODE_GDOCS_HELPER_MANIFEST:
case IDR_WEBSTORE_MANIFEST:
@@ -25,7 +25,7 @@
location <= mojom::ManifestLocation::kMaxValue;
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -6546,7 +6546,8 @@ void AddChromeSchemeFactories(
@@ -6561,7 +6561,8 @@ void AddChromeSchemeFactories(
std::vector<std::string> allowed_webui_hosts;
// Support for chrome:// scheme if appropriate.
if ((extension->is_extension() || extension->is_platform_app()) &&
@@ -37,7 +37,7 @@
allowed_webui_hosts.emplace_back(content::kChromeUIResourcesHost);
--- a/chrome/browser/ui/views/apps/app_info_dialog/app_info_summary_panel.cc
+++ b/chrome/browser/ui/views/apps/app_info_dialog/app_info_summary_panel.cc
@@ -167,8 +167,11 @@ void AppInfoSummaryPanel::AddDescription
@@ -166,8 +166,11 @@ void AppInfoSummaryPanel::AddDescription
}
void AppInfoSummaryPanel::AddDetailsControl(views::View* vertical_stack) {
@@ -109,7 +109,7 @@
*error = extension_misc::kPolicyBlockedScripting;
--- a/chrome/browser/extensions/extension_util.cc
+++ b/chrome/browser/extensions/extension_util.cc
@@ -181,7 +181,8 @@ void SetIsIncognitoEnabled(const std::st
@@ -200,7 +200,8 @@ void SetIsIncognitoEnabled(const std::st
#if !BUILDFLAG(IS_ANDROID)
// TODO(treib,kalman): Should this be Manifest::IsComponentLocation(..)?
// (which also checks for kExternalComponent).
@@ -136,7 +136,7 @@
// Component and force installed extensions can enable/disable all other
// extensions including force installed ones (but component are off limits).
const bool component_or_force_installed =
@@ -270,6 +278,11 @@ bool StandardManagementPolicyProvider::M
@@ -259,6 +267,11 @@ bool StandardManagementPolicyProvider::M
const Extension* extension,
std::u16string* error) const {
ManagedInstallationMode mode = settings_->GetInstallationMode(extension);
@@ -210,7 +210,7 @@
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
registry->RegisterListPref(pref_names::kDeletedComponentExtensions);
registry->RegisterDictionaryPref(kExtensionsBlocklistUpdate);
@@ -2282,14 +2294,14 @@ bool ExtensionPrefs::GetUserExtensionPre
@@ -2281,14 +2293,14 @@ bool ExtensionPrefs::GetUserExtensionPre
ExtensionIdContainer* id_container_out) const {
DCHECK(id_container_out->empty());
@@ -230,7 +230,7 @@
}
--- a/extensions/common/features/simple_feature.cc
+++ b/extensions/common/features/simple_feature.cc
@@ -706,6 +706,7 @@ Feature::Availability SimpleFeature::Get
@@ -725,6 +725,7 @@ Feature::Availability SimpleFeature::Get
// Component extensions can access any feature.
// NOTE: Deliberately does not match EXTERNAL_COMPONENT.
if (component_extensions_auto_granted_ &&
@@ -105,7 +105,7 @@
},
--- a/chrome/browser/extensions/BUILD.gn
+++ b/chrome/browser/extensions/BUILD.gn
@@ -628,6 +628,7 @@ source_set("extensions") {
@@ -641,6 +641,7 @@ source_set("extensions") {
"//net:extras",
"//services/metrics/public/cpp:ukm_builders",
"//storage/browser",
@@ -115,7 +115,7 @@
"//ui/base/unowned_user_data",
--- a/chrome/chrome_paks.gni
+++ b/chrome/chrome_paks.gni
@@ -156,6 +156,7 @@ template("chrome_extra_paks") {
@@ -158,6 +158,7 @@ template("chrome_extra_paks") {
"$root_gen_dir/third_party/blink/public/resources/blink_resources.pak",
"$root_gen_dir/third_party/blink/public/resources/inspector_overlay_resources.pak",
"$root_gen_dir/third_party/blink/public/strings/permission_element_generated_strings.pak",
@@ -123,7 +123,7 @@
"$root_gen_dir/ui/resources/ui_lottie_resources.pak",
"$root_gen_dir/ui/webui/resources/webui_resources.pak",
]
@@ -185,6 +186,7 @@ template("chrome_extra_paks") {
@@ -188,6 +189,7 @@ template("chrome_extra_paks") {
"//third_party/blink/public:devtools_inspector_resources",
"//third_party/blink/public:resources",
"//third_party/blink/public/strings:permission_element_generated_strings",
@@ -133,7 +133,7 @@
]
--- a/chrome/browser/extensions/chrome_component_extension_resource_manager.cc
+++ b/chrome/browser/extensions/chrome_component_extension_resource_manager.cc
@@ -27,6 +27,7 @@
@@ -28,6 +28,7 @@
#include "extensions/common/extension_id.h"
#include "pdf/buildflags.h"
#include "ui/base/resource/resource_bundle.h"
@@ -141,10 +141,10 @@
#if BUILDFLAG(IS_CHROMEOS)
#include "ash/keyboard/ui/resources/keyboard_resource_util.h"
@@ -101,6 +102,7 @@ ChromeComponentExtensionResourceManager:
@@ -103,6 +104,7 @@ ChromeComponentExtensionResourceManager:
AddComponentResourceEntries(kComponentExtensionResources);
AddComponentResourceEntries(kExtraComponentExtensionResources);
AddComponentResourceEntries(kAimEligibilityExtensionResources);
+ AddComponentResourceEntries(kUblockResources);
#if !BUILDFLAG(IS_ANDROID)
@@ -152,7 +152,7 @@
--- a/third_party/ublock/manifest.json
+++ b/third_party/ublock/manifest.json
@@ -114,5 +114,6 @@
"version": "1.71.0",
"version": "1.72.2",
"web_accessible_resources": [
"/web_accessible_resources/*"
- ]
@@ -9,7 +9,7 @@
registry->RegisterBooleanPref(
prefs::kHoverCardMemoryUsageDisableMigrationComplete, false);
@@ -169,7 +169,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -168,7 +168,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
@@ -158,7 +158,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -157,7 +157,7 @@ void RegisterBrowserUserPrefs(user_prefs
false);
#endif
registry->RegisterStringPref(prefs::kWebRTCIPHandlingPolicy,
+2 -2
View File
@@ -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
@@ -157,6 +157,8 @@ source_set("internal") {
@@ -159,6 +159,8 @@ source_set("internal") {
"external_data_manager.h",
"features.cc",
"features.h",
@@ -207,7 +207,7 @@
inline constexpr char kIdKey[] = "id";
--- a/components/policy_strings.grdp
+++ b/components/policy_strings.grdp
@@ -720,6 +720,9 @@ Additional details:
@@ -723,6 +723,9 @@ Additional details:
<message name="IDS_POLICY_SOURCE_RESTRICTED_MANAGED_GUEST_SESSION_OVERRIDE" desc="Indicates that the policy originates from the restricted managed guest session override.">
Restricted managed guest session override
</message>
+53 -52
View File
@@ -1,57 +1,58 @@
--- a/chrome/browser/resources/settings/about_page/about_page.html
+++ b/chrome/browser/resources/settings/about_page/about_page.html
@@ -5,10 +5,7 @@
--- a/chrome/browser/resources/settings/about_page/about_page.css
+++ b/chrome/browser/resources/settings/about_page/about_page.css
@@ -15,10 +15,7 @@
.info-sections {
padding: var(--cr-section-vertical-padding) var(--cr-section-padding);
- }
.info-sections {
padding: var(--cr-section-vertical-padding) var(--cr-section-padding);
-}
-
- .info-section {
- margin-bottom: 12px;
+ line-height: 1.8;
}
-.info-section {
- margin-bottom: 12px;
+ line-height: 1.8;
}
.product-title {
@@ -47,7 +44,7 @@
</style>
<settings-section page-title="$i18n{aboutPageTitle}">
<div class="cr-row two-line first">
- <img id="product-logo" on-click="onProductLogoClick_"
+ <img id="product-logo"
srcset="chrome://theme/current-channel-logo@1x 1x,
chrome://theme/current-channel-logo@2x 2x"
alt="$i18n{aboutProductLogoAlt}"
@@ -78,12 +75,6 @@
inner-h-t-m-l="[[getUpdateStatusMessage_(
currentUpdateStatusEvent_)]]">
</div>
- <a hidden$="[[!shouldShowLearnMoreLink_(
- currentUpdateStatusEvent_)]]" target="_blank"
- href="https://support.google.com/chrome?p=update_error"
- aria-label="$i18nPolymer{aboutLearnMoreUpdatingErrors}">
- $i18n{learnMore}
- </a>
</div>
<span id="deprecationWarning"
hidden="[[!obsoleteSystemInfo_.obsolete]]">
@@ -114,12 +105,6 @@
on-click="onPromoteUpdaterClick_">
<div class="flex">
[[promoteUpdaterStatus_.text]]
- <a href="https://support.google.com/chrome/answer/95414"
- target="_blank" id="updaterLearnMore"
- on-click="onLearnMoreClick_"
- aria-label="$i18nPolymer{aboutLearnMoreUpdating}">
- $i18n{learnMore}
- </a>
</div>
<cr-icon-button class="subpage-arrow"
hidden$="[[!promoteUpdaterStatus_.actionable]]"
@@ -145,7 +130,6 @@
<settings-section>
<div class="info-sections">
<div class="info-section">
- <div class="secondary">$i18n{aboutProductTitle}</div>
<div class="secondary">$i18n{aboutProductCopyright}</div>
.product-title {
--- a/chrome/browser/resources/settings/about_page/about_page.html.ts
+++ b/chrome/browser/resources/settings/about_page/about_page.html.ts
@@ -13,7 +13,7 @@ export function getHtml(this: SettingsAb
return html`<!--_html_template_start_-->
<settings-section page-title="$i18n{aboutPageTitle}">
<div class="cr-row two-line first">
- <img id="productLogo" @click="${this.onProductLogoClick_}"
+ <img id="productLogo"
srcset="chrome://theme/current-channel-logo@1x 1x,
chrome://theme/current-channel-logo@2x 2x"
alt="$i18n{aboutProductLogoAlt}"
@@ -40,11 +40,6 @@ export function getHtml(this: SettingsAb
<div role="alert" aria-live="polite"
.innerHTML="${this.getUpdateStatusMessage_()}">
</div>
- <a ?hidden="${!this.shouldShowLearnMoreLink_()}" target="_blank"
- href="https://support.google.com/chrome?p=update_error"
- aria-label="$i18nPolymer{aboutLearnMoreUpdatingErrors}">
- $i18n{learnMore}
- </a>
</div>
<span id="deprecationWarning"
?hidden="${!this.obsoleteSystemInfo_.obsolete}">
@@ -75,12 +70,6 @@ export function getHtml(this: SettingsAb
@click="${this.onPromoteUpdaterClick_}">
<div class="flex">
${this.promoteUpdaterStatus_.text}
- <a href="https://support.google.com/chrome/answer/95414"
- target="_blank" id="updaterLearnMore"
- @click="${this.onLearnMoreClick_}"
- aria-label="$i18nPolymer{aboutLearnMoreUpdating}">
- $i18n{learnMore}
- </a>
</div>
<cr-icon-button class="subpage-arrow"
?hidden="${!this.promoteUpdaterStatus_.actionable}"
@@ -106,7 +95,6 @@ export function getHtml(this: SettingsAb
<settings-section>
<div class="info-sections">
<div class="info-section">
- <div class="secondary">$i18n{aboutProductTitle}</div>
<div class="secondary">$i18n{aboutProductCopyright}</div>
</div>
@@ -1,6 +1,6 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -2448,6 +2448,9 @@
@@ -2454,6 +2454,9 @@
<message name="IDS_SETTINGS_SEARCH_ENGINES_ADD_SITE_SEARCH" desc="Title for a dialog that allows adding a new site search engine.">
Add site search
</message>
@@ -24,7 +24,7 @@
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -185,6 +185,7 @@ namespace {
@@ -186,6 +186,7 @@ namespace {
void AddCommonStrings(content::WebUIDataSource* html_source, Profile* profile) {
static constexpr webui::LocalizedString kLocalizedStrings[] = {
{"add", IDS_ADD},
@@ -32,7 +32,7 @@
{"advancedPageTitle", IDS_SETTINGS_ADVANCED},
{"back", IDS_ACCNAME_BACK},
{"basicPageTitle", IDS_SETTINGS_BASIC},
@@ -3035,6 +3036,8 @@ void AddSearchEnginesStrings(content::We
@@ -3069,6 +3070,8 @@ void AddSearchEnginesStrings(content::We
IDS_SETTINGS_SEARCH_ENGINES_PAGE_EXPLANATION},
{"searchEnginesAddSiteSearch",
IDS_SETTINGS_SEARCH_ENGINES_ADD_SITE_SEARCH},
@@ -248,7 +248,7 @@
bool EditSearchEngineController::IsKeywordValid(
--- a/chrome/browser/resources/settings/search_page/search_engines_browser_proxy.ts
+++ b/chrome/browser/resources/settings/search_page/search_engines_browser_proxy.ts
@@ -126,8 +126,9 @@ export interface SearchEnginesBrowserPro
@@ -131,8 +131,9 @@ export interface SearchEnginesBrowserPro
getSaveGuestChoice(): Promise<boolean|null>;
@@ -260,7 +260,7 @@
/**
* Helper function that calls recordHistogram for the
@@ -188,9 +189,10 @@ export class SearchEnginesBrowserProxyIm
@@ -193,9 +194,10 @@ export class SearchEnginesBrowserProxyIm
return sendWithPromise<boolean|null>('getSaveGuestChoice');
}
@@ -1,5 +1,5 @@
--- a/chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog_v2.html
+++ b/chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog_v2.html
--- a/chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog.html
+++ b/chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog.html
@@ -51,16 +51,6 @@
position: fixed;
}
@@ -30,8 +30,15 @@
</div>
<div slot="button-container" class="row-aligned">
<if expr="not is_chromeos">
--- a/chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog_v2.ts
+++ b/chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog_v2.ts
@@ -181,4 +165,4 @@
<template is="dom-if" if="[[showOtherGoogleDataDialog_]]" restamp>
<settings-other-google-data-dialog on-cancel="onOtherGoogleDataDialogClose_">
</settings-other-google-data-dialog>
-</template>
\ No newline at end of file
+</template>
--- a/chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog.ts
+++ b/chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog.ts
@@ -163,7 +163,7 @@ export class SettingsClearBrowsingDataDi
return {
dataTypesExpanded_: {
@@ -0,0 +1,347 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1733,6 +1733,21 @@
<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_CRASH_REPORTING_TITLE" desc="Title of the setting that controls crash reporting">
+ Crash reporting
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_CRASH_REPORTING_DESCRIPTION" desc="Description of the setting that controls crash reporting">
+ Choose whether Helium can ask to send crash reports or send them automatically. Disabling reports will delete all pending reports.
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_CRASH_REPORTING_DISABLED" desc="Crash reporting option that disables prompts and submissions">
+ Disabled
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_CRASH_REPORTING_ASK" desc="Crash reporting option that prompts after a crash">
+ Ask after a crash
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_CRASH_REPORTING_AUTOMATIC" desc="Crash reporting option that automatically submits reports">
+ Send automatically
+ </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>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -2381,6 +2381,15 @@ void AddPrivacyStrings(content::WebUIDat
{"securityPageDescription", IDS_SETTINGS_SECURITY_DESCRIPTION_NORMAL},
{"heliumServicesTitle", IDS_SETTINGS_HELIUM_SERVICES},
{"heliumServicesDescription", IDS_SETTINGS_HELIUM_SERVICES_DESCRIPTION},
+ {"heliumCrashReportingTitle",
+ IDS_SETTINGS_HELIUM_CRASH_REPORTING_TITLE},
+ {"heliumCrashReportingDescription",
+ IDS_SETTINGS_HELIUM_CRASH_REPORTING_DESCRIPTION},
+ {"heliumCrashReportingDisabled",
+ IDS_SETTINGS_HELIUM_CRASH_REPORTING_DISABLED},
+ {"heliumCrashReportingAsk", IDS_SETTINGS_HELIUM_CRASH_REPORTING_ASK},
+ {"heliumCrashReportingAutomatic",
+ IDS_SETTINGS_HELIUM_CRASH_REPORTING_AUTOMATIC},
{"heliumServicesSetupPendingText", IDS_SETTINGS_HELIUM_SERVICES_SETUP_PENDING_TEXT},
{"heliumServicesSetupPendingButton", IDS_SETTINGS_HELIUM_SERVICES_SETUP_PENDING_BUTTON},
{"heliumServicesToggle", IDS_SETTINGS_HELIUM_SERVICES_TOGGLE},
--- a/chrome/browser/resources/settings/privacy_page/services_page.html
+++ b/chrome/browser/resources/settings/privacy_page/services_page.html
@@ -112,6 +112,21 @@
</cr-collapse>
</div>
</template>
+ <div class="cr-row hr">
+ <div class="flex label-wrapper" aria-hidden="true">
+ <div class="label">$i18n{heliumCrashReportingTitle}</div>
+ <div class="cr-secondary-text label">
+ $i18n{heliumCrashReportingDescription}
+ </div>
+ </div>
+ <settings-dropdown-menu id="crashReportingControl"
+ label="$i18n{heliumCrashReportingTitle}"
+ pref="[[crashReportingPref_]]"
+ menu-options="[[crashReportingOptions_]]"
+ no-set-pref
+ on-settings-control-change="onCrashReportingChange_">
+ </settings-dropdown-menu>
+ </div>
</div>
--- a/chrome/browser/resources/settings/privacy_page/services_page.ts
+++ b/chrome/browser/resources/settings/privacy_page/services_page.ts
@@ -2,6 +2,7 @@
// 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_dropdown_menu.js';
import '../controls/settings_toggle_button.js';
import '../settings_page/settings_subpage.js';
import 'chrome://resources/cr_elements/cr_button/cr_button.js';
@@ -14,14 +15,33 @@ import {PrefsMixin} from '/shared/settin
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 {WebUiListenerMixin} from 'chrome://resources/cr_elements/web_ui_listener_mixin.js';
+import {sendWithPromise} from 'chrome://resources/js/cr.js';
+import {loadTimeData} from 'chrome://resources/js/load_time_data.js';
import {PolymerElement} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
+import type {
+ DropdownMenuOptionList,
+ SettingsDropdownMenuElement,
+} from '../controls/settings_dropdown_menu.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)));
+ HelpBubbleMixin(WebUiListenerMixin(
+ I18nMixin(PrefsMixin(PolymerElement))));
+
+enum CrashReportingMode {
+ DISABLED = -1,
+ ASK = 0,
+ AUTOMATIC = 1,
+}
+
+interface HeliumCrashReportingState {
+ mode: CrashReportingMode;
+ managed: boolean;
+}
export class SettingsHeliumServicesPageElement extends
SettingsHeliumServicesPageElementBase {
@@ -40,10 +60,39 @@ export class SettingsHeliumServicesPageE
return {
ignoreChecked_: Boolean,
changes_: Array,
+ crashReportingOptions_: {
+ type: Array,
+ readOnly: true,
+ value: () => [
+ {
+ value: CrashReportingMode.DISABLED,
+ name: loadTimeData.getString('heliumCrashReportingDisabled'),
+ },
+ {
+ value: CrashReportingMode.ASK,
+ name: loadTimeData.getString('heliumCrashReportingAsk'),
+ },
+ {
+ value: CrashReportingMode.AUTOMATIC,
+ name: loadTimeData.getString('heliumCrashReportingAutomatic'),
+ },
+ ],
+ },
+ crashReportingPref_: {
+ type: Object,
+ value: () => ({
+ key: '',
+ type: chrome.settingsPrivate.PrefType.NUMBER,
+ value: CrashReportingMode.ASK,
+ }),
+ },
};
}
declare private changes_: string[];
+ declare private crashReportingOptions_: DropdownMenuOptionList;
+ declare private crashReportingPref_:
+ chrome.settingsPrivate.PrefObject<number>;
declare private ignoreChecked_: boolean;
private toOrigin(thing: string) {
@@ -71,6 +120,30 @@ export class SettingsHeliumServicesPageE
override ready() {
super.ready();
this.requestChangelog();
+ const update = (state: HeliumCrashReportingState) =>
+ this.setCrashReportingState_(state);
+ this.addWebUiListener('helium-crash-reporting-change', update);
+ sendWithPromise<HeliumCrashReportingState>('getHeliumCrashReporting')
+ .then(update);
+ }
+
+ private setCrashReportingState_(state: HeliumCrashReportingState) {
+ const pref: chrome.settingsPrivate.PrefObject<number> = {
+ key: '',
+ type: chrome.settingsPrivate.PrefType.NUMBER,
+ value: state.mode,
+ };
+ if (state.managed) {
+ pref.enforcement = chrome.settingsPrivate.Enforcement.ENFORCED;
+ pref.controlledBy = chrome.settingsPrivate.ControlledBy.USER_POLICY;
+ }
+ this.crashReportingPref_ = pref;
+ }
+
+ private onCrashReportingChange_(event: Event) {
+ const control = event.target as SettingsDropdownMenuElement;
+ const mode = Number.parseInt(control.getSelectedValue(), 10);
+ chrome.send('setHeliumCrashReportingMode', [mode]);
}
protected onOriginOverrideKeydown_(event: KeyboardEvent) {
--- /dev/null
+++ b/chrome/browser/ui/webui/settings/helium_crash_reporting_handler.cc
@@ -0,0 +1,83 @@
+// Copyright 2026 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/helium_crash_reporting_handler.h"
+
+#include "base/functional/bind.h"
+#include "base/values.h"
+#include "chrome/browser/browser_process.h"
+#include "chrome/browser/crash_upload_list/helium_crash_reporting.h"
+#include "chrome/common/pref_names.h"
+#include "components/metrics/metrics_pref_names.h"
+#include "content/public/browser/web_ui.h"
+
+namespace settings {
+
+HeliumCrashReportingHandler::HeliumCrashReportingHandler() = default;
+HeliumCrashReportingHandler::~HeliumCrashReportingHandler() = default;
+
+void HeliumCrashReportingHandler::RegisterMessages() {
+ web_ui()->RegisterMessageCallback(
+ "getHeliumCrashReporting",
+ base::BindRepeating(&HeliumCrashReportingHandler::HandleGetState,
+ base::Unretained(this)));
+ web_ui()->RegisterMessageCallback(
+ "setHeliumCrashReportingMode",
+ base::BindRepeating(&HeliumCrashReportingHandler::HandleSetMode,
+ base::Unretained(this)));
+}
+
+void HeliumCrashReportingHandler::OnJavascriptAllowed() {
+ pref_member_ = std::make_unique<IntegerPrefMember>();
+ pref_member_->Init(
+ prefs::kHeliumCrashReportingMode, g_browser_process->local_state(),
+ base::BindRepeating(&HeliumCrashReportingHandler::OnPrefChanged,
+ base::Unretained(this)));
+ policy_pref_member_ = std::make_unique<BooleanPrefMember>();
+ policy_pref_member_->Init(
+ metrics::prefs::kMetricsReportingEnabled,
+ g_browser_process->local_state(),
+ base::BindRepeating(&HeliumCrashReportingHandler::OnPrefChanged,
+ base::Unretained(this)));
+}
+
+void HeliumCrashReportingHandler::OnJavascriptDisallowed() {
+ policy_pref_member_.reset();
+ pref_member_.reset();
+}
+
+base::DictValue HeliumCrashReportingHandler::CreateState() const {
+ CHECK(pref_member_);
+ const bool managed = helium::UploadsDisabledByPolicy();
+ const helium::CrashReportingMode mode =
+ managed ? helium::CrashReportingMode::kDisabled
+ : helium::GetCrashReportingMode();
+
+ return base::DictValue()
+ .Set("mode", static_cast<int>(mode))
+ .Set("managed", managed);
+}
+
+void HeliumCrashReportingHandler::HandleGetState(const base::ListValue& args) {
+ AllowJavascript();
+ CHECK_EQ(args.size(), 1u);
+ ResolveJavascriptCallback(args[0], CreateState());
+}
+
+void HeliumCrashReportingHandler::HandleSetMode(const base::ListValue& args) {
+ CHECK_EQ(args.size(), 1u);
+
+ const int mode = args[0].GetInt();
+ if (!helium::IsValidCrashReportingMode(mode)) {
+ return;
+ }
+ helium::SetCrashReportingMode(
+ static_cast<helium::CrashReportingMode>(mode));
+}
+
+void HeliumCrashReportingHandler::OnPrefChanged() {
+ FireWebUIListener("helium-crash-reporting-change", CreateState());
+}
+
+} // namespace settings
--- /dev/null
+++ b/chrome/browser/ui/webui/settings/helium_crash_reporting_handler.h
@@ -0,0 +1,39 @@
+// Copyright 2026 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_HELIUM_CRASH_REPORTING_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_SETTINGS_HELIUM_CRASH_REPORTING_HANDLER_H_
+
+#include <memory>
+
+#include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h"
+#include "components/prefs/pref_member.h"
+
+namespace settings {
+
+class HeliumCrashReportingHandler : public SettingsPageUIHandler {
+ public:
+ HeliumCrashReportingHandler();
+ HeliumCrashReportingHandler(const HeliumCrashReportingHandler&) = delete;
+ HeliumCrashReportingHandler& operator=(const HeliumCrashReportingHandler&) =
+ delete;
+ ~HeliumCrashReportingHandler() override;
+
+ void RegisterMessages() override;
+ void OnJavascriptAllowed() override;
+ void OnJavascriptDisallowed() override;
+
+ private:
+ base::DictValue CreateState() const;
+ void HandleGetState(const base::ListValue& args);
+ void HandleSetMode(const base::ListValue& args);
+ void OnPrefChanged();
+
+ std::unique_ptr<IntegerPrefMember> pref_member_;
+ std::unique_ptr<BooleanPrefMember> policy_pref_member_;
+};
+
+} // namespace settings
+
+#endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_HELIUM_CRASH_REPORTING_HANDLER_H_
--- a/chrome/browser/ui/webui/settings/settings_ui.cc
+++ b/chrome/browser/ui/webui/settings/settings_ui.cc
@@ -73,6 +73,7 @@
#include "chrome/browser/ui/webui/settings/font_handler.h"
#include "chrome/browser/ui/webui/settings/glic_handler.h"
#include "chrome/browser/ui/webui/settings/hats_handler.h"
+#include "chrome/browser/ui/webui/settings/helium_crash_reporting_handler.h"
#include "chrome/browser/ui/webui/settings/import_data_handler.h"
#include "chrome/browser/ui/webui/settings/metrics_reporting_handler.h"
#include "chrome/browser/ui/webui/settings/on_startup_handler.h"
@@ -269,6 +270,7 @@ SettingsUI::SettingsUI(content::WebUI* w
AddSettingsPageUIHandler(
std::make_unique<MediaDevicesSelectionHandler>(profile));
+ AddSettingsPageUIHandler(std::make_unique<HeliumCrashReportingHandler>());
#if BUILDFLAG(GOOGLE_CHROME_BRANDING) && !BUILDFLAG(IS_CHROMEOS)
AddSettingsPageUIHandler(std::make_unique<MetricsReportingHandler>());
#endif
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -806,6 +806,7 @@ static_library("ui") {
"//components/metrics:content",
"//components/metrics/debug",
"//components/metrics/debug:resources",
+ "//components/metrics:metrics_pref_names",
"//components/metrics/private_metrics",
"//components/metrics/structured/buildflags",
"//components/metrics_services_manager",
@@ -1508,6 +1509,8 @@ static_library("ui") {
"webui/settings/glic_handler.h",
"webui/settings/hats_handler.cc",
"webui/settings/hats_handler.h",
+ "webui/settings/helium_crash_reporting_handler.cc",
+ "webui/settings/helium_crash_reporting_handler.h",
"webui/settings/import_data_handler.cc",
"webui/settings/import_data_handler.h",
"webui/settings/languages_handler.cc",
@@ -1,6 +1,6 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -4177,6 +4177,45 @@
@@ -4198,6 +4198,45 @@
<message name="IDS_SETTINGS_SYSTEM_FEATURE_NOTIFICATIONS_LABEL" desc="Label for the toggle that enables Chrome system notifications about features.">
Show system notifications about Chrome features and tips
</message>
@@ -1024,7 +1024,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/browser_process_platform_part.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
@@ -4176,6 +4177,26 @@ void AddSystemStrings(content::WebUIData
@@ -4221,6 +4222,26 @@ void AddSystemStrings(content::WebUIData
{"isolationStateLabel", IDS_SETTINGS_SYSTEM_ISOLATION_STATE_LABEL},
#endif // BUILDFLAG(IS_WIN)
{"proxySettingsLabel", IDS_SETTINGS_SYSTEM_PROXY_SETTINGS_LABEL},
@@ -1051,7 +1051,7 @@
#if BUILDFLAG(IS_WIN) && BUILDFLAG(GOOGLE_CHROME_BRANDING)
{"featureNotificationsLabel",
IDS_SETTINGS_SYSTEM_FEATURE_NOTIFICATIONS_LABEL},
@@ -4186,6 +4207,9 @@ void AddSystemStrings(content::WebUIData
@@ -4231,6 +4252,9 @@ void AddSystemStrings(content::WebUIData
#endif // BUILDFLAG(GOOGLE_CHROME_BRANDING)
};
html_source->AddLocalizedStrings(kLocalizedStrings);
@@ -1197,7 +1197,7 @@
declare global {
--- a/chrome/browser/resources/settings/route.ts
+++ b/chrome/browser/resources/settings/route.ts
@@ -307,6 +307,9 @@ function createRoutes(): SettingsRoutes
@@ -312,6 +312,9 @@ function createRoutes(): SettingsRoutes
if (visibility.system !== false) {
r.SYSTEM = r.ADVANCED.createSection(
'/system', 'system', loadTimeData.getString('systemPageTitle'));
@@ -1209,17 +1209,17 @@
--- a/chrome/browser/resources/settings/router.ts
+++ b/chrome/browser/resources/settings/router.ts
@@ -114,6 +114,7 @@ export interface SettingsRoutes {
@@ -116,6 +116,7 @@ export interface SettingsRoutes {
SITE_SETTINGS_WEB_PRINTING: Route;
SKILLS: Route;
SPELL_CHECK: Route;
+ SHORTCUTS?: Route;
SUGGESTIONS_FROM_GEMINI: Route;
SYNC: Route;
SYNC_ADVANCED: Route;
SYSTEM: Route;
--- a/chrome/browser/ui/webui/settings/settings_ui.cc
+++ b/chrome/browser/ui/webui/settings/settings_ui.cc
@@ -46,6 +46,7 @@
@@ -48,6 +48,7 @@
#include "chrome/browser/subscription_eligibility/subscription_eligibility_service_factory.h"
#include "chrome/browser/sync/sync_service_factory.h"
#include "chrome/browser/ui/browser_element_identifiers.h"
@@ -1227,7 +1227,7 @@
#include "chrome/browser/ui/hats/hats_service.h"
#include "chrome/browser/ui/hats/hats_service_factory.h"
#include "chrome/browser/ui/managed_ui.h"
@@ -65,6 +66,7 @@
@@ -67,6 +68,7 @@
#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/browser_lifetime_handler.h"
@@ -1235,7 +1235,7 @@
#include "chrome/browser/ui/webui/settings/downloads_handler.h"
#include "chrome/browser/ui/webui/settings/font_handler.h"
#include "chrome/browser/ui/webui/settings/glic_handler.h"
@@ -775,6 +777,15 @@ void SettingsUI::BindInterface(
@@ -795,6 +797,15 @@ void SettingsUI::BindInterface(
help_bubble_handler_factory_receiver_.Bind(std::move(pending_receiver));
}
@@ -1251,7 +1251,7 @@
void SettingsUI::AddSettingsPageUIHandler(
std::unique_ptr<content::WebUIMessageHandler> handler) {
DCHECK(handler);
@@ -835,6 +846,18 @@ void SettingsUI::CreateHelpBubbleHandler
@@ -855,6 +866,18 @@ void SettingsUI::CreateHelpBubbleHandler
web_ui()->GetRenderFrameHost()));
}
@@ -1347,7 +1347,7 @@
}
--- a/chrome/browser/resources/settings/BUILD.gn
+++ b/chrome/browser/resources/settings/BUILD.gn
@@ -291,6 +291,7 @@ build_webui("build") {
@@ -286,6 +286,7 @@ build_webui("build") {
"people_page/import_data_dialog.ts",
"people_page/manage_profile.ts",
"relaunch_confirmation_dialog.ts",
@@ -1355,7 +1355,7 @@
"system_page/system_page.ts",
]
} else {
@@ -437,8 +438,14 @@ build_webui("build") {
@@ -451,8 +452,14 @@ build_webui("build") {
"site_settings/site_settings_shared.css",
]
@@ -1374,7 +1374,7 @@
ts_definitions = [
--- a/chrome/browser/chrome_browser_interface_binders_webui_parts_desktop.cc
+++ b/chrome/browser/chrome_browser_interface_binders_webui_parts_desktop.cc
@@ -687,6 +687,7 @@ void PopulateChromeWebUIFrameInterfaceBr
@@ -680,6 +680,7 @@ void PopulateChromeWebUIFrameInterfaceBr
.Add<batch_upload_promo::mojom::PageHandlerFactory>()
.Add<customize_color_scheme_mode::mojom::
CustomizeColorSchemeModeHandlerFactory>()
@@ -1384,15 +1384,15 @@
if (webui_browser::IsWebUIBrowserEnabled()) {
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -409,6 +409,7 @@ static_library("ui") {
"//chrome/browser/ui/webui/family_link_user_internals",
@@ -691,6 +691,7 @@ static_library("ui") {
"//chrome/browser/ui/webui/history",
"//chrome/browser/ui/webui/net_internals",
"//chrome/browser/ui/webui/sanitized_image:sanitized_image_source",
+ "//chrome/browser/ui/webui/settings:mojo_bindings",
"//chrome/browser/ui/webui/sync_internals",
"//chrome/browser/ui/webui/translate_internals",
"//chrome/browser/ui/webui/version",
@@ -1326,6 +1327,8 @@ static_library("ui") {
@@ -1541,6 +1542,8 @@ static_library("ui") {
"webui/settings/services_schema_handler.h",
"webui/settings/settings_clear_browsing_data_handler.cc",
"webui/settings/settings_clear_browsing_data_handler.h",
@@ -1,6 +1,6 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -3889,6 +3889,21 @@
@@ -3895,6 +3895,21 @@
<message name="IDS_SETTINGS_PICK_AN_AVATAR" desc="Title of the edit avatar selection section on the manage profile page.">
Pick an avatar
</message>
@@ -263,7 +263,7 @@
}
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -2210,6 +2210,10 @@ void AddPeopleStrings(content::WebUIData
@@ -2246,6 +2246,10 @@ void AddPeopleStrings(content::WebUIData
{"nameYourProfile", IDS_SETTING_NAME_YOUR_PROFILE},
{"pickThemeColor", IDS_SETTINGS_PICK_A_THEME_COLOR},
{"pickAvatar", IDS_SETTINGS_PICK_AN_AVATAR},
@@ -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>
@@ -310,6 +310,9 @@
@@ -313,6 +313,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
@@ -566,7 +566,7 @@ void AddAppearanceStrings(content::WebUI
@@ -584,7 +584,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},
@@ -602,9 +602,7 @@ void AddAppearanceStrings(content::WebUI
@@ -620,9 +620,7 @@ void AddAppearanceStrings(content::WebUI
{"classicTheme", IDS_SETTINGS_CLASSIC_THEME},
{"useClassicTheme", IDS_SETTINGS_USE_CLASSIC_THEME},
#endif
+1 -1
View File
@@ -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
@@ -2184,7 +2184,7 @@ void AddSyncControlsStrings(content::Web
@@ -2216,7 +2216,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
@@ -1980,6 +1980,9 @@
@@ -1998,6 +1998,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>
@@ -3339,6 +3342,9 @@
@@ -3345,6 +3348,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
@@ -2333,7 +2333,7 @@ void AddPrivacyStrings(content::WebUIDat
@@ -2369,7 +2369,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},
@@ -30,8 +30,8 @@
+ {"doNotTrackDialogMessage", IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_TEXT_HELIUM},
{"doNotTrackDialogLearnMoreA11yLabel",
IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_LEARN_MORE_ACCESSIBILITY_LABEL},
// TODO(crbug.com/40122957): This string is no longer used. Remove.
@@ -3153,7 +3153,7 @@ void AddSiteSettingsStrings(content::Web
{"siteSettingsSublabel", IDS_SETTINGS_PERMISSIONS_DESCRIPTION_NORMAL},
@@ -3187,7 +3187,7 @@ void AddSiteSettingsStrings(content::Web
{"trackingProtectionSitesAllowedCookiesTitle",
IDS_SETTINGS_TRACKING_PROTECTION_SITES_ALLOWED_COOKIES_TITLE},
{"trackingProtectionSitesAllowedCookiesDescription",
@@ -0,0 +1,377 @@
--- a/chrome/browser/resources/settings/site_settings/constants.ts
+++ b/chrome/browser/resources/settings/site_settings/constants.ts
@@ -30,6 +30,7 @@ export enum ContentSettingsTypes {
FILE_SYSTEM_WRITE = 'file-system-write',
GEOLOCATION = 'location',
HAND_TRACKING = 'hand-tracking',
+ HELIUM_NOISE = 'helium-noise',
HID_DEVICES = 'hid-devices',
IDLE_DETECTION = 'idle-detection',
IMAGES = 'images',
--- a/chrome/browser/ui/webui/settings/site_settings_helper.cc
+++ b/chrome/browser/ui/webui/settings/site_settings_helper.cc
@@ -262,7 +262,7 @@ constexpr auto kContentSettingsTypeGroup
{ContentSettingsType::SUSPICIOUS_NOTIFICATION_SHOW_ORIGINAL, nullptr},
{ContentSettingsType::LOCAL_NETWORK_ACCESS, nullptr},
{ContentSettingsType::SUB_APPS_WITHOUT_PROMPTS, nullptr},
- {ContentSettingsType::HELIUM_NOISE, nullptr},
+ {ContentSettingsType::HELIUM_NOISE, "helium-noise"},
});
static_assert(
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -2313,6 +2313,32 @@
<message name="IDS_SETTINGS_CLEAR_DATA_DESCRIPTION" desc="Description for delete browsing data button in Privacy options. 'History' refers to browsing history. 'Cookies' refers to the technical meaning of a cookie, i.e. data saved by a website on the user's computer, as in when a website saves your preferences.">
Delete history, cookies, cache, and more
</message>
+
+ <!-- Helium Noise -->
+ <message name="IDS_SETTINGS_NOISE" desc="Title of the settings page for Helium's fingerprinting protection feature.">
+ Fingerprinting protection
+ </message>
+ <message name="IDS_SETTINGS_NOISE_LINK_DESCRIPTION" desc="Description of the fingerprinting protection link on the Privacy and security settings page.">
+ Manage how Helium protects you against fingerprinting
+ </message>
+ <message name="IDS_SETTINGS_NOISE_TOGGLE_DESCRIPTION" desc="Description of the global fingerprinting protection toggle.">
+ Make it harder for sites to fingerprint your browser and device
+ </message>
+ <message name="IDS_SETTINGS_NOISE_DESCRIPTION" desc="Description of how Helium protects against browser fingerprinting.">
+ When fingerprinting protection is enabled, Helium adds noise to certain browser features to make it harder for sites to track and profile you. Each site sees consistent randomized information during your browsing session to reduce the chances of detection.
+ </message>
+ <message name="IDS_SETTINGS_NOISE_DISCLAIMER" desc="Disclaimer shown below the fingerprinting protection description explaining that Helium makes fingerprint recovery harder but cannot prevent fingerprinting completely.">
+ Fingerprinting cannot be fully prevented, but Helium's analysis defenses make it harder to recover the original fingerprint.
+ </message>
+ <message name="IDS_SETTINGS_NOISE_CUSTOM_DESCRIPTION" desc="General explanation of fingerprinting protection site rules and wildcard behavior.">
+ When the general fingerprinting protection feature is enabled, sites listed below follow a custom setting. Inserting "[*.]" before a domain name applies it to the entire domain.
+ </message>
+ <message name="IDS_SETTINGS_NOISE_EXCEPTIONS_TITLE" desc="Title above the list of sites where fingerprinting protection is disabled.">
+ Sites without fingerprinting protection
+ </message>
+ <message name="IDS_SETTINGS_NOISE_ALLOW_OVERRIDES_TITLE" desc="Title above the list of sites where fingerprinting protection is explicitly allowed, overriding broader site exceptions.">
+ Overrides to allow fingerprinting protection
+ </message>
<message name="IDS_SETTINGS_TITLE_AND_COUNT" desc="The title of a section in the settings page with a count of the total number of items in the section">
<ph name="TITLE">$1<ex>Block</ex></ph> - <ph name="COUNT">$2<ex>42</ex></ph>
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -127,6 +127,7 @@
#include "net/base/url_util.h"
#include "net/net_buildflags.h"
#include "services/device/public/cpp/device_features.h"
+#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/features_generated.h"
#include "ui/accessibility/accessibility_features.h"
#include "ui/accessibility/accessibility_switches.h"
@@ -2379,6 +2380,14 @@ void AddPrivacyStrings(content::WebUIDat
{"siteSettingsSublabel", IDS_SETTINGS_PERMISSIONS_DESCRIPTION_NORMAL},
{"securityPageTitle", IDS_SETTINGS_SECURITY},
{"securityPageDescription", IDS_SETTINGS_SECURITY_DESCRIPTION_NORMAL},
+ {"noiseTitle", IDS_SETTINGS_NOISE},
+ {"noiseLinkDescription", IDS_SETTINGS_NOISE_LINK_DESCRIPTION},
+ {"noiseToggleDescription", IDS_SETTINGS_NOISE_TOGGLE_DESCRIPTION},
+ {"noiseDescription", IDS_SETTINGS_NOISE_DESCRIPTION},
+ {"noiseDisclaimer", IDS_SETTINGS_NOISE_DISCLAIMER},
+ {"noiseExceptionsTitle", IDS_SETTINGS_NOISE_EXCEPTIONS_TITLE},
+ {"noiseCustomDescription", IDS_SETTINGS_NOISE_CUSTOM_DESCRIPTION},
+ {"noiseAllowOverridesTitle", IDS_SETTINGS_NOISE_ALLOW_OVERRIDES_TITLE},
{"heliumServicesTitle", IDS_SETTINGS_HELIUM_SERVICES},
{"heliumServicesDescription", IDS_SETTINGS_HELIUM_SERVICES_DESCRIPTION},
{"heliumCrashReportingTitle",
@@ -2696,6 +2705,9 @@ void AddPrivacyStrings(content::WebUIDat
{"securityJavascriptGuardrailsManageSiteExceptionsDesc",
IDS_SETTINGS_SECURITY_JAVASCRIPT_GUARDRAILS_MANAGE_SITE_EXCEPTIONS_DESCRIPTION}};
html_source->AddLocalizedStrings(kLocalizedStrings);
+ html_source->AddBoolean(
+ "heliumNoiseAvailable",
+ base::FeatureList::IsEnabled(blink::features::kHeliumNoise));
html_source->AddString("cookiesSettingsHelpCenterURL",
chrome::kCookiesSettingsHelpCenterURL);
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -581,6 +581,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
settings_api::PrefType::kBoolean;
(*s_allowlist)[safety_hub_prefs::kUnusedSitePermissionsRevocationEnabled] =
settings_api::PrefType::kBoolean;
+ (*s_allowlist)[::prefs::kHeliumNoiseEnabled] =
+ settings_api::PrefType::kBoolean;
#if BUILDFLAG(ENABLE_COMPOSE)
(*s_allowlist)[prefs::kEnableProactiveNudge] =
--- /dev/null
+++ b/chrome/browser/resources/settings/privacy_page/noise_page.html
@@ -0,0 +1,38 @@
+<!-- Copyright 2026 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. -->
+
+<style include="cr-shared-style settings-shared">
+ #description {
+ padding: var(--cr-section-vertical-padding) var(--cr-section-padding);
+ }
+
+ #description p {
+ margin: 0;
+ }
+
+ #description p + p {
+ margin-top: var(--cr-section-vertical-padding);
+ }
+</style>
+
+<settings-subpage page-title="$i18n{noiseTitle}"
+ route-path$="[[routePath]]">
+ <settings-toggle-button id="noiseToggle"
+ pref="{{prefs.helium.noise.enabled}}"
+ label="$i18n{noiseTitle}"
+ sub-label="$i18n{noiseToggleDescription}">
+ </settings-toggle-button>
+
+ <div id="description" class="cr-secondary-text">
+ <p>$i18n{noiseDescription}</p>
+ <p id="disclaimer">$i18n{noiseDisclaimer}</p>
+ </div>
+
+ <category-setting-exceptions
+ category="[[contentSettingsTypesEnum_.HELIUM_NOISE]]"
+ description="$i18n{noiseCustomDescription}"
+ allow-header="$i18n{noiseAllowOverridesTitle}"
+ block-header="$i18n{noiseExceptionsTitle}">
+ </category-setting-exceptions>
+</settings-subpage>
--- /dev/null
+++ b/chrome/browser/resources/settings/privacy_page/noise_page.ts
@@ -0,0 +1,51 @@
+// Copyright 2026 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 '/shared/settings/prefs/prefs.js';
+import '../controls/settings_toggle_button.js';
+import '../settings_page/settings_subpage.js';
+import '../settings_shared.css.js';
+import '../site_settings/category_setting_exceptions.js';
+
+import {PrefsMixin} from '/shared/settings/prefs/prefs_mixin.js';
+import {PolymerElement} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
+
+import {SettingsViewMixin} from '../settings_page/settings_view_mixin.js';
+import {ContentSettingsTypes} from '../site_settings/constants.js';
+
+import {getTemplate} from './noise_page.html.js';
+
+const SettingsNoisePageElementBase =
+ SettingsViewMixin(PrefsMixin(PolymerElement));
+
+export class SettingsNoisePageElement extends SettingsNoisePageElementBase {
+ static get is() {
+ return 'settings-noise-page';
+ }
+
+ static get template() {
+ return getTemplate();
+ }
+
+ static get properties() {
+ return {
+ contentSettingsTypesEnum_: {
+ type: Object,
+ value: ContentSettingsTypes,
+ },
+ };
+ }
+
+ override focusBackButton() {
+ this.shadowRoot!.querySelector('settings-subpage')!.focusBackButton();
+ }
+}
+
+declare global {
+ interface HTMLElementTagNameMap {
+ 'settings-noise-page': SettingsNoisePageElement;
+ }
+}
+
+customElements.define(SettingsNoisePageElement.is, SettingsNoisePageElement);
--- a/chrome/browser/resources/settings/BUILD.gn
+++ b/chrome/browser/resources/settings/BUILD.gn
@@ -132,6 +132,7 @@ build_webui("build") {
"performance_page/tab_discard/exception_tabbed_add_dialog.ts",
"privacy_page/cookies_page.ts",
"privacy_page/do_not_track_toggle.ts",
+ "privacy_page/noise_page.ts",
"privacy_page/personalization_options.ts",
"privacy_page/privacy_guide/privacy_guide_ad_topics_fragment.ts",
"privacy_page/privacy_guide/privacy_guide_completion_fragment.ts",
--- a/chrome/browser/resources/settings/lazy_load.ts
+++ b/chrome/browser/resources/settings/lazy_load.ts
@@ -24,6 +24,7 @@ import './clear_browsing_data_dialog/cle
import './clear_browsing_data_dialog/clear_browsing_data_time_picker.js';
import './glic_page/glic_login_permissions_page.js';
import './privacy_page/cookies_page.js';
+import './privacy_page/noise_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';
@@ -250,6 +251,7 @@ export {SettingsSyncEncryptionOptionsEle
export {NetworkPredictionOptions} from './performance_page/constants.js';
export {SettingsCookiesPageElement} from './privacy_page/cookies_page.js';
export {SettingsDoNotTrackToggleElement} from './privacy_page/do_not_track_toggle.js';
+export {SettingsNoisePageElement} from './privacy_page/noise_page.js';
export {SettingsPersonalizationOptionsElement} from './privacy_page/personalization_options.js';
export {PrivacyGuideStep} from './privacy_page/privacy_guide/constants.js';
export {PrivacyGuideAdTopicsFragmentElement} from './privacy_page/privacy_guide/privacy_guide_ad_topics_fragment.js';
--- a/chrome/browser/resources/settings/router.ts
+++ b/chrome/browser/resources/settings/router.ts
@@ -31,6 +31,7 @@ export interface SettingsRoutes {
DEFAULT_BROWSER: Route;
DOWNLOADS: Route;
EDIT_DICTIONARY: Route;
+ NOISE: Route;
FONTS: Route;
GEMINI: Route;
GEMINI_LOGIN: Route;
--- a/chrome/browser/resources/settings/route.ts
+++ b/chrome/browser/resources/settings/route.ts
@@ -18,6 +18,10 @@ function addPrivacyChildRoutes(r: Partia
r.CLEAR_BROWSER_DATA = r.PRIVACY.createChild('/clearBrowserData');
r.CLEAR_BROWSER_DATA.isNavigableDialog = true;
+ if (loadTimeData.getBoolean('heliumNoiseAvailable')) {
+ r.NOISE = r.PRIVACY.createChild('noise');
+ }
+
r.HELIUM_SERVICES = r.PRIVACY.createChild('services');
const visibility = pageVisibility || {};
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.html
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.html
@@ -16,6 +16,16 @@
label="$i18n{clearBrowsingData}"
sub-label="$i18n{clearBrowsingDataDescription}"
on-click="onClearBrowsingDataClick_"></cr-link-row>
+ <template is="dom-if" if="[[heliumNoiseAvailable_]]">
+ <cr-link-row id="noiseLinkRow"
+ start-icon="settings20:shield"
+ class="hr"
+ label="$i18n{noiseTitle}"
+ sub-label="$i18n{noiseLinkDescription}"
+ on-click="onNoiseClick_"
+ role-description="$i18n{subpageArrowRoleDescription}">
+ </cr-link-row>
+ </template>
<template is="dom-if" if="[[false]]">
<cr-link-row id="thirdPartyCookiesLinkRow"
start-icon="privacy:cookie"
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.ts
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.ts
@@ -81,6 +81,11 @@ export class SettingsPrivacyPageElement
value: () => loadTimeData.getBoolean('isAdPrivacyAvailable'),
},
+ heliumNoiseAvailable_: {
+ type: Boolean,
+ value: () => loadTimeData.getBoolean('heliumNoiseAvailable'),
+ },
+
// The label of the confirmation toast that is displayed after deletion
// from 'Delete Browsing data' is completed.
dbdDeletionConfirmationToastLabel_: {
@@ -100,6 +105,7 @@ export class SettingsPrivacyPageElement
declare private isPrivacySandboxRestricted_: boolean;
declare private isPrivacySandboxRestrictedNoticeEnabled_: boolean;
declare private isAdPrivacyAvailable_: boolean;
+ declare private heliumNoiseAvailable_: boolean;
declare private dbdDeletionConfirmationToastLabel_: string;
declare private shouldShowDbdDeletionConfirmationToast_: boolean;
@@ -128,6 +134,12 @@ export class SettingsPrivacyPageElement
Router.getInstance().navigateTo(routes.COOKIES);
}
+ private onNoiseClick_() {
+ this.interactedWithPage_();
+
+ Router.getInstance().navigateTo(routes.NOISE);
+ }
+
private onCbdDialogClosed_() {
Router.getInstance().navigateTo(routes.CLEAR_BROWSER_DATA.parent!);
@@ -233,6 +245,10 @@ export class SettingsPrivacyPageElement
override getFocusConfig() {
const map = new Map();
+ if (routes.NOISE) {
+ map.set(routes.NOISE.path, '#noiseLinkRow');
+ }
+
if (routes.HELIUM_SERVICES) {
map.set(routes.HELIUM_SERVICES.path, '#heliumServicesLinkRow');
}
@@ -264,6 +280,9 @@ export class SettingsPrivacyPageElement
override getAssociatedControlFor(childViewId: string): HTMLElement {
let triggerId: string|null = null;
switch (childViewId) {
+ case 'noise':
+ triggerId = 'noiseLinkRow';
+ break;
case 'heliumServices':
triggerId = 'heliumServicesLinkRow';
break;
--- a/chrome/browser/resources/settings/privacy_page/privacy_page_index.html
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page_index.html
@@ -93,6 +93,18 @@
</settings-cookies-page>
</template>
+ <template is="dom-if" if="[[heliumNoiseAvailable_]]" restamp>
+ <template is="dom-if" if="[[renderView_(
+ routes_.NOISE, currentRoute, inSearchMode)]]"
+ update-when-false>
+ <settings-noise-page slot="view"
+ id="noise" data-parent-view-id="privacy"
+ prefs="{{prefs}}"
+ route-path$="[[routes_.NOISE.path]]">
+ </settings-noise-page>
+ </template>
+ </template>
+
<template is="dom-if" if="[[!enableBundledSecuritySettings_]]">
<template is="dom-if" if="[[renderView_(
routes_.SECURITY, currentRoute, inSearchMode)]]" update-when-false>
--- a/chrome/browser/resources/settings/privacy_page/privacy_page_index.ts
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page_index.ts
@@ -178,6 +178,12 @@ export class SettingsPrivacyPageIndexEle
value: () => loadTimeData.getBoolean('isAdPrivacyAvailable'),
},
+ heliumNoiseAvailable_: {
+ type: Boolean,
+ readOnly: true,
+ value: () => loadTimeData.getBoolean('heliumNoiseAvailable'),
+ },
+
isPrivacySandboxTopicsAndFledgeAvailable_: {
type: Boolean,
readOnly: true,
@@ -217,6 +223,7 @@ export class SettingsPrivacyPageIndexEle
declare private enableWebAppInstallation_: boolean;
declare private enableWebBluetoothNewPermissionsBackend_: boolean;
declare private isAdPrivacyAvailable_: boolean;
+ declare private heliumNoiseAvailable_: boolean;
declare private isPrivacySandboxTopicsAndFledgeAvailable_: boolean;
private pendingViewSwitching_: PromiseResolver<void> = new PromiseResolver();
--- a/chrome/common/webui_url_constants.h
+++ b/chrome/common/webui_url_constants.h
@@ -603,6 +603,7 @@ inline constexpr char kExperimentalAISet
inline constexpr char kFileSystemSettingsSubpage[] =
"content/filesystem/siteDetails";
inline constexpr char kFileSystemSubpage[] = "content/filesystem";
+inline constexpr char kNoiseSubPage[] = "privacy/noise";
inline constexpr char kGlicSettingsSubpage[] = "ai/gemini";
inline constexpr char kGlicLoginSettingsSubpage[] = "ai/gemini/login";
inline constexpr char kGoogleServicesSubpage[] = "googleServices";
@@ -53,7 +53,7 @@
window.location.href = url;
--- a/chrome/browser/resources/settings/route.ts
+++ b/chrome/browser/resources/settings/route.ts
@@ -186,9 +186,6 @@ function createRoutes(): SettingsRoutes
@@ -188,9 +188,6 @@ function createRoutes(): SettingsRoutes
r.IMPORT_DATA.isNavigableDialog = true;
r.MANAGE_PROFILE = r.PEOPLE.createChild('/manageProfile');
// </if>
@@ -92,7 +92,7 @@
import '../settings_vars.css.js';
--- a/chrome/browser/resources/settings/lazy_load.ts
+++ b/chrome/browser/resources/settings/lazy_load.ts
@@ -243,9 +243,7 @@ export {SettingsManageProfileElement} fr
@@ -246,9 +246,7 @@ export {SettingsManageProfileElement} fr
export {ManageProfileBrowserProxyImpl, ProfileShortcutStatus} from './people_page/manage_profile_browser_proxy.js';
export type {ManageProfileBrowserProxy} from './people_page/manage_profile_browser_proxy.js';
// </if>
@@ -1,6 +1,6 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1993,6 +1993,12 @@
@@ -2008,6 +2008,12 @@
users to manage security settings">
Security
</message>
@@ -15,10 +15,10 @@
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -2338,9 +2338,9 @@ void AddPrivacyStrings(content::WebUIDat
@@ -2372,9 +2372,9 @@ void AddPrivacyStrings(content::WebUIDat
{"doNotTrackDialogMessage", IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_TEXT},
{"doNotTrackDialogLearnMoreA11yLabel",
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},
- {"siteSettingsSublabel", IDS_SETTINGS_PERMISSIONS_DESCRIPTION},
+ {"siteSettingsSublabel", IDS_SETTINGS_PERMISSIONS_DESCRIPTION_NORMAL},
{"securityPageTitle", IDS_SETTINGS_SECURITY},
@@ -1,20 +1,20 @@
--- a/chrome/browser/resources/settings/about_page/about_page.html
+++ b/chrome/browser/resources/settings/about_page/about_page.html
@@ -54,7 +54,7 @@
<div class="cr-row two-line">
<!-- Set the icon from the iconset (when it's obsolete/EOL and
when update is done) or set the src (when it's updating). -->
--- a/chrome/browser/resources/settings/about_page/about_page.html.ts
+++ b/chrome/browser/resources/settings/about_page/about_page.html.ts
@@ -23,7 +23,7 @@ export function getHtml(this: SettingsAb
<div class="cr-row two-line">
<!-- Set the icon from the iconset (when it's obsolete/EOL and
when update is done) or set the src (when it's updating). -->
-<if expr="False">
+<if expr="not is_chromeos">
<div class="icon-container"
hidden="[[!shouldShowIcons_(showUpdateStatus_)]]">
<cr-icon
@@ -69,7 +69,7 @@
</div>
<div class="icon-container"
?hidden="${!this.shouldShowIcons_()}">
<cr-icon
@@ -35,7 +35,7 @@ export function getHtml(this: SettingsAb
</div>
</if>
<div class="flex cr-padded-text">
<div class="flex cr-padded-text">
-<if expr="False">
+<if expr="not is_chromeos">
<div id="updateStatusMessage" hidden="[[!showUpdateStatus_]]">
<div role="alert" aria-live="polite"
inner-h-t-m-l="[[getUpdateStatusMessage_(
<div id="updateStatusMessage" ?hidden="${!this.showUpdateStatus_}">
<div role="alert" aria-live="polite"
.innerHTML="${this.getUpdateStatusMessage_()}">
@@ -19,7 +19,7 @@
class="cr-nav-menu-item">
--- a/chrome/browser/resources/settings/route.ts
+++ b/chrome/browser/resources/settings/route.ts
@@ -241,7 +241,7 @@ function createRoutes(): SettingsRoutes
@@ -246,7 +246,7 @@ function createRoutes(): SettingsRoutes
r.PASSKEYS = r.YOUR_SAVED_INFO.createChild('/passkeys');
// </if>
}
@@ -23,4 +23,3 @@
</template>
</settings-section>
+</if>
\ No newline at end of file

Some files were not shown because too many files have changed in this diff Show More