Compare commits

..

152 Commits

Author SHA1 Message Date
wukko 8041351f2b merge: update to chromium 143.0.7499.40 (#544) 2025-12-03 23:38:34 +06:00
wukko 2fd8ab8736 revision: reset to 1 2025-12-03 23:22:46 +06:00
wukko bb720ee09f helium/settings: remove dead sections from profiles page
prevents dead section flickering on page init
2025-12-03 23:20:20 +06:00
wukko 3175ba89bd helium/ui: merge two caption button bounds patches
and remove the windows (os) workaround cuz the new layout doesn't use it
2025-12-03 23:20:20 +06:00
wukko 1d218c894b helium/ui/cat: reduce horizontal toolbar margin 2025-12-03 23:20:20 +06:00
wukko 3e07bd785f helium/ui: fix caption bounds (only on macos for now)
merged the related patch from macOS repo into this one and added new changes. it makes sense to keep it here as it's a "main helium" kind of change, not some platform quirk.

i'm not sure whether macOS 15 bounds are correct, however, so this will probably be patched up more in the future.
2025-12-03 23:20:19 +06:00
wukko a3072fedab upstream-fixes: fix broken fullscreen ui on macos
caption buttons bounds were incorrectly interpreted and this patch (crrev.com/1538756) fixes it by always using hard-coded constants
2025-12-03 23:20:19 +06:00
wukko a749a3e3e2 helium/ui: fix toolbar padding due to upstream changes
...again
2025-12-03 23:20:19 +06:00
wukko d145111dd0 helium/core/exclude-flags: remove irrelevant flags added in M143 2025-12-03 23:20:19 +06:00
wukko 2ce45ab9f2 patches: refresh and update for chromium 143.0.7499.40 2025-12-03 23:20:19 +06:00
wukko ab9a39c516 merge: update to ungoogled-chromium 143.0.7499.40 2025-12-03 23:19:47 +06:00
Blaise 7b77584e8c Update to Chromium 143.0.7499.40 2025-12-02 14:14:43 -06:00
jj bcf3330b42 patches/fixes: clean up obsolete upstream fixes
These are not needed anymore AFAICT, ungoogled-chromium
builds fine for me on Linux and macOS without them.
2025-11-30 20:26:37 +00:00
jj a2d63db83b patches/bangs: accept trailing bangs with enter key (#530) 2025-11-29 16:14:40 +01:00
wukko b3f08938ce revision: bump to 9 (#534) 2025-11-29 16:56:06 +06:00
jj 4a95606bfa helium/appearance: re-enable gtk/qt buttons (#531)
the agnostic theme will still be the default, but this
will re-enable the use gtk/qt buttons for whoever wants
to use the GTK/QT themes for whatever reason

fixes imputnet/helium-linux#74
2025-11-29 15:50:41 +06:00
wukko 76462eb66c helium: add an option to use MRU order when tabbing thru tabs (#529)
closes #111
2025-11-28 14:26:40 +01:00
wukko ec8480c3f5 helium/settings: add behavior section to the appearance page (#528)
- made the appearance subpage open first by default when opening the settings page
- moved all behavioral toggles to the new section within the appearance page
- renamed the appearance page to "Appearance and behavior"
- replaced the palette icon with a more diverse one
- moved helium/ui/settings-page-icons.patch to helium/settings/settings-page-icons.patch
- cleaned up patch order inside helium/core/open-new-tabs-next-to-active-tab-option.patch to be more readable
2025-11-28 19:14:24 +06:00
Sheng c94c96e62e Fix zip compression level (#3555) 2025-11-27 09:17:28 -06:00
wukko fa41ca5fca patches: merge extra & core into contrib, clean up files (#527)
merged extra & core folders into one "contrib" folder

removed useless/outdated patches:
- upstream-fixes/hardware_destructive_interference_size.patch
- iridium-browser/mime_util-force-text-x-suse-ymp-to-be-downloaded.patch
- iridium-browser/Remove-EV-certificates.patch
- inox-patchset/0016-chromium-sandbox-pie.patch
- upstream-fixes/glue_core_pools.patch

merged patches:
- iridium-browser/safe_browsing-disable-incident-reporting.patch and iridium-browser/safe_browsing-disable-reporting-of-safebrowsing-over.patch into iridium-browser/safe-browsing-disable-reporting.patch

renamed patches:
- removed sequence numbers from inox patch filenames
2025-11-27 17:53:54 +06:00
wukko 9df88459b8 helium/core: override browser protocol in copied url and tab card (#526) 2025-11-26 15:27:56 +01:00
wukko 7e1d9dd767 upstream-fixes/macos-widget: update to prevent parent overlap (#523)
fixes the main window being clipped by the menu bar

partial copy of chromium/chromium@4f0076b
2025-11-26 11:01:02 +01:00
wukko ccb227dc03 helium/ui: remove zoom page action (#519)
cleans up space, eliminates "zoom shaming". i just like scaling down
websites without being constantly reminded about it. safari behaves the
same way as helium does with this change, and no one complains, so i
guess it's fine :3
2025-11-26 00:23:42 +06:00
wukko 94fa070851 helium/ui/tabs: tab muting, move indicator to left (#517)
- enabled the tab muting feature by default
- fixed the UX issue with the alert indicator and the close button
  swapping places on hover
- increased the minimum width for close buttons to prevent mute &
  close buttons from overlapping each other
- removed the fade animation from the indicator

closes #324
2025-11-24 20:46:58 +06:00
jj 1a266da9a3 devutils/lint: add rule to detect whitespace-only changes (#510) 2025-11-24 14:38:36 +06:00
wukko 6312142913 helium/ui/toolbar: remove cookie controls from pwa toolbar (#509) 2025-11-23 11:35:35 +00:00
wukko 64ef95a6eb helium/core: disable ntp footer (#508)
fixes #237
2025-11-23 17:31:14 +06:00
jj a7e5433e7c helium/override-protocol: use helium:// in omnibox suggestions (#505) 2025-11-22 13:33:13 +00:00
jj 4f803de791 helium/cat: elide location icon text when in CAT mode (#506) 2025-11-22 13:37:50 +01:00
jj aebf0a4387 devutils/platform_patches: update shared patches instead of deleting
Instead of deleting copies of generic patches when unmerging them
from platform patches, move them back into the shared repository.

This makes it much more pleasant and ergonomic to work on patches
as a merged series, and allows to e.g. refresh existing patches
without having to move them back to the original folder manually.
2025-11-21 17:45:08 +00:00
jj be8ba95803 ci/bump-platform: add disk space clearing step (#495) 2025-11-19 23:22:06 +06:00
wukko c3ba3d8999 revision: bump to 7 (#494) 2025-11-19 15:46:26 +00:00
wukko 403e3fe01d helium/ui: detach find bar from location bar, fix padding (#493)
- no longer animates from the middle of the toolbar
- no longer feels awkward in CAT layout
- just looks better
2025-11-19 16:39:31 +01:00
wukko 5ee42465ab helium/flags: drop unsupported OSes from kOsAll and kOsDesktop (#492) 2025-11-19 09:00:37 +00:00
wukko aa487a75cd helium/ui/caption-button: remove linux adjustments (#491) 2025-11-19 14:55:47 +06:00
wukko 24b594f89e helium/cat: prevent pinned collapse, fixed address bar width flag (#490)
fixes #443
2025-11-19 14:37:21 +06:00
wukko 6a1cd43391 revision: bump to 6 (#484) 2025-11-18 10:48:00 +00:00
wukko 675cf80cde helium/cat: prevent common actions from going into overflow menu (#457)
fixes #438
fixes #440
2025-11-18 16:41:07 +06:00
wukko 0008cd2cec helium/cat: remove extra empty line 2025-11-18 16:37:38 +06:00
wukko fece071fb4 Merge branch 'main' into cat-fix-burgering 2025-11-18 16:19:34 +06:00
wukko 43dfac4447 merge: update to chromium 142.0.7444.175 (#482) 2025-11-18 15:34:51 +06:00
wukko 5d33305095 patches: refresh for chromium 142.0.7444.175 2025-11-18 14:55:15 +06:00
wukko 52dc69ac18 merge: update to ungoogled-chromium 142.0.7444.175 2025-11-18 14:37:17 +06:00
Blaise 633d41748b Update to Chromium 142.0.7444.175 2025-11-17 15:20:48 -06:00
wukko c8a824ec85 upstream-fixes/macos-rect: fix on old macos too (#480)
fixes #437
2025-11-17 21:18:06 +06:00
wukko 1fe645253d helium/cat: fix DCHECK & layout breakage when entering fullscreen (#476)
fixes #446
2025-11-17 18:26:50 +06:00
wukko a4f89dfb1c helium/cat: fix mini toolbar bounds in popup windows (#472)
fixes #439
2025-11-16 15:10:20 +00:00
jj 13f49f28cc helium/location-bar: fix trailing icon size & padding, fix intent (#456)
Co-authored-by: wukko <me@wukko.me>
2025-11-16 21:06:19 +06:00
jj e9a04a2ccf patches/split-view: fix crash when opening link from pdf (#466)
essentially a backport of chromium/chromium@c992846254

fixes #465
2025-11-15 19:59:29 +00:00
jj 80dfd780db gitattributes: remap patches to c++ (#464) 2025-11-15 13:53:18 +00:00
jj c9a0eaf2c0 helium/cat: make common icons always stay unburgered 2025-11-14 22:16:56 +00:00
jj 9f7755dbd7 helium/core: fix chrome.instanceID.getID() hanging (#449) 2025-11-13 20:00:13 +01:00
Kurt Fitzner 110cab3432 Update README.md to include Ubuntu distribution (#3536) 2025-11-13 07:52:14 -06:00
wukko 0f9df28d13 merge: update to chromium 142.0.7444.162 (#433) 2025-11-13 03:07:23 +06:00
wukko 060fa834e5 revision: bump to 5 2025-11-13 03:01:27 +06:00
wukko be47d96c1f patches: refresh for 142.0.7444.162 2025-11-13 03:00:09 +06:00
wukko f049404ad5 merge: update to ungoogled-chromium 142.0.7444.162 2025-11-13 02:46:38 +06:00
jj 232f940dbd ungoogled/existing-switches: fix webrtc switch flag values (#426)
fixes #425
2025-11-12 20:41:07 +00:00
wukko b3d929f6e2 helium/ui: new experimental layout, refactor tabs & omnibox (#427)
- added new experimental one-line top container UI layout behind `#helium-cat-ui` flag
- updated tab groups ui: fixed margins, updated header colors to be less blinding, and moved the line to top to prevent visual clashing with the location bar
- fixed the tab strip alignment on windows, linux, and in fullscreen mode on macos
- reduced tabs' outer margins & width
- refactored omnibox sizing, removed the glitchy border, fixed the macos-specific positioning issue by applying a fresh upstream fix
- refactored `layout-constants` to be more flexible for new ui layouts
2025-11-13 02:36:13 +06:00
wukko 5f296ba37d helium/ui: finally align the tab strip with toolbar buttons
on windows, linux, and fullscreen on mac
2025-11-13 01:58:15 +06:00
wukko 3668280470 upstream-fixes: fix misplaced omnibox popup due to rect constrains
fixes imputnet/helium-macos/issues/67
2025-11-13 01:58:15 +06:00
wukko 673aaf7698 helium/ui/tabs: update tab group ui, fix ntp button overlap, fix padding
- tab group header is now positioned properly
- tab group header is now colored like bookmarked tab groups
- moved tab underline to top to prevent visual clashing with the location bar, made it skinnier
- new tab button no longer sits on top of tabs, caused by minified outer margins of tabs
- fixed padding inside tabs to be visually 6px everywhere
2025-11-13 01:58:15 +06:00
wukko 9113a4cda7 helium/ui/omnibox: refactor sizing, remove stroke 2025-11-13 01:58:14 +06:00
wukko e9de843abe helium/ui: add experimental compact (one-line) toolbar 2025-11-13 01:58:06 +06:00
Blaise 367118d103 Update to Chromium 142.0.7444.162 2025-11-11 13:21:42 -06:00
wukko 8da7b370f7 helium/ui/tabs: reduce outer margins & width 2025-11-08 20:17:12 +06:00
wukko 06a3ebf3d3 helium/ui/layout-constants: refactor to avoid value duplication
and simplify future maintenance
2025-11-08 20:16:42 +06:00
wukko 4991dcc364 revision: bump to 4 (#415) 2025-11-07 20:31:51 +00:00
wukko 7222174274 helium/toolbar: options for hiding back, reload, and menu buttons (#414)
also:
- refactored related patches
- reordered & sorted toolbar options in the customization side panel
- added "customize helium" option to browser window's context menu
2025-11-08 02:27:05 +06:00
wukko 2315522ef2 helium/core: add "customize helium" option to window's context menu 2025-11-08 02:22:54 +06:00
wukko dc61f5cf4f helium/toolbar: add prefs for hiding back, reload, and main menu buttons 2025-11-08 02:22:47 +06:00
wukko 8486eb8436 helium: merge toolbar prefs, move to ui 2025-11-07 19:06:33 +06:00
jj 537ba368e9 helium/core: return "Google Chrome" as browser brand (#408) 2025-11-07 12:10:20 +00:00
jj 61c7f706eb helium/devtools: fix building with sync ripped out (#409) 2025-11-07 12:55:41 +01:00
jj ee6294e217 patches/upstream-fixes: fix warning when building with py3.14 (#410) 2025-11-07 10:16:07 +01:00
wukko e3bcfa4148 merge: update to chromium 142.0.7444.134 (#402) 2025-11-07 01:06:43 +06:00
wukko 4700d1bc7e patches: refresh and update for 142.0.7444.134
`force-eu-search-features.patch` had notable changes for [7102578](https://chromium-review.googlesource.com/c/chromium/src/+/7102578)
2025-11-07 00:11:50 +06:00
wukko 617bd4b75e merge: update to ungoogled-chromium 142.0.7444.134 2025-11-07 00:11:46 +06:00
wukko 7b31f0b137 extras: update onboarding to 202511061712 (#407) 2025-11-06 17:52:26 +00:00
jj 7815dd5522 helium/devtools: remove "account" section from settings (#405)
Fixes #400
2025-11-06 17:10:15 +00:00
jj 48577b920b helium/core: fix ublock origin being re-enabled when updated (#404) 2025-11-06 17:10:39 +01:00
Blaise a264ac047d Update to Chromium 142.0.7444.134 2025-11-06 06:07:35 -06:00
wukko eaf2714853 helium/ui: add window frame hit test to toolbar (#395)
allows for the toolbar to be the handle for window dragging.
prerequisite for vertical tabs and other UI experiments 👀
2025-11-04 18:12:30 +06:00
wukko cc1db76e65 ungoogled/existing-switches: fix order of webrtc policy pref (#390) 2025-11-04 13:39:10 +06:00
jj ae476a674c patches/upstream-fixes: add fix for connectors_service_ CHECK 2025-11-03 15:44:30 +00:00
Andreas Stieger 74779ebab4 add openSUSE instructions (#3527) 2025-11-02 12:57:24 -06:00
Mrugesh Mohapatra 70627f67f4 github: add well-known funding file for ownership verification (#364) 2025-11-02 17:28:46 +06:00
jj c50904a16e revision: bump to 3 2025-11-01 18:17:51 +00:00
jj 2300b0f239 patches/upstream-fixes: add fix for connectors_service_ CHECK 2025-11-01 18:17:21 +00:00
wukko 19d1c7fa61 helium/core/exclude-flags: remove irrelevant flags added in M142 (#372) 2025-10-31 21:23:50 +00:00
wukko 36f1f56e6a revision: bump to 2 (#375) 2025-10-31 11:49:13 +00:00
wukko 0455a0ebc1 patches: don't prevent url elisions by default (#373) 2025-10-31 17:17:39 +06:00
wukko 34ebe96fcc helium/core: webrtc "public interface only" default policy (#371)
closes #308
closes #360
2025-10-31 15:58:35 +06:00
wukko 0198aeaac1 helium/core/autoscroll: enable by default only on windows (#370)
closes #369
2025-10-31 15:43:31 +06:00
wukko 7c6d64e244 revision: reset to 1 (#367) 2025-10-31 01:14:05 +06:00
wukko eadab75c6e revision: reset to 1 2025-10-31 01:09:01 +06:00
wukko 0366b01487 merge: update to chromium 142.0.7444.59 (#363) 2025-10-31 01:02:10 +06:00
wukko 83a38925d8 helium/ui/top-container: fix background color introduced in M142 2025-10-30 22:36:45 +06:00
wukko c12e746219 patches: refresh & update for chromium 142 2025-10-30 22:36:02 +06:00
wukko 9cfd581f96 merge: update to ungoogled-chromium 142.0.7444.59 2025-10-29 13:11:23 +06:00
Blaise 6a7a75d0d4 Update to Chromium 142.0.7444.59 2025-10-28 17:37:26 -05:00
wukko e0995b8b42 helium: fix crash when creating a split in tab group with a detached tab
taken from upstream:
[7032449](https://chromium-review.googlesource.com/c/chromium/src/+/7032449)

fixes #345
2025-10-27 18:26:18 +06:00
jj c7275e01d6 helium/services: disable webui toggle if onboarding is incomplete (#344) 2025-10-26 20:36:31 +01:00
jj 3952195984 helium/bangs: fix missing categories, refactor loading algorithm (#348) 2025-10-26 20:41:29 +06:00
wukko d7451e760c revision: bump to 8 2025-10-22 23:44:01 +06:00
wukko efaf686acf merge: update to ungoogled-chromium 141.0.7390.122 2025-10-22 23:36:47 +06:00
Blaise 0b535463d6 Update to Chromium 141.0.7390.122 2025-10-21 14:55:59 -05:00
wukko 792a3d0dfa revision: bump to 7 2025-10-18 02:24:28 +06:00
jj bf550b7cb2 ci: remove new version check workflow (#284) 2025-10-17 20:21:04 +00:00
wukko b2050c2c8b helium/ui: remove link to password manager from passkey autofill popover 2025-10-18 02:06:18 +06:00
wukko ec7340c086 helium/core: enable autoscroll on linux by default, add a flag
closes #233
2025-10-18 02:06:18 +06:00
wukko 35fe39c483 helium/core/helium-versioning: fix --version & --product-version output
closes #193
2025-10-18 02:06:17 +06:00
wukko 2e9125d326 helium/core/keyboard-shortcuts: unprotect inspect & console actions
they're not as important as the general ability of toggling dev tools,
so it's best to allow web pages to override them. fixes an issue with
google docs keyboard shortcuts.
2025-10-18 02:05:17 +06:00
Joshua Higgins e347cca951 helium/split-view: close only the active tab in split view via ⌘W (#285) 2025-10-18 02:01:20 +06:00
Shannon Skipper 2a79cab2b4 Update preload pages setting link (#3509) 2025-10-17 07:58:34 -05:00
jj 256b83e902 helium/bangs: fix overly optimistic bang autocomplete (#281)
fixes #223
2025-10-17 11:15:14 +00:00
jj f7ad164068 extras: bump ublock to 1.67.0 (#275) 2025-10-17 11:02:26 +00:00
jj ed72676c85 helium/default-browser-reject: trigger dismiss action on cancel (#278) 2025-10-17 12:58:25 +02:00
wukko b3031f79b3 revision: bump to 6 2025-10-16 00:08:32 +06:00
wukko ab6faeaed9 patches: refresh for chromium 141.0.7390.107 2025-10-15 14:11:45 +06:00
wukko 5bf2bc5966 merge: update to ungoogled-chromium 141.0.7390.107 2025-10-15 13:54:59 +06:00
wukko 68ef8ffe61 helium/core: disable fedcm login nag bubble 2025-10-15 13:05:12 +06:00
Blaise 11b9b4f0eb Update to Chromium 141.0.7390.107 2025-10-14 15:34:56 -05:00
jj fd4e3ec87b helium/core: add "do not show again" to default browser nag (#264) 2025-10-14 21:52:17 +02:00
jj 7f886834a7 helium/split-view: reload only focused half of split view (#263)
fixes #118
2025-10-14 18:24:24 +02:00
wukko 1c4ad07e9c helium/core/keyboard-shortcuts: protect tab search action
discord hijacks it with a useless action, and seemingly no other web app uses cmd+shift+a for anything
2025-10-14 21:55:48 +06:00
wukko ce80c9748f helium/core: toggle for ⌘+Shift+C, add ⌘+Shift+E as element inspector
- added a pref and a toggle in accessibility settings for controlling the state of ⌘+Shift+C'sbehavior and restoring inspector functionality.
- added helium's own command specifically for ⌘+Shift+C shortcut to prevent any unexpected breakage or side effects.
- assigned ⌘+Shift+E to enable element inspector on all platforms, since ⌘+Shift+C copies the URL by default.
- updated the inspector's keyboard shortcut in devtools tooltip to display ⌘+Shift+E.
- assigned ⌘+Shift+I to open devtools on macos. previously it enabled the inspector, but it makes more sense to unify the keyboard combo effects across platforms. now ⌘/Ctrl+Shift+I toggles devtools on all platforms in the same way.
- merged `copy-page-url-shortcut.patch`, `protect-browser-keyboard-shortcuts.patch`, and macos' `replace-email-shortcut-with-devtools.patch` into `keyboard-shortcuts.patch`

closes #96
2025-10-14 21:21:04 +06:00
Noa Virellia ea61e0bcd5 utils/{generate,replace}_resources: add shebang 2025-10-10 12:44:58 +08:00
Noa Virellia d813f47f4e utils: make utility scripts executable 2025-10-10 12:37:47 +08:00
Blaise dd24681d9d Update to Chromium 141.0.7390.76 2025-10-09 16:09:06 -05:00
wukko 50e0255fe2 revision: bump to 5 2025-10-08 16:40:10 +06:00
wukko b735b3ae1d helium/core: disable non-milestone update toast
disables the "Helium was updated" toast in top right. just unnecessary imo.
2025-10-08 16:39:43 +06:00
wukko 115cf2e55a revision: bump to 4 2025-10-08 14:39:38 +06:00
wukko 7022a9e02e helium/core/component-schema: fix file path construction on windows 2025-10-08 14:34:17 +06:00
wukko 9fc0ab1720 patches: refresh for 141.0.7390.65 2025-10-08 14:29:42 +06:00
wukko abb3c6628a merge: update to ungoogled-chromium 141.0.7390.65 2025-10-08 14:19:51 +06:00
Blaise f62b1281a3 Update to Chromium 141.0.7390.65 2025-10-07 14:52:02 -05:00
wukko f46cc85e7c revision: bump to 3 2025-10-07 20:34:30 +06:00
jj 6f6679d446 helium/search: move search patches into core subdir 2025-10-07 13:57:35 +00:00
jj 662041df27 helium: consolidate search engine patches
- move all search patches together in series
- extract google re-config into separate patch
- merge kagi + ddg patch into consolidated "search
  engine defaults" patch
2025-10-07 13:46:46 +00:00
wukko 86710deb6a helium/ui/tabs: fix tab groups ui
- tabs no longer have a stroke when they're in a tab group
- the line under the tab group no longer jumps in size depending on a selected tab and is properly aligned
2025-10-07 18:57:20 +06:00
thenhnn 8f51e9f904 helium/core: add an option to open new tabs next to active one (#210) 2025-10-07 18:56:27 +06:00
wukko f01e2d502a helium/ui/tabs: fix unexpected shifting on hover
fixes #127
2025-10-07 01:06:07 +06:00
wukko 5ed9e4cff3 helium/core: exclude broken/irrelevant flags 2025-10-07 00:29:23 +06:00
wukko 0fbca2dcbd helium/core: disable touch ui 2025-10-06 23:33:53 +06:00
wukko 1da4771ecd helium/hop/pwm: refactor 2025-10-06 23:32:56 +06:00
jj 7cc782cf18 helium/core: load managed storage manifests for component extensions
fixes #209
2025-10-06 16:17:53 +00:00
jj eff0437c87 helium/settings: re-enable fedcm settings page 2025-10-06 13:22:26 +00:00
jj 6eaf98d1c5 patches/ungoogled-chromium: re-enable fedcm requests
fixes #158
2025-10-06 13:22:26 +00:00
jj 739f2f2fd2 helium/ui: remove webstore link from theme side panel page
fixes #102
2025-10-06 13:22:26 +00:00
Joshua Higgins 1fd0941818 helium/settings: display Quad9 option in Secure DNS settings (#188) 2025-10-04 18:20:07 +02:00
wukko 12534c0398 ci/bump-platform: update bot user to helium-bot 2025-10-04 20:25:59 +06:00
259 changed files with 8042 additions and 4002 deletions
+1
View File
@@ -0,0 +1 @@
*.patch linguist-language=C++
@@ -0,0 +1 @@
https://helium.computer/funding.json
+10 -2
View File
@@ -13,6 +13,14 @@ runs:
shell: bash
run: sudo apt install quilt
- name: Clear disk space
shell: bash
run: |
sudo rm -rf /usr/lib/jvm \
/usr/lib/google-cloud-sdk \
/usr/lib/dotnet \
/usr/share/swift
- name: Bump revision and make PR
shell: bash
env:
@@ -83,8 +91,8 @@ runs:
# commit, push, make pr
TITLE="update: helium $version_after"
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "helium-bot"
git config user.email "helium-bot@imput.net"
git add -u patches helium-chromium revision.txt
if ! git status | tail -1 | grep -q 'nothing to commit'; then
git commit -m "$TITLE"
-100
View File
@@ -1,100 +0,0 @@
name: New version check
permissions:
contents: read
issues: write
on:
# enabling manual trigger
workflow_dispatch:
# running every hour
schedule:
- cron: '48 * * * *'
jobs:
check:
# do not run in forks
if: github.repository == 'ungoogled-software/ungoogled-chromium'
runs-on: ubuntu-latest
steps:
- name: Set maintainer groups
id: maintainers
run: |
echo "all=@networkException" >> $GITHUB_OUTPUT
echo "linux=@rany2 @clickot @emilylange" >> $GITHUB_OUTPUT
echo "windows=" >> $GITHUB_OUTPUT
echo "macos=" >> $GITHUB_OUTPUT
- name: Get the latest Chromium version
id: latest-version
run: |
set -eo pipefail
BASE_URL="https://versionhistory.googleapis.com/v1/chrome/platforms"
END_URL="channels/stable/versions/all/releases?filter=endtime%3Dnone%2Cfraction%3E%3D0.5&order_by=version%20desc"
JQ_FILTER='if .releases | select(type=="array") | length > 0 then .releases | first | .version else "null" end'
for platform in linux win mac; do
printf %s "${platform}_version=" >> $GITHUB_OUTPUT
curl -sf "${BASE_URL}/${platform}/${END_URL}" | jq -re "${JQ_FILTER}" >> $GITHUB_OUTPUT
done
- uses: actions/checkout@v3
- name: Create Issue for all platforms
if: |
contains(steps.latest-version.outputs.win_version, steps.latest-version.outputs.mac_version) &&
contains(steps.latest-version.outputs.mac_version, steps.latest-version.outputs.linux_version) &&
!contains(steps.latest-version.outputs.linux_version, 'null')
uses: dblock/create-a-github-issue@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.latest-version.outputs.linux_version }}
PLATFORM: all platforms
NOTIFY_MAINTAINERS: "${{ steps.maintainers.outputs.all }} ${{ steps.maintainers.outputs.linux }} ${{ steps.maintainers.outputs.windows }} ${{ steps.maintainers.outputs.macos }}"
with:
update_existing: false
search_existing: all
filename: .github/ISSUE_TEMPLATE/create-an--updating-to-chromium-x-x-x-x-.md
- name: Create Issue for Linux
if: |
(
!contains(steps.latest-version.outputs.win_version, steps.latest-version.outputs.mac_version) ||
!contains(steps.latest-version.outputs.mac_version, steps.latest-version.outputs.linux_version)
) && !contains(steps.latest-version.outputs.linux_version, 'null')
uses: dblock/create-a-github-issue@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.latest-version.outputs.linux_version }}
PLATFORM: Linux
NOTIFY_MAINTAINERS: "${{ steps.maintainers.outputs.all }} ${{ steps.maintainers.outputs.linux }}"
with:
update_existing: false
search_existing: all
filename: .github/ISSUE_TEMPLATE/create-an--updating-to-chromium-x-x-x-x-.md
- name: Create Issue for macOS
if: |
(
!contains(steps.latest-version.outputs.win_version, steps.latest-version.outputs.mac_version) ||
!contains(steps.latest-version.outputs.mac_version, steps.latest-version.outputs.linux_version)
) && !contains(steps.latest-version.outputs.mac_version, 'null')
uses: dblock/create-a-github-issue@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.latest-version.outputs.mac_version }}
PLATFORM: macOS
NOTIFY_MAINTAINERS: "${{ steps.maintainers.outputs.all }} ${{ steps.maintainers.outputs.macos }}"
with:
update_existing: false
search_existing: all
filename: .github/ISSUE_TEMPLATE/create-an--updating-to-chromium-x-x-x-x-.md
- name: Create Issue for Windows
if: |
(
!contains(steps.latest-version.outputs.win_version, steps.latest-version.outputs.mac_version) ||
!contains(steps.latest-version.outputs.mac_version, steps.latest-version.outputs.linux_version)
) && !contains(steps.latest-version.outputs.win_version, 'null')
uses: dblock/create-a-github-issue@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.latest-version.outputs.win_version }}
PLATFORM: Windows
NOTIFY_MAINTAINERS: "${{ steps.maintainers.outputs.all }} ${{ steps.maintainers.outputs.windows }}"
with:
update_existing: false
search_existing: all
filename: .github/ISSUE_TEMPLATE/create-an--updating-to-chromium-x-x-x-x-.md
+1 -1
View File
@@ -1 +1 @@
141.0.7390.54
143.0.7499.40
+26 -4
View File
@@ -16,6 +16,10 @@ def _read_text(path):
return filter(str, f.read().splitlines())
def _read_patch(path):
return unidiff.PatchSet('\n'.join(_read_text(path)))
def _init(root):
global patches_dir
global series
@@ -59,8 +63,7 @@ def c_all_new_files_have_license_header():
if 'helium' not in patch:
continue
patch_set = unidiff.PatchSet('\n'.join(_read_text(patch)))
added_files = filter(lambda f: f.is_added_file, patch_set)
added_files = filter(lambda f: f.is_added_file, _read_patch(patch))
for file in added_files:
if any(p in file.path.lower() for p in LICENSE_HEADER_IGNORES):
@@ -75,8 +78,8 @@ def c_all_new_headers_have_correct_guard():
if 'helium' not in patch:
continue
patch_set = unidiff.PatchSet('\n'.join(_read_text(patch)))
added_files = filter(lambda f: f.is_added_file and f.path.endswith('.h'), patch_set)
added_files = filter(lambda f: f.is_added_file and f.path.endswith('.h'),
_read_patch(patch))
for file in added_files:
expected_macro_name = file.path.upper() \
@@ -112,3 +115,22 @@ def c_all_new_headers_have_correct_guard():
assert value == f"+{expected[macro_type]}\n", \
f"Patch {patch} has unexpected {macro_type} in {file.path}:" \
f"{value_print}, expecting: {expected[macro_type]}"
def d_no_whitespace_only_changes():
for patch in series:
if 'helium' not in patch:
continue
for file in _read_patch(patch):
for hunk in file:
seen_nonws = False
for line in hunk:
line = str(line)
if line.startswith('+') or line.startswith('-'):
seen_nonws = seen_nonws or len(line.rstrip()) > 1
assert seen_nonws, \
f"Patch {patch} contains hunk consisting of "\
f"only whitespace characters in {file.path}: {hunk}"
+2 -2
View File
@@ -70,8 +70,8 @@ PRUNING_EXCLUDE_PATTERNS = [
'third_party/node/node_modules/@rollup/wasm-node/dist/wasm-node/bindings_wasm_bg.wasm',
# Exclusion for performance tracing
'third_party/perfetto/src/trace_processor/importers/proto/atoms.descriptor',
# Exclusion for jiff
'third_party/rust/chromium_crates_io/vendor/jiff-tzdb-v0_1/concatenated-zoneinfo.dat',
# Exclusion for zoneinfo64
'third_party/rust/chromium_crates_io/vendor/zoneinfo64-v0_2/src/data/zoneinfo64.res',
# Exclusions for safe file extensions
'*.avif',
'*.ttf',
+12 -15
View File
@@ -1,10 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2025 The Helium Authors
# You can use, redistribute, and/or modify this source code under
# the terms of the GPL-3.0 license that can be found in the LICENSE file.
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE.ungoogled_chromium file.
@@ -67,19 +63,19 @@ def _dir_empty(path):
return False
def _rename_files_with_dirs(root_dir, sorted_file_iter):
def _rename_files_with_dirs(root_dir, source_dir, sorted_file_iter):
'''
Moves a list of sorted files back to the upstream repo, removing empty directories along the way
Moves a list of sorted files back to their original location,
removing empty directories along the way
'''
past_parent = None
upstream_path = Path(os.path.dirname(os.path.realpath(__file__))) / '../patches'
for partial_path in sorted_file_iter:
complete_path = Path(root_dir, partial_path)
complete_upstream_path = Path(upstream_path, partial_path)
complete_source_path = Path(source_dir, partial_path)
try:
complete_path.rename(complete_upstream_path)
complete_path.rename(complete_source_path)
except FileNotFoundError:
get_logger().warning('Could not remove prepended patch: %s', complete_path)
get_logger().warning('Could not move prepended patch: %s', complete_path)
if past_parent != complete_path.parent:
while past_parent and _dir_empty(past_parent):
past_parent.rmdir()
@@ -91,7 +87,7 @@ def _rename_files_with_dirs(root_dir, sorted_file_iter):
complete_path = complete_path.parent
def unmerge_platform_patches(platform_patches_dir):
def unmerge_platform_patches(platform_patches_dir, prepend_patches_dir):
'''
Undo merge_platform_patches(), adding any new patches from series.merged as necessary
@@ -105,8 +101,8 @@ def unmerge_platform_patches(platform_patches_dir):
filter(len,
(platform_patches_dir / _SERIES_PREPEND).read_text(encoding=ENCODING).splitlines()))
# Move prepended files to original location, preserving changes, and clean up
_rename_files_with_dirs(platform_patches_dir, sorted(prepend_series))
# Move prepended files back to original location, preserving changes
_rename_files_with_dirs(platform_patches_dir, prepend_patches_dir, sorted(prepend_series))
# Determine positions of blank spaces in series.orig
if not (platform_patches_dir / _SERIES_ORIG).exists():
@@ -175,10 +171,11 @@ def main():
repo_dir = Path(__file__).resolve().parent.parent
success = False
prepend_patches_dir = repo_dir / 'patches'
if args.command == 'merge':
success = merge_platform_patches(args.platform_patches, repo_dir / 'patches')
success = merge_platform_patches(args.platform_patches, prepend_patches_dir)
elif args.command == 'unmerge':
success = unmerge_platform_patches(args.platform_patches)
success = unmerge_platform_patches(args.platform_patches, prepend_patches_dir)
else:
raise NotImplementedError(args.command)
+543 -141
View File
File diff suppressed because it is too large Load Diff
+4 -4
View File
@@ -7,17 +7,17 @@ sha256 = 00a87050fa3f941d04d67fb5763991e0b8ea399a88b505ab0e56dd263f06864c
output_path = ./third_party/search_engines_data/resources_internal
[onboarding]
version = 202509241653
version = 202511061712
url = https://github.com/imputnet/helium-onboarding/releases/download/%(version)s/helium-onboarding-%(version)s.tar.gz
download_filename = onboarding-page-%(version)s.tar.gz
sha256 = fb23110d391419fbbbe2c8f7c3d96765b9b50aa1c20025343ab7f8bd59f9e7ab
sha256 = 5728d2c6806f3f918f7fd0b358935fd4daa34c1117703c564917ede1dac8e199
output_path = ./components/helium_onboarding
# If you are bumping this, you *NEED* to re-strip the assets.json
# file *every time* by using `devutils/clear-ublock-assets.js`.
[ublock_origin]
version = 1.66.4
version = 1.67.0
url = https://github.com/imputnet/ublock-origin-crx/releases/download/%(version)s/uBlock0_%(version)s.crx
sha256 = c2809bb4cd2f3a6b9ddfc5e165cba74a200cd80ca691521f73d98bf5ab5abcef
sha256 = 969eaaa4e0b1893a35e1c5767c33bcfcc62737667644c97f644ff3c84677aff7
download_filename = ublock-origin-%(version)s.zip
output_path = third_party/ublock
@@ -189,7 +189,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+} // namespace
--- /dev/null
+++ b/chrome/common/importer/chrome_importer_utils.cc
@@ -0,0 +1,241 @@
@@ -0,0 +1,243 @@
+/* Copyright (c) 2019 The Brave Authors, 2025 imput. 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,
@@ -235,7 +235,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ base::ReadFileToString(preference_path, &preference_content);
+
+ std::optional<base::Value::Dict> preference =
+ base::JSONReader::ReadDict(preference_content);
+ base::JSONReader::ReadDict(preference_content,
+ base::JSON_PARSE_CHROMIUM_EXTENSIONS);
+ if (!preference) {
+ return std::nullopt;
+ }
@@ -335,7 +336,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ std::string local_state_content;
+ base::ReadFileToString(local_state_path, &local_state_content);
+ std::optional<base::Value::Dict> local_state_dict =
+ base::JSONReader::ReadDict(local_state_content);
+ base::JSONReader::ReadDict(local_state_content,
+ base::JSON_PARSE_CHROMIUM_EXTENSIONS);
+ if (!local_state_dict)
+ return profiles;
+
@@ -2733,7 +2735,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+#endif // BRAVE_UTILITY_IMPORTER_BRAVE_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_
--- /dev/null
+++ b/chrome/utility/importer/chrome_importer.cc
@@ -0,0 +1,435 @@
@@ -0,0 +1,436 @@
+/* Copyright (c) 2019 The Brave Authors. All rights reserved.
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
@@ -2822,7 +2824,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ std::string local_state_content;
+ base::ReadFileToString(local_state_path, &local_state_content);
+ std::optional<base::Value::Dict> local_state =
+ base::JSONReader::ReadDict(local_state_content);
+ base::JSONReader::ReadDict(local_state_content,
+ base::JSON_PARSE_CHROMIUM_EXTENSIONS);
+ if (!local_state) {
+ return false;
+ }
@@ -3006,7 +3009,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ base::ReadFileToString(copy_bookmark_file.copied_file_path(),
+ &bookmarks_content);
+ std::optional<base::Value::Dict> bookmark_dict =
+ base::JSONReader::ReadDict(bookmarks_content);
+ base::JSONReader::ReadDict(bookmarks_content,
+ base::JSON_PARSE_CHROMIUM_EXTENSIONS);
+ if (!bookmark_dict)
+ return;
+
@@ -3099,8 +3103,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ if (!usage.favicon_url.is_valid())
+ continue; // Don't bother importing favicons with invalid URLs.
+
+ std::vector<uint8_t> data;
+ s.ColumnBlobAsVector(1, &data);
+ std::vector<uint8_t> data = s.ColumnBlobAsVector(1);
+ if (data.empty())
+ continue; // Data definitely invalid.
+
@@ -177,7 +177,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
} // namespace user_data_importer
--- a/tools/metrics/histograms/metadata/sql/histograms.xml
+++ b/tools/metrics/histograms/metadata/sql/histograms.xml
@@ -40,6 +40,7 @@ chromium-metrics-reviews@google.com.
@@ -42,6 +42,7 @@ chromium-metrics-reviews@google.com.
<variant name="DBSCSessions" summary="DBSCSessions"/>
<variant name="DIPS" summary="DIPS"/>
<variant name="DownloadRecord" summary="DownloadRecord"/>
@@ -207,7 +207,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
} // namespace user_data_importer
--- a/chrome/common/importer/profile_import_process_param_traits_macros.h
+++ b/chrome/common/importer/profile_import_process_param_traits_macros.h
@@ -20,11 +20,11 @@
@@ -23,11 +23,11 @@
#if BUILDFLAG(IS_WIN)
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImporterType,
user_data_importer::TYPE_UNKNOWN,
@@ -244,7 +244,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
}
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -4260,6 +4260,9 @@ inline constexpr char kServiceWorkerToCo
@@ -4281,6 +4281,9 @@ inline constexpr char kServiceWorkerToCo
inline constexpr char kSharedWorkerBlobURLFixEnabled[] =
"worker.shared_worker_blob_url_fix_enabled";
@@ -256,7 +256,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
inline constexpr char kClearWindowNameForNewBrowsingContextGroup[] =
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -1161,6 +1161,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -1147,6 +1147,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kImportDialogSearchEngine] =
settings_api::PrefType::kBoolean;
@@ -267,7 +267,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Supervised Users. This setting is queried in our Tast tests (b/241943380).
--- a/chrome/browser/ui/webui/settings/settings_ui.cc
+++ b/chrome/browser/ui/webui/settings/settings_ui.cc
@@ -62,6 +62,7 @@
@@ -63,6 +63,7 @@
#include "chrome/browser/ui/webui/settings/font_handler.h"
#include "chrome/browser/ui/webui/settings/hats_handler.h"
#include "chrome/browser/ui/webui/settings/import_data_handler.h"
@@ -275,7 +275,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "chrome/browser/ui/webui/settings/metrics_reporting_handler.h"
#include "chrome/browser/ui/webui/settings/on_startup_handler.h"
#include "chrome/browser/ui/webui/settings/password_manager_handler.h"
@@ -202,6 +203,7 @@ void SettingsUI::RegisterProfilePrefs(
@@ -203,6 +204,7 @@ void SettingsUI::RegisterProfilePrefs(
registry->RegisterBooleanPref(prefs::kImportDialogHistory, true);
registry->RegisterBooleanPref(prefs::kImportDialogSavedPasswords, true);
registry->RegisterBooleanPref(prefs::kImportDialogSearchEngine, true);
@@ -283,7 +283,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
}
SettingsUI::SettingsUI(content::WebUI* web_ui)
@@ -231,7 +233,7 @@ SettingsUI::SettingsUI(content::WebUI* w
@@ -232,7 +234,7 @@ SettingsUI::SettingsUI(content::WebUI* w
AddSettingsPageUIHandler(std::make_unique<DownloadsHandler>(profile));
AddSettingsPageUIHandler(std::make_unique<ExtensionControlHandler>());
AddSettingsPageUIHandler(std::make_unique<FontHandler>(profile));
@@ -294,7 +294,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#if BUILDFLAG(IS_WIN)
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -893,6 +893,8 @@ void AddImportDataStrings(content::WebUI
@@ -999,6 +999,8 @@ void AddImportDataStrings(content::WebUI
{"importHistory", IDS_SETTINGS_IMPORT_HISTORY_CHECKBOX},
{"importFavorites", IDS_SETTINGS_IMPORT_FAVORITES_CHECKBOX},
{"importPasswords", IDS_SETTINGS_IMPORT_PASSWORDS_CHECKBOX},
@@ -319,7 +319,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</div>
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -1203,6 +1203,10 @@ static_library("ui") {
@@ -1252,6 +1252,10 @@ static_library("ui") {
"webui/settings/accessibility_main_handler.h",
"webui/settings/appearance_handler.cc",
"webui/settings/appearance_handler.h",
@@ -330,7 +330,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
"webui/settings/browser_lifetime_handler.cc",
"webui/settings/browser_lifetime_handler.h",
"webui/settings/captions_handler.cc",
@@ -1355,6 +1359,13 @@ static_library("ui") {
@@ -1408,6 +1412,13 @@ static_library("ui") {
]
}
@@ -412,7 +412,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Corresponds to the "id" column of the "visits" SQL table.
--- a/components/history/core/browser/visit_database.cc
+++ b/components/history/core/browser/visit_database.cc
@@ -119,6 +119,8 @@ VisitSource VisitSourceFromInt(int value
@@ -120,6 +120,8 @@ VisitSource VisitSourceFromInt(int value
case SOURCE_SAFARI_IMPORTED:
case SOURCE_ACTOR:
case SOURCE_OS_MIGRATION_IMPORTED:
@@ -434,7 +434,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
}
--- a/chrome/utility/BUILD.gn
+++ b/chrome/utility/BUILD.gn
@@ -92,6 +92,12 @@ static_library("utility") {
@@ -90,6 +90,12 @@ static_library("utility") {
sources += [
"importer/bookmarks_file_importer.cc",
"importer/bookmarks_file_importer.h",
@@ -459,7 +459,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "components/mirroring/service/mirroring_service.h"
#include "services/passage_embeddings/passage_embeddings_service.h"
#include "services/proxy_resolver/proxy_resolver_factory_impl.h" // nogncheck
@@ -146,6 +148,13 @@ static_assert(BUILDFLAG(ENABLE_PRINTING)
@@ -138,6 +140,13 @@ static_assert(BUILDFLAG(ENABLE_PRINTING)
namespace {
@@ -473,7 +473,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
auto RunFilePatcher(mojo::PendingReceiver<patch::mojom::FilePatcher> receiver) {
return std::make_unique<patch::FilePatcherImpl>(std::move(receiver));
}
@@ -465,6 +474,7 @@ void RegisterMainThreadServices(mojo::Se
@@ -434,6 +443,7 @@ void RegisterMainThreadServices(mojo::Se
services.Add(ContentBookmarkParser);
#if !BUILDFLAG(IS_ANDROID)
@@ -583,7 +583,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// entire group has been collected and is ready to be written to the profile.
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -11122,6 +11122,15 @@ Check your passwords anytime in <ph name
@@ -11279,6 +11279,15 @@ Check your passwords anytime in <ph name
Microsoft Edge
</message>
</if>
@@ -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"
@@ -533,6 +534,22 @@ void ExtensionRegistrar::AddComponentExt
@@ -540,6 +541,22 @@ void ExtensionRegistrar::AddComponentExt
}
AddExtension(extension);
@@ -0,0 +1,260 @@
Based on Brave's MRU tab cycling implementation, adapted for Helium.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this file,
You can obtain one at https://mozilla.org/MPL/2.0/.
Copyright (c) 2025, The Brave Authors
Copyright (c) 2025, The Helium Authors
Alternatively, the contents of this file may be used under the terms
of the GNU General Public License Version 3, as described below:
Copyright (C) 2025 The Helium Authors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
--- a/chrome/browser/ui/tabs/tab_strip_model.cc
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc
@@ -54,6 +54,7 @@
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_window.h"
+#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/commerce/ui_utils.h"
#include "chrome/browser/ui/send_tab_to_self/send_tab_to_self_bubble.h"
#include "chrome/browser/ui/tabs/features.h"
@@ -3703,6 +3704,44 @@ TabStripSelectionChange TabStripModel::S
return selection;
}
+void TabStripModel::SelectMRUTab(TabRelativeDirection direction,
+ TabStripUserGestureDetails detail) {
+ if (mru_cycle_list_.empty()) {
+ Browser* browser = chrome::FindBrowserWithTab(GetWebContentsAt(0));
+ if (!browser) {
+ return;
+ }
+
+ for (int i = 0; i < count(); ++i) {
+ mru_cycle_list_.push_back(i);
+ }
+
+ std::sort(mru_cycle_list_.begin(), mru_cycle_list_.end(),
+ [this](int a, int b) {
+ return GetWebContentsAt(a)->GetLastActiveTimeTicks() >
+ GetWebContentsAt(b)->GetLastActiveTimeTicks();
+ });
+
+ if (BrowserView* browser_view = browser->window()->AsBrowserView()) {
+ browser_view->StartTabCycling();
+ }
+ }
+
+ if (direction == TabRelativeDirection::kNext) {
+ std::rotate(mru_cycle_list_.begin(), mru_cycle_list_.begin() + 1,
+ mru_cycle_list_.end());
+ } else {
+ std::rotate(mru_cycle_list_.rbegin(), mru_cycle_list_.rbegin() + 1,
+ mru_cycle_list_.rend());
+ }
+
+ ActivateTabAt(mru_cycle_list_[0], detail);
+}
+
+void TabStripModel::StopMRUCycling() {
+ mru_cycle_list_.clear();
+}
+
void TabStripModel::SelectRelativeTab(TabRelativeDirection direction,
TabStripUserGestureDetails detail) {
// This may happen during automated testing or if a user somehow buffers
--- a/chrome/browser/ui/tabs/tab_strip_model.h
+++ b/chrome/browser/ui/tabs/tab_strip_model.h
@@ -611,6 +611,10 @@ class TabStripModel {
TabStripUserGestureDetails detail = TabStripUserGestureDetails(
TabStripUserGestureDetails::GestureType::kOther));
+ // Stops cycling through tabs in MRU order when Ctrl is released.
+ // Used in BrowserView::StopTabCycling().
+ void StopMRUCycling();
+
// Moves the active in the specified direction. Respects group boundaries.
void MoveTabNext();
void MoveTabPrevious();
@@ -1139,6 +1143,11 @@ class TabStripModel {
kPrevious,
};
+ // Selects either the most recently used tab
+ // or the least recently used tab.
+ void SelectMRUTab(TabRelativeDirection direction,
+ TabStripUserGestureDetails detail);
+
// Selects either the next tab (kNext), or the previous tab (kPrevious).
void SelectRelativeTab(TabRelativeDirection direction,
TabStripUserGestureDetails detail);
@@ -1393,6 +1402,9 @@ class TabStripModel {
// Tracks whether a modal UI is showing.
bool showing_modal_ui_ = false;
+ // List of tabs for MRU cycling
+ std::vector<int> mru_cycle_list_;
+
base::WeakPtrFactory<TabStripModel> weak_factory_{this};
};
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -291,7 +291,10 @@
#include "ui/compositor/paint_recorder.h"
#include "ui/content_accelerators/accelerator_util.h"
#include "ui/display/screen.h"
+#include "ui/events/event.h"
+#include "ui/events/event_handler.h"
#include "ui/events/event_utils.h"
+#include "ui/events/keycodes/keyboard_codes.h"
#include "ui/gfx/animation/animation_runner.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/color_utils.h"
@@ -309,6 +312,7 @@
#include "ui/views/controls/button/menu_button.h"
#include "ui/views/controls/textfield/textfield.h"
#include "ui/views/controls/webview/webview.h"
+#include "ui/views/event_monitor.h"
#include "ui/views/interaction/element_tracker_views.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/view.h"
@@ -809,6 +813,83 @@ class BrowserView::ExclusiveAccessContex
base::WeakPtrFactory<ExclusiveAccessContextImpl> weak_ptr_factory_{this};
};
+// Handles events during MRU tab cycling to start/stop tab cycling.
+class TabCyclingEventHandler : public ui::EventObserver,
+ public views::WidgetObserver {
+ public:
+ explicit TabCyclingEventHandler(BrowserView* browser_view)
+ : browser_view_(browser_view) {
+ Start();
+ }
+
+ ~TabCyclingEventHandler() override { Stop(); }
+
+ TabCyclingEventHandler(const TabCyclingEventHandler&) = delete;
+ TabCyclingEventHandler& operator=(const TabCyclingEventHandler&) = delete;
+
+ private:
+ // ui::EventObserver overrides:
+ void OnEvent(const ui::Event& event) override {
+ if (event.type() == ui::EventType::kKeyReleased &&
+ event.AsKeyEvent()->key_code() == ui::VKEY_CONTROL) {
+ // Ctrl key was released, stop the tab cycling.
+ Stop();
+ return;
+ }
+
+ if (event.type() == ui::EventType::kMousePressed) {
+ Stop();
+ }
+ }
+
+ // views::WidgetObserver overrides:
+ void OnWidgetActivationChanged(views::Widget* widget, bool active) override {
+ // We should stop cycling if other application gets active state.
+ if (!active) {
+ Stop();
+ }
+ }
+
+ // Handle browser widget closing while tab cycling is in-progress.
+ void OnWidgetClosing(views::Widget* widget) override { Stop(); }
+
+ void Start() {
+ // Add the event handler.
+ auto* widget = browser_view_->GetWidget();
+ if (widget->GetNativeWindow()) {
+ monitor_ = views::EventMonitor::CreateWindowMonitor(
+ this, widget->GetNativeWindow(),
+ {ui::EventType::kMousePressed, ui::EventType::kKeyReleased});
+ }
+ widget->AddObserver(this);
+ }
+
+ void Stop() {
+ if (!monitor_) {
+ // Already stopped.
+ return;
+ }
+
+ // Remove event handler.
+ auto* widget = browser_view_->GetWidget();
+ monitor_.reset();
+ widget->RemoveObserver(this);
+ browser_view_->StopTabCycling();
+ }
+
+ raw_ptr<BrowserView> browser_view_;
+ std::unique_ptr<views::EventMonitor> monitor_;
+};
+
+void BrowserView::StartTabCycling() {
+ tab_cycling_event_handler_ = std::make_unique<TabCyclingEventHandler>(this);
+}
+
+void BrowserView::StopTabCycling() {
+ tab_cycling_event_handler_.reset();
+ browser()->tab_strip_model()->StopMRUCycling();
+}
+
class BrowserView::AccessibilityModeObserver : public ui::AXModeObserver {
public:
explicit AccessibilityModeObserver(BrowserView* browser_view)
--- a/chrome/browser/ui/views/frame/browser_view.h
+++ b/chrome/browser/ui/views/frame/browser_view.h
@@ -80,6 +80,7 @@ class LocationBarView;
class MultiContentsView;
class ScrimView;
class SidePanel;
+class TabCyclingEventHandler;
class TabDragDelegate;
class TabSearchBubbleHost;
class TabStrip;
@@ -555,6 +556,10 @@ class BrowserView : public BrowserWindow
bool IsBorderlessModeEnabled() const override;
void ShowChromeLabs() override;
BrowserView* AsBrowserView() override;
+
+ void StartTabCycling();
+ void StopTabCycling();
+
SharingDialog* ShowSharingDialog(content::WebContents* contents,
SharingDialogData data) override;
void ShowUpdateChromeDialog() override;
@@ -860,6 +865,7 @@ class BrowserView : public BrowserWindow
friend class BrowserViewLayoutDelegateImpl;
friend class BrowserViewLayoutDelegateImplOld;
friend class BrowserViewLayoutDelegateImplBrowsertest;
+ friend class TabCyclingEventHandler;
friend class TopControlsSlideControllerTest;
FRIEND_TEST_ALL_PREFIXES(BrowserViewTest, BrowserView);
FRIEND_TEST_ALL_PREFIXES(BrowserViewTest, AccessibleWindowTitle);
@@ -1387,6 +1393,8 @@ class BrowserView : public BrowserWindow
base::CallbackListSubscription vertical_tab_subscription_;
+ std::unique_ptr<TabCyclingEventHandler> tab_cycling_event_handler_;
+
mutable base::WeakPtrFactory<BrowserView> weak_ptr_factory_{this};
};
@@ -10,7 +10,7 @@ Subject: Disable fetching of all field trials
--- a/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java
+++ b/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java
@@ -60,7 +60,7 @@ public abstract class ChromeFeatureList
@@ -61,7 +61,7 @@ public abstract class ChromeFeatureList
* |kFeaturesExposedToJava| in chrome/browser/flags/android/chrome_feature_list.cc
*/
public static String getFieldTrialParamByFeature(String featureName, String paramName) {
@@ -19,7 +19,7 @@ Subject: Disable fetching of all field trials
}
/**
@@ -72,8 +72,7 @@ public abstract class ChromeFeatureList
@@ -73,8 +73,7 @@ public abstract class ChromeFeatureList
*/
public static boolean getFieldTrialParamByFeatureAsBoolean(
String featureName, String paramName, boolean defaultValue) {
@@ -29,7 +29,7 @@ Subject: Disable fetching of all field trials
}
/**
@@ -85,8 +84,7 @@ public abstract class ChromeFeatureList
@@ -86,8 +85,7 @@ public abstract class ChromeFeatureList
*/
public static int getFieldTrialParamByFeatureAsInt(
String featureName, String paramName, int defaultValue) {
@@ -39,7 +39,7 @@ Subject: Disable fetching of all field trials
}
/**
@@ -98,8 +96,7 @@ public abstract class ChromeFeatureList
@@ -99,8 +97,7 @@ public abstract class ChromeFeatureList
*/
public static double getFieldTrialParamByFeatureAsDouble(
String featureName, String paramName, double defaultValue) {
@@ -51,7 +51,7 @@ Subject: Disable fetching of all field trials
/**
--- a/components/variations/service/variations_service.cc
+++ b/components/variations/service/variations_service.cc
@@ -224,22 +224,7 @@ bool GetInstanceManipulations(const net:
@@ -223,22 +223,7 @@ bool GetInstanceManipulations(const net:
// Variations seed fetching is only enabled in official Chrome builds, if a URL
// is specified on the command line, and for testing.
bool IsFetchingEnabled() {
@@ -9,7 +9,7 @@
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -2599,6 +2599,7 @@ static_library("browser") {
@@ -2596,6 +2596,7 @@ static_library("browser") {
"//third_party/libyuv",
"//third_party/metrics_proto",
"//third_party/re2",
@@ -19,7 +19,7 @@
"//third_party/widevine/cdm:headers",
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -188,6 +188,7 @@
@@ -191,6 +191,7 @@
#include "components/translate/core/common/translate_util.h"
#include "components/trusted_vault/features.h"
#include "components/ui_devtools/switches.h"
@@ -54,7 +54,7 @@
"//tools/v8_context_snapshot:buildflags",
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -83,6 +83,7 @@
@@ -84,6 +84,7 @@
#include "components/services/storage/public/cpp/quota_error_or.h"
#include "components/services/storage/public/mojom/cache_storage_control.mojom.h"
#include "components/tracing/common/tracing_switches.h"
@@ -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"
@@ -3541,6 +3542,8 @@ void RenderProcessHostImpl::PropagateBro
@@ -3698,6 +3699,8 @@ void RenderProcessHostImpl::PropagateBro
switches::kEnableWebGLImageChromium,
switches::kEnableWebGPUDeveloperFeatures,
switches::kFileUrlPathAlias,
@@ -73,7 +73,7 @@
switches::kForceHighContrast,
--- a/content/child/BUILD.gn
+++ b/content/child/BUILD.gn
@@ -110,6 +110,7 @@ target(link_target_type, "child") {
@@ -109,6 +109,7 @@ target(link_target_type, "child") {
"//third_party/blink/public/common:buildflags",
"//third_party/blink/public/strings",
"//third_party/ced",
@@ -83,7 +83,7 @@
"//ui/events/blink",
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -41,6 +41,7 @@
@@ -42,6 +42,7 @@
#include "third_party/blink/public/common/loader/referrer_utils.h"
#include "third_party/blink/public/common/switches.h"
#include "third_party/blink/public/platform/web_runtime_features.h"
@@ -91,7 +91,7 @@
#include "ui/accessibility/accessibility_features.h"
#include "ui/base/ui_base_features.h"
#include "ui/events/blink/blink_features.h"
@@ -484,6 +485,10 @@ void SetRuntimeFeaturesFromCommandLine(c
@@ -485,6 +486,10 @@ void SetRuntimeFeaturesFromCommandLine(c
true},
{wrf::EnableWebAudioBypassOutputBufferingOptOut,
blink::switches::kWebAudioBypassOutputBufferingOptOut, true},
@@ -124,7 +124,7 @@
#include "base/task/single_thread_task_runner.h"
#include "base/time/time.h"
#include "base/trace_event/trace_event.h"
@@ -1084,6 +1085,11 @@ Document::Document(const DocumentInit& i
@@ -1089,6 +1090,11 @@ Document::Document(const DocumentInit& i
TRACE_EVENT_WITH_FLOW0("blink", "Document::Document", TRACE_ID_LOCAL(this),
TRACE_EVENT_FLAG_FLOW_OUT);
DCHECK(agent_);
@@ -136,7 +136,7 @@
if (base::FeatureList::IsEnabled(features::kDelayAsyncScriptExecution) &&
features::kDelayAsyncScriptExecutionDelayByDefaultParam.Get()) {
script_runner_delayer_->Activate();
@@ -1221,6 +1227,14 @@ const Position Document::PositionAdjuste
@@ -1226,6 +1232,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
@@ -572,6 +572,10 @@ class CORE_EXPORT Document : public Cont
@@ -574,6 +574,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;
@@ -2783,6 +2787,9 @@ class CORE_EXPORT Document : public Cont
@@ -2810,6 +2814,9 @@ class CORE_EXPORT Document : public Cont
base::ElapsedTimer start_time_;
@@ -176,19 +176,17 @@
// - ScriptSchedulingType::kInOrder
--- a/third_party/blink/renderer/core/dom/element.cc
+++ b/third_party/blink/renderer/core/dom/element.cc
@@ -3133,6 +3133,11 @@ DOMRectList* Element::getClientRects() {
DCHECK(element_layout_object);
GetDocument().AdjustQuadsForScrollAndAbsoluteZoom(quads,
*element_layout_object);
+ if (RuntimeEnabledFeatures::FingerprintingClientRectsNoiseEnabled()) {
+ for (gfx::QuadF& quad : quads) {
@@ -3195,6 +3195,9 @@ Vector<gfx::RectF> Element::GetClientRec
}
Vector<gfx::RectF> result;
for (auto& quad : quads) {
+ if (RuntimeEnabledFeatures::FingerprintingClientRectsNoiseEnabled()) {
+ quad.Scale(GetDocument().GetNoiseFactorX(), GetDocument().GetNoiseFactorY());
+ }
+ }
return MakeGarbageCollected<DOMRectList>(quads);
}
@@ -3160,6 +3165,9 @@ gfx::RectF Element::GetBoundingClientRec
result.emplace_back(quad.BoundingBox());
}
return result;
@@ -3224,6 +3227,9 @@ gfx::RectF Element::GetBoundingClientRec
DCHECK(element_layout_object);
GetDocument().AdjustRectForScrollAndAbsoluteZoom(result,
*element_layout_object);
@@ -228,9 +226,9 @@
// TODO(editing-dev): We should make
--- a/third_party/blink/renderer/core/html/canvas/text_metrics.cc
+++ b/third_party/blink/renderer/core/html/canvas/text_metrics.cc
@@ -106,6 +106,24 @@ const ShapeResult* ShapeWord(const TextR
@@ -89,6 +89,24 @@ TextMetrics::TextMetrics(const Font* fon
Update(font, direction, baseline, align, text, text_painter);
}
} // namespace
+void TextMetrics::Shuffle(const double factor) {
+ // x-direction
@@ -255,7 +253,7 @@
const V8CanvasTextBaseline::Enum baseline,
--- a/third_party/blink/renderer/core/html/canvas/text_metrics.h
+++ b/third_party/blink/renderer/core/html/canvas/text_metrics.h
@@ -111,6 +111,8 @@ class CORE_EXPORT TextMetrics final : pu
@@ -109,6 +109,8 @@ class CORE_EXPORT TextMetrics final : pu
float x_position_;
};
@@ -266,7 +264,7 @@
const TextDirection& direction,
--- a/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
+++ b/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
@@ -108,6 +108,9 @@
@@ -107,6 +107,9 @@
// https://github.com/include-what-you-use/include-what-you-use/issues/1122
// IWYU pragma: no_include "base/numerics/clamped_math.h"
@@ -276,20 +274,14 @@
namespace blink {
class MemoryManagedPaintCanvas;
@@ -1245,13 +1248,26 @@ TextMetrics* BaseRenderingContext2D::mea
@@ -1233,9 +1236,22 @@ TextMetrics* BaseRenderingContext2D::mea
TextDirection direction =
ToTextDirection(state.GetDirection(), host, computed_style);
- return MakeGarbageCollected<TextMetrics>(
- font, direction, state.GetTextBaseline().AsEnum(),
- state.GetTextAlign().AsEnum(), text,
+ TextMetrics* text_metrics = MakeGarbageCollected<TextMetrics>(
+ font, direction, GetState().GetTextBaseline().AsEnum(),
+ GetState().GetTextAlign().AsEnum(), text,
RuntimeEnabledFeatures::CanvasTextNgEnabled(
host->GetTopExecutionContext())
? &host->GetPlainTextPainter()
: nullptr);
font, direction, state.GetTextBaseline().AsEnum(),
state.GetTextAlign().AsEnum(), text, host->GetPlainTextPainter());
+
+ // Scale text metrics if enabled
+ if (RuntimeEnabledFeatures::FingerprintingCanvasMeasureTextNoiseEnabled()) {
@@ -308,7 +300,7 @@
String BaseRenderingContext2D::lang() const {
--- a/third_party/blink/renderer/platform/BUILD.gn
+++ b/third_party/blink/renderer/platform/BUILD.gn
@@ -1813,6 +1813,7 @@ component("platform") {
@@ -1811,6 +1811,7 @@ component("platform") {
"//components/paint_preview/common",
"//components/search_engines:search_engine_utils",
"//components/translate/core/language_detection",
@@ -343,7 +335,7 @@
#include "third_party/skia/include/core/SkImage.h"
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
@@ -2319,6 +2319,12 @@
@@ -2441,6 +2441,12 @@
status: "stable",
},
{
@@ -34,7 +34,7 @@ approach to change color components.
#endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -3544,6 +3544,7 @@ void RenderProcessHostImpl::PropagateBro
@@ -3701,6 +3701,7 @@ void RenderProcessHostImpl::PropagateBro
switches::kFileUrlPathAlias,
switches::kFingerprintingClientRectsNoise,
switches::kFingerprintingCanvasMeasureTextNoise,
@@ -44,7 +44,7 @@ approach to change color components.
switches::kForceHighContrast,
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -489,6 +489,8 @@ void SetRuntimeFeaturesFromCommandLine(c
@@ -490,6 +490,8 @@ void SetRuntimeFeaturesFromCommandLine(c
switches::kFingerprintingClientRectsNoise, true},
{wrf::EnableFingerprintingCanvasMeasureTextNoise,
switches::kFingerprintingCanvasMeasureTextNoise, true},
@@ -65,7 +65,7 @@ approach to change color components.
};
--- a/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
+++ b/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
@@ -555,6 +555,9 @@ ImageData* BaseRenderingContext2D::getIm
@@ -557,6 +557,9 @@ ImageData* BaseRenderingContext2D::getIm
snapshot->PaintImageForCurrentFrame().GetSkImageInfo().bounds();
DCHECK(!bounds.intersect(SkIRect::MakeXYWH(sx, sy, sw, sh)));
}
@@ -77,7 +77,7 @@ approach to change color components.
return image_data;
--- a/third_party/blink/renderer/platform/BUILD.gn
+++ b/third_party/blink/renderer/platform/BUILD.gn
@@ -1756,7 +1756,9 @@ component("platform") {
@@ -1753,7 +1753,9 @@ component("platform") {
"//third_party/blink/renderer:non_test_config",
]
@@ -281,7 +281,7 @@ approach to change color components.
} // namespace blink
--- a/third_party/blink/renderer/platform/graphics/static_bitmap_image.h
+++ b/third_party/blink/renderer/platform/graphics/static_bitmap_image.h
@@ -39,6 +39,8 @@ class PLATFORM_EXPORT StaticBitmapImage
@@ -38,6 +38,8 @@ class PLATFORM_EXPORT StaticBitmapImage
StaticBitmapImage(ImageOrientation orientation) : orientation_(orientation) {}
@@ -292,7 +292,7 @@ approach to change color components.
// Methods overridden by all sub-classes
--- a/third_party/blink/renderer/platform/image-encoders/image_encoder.cc
+++ b/third_party/blink/renderer/platform/image-encoders/image_encoder.cc
@@ -14,6 +14,8 @@
@@ -13,6 +13,8 @@
#include <stdio.h> // Needed by jpeglib.h
#include "jpeglib.h" // for JPEG_MAX_DIMENSION
@@ -301,7 +301,7 @@ approach to change color components.
#include "third_party/libwebp/src/src/webp/encode.h" // for WEBP_MAX_DIMENSION
namespace blink {
@@ -43,6 +45,10 @@ bool ImageEncoder::Encode(Vector<unsigne
@@ -44,6 +46,10 @@ bool ImageEncoder::Encode(Vector<unsigne
const SkPixmap& src,
ImageEncodingMimeType mime_type,
double quality) {
@@ -314,7 +314,7 @@ approach to change color components.
SkJpegEncoder::Options options;
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
@@ -2325,6 +2325,9 @@
@@ -2447,6 +2447,9 @@
name: "FingerprintingCanvasMeasureTextNoise",
},
{
@@ -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
@@ -2276,6 +2276,7 @@ static_library("browser") {
@@ -2269,6 +2269,7 @@ static_library("browser") {
"//components/net_log",
"//components/network_hints/common:mojo_bindings",
"//components/network_session_configurator/browser",
@@ -81,7 +81,7 @@ with limited CPU/memory resources and it is disabled by default.
#include "printing/buildflags/buildflags.h"
#include "services/network/public/cpp/features.h"
#include "services/network/public/cpp/network_switches.h"
@@ -417,6 +421,18 @@ void BrowserProcessImpl::Init() {
@@ -432,6 +436,18 @@ void BrowserProcessImpl::Init() {
pref_change_registrar_.Add(metrics::prefs::kMetricsReportingEnabled,
base::BindRepeating(&ApplyMetricsReportingPolicy));
@@ -100,31 +100,19 @@ with limited CPU/memory resources and it is disabled by default.
DCHECK(!webrtc_event_log_manager_);
webrtc_event_log_manager_ = WebRtcEventLogManager::CreateSingletonInstance();
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -2654,6 +2654,10 @@ const char kLogJsConsoleMessagesDescript
--- a/chrome/browser/flag_descriptions.h
+++ b/chrome/browser/flag_descriptions.h
@@ -2753,6 +2753,10 @@ inline constexpr char kLogJsConsoleMessa
"Enable logging JS console messages in system logs, please note that they "
"may contain PII.";
+const char kMaxConnectionsPerHostName[] = "Maximum connections per host";
+const char kMaxConnectionsPerHostDescription[] =
+inline constexpr char kMaxConnectionsPerHostName[] = "Maximum connections per host";
+inline constexpr char kMaxConnectionsPerHostDescription[] =
+ "Customize maximum allowed connections per host. ungoogled-chromium flag, Bromite feature.";
+
const char kMediaRouterCastAllowAllIPsName[] =
inline constexpr char kMediaRouterCastAllowAllIPsName[] =
"Connect to Cast devices on all IP addresses";
const char kMediaRouterCastAllowAllIPsDescription[] =
--- a/chrome/browser/flag_descriptions.h
+++ b/chrome/browser/flag_descriptions.h
@@ -1555,6 +1555,9 @@ extern const char kLockTopControlsOnLarg
extern const char kLogJsConsoleMessagesName[];
extern const char kLogJsConsoleMessagesDescription[];
+extern const char kMaxConnectionsPerHostName[];
+extern const char kMaxConnectionsPerHostDescription[];
+
extern const char kMediaRouterCastAllowAllIPsName[];
extern const char kMediaRouterCastAllowAllIPsDescription[];
inline constexpr char kMediaRouterCastAllowAllIPsDescription[] =
--- a/components/network_session_configurator/common/network_features.cc
+++ b/components/network_session_configurator/common/network_features.cc
@@ -8,4 +8,7 @@
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- a/chrome/browser/ui/startup/infobar_utils.cc
+++ b/chrome/browser/ui/startup/infobar_utils.cc
@@ -178,10 +178,6 @@ void AddInfoBarsIfNecessary(Browser* bro
@@ -188,10 +188,6 @@ void AddInfoBarsIfNecessary(BrowserWindo
infobars::ContentInfoBarManager* infobar_manager =
infobars::ContentInfoBarManager::FromWebContents(web_contents);
@@ -2,7 +2,7 @@
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -469,14 +469,6 @@ group("gn_all") {
@@ -459,14 +459,6 @@ group("gn_all") {
]
}
@@ -1,6 +1,6 @@
--- a/chrome/updater/configurator.cc
+++ b/chrome/updater/configurator.cc
@@ -133,7 +133,7 @@ base::TimeDelta Configurator::UpdateDela
@@ -132,7 +132,7 @@ base::TimeDelta Configurator::UpdateDela
std::vector<GURL> Configurator::UpdateUrl() const {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
@@ -1,6 +1,6 @@
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -3802,8 +3802,6 @@ static_library("browser") {
@@ -3800,8 +3800,6 @@ static_library("browser") {
"download/download_auto_open_policy_handler.cc",
"download/download_auto_open_policy_handler.h",
"download/download_commands.cc",
@@ -11,9 +11,9 @@
"download/download_dir_util.cc",
--- a/chrome/browser/chrome_content_browser_client_navigation_throttles.cc
+++ b/chrome/browser/chrome_content_browser_client_navigation_throttles.cc
@@ -390,10 +390,6 @@ void CreateAndAddChromeThrottlesForNavig
registry.AddThrottle(std::make_unique<PolicyBlocklistNavigationThrottle>(
registry, handle.GetWebContents()->GetBrowserContext()));
@@ -405,10 +405,6 @@ void CreateAndAddChromeThrottlesForNavig
Profile::FromBrowserContext(context)),
SafeSearchFactory::GetForBrowserContext(context)));
- // Before setting up SSL error detection, configure SSLErrorHandler to invoke
- // the relevant extension API whenever an SSL interstitial is shown.
@@ -76,15 +76,15 @@
}
--- a/chrome/browser/extensions/api/downloads/downloads_api.cc
+++ b/chrome/browser/extensions/api/downloads/downloads_api.cc
@@ -36,7 +36,6 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/download/download_core_service.h"
#include "chrome/browser/download/download_core_service_factory.h"
@@ -86,7 +86,6 @@
#endif
#if BUILDFLAG(ENABLE_EXTENSIONS)
-#include "chrome/browser/download/download_danger_prompt.h"
#include "chrome/browser/download/download_file_icon_extractor.h"
#include "chrome/browser/download/download_open_prompt.h"
#include "chrome/browser/download/download_prefs.h"
@@ -1379,9 +1378,6 @@ DownloadsAcceptDangerFunction::Downloads
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
@@ -1359,9 +1358,6 @@ DownloadsAcceptDangerFunction::Downloads
DownloadsAcceptDangerFunction::~DownloadsAcceptDangerFunction() = default;
@@ -94,10 +94,10 @@
ExtensionFunction::ResponseAction DownloadsAcceptDangerFunction::Run() {
std::optional<downloads::AcceptDanger::Params> params =
downloads::AcceptDanger::Params::Create(args());
@@ -1431,44 +1427,7 @@ void DownloadsAcceptDangerFunction::Prom
return;
@@ -1412,50 +1408,13 @@ void DownloadsAcceptDangerFunction::Prom
}
RecordApiFunctions(DownloadsFunctionName::kDownloadsFunctionAcceptDanger);
#if BUILDFLAG(ENABLE_EXTENSIONS)
- // DownloadDangerPrompt displays a modal dialog using native widgets that the
- // user must either accept or cancel. It cannot be scripted.
- DownloadDangerPrompt* prompt = DownloadDangerPrompt::Create(
@@ -110,8 +110,13 @@
- on_prompt_created_ = nullptr;
- }
- // Function finishes in DangerPromptCallback().
-}
-
+ download_item->ValidateDangerousDownload();
#else
NOTIMPLEMENTED();
Respond(Error("DownloadDangerPrompt not implemented"));
#endif // BUILDFLAG(ENABLE_EXTENSIONS)
}
-void DownloadsAcceptDangerFunction::DangerPromptCallback(
- int download_id,
- DownloadDangerPrompt::Action action) {
@@ -136,10 +141,11 @@
- break;
- }
- Respond(NoArguments());
+ download_item->ValidateDangerousDownload();
}
-}
-
DownloadsShowFunction::DownloadsShowFunction() = default;
DownloadsShowFunction::~DownloadsShowFunction() = default;
--- a/chrome/browser/extensions/api/downloads/downloads_api.h
+++ b/chrome/browser/extensions/api/downloads/downloads_api.h
@@ -13,7 +13,6 @@
@@ -150,7 +156,7 @@
#include "chrome/common/extensions/api/downloads.h"
#include "components/download/content/public/all_download_item_notifier.h"
#include "components/download/public/common/download_path_reservation_tracker.h"
@@ -201,13 +200,6 @@ class DownloadsRemoveFileFunction : publ
@@ -170,13 +169,6 @@ class DownloadsRemoveFileFunction : publ
class DownloadsAcceptDangerFunction : public ExtensionFunction {
public:
@@ -164,7 +170,7 @@
DECLARE_EXTENSION_FUNCTION("downloads.acceptDanger", DOWNLOADS_ACCEPTDANGER)
DownloadsAcceptDangerFunction();
@@ -219,13 +211,10 @@ class DownloadsAcceptDangerFunction : pu
@@ -188,13 +180,10 @@ class DownloadsAcceptDangerFunction : pu
protected:
~DownloadsAcceptDangerFunction() override;
@@ -180,7 +186,7 @@
class DownloadsShowFunction : public ExtensionFunction {
--- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
+++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
@@ -701,18 +701,6 @@ void WebstorePrivateBeginInstallWithMani
@@ -706,18 +706,6 @@ void WebstorePrivateBeginInstallWithMani
void WebstorePrivateBeginInstallWithManifest3Function::
ReportFrictionAcceptedEvent() {
@@ -201,7 +207,7 @@
void WebstorePrivateBeginInstallWithManifest3Function::OnInstallPromptDone(
--- a/chrome/browser/extensions/blocklist_state_fetcher.cc
+++ b/chrome/browser/extensions/blocklist_state_fetcher.cc
@@ -75,8 +75,7 @@ void BlocklistStateFetcher::SendRequest(
@@ -78,8 +78,7 @@ void BlocklistStateFetcher::SendRequest(
std::string request_str;
request.SerializeToString(&request_str);
@@ -211,7 +217,7 @@
net::NetworkTrafficAnnotationTag traffic_annotation =
net::DefineNetworkTrafficAnnotation("extension_blacklist", R"(
semantics {
@@ -131,12 +130,6 @@ void BlocklistStateFetcher::SendRequest(
@@ -134,12 +133,6 @@ void BlocklistStateFetcher::SendRequest(
base::Unretained(this), fetcher));
}
@@ -245,7 +251,7 @@
sources = [
"chrome_controller_client.cc",
"chrome_controller_client.h",
@@ -80,6 +81,7 @@ static_library("safe_browsing") {
@@ -81,6 +82,7 @@ static_library("safe_browsing") {
"//services/metrics/public/cpp:ukm_builders",
"//services/preferences/public/cpp",
]
@@ -253,7 +259,7 @@
if (enable_extensions) {
deps += [ "//chrome/browser/ui/web_applications" ]
@@ -612,6 +614,7 @@ static_library("advanced_protection") {
@@ -616,6 +618,7 @@ static_library("advanced_protection") {
}
source_set("metrics_collector") {
@@ -261,7 +267,7 @@
sources = [
"safe_browsing_metrics_collector_factory.cc",
"safe_browsing_metrics_collector_factory.h",
@@ -631,6 +634,7 @@ source_set("metrics_collector") {
@@ -635,6 +638,7 @@ source_set("metrics_collector") {
"//components/safe_browsing/core/common:safe_browsing_prefs",
"//content/public/browser",
]
@@ -1,7 +1,6 @@
--- a/chrome/browser/background/extensions/background_mode_manager.cc
+++ b/chrome/browser/background/extensions/background_mode_manager.cc
@@ -350,7 +350,7 @@ BackgroundModeManager::~BackgroundModeMa
@@ -349,7 +349,7 @@ BackgroundModeManager::~BackgroundModeMa
// static
void BackgroundModeManager::RegisterPrefs(PrefRegistrySimple* registry) {
@@ -12,7 +11,7 @@
void BackgroundModeManager::RegisterProfile(Profile* profile) {
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1462,7 +1462,7 @@ void ChromeContentBrowserClient::Registe
@@ -1419,7 +1419,7 @@ void ChromeContentBrowserClient::Registe
void ChromeContentBrowserClient::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(prefs::kDisable3DAPIs, false);
@@ -23,7 +22,7 @@
// used for mapping the command-line flags).
--- a/chrome/browser/net/profile_network_context_service.cc
+++ b/chrome/browser/net/profile_network_context_service.cc
@@ -621,7 +621,7 @@ void ProfileNetworkContextService::Confi
@@ -618,7 +618,7 @@ void ProfileNetworkContextService::Confi
void ProfileNetworkContextService::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(embedder_support::kAlternateErrorPagesEnabled,
@@ -56,7 +55,7 @@
</cr-dialog>
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -121,7 +121,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -128,7 +128,7 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, true);
registry->RegisterBooleanPref(prefs::kWebAppCreateInQuickLaunchBar, true);
registry->RegisterBooleanPref(
@@ -76,7 +75,7 @@
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
registry->RegisterIntegerPref(
kAutofillLastVersionDeduped, 0,
@@ -40,7 +40,7 @@ void RegisterProfilePrefs(user_prefs::Pr
@@ -49,7 +49,7 @@ void RegisterProfilePrefs(user_prefs::Pr
kAutofillHasSeenIban, false,
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
registry->RegisterBooleanPref(
@@ -109,18 +108,13 @@
--- a/components/password_manager/core/browser/password_manager.cc
+++ b/components/password_manager/core/browser/password_manager.cc
@@ -512,7 +512,7 @@ void HandleFailedLoginDetectionForPasswo
@@ -544,10 +544,10 @@ PasswordForm CreateFormForLeakCheck(cons
void PasswordManager::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(
- prefs::kCredentialsEnableService, true,
+ prefs::kCredentialsEnableService, false,
user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF);
#if BUILDFLAG(IS_IOS)
// Deprecated pref in profile prefs.
@@ -520,7 +520,7 @@ void PasswordManager::RegisterProfilePre
false);
#endif // BUILDFLAG(IS_IOS)
registry->RegisterBooleanPref(
- prefs::kCredentialsEnableAutosignin, true,
+ prefs::kCredentialsEnableAutosignin, false,
@@ -88,17 +88,6 @@ by default.
// Return true if the customization was applied. Customization is applied only
// once per machine.
--- a/chrome/browser/extensions/install_signer.cc
+++ b/chrome/browser/extensions/install_signer.cc
@@ -63,7 +63,7 @@ const int kSignatureFormatVersion = 2;
const size_t kSaltBytes = 32;
const char kBackendUrl[] =
- "https://www.googleapis.com/chromewebstore/v1.1/items/verify";
+ "trk:222:https://www.googleapis.com/chromewebstore/v1.1/items/verify";
const char kPublicKeyPEM[] =
"-----BEGIN PUBLIC KEY-----"
--- a/chrome/browser/media/webrtc/webrtc_event_log_uploader.cc
+++ b/chrome/browser/media/webrtc/webrtc_event_log_uploader.cc
@@ -111,7 +111,7 @@ void OnURLLoadUploadProgress(uint64_t cu
@@ -112,7 +101,7 @@ by default.
scoped_refptr<base::SequencedTaskRunner> task_runner)
--- a/chrome/browser/media/webrtc/webrtc_log_uploader.cc
+++ b/chrome/browser/media/webrtc/webrtc_log_uploader.cc
@@ -531,7 +531,7 @@ void WebRtcLogUploader::UploadCompressed
@@ -530,7 +530,7 @@ void WebRtcLogUploader::UploadCompressed
}
})");
@@ -236,23 +225,9 @@ by default.
// This class is a singleton.
explicit SimpleGeolocationProvider(
--- a/components/drive/service/drive_api_service.cc
+++ b/components/drive/service/drive_api_service.cc
@@ -79,9 +79,9 @@ namespace drive {
namespace {
// OAuth2 scopes for Drive API.
-const char kDriveScope[] = "https://www.googleapis.com/auth/drive";
+const char kDriveScope[] = "trk:217:https://www.googleapis.com/auth/drive";
const char kDriveAppsReadonlyScope[] =
- "https://www.googleapis.com/auth/drive.apps.readonly";
+ "trk:218:https://www.googleapis.com/auth/drive.apps.readonly";
const char kDriveAppsScope[] = "https://www.googleapis.com/auth/drive.apps";
// Mime type to create a directory.
--- a/components/feedback/feedback_uploader.cc
+++ b/components/feedback/feedback_uploader.cc
@@ -39,7 +39,7 @@ constexpr base::FilePath::CharType kFeed
@@ -40,7 +40,7 @@ constexpr base::FilePath::CharType kFeed
FILE_PATH_LITERAL("Feedback Reports");
constexpr char kFeedbackPostUrl[] =
@@ -263,7 +238,7 @@ by default.
--- a/components/google/core/common/google_util.cc
+++ b/components/google/core/common/google_util.cc
@@ -152,7 +152,7 @@ BASE_FEATURE(kIsViewerGoogleSearchUrl,
@@ -150,7 +150,7 @@ BASE_FEATURE(kIsViewerGoogleSearchUrl, b
// Global functions -----------------------------------------------------------
@@ -274,7 +249,7 @@ by default.
url::Component query(0, static_cast<int>(str.length())), key, value;
--- a/components/history/core/browser/web_history_service.cc
+++ b/components/history/core/browser/web_history_service.cc
@@ -43,13 +43,13 @@ namespace history {
@@ -44,13 +44,13 @@ namespace history {
namespace {
const char kHistoryQueryHistoryUrl[] =
@@ -369,7 +344,7 @@ by default.
--- a/content/browser/webauth/webauth_request_security_checker.h
+++ b/content/browser/webauth/webauth_request_security_checker.h
@@ -90,9 +90,9 @@ class CONTENT_EXPORT WebAuthRequestSecur
@@ -85,9 +85,9 @@ class CONTENT_EXPORT WebAuthRequestSecur
// Legacy App IDs, which google.com origins are allowed to assert for
// compatibility reasons.
static constexpr char kGstaticAppId[] =
@@ -392,6 +367,17 @@ by default.
#if BUILDFLAG(IS_WIN)
GURL url(base::WideToUTF16(args[0]));
--- a/extensions/browser/install_signer.cc
+++ b/extensions/browser/install_signer.cc
@@ -66,7 +66,7 @@ const int kSignatureFormatVersion = 2;
const size_t kSaltBytes = 32;
const char kBackendUrl[] =
- "https://www.googleapis.com/chromewebstore/v1.1/items/verify";
+ "trk:222:https://www.googleapis.com/chromewebstore/v1.1/items/verify";
const char kPublicKeyPEM[] =
"-----BEGIN PUBLIC KEY-----"
--- a/extensions/common/extension_urls.cc
+++ b/extensions/common/extension_urls.cc
@@ -38,13 +38,13 @@ const GURL* g_item_snippet_url_for_test_
@@ -415,7 +401,7 @@ by default.
const char kExtensionsMenuUtmSource[] = "ext_extensions_menu";
--- a/google_apis/gaia/gaia_constants.cc
+++ b/google_apis/gaia/gaia_constants.cc
@@ -14,173 +14,173 @@ const char kChromeSource[] = "ChromiumBr
@@ -14,185 +14,185 @@ const char kChromeSource[] = "ChromiumBr
const char kUnexpectedServiceResponse[] = "UnexpectedServiceResponse";
// OAuth scopes.
@@ -521,6 +507,11 @@ by default.
-const char kTachyonOAuthScope[] = "https://www.googleapis.com/auth/tachyon";
+const char kTachyonOAuthScope[] = "trk:087:https://www.googleapis.com/auth/tachyon";
// OAuth2 scope for School Tools API.
const char kSchoolToolsAuthScope[] =
- "https://www.googleapis.com/auth/chromeosschooltools";
+ "trk:068:https://www.googleapis.com/auth/chromeosschooltools";
// OAuth2 scope for access to the Photos API.
-const char kPhotosOAuth2Scope[] = "https://www.googleapis.com/auth/photos";
+const char kPhotosOAuth2Scope[] = "trk:088:https://www.googleapis.com/auth/photos";
@@ -566,6 +557,11 @@ by default.
-const char kDriveOAuth2Scope[] = "https://www.googleapis.com/auth/drive";
+const char kDriveOAuth2Scope[] = "trk:097:https://www.googleapis.com/auth/drive";
// OAuth2 scope for access to Drive Apps.
const char kDriveAppsOAuth2Scope[] =
- "https://www.googleapis.com/auth/drive.apps";
+ "trk:067:https://www.googleapis.com/auth/drive.apps";
// OAuth2 scope for access for DriveFS to access flags.
const char kExperimentsAndConfigsOAuth2Scope[] =
- "https://www.googleapis.com/auth/experimentsandconfigs";
@@ -591,6 +587,11 @@ by default.
- "https://www.googleapis.com/auth/nearbydevices-pa";
+ "trk:100:https://www.googleapis.com/auth/nearbydevices-pa";
// OAuth2 scope for access to readonly Drive Apps.
const char kDriveAppsReadonlyOAuth2Scope[] =
- "https://www.googleapis.com/auth/drive.apps.readonly";
+ "trk:066:https://www.googleapis.com/auth/drive.apps.readonly";
// OAuth2 scope for access to nearby sharing.
const char kNearbyShareOAuth2Scope[] =
- "https://www.googleapis.com/auth/nearbysharing-pa";
@@ -637,7 +638,7 @@ by default.
const char kFeedOAuth2Scope[] = "https://www.googleapis.com/auth/googlenow";
--- a/google_apis/gaia/gaia_urls.cc
+++ b/google_apis/gaia/gaia_urls.cc
@@ -24,6 +24,7 @@
@@ -25,6 +25,7 @@
namespace {
// Gaia service constants
@@ -5,7 +5,7 @@ Subject: [PATCH 56/66] browser: disable profile auto-import on first run
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -1581,27 +1581,6 @@ int ChromeBrowserMainParts::PreMainMessa
@@ -1793,30 +1793,6 @@ int ChromeBrowserMainParts::PreMainMessa
// and preferences have been registered since some of the import code depends
// on preferences.
if (first_run::IsChromeFirstRun()) {
@@ -16,12 +16,15 @@ Subject: [PATCH 56/66] browser: disable profile auto-import on first run
-
- if (base::FeatureList::IsEnabled(features::kBookmarksImportOnFirstRun) &&
- !master_prefs_->import_bookmarks_dict.empty()) {
- first_run::StartBookmarksImportFromDict(
- first_run::StartBookmarkImportFromDict(
- profile, std::move(master_prefs_->import_bookmarks_dict));
- }
-
-#if BUILDFLAG(ENABLE_EXTENSIONS)
- if (base::FeatureList::IsEnabled(features::kInitialExternalExtensions)) {
- profile->GetPrefs()->SetString(
- extensions::pref_names::kInitialInstallProviderName,
- std::move(master_prefs_->initial_extensions_provider_name));
- // Store the initial extension IDs into the profile's prefs so that
- // InitialExternalExtensionLoader can later pick them up.
- profile->GetPrefs()->SetList(
@@ -1,3 +1,14 @@
From c89ce946e5328ca8a7df923d421e904bb6bfe9b6 Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Tue, 7 Jul 2015 18:28:46 +0200
Subject: [PATCH 63/76] safe_browsing: disable reporting of safebrowsing
override
Disables reporting of the safebrowsing override, i.e. the report sent
if a user decides to visit a page that was flagged as "insecure".
This prevents trk:148 (phishing) and trk:149 (malware).
---
From 4dfa8ed0814040317cb82d8545502186daa0a204 Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Tue, 7 Jul 2015 17:02:09 +0200
@@ -7,13 +18,28 @@ Disables the safebrowsing incident reporting where you could upload
information about a blocked URL to Google (also added a trk prefix to
the URL so we get notified if this happens again in the future).
---
.../incident_reporting/incident_report_uploader_impl.cc | 2 +-
.../incident_reporting/incident_reporting_service.cc | 3 +++
chrome/browser/safe_browsing/safe_browsing_blocking_page.cc | 3 +--
chrome/browser/safe_browsing/safe_browsing_service.cc | 2 +-
.../security_interstitials/core/safe_browsing_loud_error_ui.cc | 1 +
5 files changed, 7 insertions(+), 4 deletions(-)
--- a/components/safe_browsing/content/browser/client_side_detection_service.cc
+++ b/components/safe_browsing/content/browser/client_side_detection_service.cc
@@ -281,6 +281,10 @@ void ClientSideDetectionService::StartCl
return;
}
+#if 1
+ if (!callback.is_null())
+ std::move(callback).Run(GURL(request->url()), false, std::nullopt, std::nullopt);
+#else
std::string request_data;
request->SerializeToString(&request_data);
@@ -363,6 +367,7 @@ void ClientSideDetectionService::StartCl
&WebUIContentInfoSingleton::AddToClientPhishingRequestsSent,
base::Unretained(WebUIContentInfoSingleton::GetInstance()),
std::move(request), access_token));
+#endif
}
void ClientSideDetectionService::HandlePhishingVerdict(
--- a/chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc
+++ b/chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc
@@ -64,8 +64,7 @@ ChromeSafeBrowsingBlockingPageFactory::C
@@ -39,7 +65,7 @@ the URL so we get notified if this happens again in the future).
kSafeBrowsingIncidentTrafficAnnotation =
--- a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
@@ -303,11 +303,14 @@ IncidentReportingService::UploadContext:
@@ -302,11 +302,14 @@ IncidentReportingService::UploadContext:
// static
bool IncidentReportingService::IsEnabledForProfile(Profile* profile) {
@@ -16,7 +16,7 @@ the case anyway, since we are based off Chromium, not Chrome.
--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -1074,7 +1074,7 @@ class AppControllerNativeThemeObserver :
@@ -1098,7 +1098,7 @@ class AppControllerNativeThemeObserver :
CFStringRef checkInterval = CFSTR("checkInterval");
CFPropertyListRef plist = CFPreferencesCopyAppValue(checkInterval, app);
if (!plist) {
@@ -41,26 +41,33 @@
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--- a/tools/licenses/licenses.py
+++ b/tools/licenses/licenses.py
@@ -1015,6 +1015,16 @@ def GenerateCredits(file_template_file,
entries.append(
MetadataToTemplateEntry(chromium_license_metadata, entry_template))
@@ -52,6 +52,14 @@ _CHROMIUM_LICENSE_METADATA = {
'dir': '', # Relative to _REPOSITORY_ROOT
}
+ ugc_license_metadata = {
+ 'Name': 'ungoogled-chromium',
+ 'URL': 'https://github.com/ungoogled-software/ungoogled-chromium',
+ 'Shipped': 'yes',
+ 'License File': [os.path.join(_REPOSITORY_ROOT, 'third_party', 'ungoogled-chromium', 'LICENSE')],
+ }
+_UGC_LICENSE_METADATA = {
+ 'Name': 'ungoogled-chromium',
+ 'URL': 'https://github.com/ungoogled-software/ungoogled-chromium',
+ 'License': 'BSD-3-Clause',
+ 'Shipped': 'yes',
+ 'License File': [os.path.join(_REPOSITORY_ROOT, 'third_party', 'ungoogled-chromium', 'LICENSE')],
+}
+
+ entries.append(
+ MetadataToTemplateEntry(ugc_license_metadata, entry_template))
+
entries_by_name = {}
for path in third_party_dirs:
try:
@@ -1059,8 +1069,8 @@ def GenerateCredits(file_template_file,
reciprocal_template = codecs.open(reciprocal_template_file,
encoding='utf-8').read()
# Paths from the root of the tree to directories to skip.
PRUNE_PATHS = set([
# Placeholder directory only, not third-party code.
@@ -1008,7 +1016,7 @@ def _DiscoverMetadatas(args):
LogParseDirErrors(errors)
metadatas.sort(key=lambda m: (m['Name'].lower(), m['dir']))
- metadatas = [_CHROMIUM_LICENSE_METADATA] + metadatas
+ metadatas = [_CHROMIUM_LICENSE_METADATA] + [_UGC_LICENSE_METADATA] + metadatas
return metadatas, had_errors
@@ -1085,8 +1093,8 @@ def GenerateCredits(args, metadatas):
entries_contents = '\n'.join([entry['content'] for entry in entries])
reciprocal_contents = EvaluateTemplate(reciprocal_template, {
- 'opensource_project': 'Chromium',
- 'opensource_link': 'https://source.chromium.org/chromium'
@@ -1,22 +1,22 @@
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -139,6 +139,7 @@
@@ -142,6 +142,7 @@
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/frame/contents_web_view.h"
#include "chrome/browser/ui/views/frame/multi_contents_view.h"
+#include "chrome/browser/ui/views/message_box_dialog.h"
#include "chrome/browser/ui/views/status_bubble_views.h"
#include "chrome/browser/ui/web_applications/app_browser_controller.h"
#include "chrome/browser/ui/webui/new_tab_page/new_tab_page_ui.h"
@@ -611,6 +612,7 @@ Browser::Browser(const CreateParams& par
omit_from_session_restore_(params.omit_from_session_restore),
#include "chrome/browser/ui/webui/signin/login_ui_service.h"
@@ -588,6 +589,7 @@ Browser::Browser(const CreateParams& par
should_trigger_session_restore_(params.should_trigger_session_restore),
cancel_download_confirmation_state_(NOT_PROMPTED),
+ close_multitab_confirmation_state_(NOT_PROMPTED),
cancel_download_confirmation_state_(
CancelDownloadConfirmationState::kNotPrompted),
+ close_multitab_confirmation_state_(CancelDownloadConfirmationState::kNotPrompted),
override_bounds_(params.initial_bounds),
initial_show_state_(params.initial_show_state),
initial_workspace_(params.initial_workspace),
@@ -993,20 +995,22 @@ Browser::WarnBeforeClosingResult Browser
@@ -973,20 +975,22 @@ Browser::WarnBeforeClosingResult Browser
return WarnBeforeClosingResult::kOkToClose;
}
@@ -52,15 +52,15 @@
}
DCHECK(!warn_before_closing_callback_)
@@ -1044,6 +1048,7 @@ bool Browser::TryToCloseWindow(
@@ -1040,6 +1044,7 @@ bool Browser::TryToCloseWindow(
void Browser::ResetTryToCloseWindow() {
cancel_download_confirmation_state_ = NOT_PROMPTED;
+ close_multitab_confirmation_state_ = NOT_PROMPTED;
cancel_download_confirmation_state_ =
CancelDownloadConfirmationState::kNotPrompted;
+ close_multitab_confirmation_state_ = CancelDownloadConfirmationState::kNotPrompted;
unload_controller_.ResetTryToCloseWindow();
}
@@ -3494,6 +3499,58 @@ bool Browser::CanCloseWithInProgressDown
@@ -3498,6 +3503,58 @@ bool Browser::CanCloseWithInProgressDown
return false;
}
@@ -70,8 +70,8 @@
+
+ // If we've prompted, we need to hear from the user before we
+ // can close.
+ if (close_multitab_confirmation_state_ != NOT_PROMPTED)
+ return close_multitab_confirmation_state_ != WAITING_FOR_RESPONSE;
+ if (close_multitab_confirmation_state_ != CancelDownloadConfirmationState::kNotPrompted)
+ return close_multitab_confirmation_state_ != CancelDownloadConfirmationState::kWaitingForResponse;
+
+ // If we're not running a full browser process with a profile manager
+ // (testing), it's ok to close the browser.
@@ -102,7 +102,7 @@
+ tab_strip_model_delegate_->AddTabAt(GURL(), -1, true);
+ }
+
+ close_multitab_confirmation_state_ = WAITING_FOR_RESPONSE;
+ close_multitab_confirmation_state_ = CancelDownloadConfirmationState::kWaitingForResponse;
+
+ auto callback = base::BindOnce(&Browser::MultitabResponse,
+ weak_factory_.GetWeakPtr());
@@ -118,8 +118,8 @@
+
void Browser::InProgressDownloadResponse(bool cancel_downloads) {
if (cancel_downloads) {
cancel_download_confirmation_state_ = RESPONSE_RECEIVED;
@@ -3519,6 +3576,22 @@ void Browser::InProgressDownloadResponse
cancel_download_confirmation_state_ =
@@ -3526,6 +3583,22 @@ void Browser::InProgressDownloadResponse
std::move(warn_before_closing_callback_)
.Run(WarnBeforeClosingResult::kDoNotClose);
@@ -127,15 +127,15 @@
+
+void Browser::MultitabResponse(chrome::MessageBoxResult result) {
+ if (result == chrome::MESSAGE_BOX_RESULT_YES) {
+ close_multitab_confirmation_state_ = RESPONSE_RECEIVED;
+ close_multitab_confirmation_state_ = CancelDownloadConfirmationState::kResponseReceived;
+ std::move(warn_before_closing_callback_)
+ .Run(WarnBeforeClosingResult::kOkToClose);
+ return;
+ }
+
+ // Sets the confirmation state to NOT_PROMPTED so that if the user tries to
+ // Sets the confirmation state to kNotPrompted so that if the user tries to
+ // close again we'll show the warning again.
+ close_multitab_confirmation_state_ = NOT_PROMPTED;
+ close_multitab_confirmation_state_ = CancelDownloadConfirmationState::kNotPrompted;
+
+ std::move(warn_before_closing_callback_)
+ .Run(WarnBeforeClosingResult::kDoNotClose);
@@ -145,14 +145,14 @@
--- a/chrome/browser/ui/browser.h
+++ b/chrome/browser/ui/browser.h
@@ -33,6 +33,7 @@
#include "chrome/browser/ui/browser_window/public/browser_window_interface.h"
#include "chrome/browser/ui/browser_window/public/desktop_browser_window_capabilities_delegate.h"
#include "chrome/browser/ui/browser_window_deleter.h"
#include "chrome/browser/ui/chrome_web_modal_dialog_manager_delegate.h"
+#include "chrome/browser/ui/simple_message_box.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
#include "chrome/browser/ui/unload_controller.h"
@@ -1150,12 +1151,17 @@ class Browser : public TabStripModelObse
@@ -1136,12 +1137,17 @@ class Browser : public TabStripModelObse
// Returns true if the window can close, false otherwise.
bool CanCloseWithInProgressDownloads();
@@ -170,7 +170,7 @@
// Called when the user has decided whether to proceed or not with the browser
// closure, in case the cookie migration notice was shown. |proceed_closing|
// is true if the browser can be closed.
@@ -1341,6 +1347,8 @@ class Browser : public TabStripModelObse
@@ -1317,6 +1323,8 @@ class Browser : public TabStripModelObse
// when the browser is closed with in-progress downloads.
CancelDownloadConfirmationState cancel_download_confirmation_state_;
@@ -1,6 +1,6 @@
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -839,11 +839,15 @@ bool HandleNewTabPageLocationOverride(
@@ -800,11 +800,15 @@ bool HandleNewTabPageLocationOverride(
// Don't change the URL when incognito mode.
if (profile->IsOffTheRecord()) {
@@ -29,7 +29,7 @@
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
--- a/components/webui/flags/flags_state.cc
+++ b/components/webui/flags/flags_state.cc
@@ -234,6 +234,7 @@ std::string GetCombinedOriginListValue(c
@@ -233,6 +233,7 @@ std::string GetCombinedOriginListValue(c
command_line.GetSwitchValueASCII(command_line_switch);
const std::string new_value =
flags_storage.GetOriginListFlag(internal_entry_name);
@@ -37,7 +37,7 @@
return CombineAndSanitizeOriginLists(existing_value, new_value);
}
@@ -484,6 +485,7 @@ void FlagsState::SetOriginListFlag(const
@@ -483,6 +484,7 @@ void FlagsState::SetOriginListFlag(const
const std::string& value,
FlagsStorage* flags_storage) {
const std::string new_value =
@@ -11,7 +11,7 @@
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
--- a/third_party/blink/common/features.cc
+++ b/third_party/blink/common/features.cc
@@ -19,6 +19,8 @@
@@ -20,6 +20,8 @@
namespace blink::features {
@@ -41,7 +41,7 @@
#include "third_party/blink/public/common/input/web_menu_source_type.h"
#include "third_party/blink/public/platform/web_input_event_result.h"
#include "third_party/blink/renderer/core/annotation/annotation_agent_impl.h"
@@ -1437,10 +1438,14 @@ FrameSelection& SelectionController::Sel
@@ -1441,10 +1442,14 @@ FrameSelection& SelectionController::Sel
}
bool IsSelectionOverLink(const MouseEventWithHitTestResults& event) {
@@ -1,9 +1,9 @@
--- a/chrome/browser/ui/views/frame/browser_frame.cc
+++ b/chrome/browser/ui/views/frame/browser_frame.cc
@@ -723,5 +723,7 @@ bool BrowserFrame::RegenerateFrameOnThem
--- a/chrome/browser/ui/views/frame/browser_widget.cc
+++ b/chrome/browser/ui/views/frame/browser_widget.cc
@@ -605,5 +605,7 @@ bool BrowserWidget::RegenerateFrameOnThe
}
bool BrowserFrame::IsIncognitoBrowser() const {
bool BrowserWidget::IsIncognitoBrowser() const {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("enable-incognito-themes"))
+ return false;
return browser_view_->browser()->profile()->IsIncognitoProfile();
@@ -18,7 +18,7 @@
#include "ui/gfx/color_utils.h"
#include "ui/native_theme/native_theme.h"
@@ -389,7 +390,9 @@ void NTPResourceCache::CreateNewTabIncog
@@ -392,7 +393,9 @@ void NTPResourceCache::CreateNewTabIncog
profile_->GetPrefs()->GetString(prefs::kCurrentThemeID);
// Colors.
@@ -41,18 +41,18 @@
#include "base/feature_list.h"
#include "base/format_macros.h"
#include "base/functional/bind.h"
@@ -570,6 +571,15 @@ AutocompleteController::AutocompleteCont
steady_state_omnibox_position_(
metrics::OmniboxEventProto::UNKNOWN_POSITION) {
provider_types &= ~OmniboxFieldTrial::GetDisabledProviderTypes();
@@ -558,6 +559,15 @@ AutocompleteController::AutocompleteCont
metrics::OmniboxEventProto::UNKNOWN_POSITION),
config_(config) {
config_.provider_types &= ~OmniboxFieldTrial::GetDisabledProviderTypes();
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("omnibox-autocomplete-filtering")) {
+ const std::string flag_value = base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("omnibox-autocomplete-filtering");
+ provider_types &= AutocompleteProvider::TYPE_KEYWORD | AutocompleteProvider::TYPE_SEARCH |
+ config_.provider_types &= AutocompleteProvider::TYPE_KEYWORD | AutocompleteProvider::TYPE_SEARCH |
+ AutocompleteProvider::TYPE_HISTORY_URL | AutocompleteProvider::TYPE_BOOKMARK | AutocompleteProvider::TYPE_BUILTIN;
+ if (!base::Contains(flag_value, "bookmarks"))
+ provider_types &= ~AutocompleteProvider::TYPE_BOOKMARK;
+ config_.provider_types &= ~AutocompleteProvider::TYPE_BOOKMARK;
+ if (!base::Contains(flag_value, "chrome"))
+ provider_types &= ~AutocompleteProvider::TYPE_BUILTIN;
+ config_.provider_types &= ~AutocompleteProvider::TYPE_BUILTIN;
+ }
// Providers run in the order they're added. Async providers should run first
@@ -30,20 +30,20 @@
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
--- a/components/sharing_message/features.cc
+++ b/components/sharing_message/features.cc
@@ -6,6 +6,8 @@
@@ -7,6 +7,8 @@
#include "build/build_config.h"
#include "components/sync_preferences/features.h"
+BASE_FEATURE(kDisableQRGenerator, "DisableQRGenerator", base::FEATURE_DISABLED_BY_DEFAULT);
+
BASE_FEATURE(kClickToCall, "ClickToCall", base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kClickToCall, base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kMobilePromoOnDesktop,
BASE_FEATURE(kMobilePromoOnDesktop, base::FEATURE_DISABLED_BY_DEFAULT);
--- a/components/sharing_message/features.h
+++ b/components/sharing_message/features.h
@@ -18,4 +18,5 @@ extern const char kMobilePromoOnDesktopP
// Parameter of `kMobilePromoOnDesktop` for showing the iOS push notification.
extern const char kMobilePromoOnDesktopNotificationParam[];
@@ -34,4 +34,5 @@ MobilePromoOnDesktopPromoType MobileProm
// notification arm, false otherwise.
bool IsMobilePromoOnDesktopNotificationsEnabled();
+BASE_DECLARE_FEATURE(kDisableQRGenerator);
#endif // COMPONENTS_SHARING_MESSAGE_FEATURES_H_
@@ -2,7 +2,7 @@
--- a/chrome/browser/ui/tab_helpers.cc
+++ b/chrome/browser/ui/tab_helpers.cc
@@ -560,7 +560,9 @@ void TabHelpers::AttachTabHelpers(WebCon
@@ -573,7 +573,9 @@ void TabHelpers::AttachTabHelpers(WebCon
profile, web_contents);
#endif // BUILDFLAG(SAFE_BROWSING_AVAILABLE)
SafetyTipWebContentsObserver::CreateForWebContents(web_contents);
@@ -25,7 +25,7 @@
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
--- a/chrome/renderer/chrome_render_frame_observer.cc
+++ b/chrome/renderer/chrome_render_frame_observer.cc
@@ -260,14 +260,16 @@ void ChromeRenderFrameObserver::DidFinis
@@ -273,14 +273,16 @@ void ChromeRenderFrameObserver::DidFinis
if (frame->Parent() || frame->IsInFencedFrameTree())
return;
@@ -73,7 +73,7 @@
} // namespace
// TemplateURLService::LessWithPrefix -----------------------------------------
@@ -582,6 +589,7 @@ TemplateURLService::TemplateURLService(
@@ -581,6 +588,7 @@ TemplateURLService::TemplateURLService(
std::unique_ptr<TemplateURLServiceClient> client,
const base::RepeatingClosure& dsp_change_callback)
: prefs_(prefs),
@@ -81,18 +81,18 @@
search_engine_choice_service_(search_engine_choice_service),
prepopulate_data_resolver_(prepopulate_data_resolver),
search_terms_data_(std::move(search_terms_data)),
@@ -665,8 +673,8 @@ bool TemplateURLService::CanAddAutogener
@@ -664,8 +672,8 @@ bool TemplateURLService::CanAddAutogener
// that may interfere with search queries). An easy heuristic for this is
// whether the user has a TemplateURL that has been manually modified (e.g.,
// renamed) connected to the same host.
- return !url.is_valid() || url.host().empty() ||
- CanAddAutogeneratedKeywordForHost(url.host());
+ return should_autocollect_ && (!url.is_valid() || url.host().empty() ||
+ CanAddAutogeneratedKeywordForHost(url.host()));
- return !url.is_valid() || url.GetHost().empty() ||
- CanAddAutogeneratedKeywordForHost(url.GetHost());
+ return should_autocollect_ && (!url.is_valid() || url.GetHost().empty() ||
+ CanAddAutogeneratedKeywordForHost(url.GetHost()));
}
bool TemplateURLService::IsPrepopulatedOrDefaultProviderByPolicy(
@@ -2489,6 +2497,8 @@ SyncDataMap TemplateURLService::CreateGU
@@ -2492,6 +2500,8 @@ SyncDataMap TemplateURLService::CreateGU
}
void TemplateURLService::Init() {
@@ -101,7 +101,7 @@
if (client_) {
client_->SetOwner(this);
}
@@ -2654,6 +2664,9 @@ void TemplateURLService::ChangeToLoadedS
@@ -2657,6 +2667,9 @@ void TemplateURLService::ChangeToLoadedS
bool TemplateURLService::CanAddAutogeneratedKeywordForHost(
const std::string& host) const {
@@ -113,7 +113,7 @@
return true;
--- a/components/search_engines/template_url_service.h
+++ b/components/search_engines/template_url_service.h
@@ -909,6 +909,8 @@ class TemplateURLService final : public
@@ -912,6 +912,8 @@ class TemplateURLService final : public
raw_ref<TemplateURLPrepopulateData::Resolver> prepopulate_data_resolver_;
@@ -8,7 +8,7 @@
#include "base/debug/alias.h"
#include "base/functional/bind.h"
#include "base/i18n/rtl.h"
@@ -762,6 +763,13 @@ void Tab::HideHover(TabStyle::HideHoverS
@@ -763,6 +764,13 @@ void Tab::HideHover(TabStyle::HideHoverS
DeprecatedLayoutImmediately();
}
@@ -42,7 +42,7 @@
#include "base/check.h"
#include "base/compiler_specific.h"
#include "base/containers/adapters.h"
@@ -1998,6 +1999,8 @@ void TabStrip::OnMouseEventInTab(views::
@@ -1995,6 +1996,8 @@ void TabStrip::OnMouseEventInTab(views::
}
void TabStrip::UpdateHoverCard(Tab* tab, HoverCardUpdateType update_type) {
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -1609,7 +1609,8 @@ void BrowserCommandController::InitComma
@@ -1644,7 +1644,8 @@ void BrowserCommandController::InitComma
command_updater_.UpdateCommandEnabled(IDC_WINDOW_CLOSE_OTHER_TABS,
normal_window);
@@ -20,7 +20,7 @@
#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
#include "base/time/time.h"
@@ -707,6 +708,10 @@ static std::string GetCountryCode() {
@@ -656,6 +657,10 @@ static std::string GetCountryCode() {
}
bool HasTabSearchToolbarButton() {
@@ -33,14 +33,16 @@
base::FeatureList::IsEnabled(
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -5182,6 +5182,7 @@ void BrowserView::AddedToWidget() {
@@ -4475,6 +4475,9 @@ BookmarkBar::State BrowserView::bookmark
}
toolbar_->Init();
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button"))
if (GetIsNormalType()) {
if (features::HasTabSearchToolbarButton()) {
tab_search_bubble_host_ = std::make_unique<TabSearchBubbleHost>(
void BrowserView::UpdateTabSearchBubbleHost() {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button")) {
+ return;
+ }
if (!GetIsNormalType()) {
return;
}
--- a/chrome/browser/ui/views/frame/tab_strip_region_view.cc
+++ b/chrome/browser/ui/views/frame/tab_strip_region_view.cc
@@ -4,6 +4,7 @@
@@ -11,7 +11,7 @@
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
--- a/components/webui/flags/flags_state.cc
+++ b/components/webui/flags/flags_state.cc
@@ -235,6 +235,7 @@ std::string GetCombinedOriginListValue(c
@@ -234,6 +234,7 @@ std::string GetCombinedOriginListValue(c
const std::string new_value =
flags_storage.GetOriginListFlag(internal_entry_name);
if (command_line_switch == "custom-ntp") return existing_value.empty() ? new_value : existing_value;
@@ -19,7 +19,7 @@
return CombineAndSanitizeOriginLists(existing_value, new_value);
}
@@ -486,6 +487,7 @@ void FlagsState::SetOriginListFlag(const
@@ -485,6 +486,7 @@ void FlagsState::SetOriginListFlag(const
FlagsStorage* flags_storage) {
const std::string new_value =
internal_name == "custom-ntp" ? value :
@@ -1,14 +1,14 @@
--- a/chrome/browser/browser_features.cc
+++ b/chrome/browser/browser_features.cc
@@ -368,4 +368,5 @@ BASE_FEATURE(kRemovalOfIWAsFromTabCaptur
"RemovalOfIWAsFromTabCapture",
base::FEATURE_ENABLED_BY_DEFAULT);
@@ -302,4 +302,5 @@ BASE_FEATURE(kReportPakFileIntegrity,
// show both in Chrome Tabs and Windows.
BASE_FEATURE(kRemovalOfIWAsFromTabCapture, base::FEATURE_ENABLED_BY_DEFAULT);
+BASE_FEATURE(kClearDataOnExit, "ClearDataOnExit", base::FEATURE_DISABLED_BY_DEFAULT);
} // namespace features
--- a/chrome/browser/browser_features.h
+++ b/chrome/browser/browser_features.h
@@ -125,6 +125,7 @@ BASE_DECLARE_FEATURE(kRemovalOfIWAsFromT
@@ -122,6 +122,7 @@ BASE_DECLARE_FEATURE(kRemovalOfIWAsFromT
// module, e.g.
// //chrome/browser/<foo_module>/features.h
//
@@ -8,7 +8,7 @@
#include "base/containers/adapters.h"
#include "base/containers/flat_map.h"
#include "base/containers/span.h"
@@ -1171,6 +1172,10 @@ void TabStripModel::CloseAllTabsInGroup(
@@ -1230,6 +1231,10 @@ void TabStripModel::CloseAllTabsInGroup(
void TabStripModel::CloseWebContentsAt(int index, uint32_t close_types) {
CHECK(ContainsIndex(index));
@@ -19,7 +19,7 @@
CloseTabs({GetWebContentsAt(index)}, close_types);
}
@@ -3020,9 +3025,13 @@ TabStripModel::GetGroupsDestroyedFromRem
@@ -3088,9 +3093,13 @@ TabStripModel::GetGroupsDestroyedFromRem
void TabStripModel::ExecuteCloseTabsByIndices(
base::RepeatingCallback<std::vector<int>()> get_indices_to_close,
uint32_t close_types) {
@@ -53,8 +53,8 @@
@@ -1243,10 +1243,12 @@ DownloadConfirmationReason DownloadTarge
return DownloadConfirmationReason::SAVE_AS;
#if BUILDFLAG(ENABLE_EXTENSIONS)
- // Don't prompt for extension downloads if the installation site is white
#if BUILDFLAG(ENABLE_EXTENSIONS_CORE)
- // Don't prompt for extension downloads if the installation site is allow
- // listed.
- if (download_crx_util::IsTrustedExtensionDownload(GetProfile(), *download_))
- return DownloadConfirmationReason::NONE;
@@ -69,7 +69,7 @@
// Don't prompt for file types that are marked for opening automatically.
--- a/chrome/browser/extensions/extension_management.cc
+++ b/chrome/browser/extensions/extension_management.cc
@@ -312,6 +312,13 @@ bool ExtensionManagement::IsInstallation
@@ -331,6 +331,13 @@ bool ExtensionManagement::IsInstallation
bool ExtensionManagement::IsOffstoreInstallAllowed(
const GURL& url,
const GURL& referrer_url) const {
@@ -13,7 +13,7 @@
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -1200,6 +1200,8 @@ WindowOpenDisposition NavigationPolicyTo
@@ -1199,6 +1199,8 @@ WindowOpenDisposition NavigationPolicyTo
case blink::kWebNavigationPolicyNewWindow:
return WindowOpenDisposition::NEW_WINDOW;
case blink::kWebNavigationPolicyNewPopup:
@@ -21,7 +21,7 @@
#include "base/compiler_specific.h"
#include "base/containers/flat_set.h"
#include "base/feature_list.h"
@@ -1341,7 +1342,8 @@ void HistoryBackend::InitImpl(
@@ -1344,7 +1345,8 @@ void HistoryBackend::InitImpl(
db_->GetStartDate(&first_recorded_time_);
// Start expiring old stuff.
@@ -31,7 +31,7 @@
}
void HistoryBackend::OnMemoryPressure(
@@ -1570,6 +1572,8 @@ void HistoryBackend::AddPagesWithDetails
@@ -1580,6 +1582,8 @@ void HistoryBackend::AddPagesWithDetails
}
bool HistoryBackend::IsExpiredVisitTime(const base::Time& time) const {
@@ -21,7 +21,7 @@
#include "base/memory/raw_ptr.h"
#include "base/no_destructor.h"
#include "base/numerics/safe_conversions.h"
@@ -316,6 +317,13 @@ IDNConversionResult IDNToUnicodeWithAdju
@@ -317,6 +318,13 @@ IDNConversionResult IDNToUnicodeWithAdju
host16.reserve(host.length());
host16.insert(host16.end(), host.begin(), host.end());
@@ -3,16 +3,16 @@
--- a/chrome/browser/ui/startup/infobar_utils.cc
+++ b/chrome/browser/ui/startup/infobar_utils.cc
@@ -143,7 +143,8 @@ void AddInfoBarsIfNecessary(Browser* bro
@@ -152,7 +152,8 @@ void AddInfoBarsIfNecessary(BrowserWindo
}
// Web apps should not display the session restore bubble (crbug.com/1264121)
- if (!is_web_app && HasPendingUncleanExit(browser->profile())) {
+ if (!is_web_app && HasPendingUncleanExit(browser->profile()) &&
- if (!is_web_app && HasPendingUncleanExit(browser->GetProfile())) {
+ if (!is_web_app && HasPendingUncleanExit(browser->GetProfile()) &&
+ !startup_command_line.HasSwitch("hide-crashed-bubble")) {
SessionCrashedBubble::ShowIfNotOffTheRecordProfile(
browser, /*skip_tab_checking=*/false);
}
browser,
/*skip_tab_checking=*/false);
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -28,4 +28,8 @@
@@ -8,15 +8,15 @@
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
@@ -35,6 +36,7 @@
@@ -36,6 +37,7 @@
#include "chrome/browser/ui/views/side_panel/extensions/extension_side_panel_coordinator.h"
#include "chrome/browser/ui/views/side_panel/side_panel_ui.h"
#include "chrome/browser/ui/views/toolbar/toolbar_action_hover_card_controller.h"
#include "chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.h"
+#include "chrome/browser/ui/views/toolbar/toolbar_view.h"
#include "chrome/common/pref_names.h"
#include "chrome/grit/generated_resources.h"
#include "components/feature_engagement/public/event_constants.h"
@@ -548,6 +550,17 @@ void ExtensionsToolbarContainer::AnchorA
@@ -549,6 +551,17 @@ void ExtensionsToolbarContainer::AnchorA
widget->widget_delegate()->AsBubbleDialogDelegate()->SetAnchorView(
anchor_view && anchor_view->GetVisible() ? anchor_view
: GetExtensionsButton());
@@ -34,7 +34,7 @@
widget->Show();
}
@@ -964,6 +977,9 @@ void ExtensionsToolbarContainer::UpdateC
@@ -953,6 +966,9 @@ void ExtensionsToolbarContainer::UpdateC
}
bool ExtensionsToolbarContainer::ShouldContainerBeVisible() const {
@@ -1,19 +1,18 @@
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -2116,6 +2116,10 @@ void BrowserView::ExitFullscreen() {
void BrowserView::UpdateExclusiveAccessBubble(
const ExclusiveAccessBubbleParams& params,
ExclusiveAccessBubbleHideCallback first_hide_callback) {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ "hide-fullscreen-exit-ui"))
+ return;
+
// Trusted pinned mode does not allow to escape. So do not show the bubble.
bool is_trusted_pinned =
platform_util::IsBrowserLockedFullscreen(browser_.get());
@@ -715,6 +715,9 @@ class BrowserView::ExclusiveAccessContex
void UpdateExclusiveAccessBubble(
const ExclusiveAccessBubbleParams& params,
ExclusiveAccessBubbleHideCallback first_hide_callback) override {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("hide-fullscreen-exit-ui")) {
+ return;
+ }
// Trusted pinned mode does not allow to escape. So do not show the bubble.
bool is_trusted_pinned =
platform_util::IsBrowserLockedFullscreen(browser_view_->browser_.get());
--- a/chrome/browser/ui/views/fullscreen_control/fullscreen_control_host.cc
+++ b/chrome/browser/ui/views/fullscreen_control/fullscreen_control_host.cc
@@ -74,6 +74,10 @@ bool IsExitUiEnabled() {
@@ -75,6 +75,10 @@ bool IsExitUiEnabled() {
// menu and controls reveal when the cursor is moved to the top.
return false;
#else
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/tabs/tab.cc
+++ b/chrome/browser/ui/views/tabs/tab.cc
@@ -1177,7 +1177,11 @@ void Tab::UpdateIconVisibility() {
@@ -1178,7 +1178,11 @@ void Tab::UpdateIconVisibility() {
// Close button is shown on active tabs regardless of the size.
showing_close_button_ = true;
#endif // BUILDFLAG(IS_CHROMEOS)
@@ -12,7 +12,7 @@
showing_alert_indicator_ =
has_alert_icon && alert_icon_width <= available_width;
@@ -1206,6 +1210,8 @@ void Tab::UpdateIconVisibility() {
@@ -1207,6 +1211,8 @@ void Tab::UpdateIconVisibility() {
!controller_->IsLockedForOnTask() &&
#endif
large_enough_for_close_button;
@@ -11,9 +11,9 @@
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
--- a/storage/browser/quota/quota_features.cc
+++ b/storage/browser/quota/quota_features.cc
@@ -41,5 +41,9 @@ BASE_FEATURE(kStaticStorageQuota,
"StaticStorageQuota",
base::FEATURE_DISABLED_BY_DEFAULT);
@@ -37,5 +37,9 @@ constexpr base::FeatureParam<double> kSh
// A kill switch for the new reported quota being a static value.
BASE_FEATURE(kStaticStorageQuota, base::FEATURE_DISABLED_BY_DEFAULT);
+BASE_FEATURE(kIncreaseIncognitoStorageQuota,
+ "IncreaseIncognitoStorageQuota",
@@ -29,10 +29,10 @@
#if BUILDFLAG(IS_ANDROID)
return ShouldReduceUserAgentMinorVersion(user_agent_reduction) &&
base::FeatureList::IsEnabled(
@@ -672,6 +676,8 @@ blink::UserAgentMetadata GetUserAgentMet
@@ -667,6 +671,8 @@ std::string GetPlatformForUAMetadata() {
}
blink::UserAgentMetadata GetUserAgentMetadata(const PrefService* pref_service,
bool only_low_entropy_ch) {
blink::UserAgentMetadata GetUserAgentMetadata(bool only_low_entropy_ch) {
+ if (base::FeatureList::IsEnabled(blink::features::kReducedSystemInfo))
+ only_low_entropy_ch = true;
blink::UserAgentMetadata metadata;
@@ -40,7 +40,7 @@
// Low entropy client hints.
--- a/third_party/blink/common/features.cc
+++ b/third_party/blink/common/features.cc
@@ -20,6 +20,7 @@
@@ -21,6 +21,7 @@
namespace blink::features {
BASE_FEATURE(kDisableLinkDrag, "DisableLinkDrag", base::FEATURE_DISABLED_BY_DEFAULT);
@@ -11,7 +11,7 @@
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
--- a/content/browser/client_hints/client_hints.cc
+++ b/content/browser/client_hints/client_hints.cc
@@ -823,6 +823,8 @@ void UpdateNavigationRequestClientUaHead
@@ -824,6 +824,8 @@ void UpdateNavigationRequestClientUaHead
net::HttpRequestHeaders* headers,
const std::optional<GURL>& request_url) {
DCHECK(frame_tree_node);
@@ -20,7 +20,7 @@
if (!ShouldAddClientHints(origin, frame_tree_node, delegate, request_url)) {
return;
}
@@ -854,6 +856,8 @@ void AddRequestClientHintsHeaders(
@@ -855,6 +857,8 @@ void AddRequestClientHintsHeaders(
FrameTreeNode* frame_tree_node,
const network::ParsedPermissionsPolicy& container_policy,
FrameTreeNode* ftn_for_devtools_override) {
@@ -31,7 +31,7 @@
data, container_policy);
--- a/third_party/blink/common/features.cc
+++ b/third_party/blink/common/features.cc
@@ -21,6 +21,7 @@ namespace blink::features {
@@ -22,6 +22,7 @@ namespace blink::features {
BASE_FEATURE(kDisableLinkDrag, "DisableLinkDrag", base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kReducedSystemInfo, "ReducedSystemInfo", base::FEATURE_DISABLED_BY_DEFAULT);
@@ -75,10 +75,10 @@
#include "third_party/blink/public/common/client_hints/client_hints.h"
#include "third_party/blink/public/common/device_memory/approximated_device_memory.h"
+#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/permissions_policy/document_policy_features.h"
#include "third_party/blink/public/common/switches.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-blink.h"
#include "third_party/blink/public/mojom/loader/request_context_frame_type.mojom-blink.h"
@@ -528,6 +529,8 @@ void FrameFetchContext::ModifyRequestFor
@@ -613,6 +614,8 @@ void FrameFetchContext::ModifyRequestFor
void FrameFetchContext::AddClientHintsIfNecessary(
const std::optional<float> resource_width,
ResourceRequest& request) {
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
@@ -466,6 +466,17 @@ void ToolbarView::Init() {
@@ -475,6 +475,17 @@ void ToolbarView::Init() {
browser_->profile()->IsGuestSession() ||
browser_->profile()->IsRegularProfile();
#endif
@@ -58,7 +58,7 @@
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
--- a/third_party/blink/common/features.cc
+++ b/third_party/blink/common/features.cc
@@ -22,6 +22,11 @@ namespace blink::features {
@@ -23,6 +23,11 @@ namespace blink::features {
BASE_FEATURE(kDisableLinkDrag, "DisableLinkDrag", base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kReducedSystemInfo, "ReducedSystemInfo", base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kRemoveClientHints, "RemoveClientHints", base::FEATURE_DISABLED_BY_DEFAULT);
@@ -86,7 +86,7 @@
// Feature declarations and associated constants (feature params, et cetera)
--- a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
+++ b/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
@@ -4121,6 +4121,8 @@ ScriptValue WebGLRenderingContextBase::g
@@ -4107,6 +4107,8 @@ ScriptValue WebGLRenderingContextBase::g
pname, IdentifiabilityBenignStringToken(
String(ContextGL()->GetString(GL_RENDERER))));
}
@@ -95,7 +95,7 @@
return WebGLAny(script_state,
String(ContextGL()->GetString(GL_RENDERER)));
}
@@ -4136,6 +4138,8 @@ ScriptValue WebGLRenderingContextBase::g
@@ -4122,6 +4124,8 @@ ScriptValue WebGLRenderingContextBase::g
pname, IdentifiabilityBenignStringToken(
String(ContextGL()->GetString(GL_VENDOR))));
}
@@ -1,6 +1,6 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -4922,10 +4922,12 @@ const FeatureEntry::FeatureVariation kNt
@@ -5203,10 +5203,12 @@ const FeatureEntry::FeatureVariation kPr
#include "chrome/browser/ungoogled_flag_choices.h"
#include "chrome/browser/bromite_flag_choices.h"
#include "chrome/browser/ungoogled_platform_flag_choices.h"
@@ -15,7 +15,7 @@
#include "build/chromeos_buildflags.h"
--- /dev/null
+++ b/chrome/browser/existing_switch_flag_choices.h
@@ -0,0 +1,19 @@
@@ -0,0 +1,21 @@
+// Copyright (c) 2023 The ungoogled-chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE.ungoogled_chromium file.
@@ -23,16 +23,18 @@
+#ifndef CHROME_BROWSER_EXISTING_SWITCH_FLAG_CHOICES_H_
+#define CHROME_BROWSER_EXISTING_SWITCH_FLAG_CHOICES_H_
+const FeatureEntry::Choice kWebRTCIPPolicy[] = {
+ {"Disable non proxied udp", "", ""},
+ {"Default public interface only",
+ "",
+ ""},
+ {"Default",
+ "webrtc-ip-handling-policy",
+ "default"},
+ {"Default public and private interfaces",
+ "webrtc-ip-handling-policy",
+ "default_public_and_private_interfaces"},
+ {"Default public interface only",
+ {"Disable non proxied udp",
+ "webrtc-ip-handling-policy",
+ "default_public_interface_only"},
+ "disable_non_proxied_udp"},
+};
+#endif // CHROME_BROWSER_EXISTING_SWITCH_FLAG_CHOICES_H_
--- /dev/null
@@ -27,7 +27,7 @@
#include "services/network/public/cpp/resource_request_body.h"
#include "services/network/public/cpp/supports_loading_mode/supports_loading_mode_parser.h"
#include "services/network/public/cpp/url_loader_completion_status.h"
@@ -392,10 +393,10 @@ void AddAdditionalRequestHeaders(
@@ -398,10 +399,10 @@ void AddAdditionalRequestHeaders(
net::HttpRequestHeaders::kUserAgent,
ComputeUserAgentValue(*headers, user_agent_override, browser_context));
@@ -44,7 +44,7 @@
if (NeedsHTTPOrigin(headers, method)) {
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -135,6 +135,7 @@
@@ -137,6 +137,7 @@
#include "services/network/public/cpp/content_decoding_interceptor.h"
#include "services/network/public/cpp/features.h"
#include "services/network/public/cpp/not_implemented_url_loader_factory.h"
@@ -52,7 +52,7 @@
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/public/mojom/fetch_api.mojom.h"
#include "services/network/public/mojom/restricted_cookie_manager.mojom.h"
@@ -4523,10 +4524,13 @@ void RenderFrameImpl::FinalizeRequestInt
@@ -4450,10 +4451,13 @@ void RenderFrameImpl::FinalizeRequestInt
request.SetHasUserGesture(frame_->HasTransientUserActivation());
@@ -100,7 +100,7 @@
--- a/services/network/public/cpp/BUILD.gn
+++ b/services/network/public/cpp/BUILD.gn
@@ -122,6 +122,8 @@ component("cpp") {
@@ -124,6 +124,8 @@ component("cpp") {
"private_network_access_check_result.cc",
"private_network_access_check_result.h",
"record_ontransfersizeupdate_utils.h",
@@ -19,9 +19,9 @@
+BASE_FEATURE(kSetIpv6ProbeFalse, "SetIpv6ProbeFalse", base::FEATURE_DISABLED_BY_DEFAULT);
+
BASE_FEATURE(AlpsForHttp2, base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kAlpsForHttp2, base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(AvoidH2Reprioritization, base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kAvoidH2Reprioritization, base::FEATURE_DISABLED_BY_DEFAULT);
--- a/net/base/features.h
+++ b/net/base/features.h
@@ -21,6 +21,8 @@
@@ -47,7 +47,7 @@
// True if |hostname| ends with either ".local" or ".local.".
bool ResemblesMulticastDNSName(std::string_view hostname) {
return hostname.ends_with(".local") || hostname.ends_with(".local.");
@@ -1496,33 +1491,10 @@ int HostResolverManager::StartIPv6Reacha
@@ -1493,33 +1488,10 @@ int HostResolverManager::StartIPv6Reacha
return OK;
}
@@ -68,7 +68,7 @@
- base::BindOnce(&HostResolverManager::FinishIPv6ReachabilityCheck,
- weak_ptr_factory_.GetWeakPtr(), std::move(callback)));
- if (rv != ERR_IO_PENDING) {
- SetLastIPv6ProbeResult((rv == OK) ? true : false);
- SetLastIPv6ProbeResult(rv == OK);
- rv = OK;
- }
- cached = false;
@@ -334,7 +334,7 @@
void ReloadIcon(size_t index);
--- a/chrome/browser/ui/webui/settings/search_engines_handler.cc
+++ b/chrome/browser/ui/webui/settings/search_engines_handler.cc
@@ -49,6 +49,7 @@ namespace {
@@ -51,6 +51,7 @@ namespace {
const char kSearchEngineField[] = "searchEngine";
const char kKeywordField[] = "keyword";
const char kQueryUrlField[] = "queryUrl";
@@ -342,7 +342,7 @@
// Dummy number used for indicating that a new search engine is added.
const int kNewSearchEngineIndex = -1;
@@ -255,6 +256,8 @@ base::Value::Dict SearchEnginesHandler::
@@ -257,6 +258,8 @@ base::Value::Dict SearchEnginesHandler::
Profile* profile = Profile::FromWebUI(web_ui());
dict.Set("url",
template_url->url_ref().DisplayURL(UIThreadSearchTermsData()));
@@ -351,7 +351,7 @@
dict.Set("urlLocked", ((template_url->prepopulate_id() > 0) ||
(template_url->starter_pack_id() > 0)));
GURL icon_url = template_url->favicon_url();
@@ -418,12 +421,14 @@ void SearchEnginesHandler::HandleSearchE
@@ -423,12 +426,14 @@ void SearchEnginesHandler::HandleSearchE
void SearchEnginesHandler::OnEditedKeyword(TemplateURL* template_url,
const std::u16string& title,
const std::u16string& keyword,
@@ -369,7 +369,7 @@
}
edit_controller_.reset();
@@ -453,6 +458,8 @@ bool SearchEnginesHandler::CheckFieldVal
@@ -458,6 +463,8 @@ bool SearchEnginesHandler::CheckFieldVal
is_valid = edit_controller_->IsKeywordValid(base::UTF8ToUTF16(field_value));
} else if (field_name.compare(kQueryUrlField) == 0) {
is_valid = edit_controller_->IsURLValid(field_value);
@@ -378,7 +378,7 @@
} else {
NOTREACHED();
}
@@ -475,18 +482,21 @@ void SearchEnginesHandler::HandleSearchE
@@ -480,18 +487,21 @@ void SearchEnginesHandler::HandleSearchE
return;
}
@@ -428,7 +428,7 @@
--- a/components/search_engines/template_url_service.cc
+++ b/components/search_engines/template_url_service.cc
@@ -1038,7 +1038,8 @@ void TemplateURLService::IncrementUsageC
@@ -1037,7 +1037,8 @@ void TemplateURLService::IncrementUsageC
void TemplateURLService::ResetTemplateURL(TemplateURL* url,
const std::u16string& title,
const std::u16string& keyword,
@@ -438,7 +438,7 @@
DCHECK(!IsCreatedByExtension(*url));
DCHECK(!keyword.empty());
DCHECK(!search_url.empty());
@@ -1062,6 +1063,7 @@ void TemplateURLService::ResetTemplateUR
@@ -1061,6 +1062,7 @@ void TemplateURLService::ResetTemplateUR
data.last_modified = clock_->Now();
data.is_active = TemplateURLData::ActiveStatus::kTrue;
data.policy_origin = TemplateURLData::PolicyOrigin::kNoPolicy;
@@ -1,6 +1,6 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -4918,7 +4918,13 @@ const FeatureEntry::FeatureVariation kNt
@@ -5199,7 +5199,13 @@ const FeatureEntry::FeatureVariation kPr
// calculate and verify checksum.
//
// When adding a new choice, add it to the end of the list.
@@ -28,7 +28,7 @@
// via the feature params.
--- a/chrome/browser/profile_resetter/profile_resetter.cc
+++ b/chrome/browser/profile_resetter/profile_resetter.cc
@@ -99,17 +99,6 @@ ProfileResetter::ProfileResetter(Profile
@@ -101,17 +101,6 @@ ProfileResetter::ProfileResetter(Profile
cookies_remover_(nullptr) {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
DCHECK(profile_);
@@ -58,7 +58,7 @@
--- a/components/affiliations/core/browser/hash_affiliation_fetcher.cc
+++ b/components/affiliations/core/browser/hash_affiliation_fetcher.cc
@@ -128,6 +128,10 @@ HashAffiliationFetcher::~HashAffiliation
@@ -129,6 +129,10 @@ HashAffiliationFetcher::~HashAffiliation
}
void HashAffiliationFetcher::StartRequest(
@@ -23,7 +23,7 @@
url.SchemeIs(dom_distiller::kDomDistillerScheme))
--- a/chrome/browser/ui/singleton_tabs.cc
+++ b/chrome/browser/ui/singleton_tabs.cc
@@ -132,7 +132,8 @@ int GetIndexOfExistingTab(Browser* brows
@@ -140,7 +140,8 @@ int GetIndexOfExistingTab(BrowserWindowI
// RewriteURLIfNecessary removes the "view-source:" scheme which could lead
// to incorrect matching, so ensure that the target and the candidate are
// either both view-source:, or neither is.
@@ -35,7 +35,7 @@
--- a/components/omnibox/browser/autocomplete_input.cc
+++ b/components/omnibox/browser/autocomplete_input.cc
@@ -578,7 +578,8 @@ void AutocompleteInput::ParseForEmphasiz
@@ -580,7 +580,8 @@ void AutocompleteInput::ParseForEmphasiz
// For the view-source and blob schemes, we should emphasize the host of the
// URL qualified by the view-source or blob prefix.
if ((base::EqualsCaseInsensitiveASCII(scheme_str, kViewSourceScheme) ||
@@ -60,7 +60,7 @@
return GURL(parts.scheme.is_valid() ? text : FixupPath(text));
--- a/content/browser/child_process_security_policy_impl.cc
+++ b/content/browser/child_process_security_policy_impl.cc
@@ -958,6 +958,7 @@ ChildProcessSecurityPolicyImpl::ChildPro
@@ -957,6 +957,7 @@ ChildProcessSecurityPolicyImpl::ChildPro
RegisterWebSafeScheme(url::kWssScheme);
#endif // BUILDFLAG(ENABLE_WEBSOCKETS)
RegisterWebSafeScheme(url::kDataScheme);
@@ -70,7 +70,7 @@
// other origins, so we should not treat them as web safe. Remove callers of
--- a/net/BUILD.gn
+++ b/net/BUILD.gn
@@ -1123,6 +1123,8 @@ component("net") {
@@ -1133,6 +1133,8 @@ component("net") {
"url_request/static_http_user_agent_settings.cc",
"url_request/static_http_user_agent_settings.h",
"url_request/storage_access_status_cache.h",
@@ -158,7 +158,7 @@
namespace net {
@@ -653,6 +655,12 @@ URLRequest::URLRequest(base::PassKey<URL
@@ -650,6 +652,12 @@ URLRequest::URLRequest(base::PassKey<URL
// Sanity check out environment.
DCHECK(base::SingleThreadTaskRunner::HasCurrentDefault());
@@ -169,8 +169,8 @@
+ }
+
context->url_requests()->insert(this);
net_log_.BeginEvent(NetLogEventType::REQUEST_ALIVE, [&] {
return NetLogURLRequestConstructorParams(url, priority_,
net_log_.BeginEvent(NetLogEventType::REQUEST_ALIVE,
[&](NetLogCaptureMode capture_mode) {
--- a/net/url_request/url_request_context_builder.cc
+++ b/net/url_request/url_request_context_builder.cc
@@ -55,6 +55,7 @@
@@ -29,7 +29,7 @@
--- a/components/omnibox/browser/featured_search_provider.cc
+++ b/components/omnibox/browser/featured_search_provider.cc
@@ -290,20 +290,10 @@ void FeaturedSearchProvider::AddFeatured
@@ -295,20 +295,10 @@ void FeaturedSearchProvider::AddFeatured
for (TemplateURL* turl : turls) {
if (turl->starter_pack_id() > 0 &&
turl->is_active() == TemplateURLData::ActiveStatus::kTrue) {
@@ -2,7 +2,7 @@
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -2844,24 +2844,6 @@ void ChromeContentBrowserClient::AppendE
@@ -2683,24 +2683,6 @@ void ChromeContentBrowserClient::AppendE
command_line->AppendSwitchASCII(switches::kMetricsClientID,
client_info->client_id);
}
@@ -34,7 +34,7 @@
bool InitializeCrashpadImpl(bool initial_client,
+ const std::string& a, const std::string& b, const base::FilePath& c,
+ const std::vector<std::string>& d, bool e) {
+ const std::vector<std::string>& d, bool e, const std::vector<base::FilePath>& f) {
+ return false;
+}
+[[maybe_unused]]
@@ -44,7 +44,7 @@
const base::FilePath& exe_path,
--- a/components/gwp_asan/client/gwp_asan.cc
+++ b/components/gwp_asan/client/gwp_asan.cc
@@ -345,6 +345,11 @@ GWP_ASAN_EXPORT std::optional<AllocatorS
@@ -344,6 +344,11 @@ GWP_ASAN_EXPORT std::optional<AllocatorS
// Exported for testing.
GWP_ASAN_EXPORT std::optional<AllocatorSettings> GetAllocatorSettings(
@@ -143,7 +143,7 @@
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -139,7 +139,6 @@ source_set("browser") {
"//components/performance_manager/scenario_api",
"//components/persistent_cache",
"//components/power_monitor",
"//components/services/filesystem:lib",
- "//components/services/quarantine",
@@ -1,6 +1,6 @@
--- a/components/download/public/common/download_features.cc
+++ b/components/download/public/common/download_features.cc
@@ -44,7 +44,7 @@ BASE_FEATURE(kRefreshExpirationDate,
@@ -38,7 +38,7 @@ BASE_FEATURE(kRefreshExpirationDate, bas
BASE_FEATURE(kDisplayInitiatorOrigin,
"DownloadsDisplayInitiatorOrigin",
@@ -8,4 +8,4 @@
+ base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kDownloadNotificationServiceUnifiedAPI,
"DownloadNotificationServiceUnifiedAPI",
#if BUILDFLAG(IS_ANDROID)
@@ -2,7 +2,7 @@
--- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
+++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
@@ -295,7 +295,7 @@ bool DomDistillerViewerSource::ShouldSer
@@ -308,7 +308,7 @@ bool DomDistillerViewerSource::ShouldSer
std::string DomDistillerViewerSource::GetContentSecurityPolicy(
network::mojom::CSPDirectiveName directive) {
if (directive == network::mojom::CSPDirectiveName::StyleSrc) {
@@ -24,7 +24,7 @@
.english :lang(zh) {display: none}
--- a/components/dom_distiller/core/javascript/dom_distiller_viewer.js
+++ b/components/dom_distiller/core/javascript/dom_distiller_viewer.js
@@ -211,7 +211,7 @@ function maybeSetWebFont() {
@@ -465,7 +465,7 @@ function maybeSetWebFont() {
}
const e = document.createElement('link');
@@ -3,7 +3,7 @@
--- a/google_apis/gaia/gaia_auth_fetcher.cc
+++ b/google_apis/gaia/gaia_auth_fetcher.cc
@@ -232,61 +232,6 @@ void GaiaAuthFetcher::CreateAndStartGaia
@@ -236,61 +236,6 @@ void GaiaAuthFetcher::CreateAndStartGaia
network::mojom::CredentialsMode credentials_mode,
const net::NetworkTrafficAnnotationTag& traffic_annotation) {
DCHECK(!fetch_pending_) << "Tried to fetch two things at once!";
@@ -25,7 +25,7 @@
#if BUILDFLAG(ENABLE_BOUND_SESSION_CREDENTIALS)
#include "chrome/common/bound_session_request_throttled_handler.h"
#include "net/cookies/cookie_util.h"
@@ -171,71 +167,6 @@ void GoogleURLLoaderThrottle::DetachFrom
@@ -172,71 +168,6 @@ void GoogleURLLoaderThrottle::DetachFrom
void GoogleURLLoaderThrottle::WillStartRequest(
network::ResourceRequest* request,
bool* defer) {
@@ -97,7 +97,7 @@
}
void GoogleURLLoaderThrottle::WillRedirectRequest(
@@ -245,97 +176,12 @@ void GoogleURLLoaderThrottle::WillRedire
@@ -246,97 +177,12 @@ void GoogleURLLoaderThrottle::WillRedire
std::vector<std::string>* to_be_removed_headers,
net::HttpRequestHeaders* modified_headers,
net::HttpRequestHeaders* modified_cors_exempt_headers) {
@@ -268,14 +268,14 @@
- base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kIgnoreGooglePortNumbers);
- return url.is_valid() && url.SchemeIsHTTPOrHTTPS() &&
- (url.port().empty() || g_ignore_port_numbers ||
- (!url.has_port() || g_ignore_port_numbers ||
- (port_permission == ALLOW_NON_STANDARD_PORTS));
-}
-
-bool IsCanonicalHostGoogleHostname(std::string_view canonical_host,
- SubdomainPermission subdomain_permission) {
- const GURL& base_url(CommandLineGoogleBaseURL());
- if (base_url.is_valid() && (canonical_host == base_url.host_piece())) {
- if (base_url.is_valid() && (canonical_host == base_url.host())) {
- return true;
- }
-
@@ -302,7 +302,7 @@
- return false;
- }
-
- std::string_view host(url.host_piece());
- std::string_view host(url.host());
- StripTrailingDot(&host);
-
- static constexpr auto google_subdomains =
@@ -314,8 +314,8 @@
-
} // namespace
BASE_FEATURE(kIsViewerGoogleSearchUrl,
@@ -155,13 +44,6 @@ BASE_FEATURE(kIsViewerGoogleSearchUrl,
BASE_FEATURE(kIsViewerGoogleSearchUrl, base::FEATURE_ENABLED_BY_DEFAULT);
@@ -153,13 +42,6 @@ BASE_FEATURE(kIsViewerGoogleSearchUrl, b
const char kGoogleHomepageURL[] = "trk:113:https://www.google.com/";
bool HasGoogleSearchQueryParam(std::string_view str) {
@@ -329,7 +329,7 @@
return false;
}
@@ -172,175 +54,53 @@ std::string GetGoogleLocale(const std::s
@@ -170,175 +52,53 @@ std::string GetGoogleLocale(const std::s
GURL AppendGoogleLocaleParam(const GURL& url,
const std::string& application_locale) {
@@ -339,7 +339,7 @@
}
std::string GetGoogleCountryCode(const GURL& google_homepage_url) {
- std::string_view google_hostname = google_homepage_url.host_piece();
- std::string_view google_hostname = google_homepage_url.host();
- // TODO(igorcov): This needs a fix for case when the host has a trailing dot,
- // like "google.com./". https://crbug.com/720295.
- const size_t last_dot = google_hostname.find_last_of('.');
@@ -407,7 +407,7 @@
SubdomainPermission subdomain_permission,
PortPermission port_permission) {
- return IsValidURL(url, port_permission) &&
- IsCanonicalHostGoogleHostname(url.host_piece(), subdomain_permission);
- IsCanonicalHostGoogleHostname(url.host(), subdomain_permission);
+ return false;
}
@@ -428,7 +428,7 @@
- }
-
- // Make sure the path is a known home page path.
- std::string_view path(url.path_piece());
- std::string_view path(url.path());
- return IsPathHomePageBase(path) ||
- base::StartsWith(path, "/ig", base::CompareCase::INSENSITIVE_ASCII);
+ return false;
@@ -443,7 +443,7 @@
- }
-
- // Make sure the path is a known search path.
- std::string_view path(url.path_piece());
- std::string_view path(url.path());
- bool is_home_page_base = IsPathHomePageBase(path);
- bool is_search_url =
- is_home_page_base || path == "/search" || path == "/imgres";
@@ -456,8 +456,8 @@
-
- // Check for query parameter in URL parameter and hash fragment, depending on
- // the path type.
- return HasGoogleSearchQueryParam(url.ref_piece()) ||
- (!is_home_page_base && HasGoogleSearchQueryParam(url.query_piece()));
- return HasGoogleSearchQueryParam(url.ref()) ||
- (!is_home_page_base && HasGoogleSearchQueryParam(url.query()));
+ return false;
}
@@ -465,7 +465,7 @@
SubdomainPermission subdomain_permission,
PortPermission port_permission) {
- return IsValidURL(url, port_permission) &&
- IsCanonicalHostYoutubeHostname(url.host_piece(), subdomain_permission);
- IsCanonicalHostYoutubeHostname(url.host(), subdomain_permission);
+ return false;
}
@@ -495,7 +495,7 @@
- ".youtubekids.com",
- ".ytimg.com",
- });
- const std::string host = url.host();
- const std::string_view host(url.host());
- for (auto* i : kSuffixesToSetHeadersFor) {
- if (base::EndsWith(host, i, base::CompareCase::INSENSITIVE_ASCII)) {
- return true;
@@ -533,7 +533,7 @@
- // want to match URLs like www.google.appspot.com.
- net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES);
-
- const std::string_view hostname = url.host_piece();
- const std::string_view hostname = url.host();
- if (registry_length == 0 || registry_length == std::string::npos ||
- registry_length >= hostname.length()) {
- return std::nullopt;
@@ -570,7 +570,7 @@
bool IsProbablyGoogleSearchUrl(const GURL& url) {
--- a/components/search_engines/template_url.cc
+++ b/components/search_engines/template_url.cc
@@ -609,10 +609,7 @@ std::u16string TemplateURLRef::SearchTer
@@ -611,10 +611,7 @@ std::u16string TemplateURLRef::SearchTer
bool TemplateURLRef::HasGoogleBaseURLs(
const SearchTermsData& search_terms_data) const {
ParseIfNecessary(search_terms_data);
@@ -584,7 +584,7 @@
bool TemplateURLRef::ExtractSearchTermsFromURL(
--- a/components/variations/net/variations_http_headers.cc
+++ b/components/variations/net/variations_http_headers.cc
@@ -31,10 +31,6 @@
@@ -30,10 +30,6 @@
namespace variations {
@@ -595,7 +595,7 @@
namespace {
// The result of checking whether a request to a URL should have variations
@@ -116,16 +112,6 @@ URLValidationResult GetUrlValidationResu
@@ -115,16 +111,6 @@ URLValidationResult GetUrlValidationResu
return URLValidationResult::kShouldAppend;
}
@@ -612,7 +612,7 @@
// Returns true if the request is sent from a Google web property, i.e. from a
// first-party context.
//
@@ -252,30 +238,7 @@ class VariationsHeaderHelper {
@@ -251,30 +237,7 @@ class VariationsHeaderHelper {
VariationsHeaderHelper& operator=(const VariationsHeaderHelper&) = delete;
bool AppendHeaderIfNeeded(const GURL& url, InIncognito incognito) {
@@ -644,7 +644,7 @@
}
private:
@@ -341,9 +304,6 @@ void RemoveVariationsHeaderIfNeeded(
@@ -340,9 +303,6 @@ void RemoveVariationsHeaderIfNeeded(
const net::RedirectInfo& redirect_info,
const network::mojom::URLResponseHead& response_head,
std::vector<std::string>* to_be_removed_headers) {
@@ -654,7 +654,7 @@
}
std::unique_ptr<network::SimpleURLLoader>
@@ -379,29 +339,22 @@ CreateSimpleURLLoaderWithVariationsHeade
@@ -378,29 +338,22 @@ CreateSimpleURLLoaderWithVariationsHeade
}
bool HasVariationsHeader(const network::ResourceRequest& request) {
@@ -689,9 +689,9 @@
} // namespace variations
--- a/content/browser/preloading/prefetch/prefetch_container.cc
+++ b/content/browser/preloading/prefetch/prefetch_container.cc
@@ -777,7 +777,7 @@ void PrefetchContainer::AddRedirectHop(c
// some which are added by throttles). These aren't yet supported for
@@ -727,7 +727,7 @@ void PrefetchContainer::AddRedirectHop(c
// prefetch, including browsing topics and client hints.
// TODO(crbug.com/441612842): Support User-Agent overrides.
net::HttpRequestHeaders updated_headers;
- std::vector<std::string> headers_to_remove = {variations::kClientDataHeader};
+ std::vector<std::string> headers_to_remove;
@@ -700,7 +700,7 @@
--- a/net/base/url_util.cc
+++ b/net/base/url_util.cc
@@ -538,28 +538,6 @@ bool HasGoogleHost(const GURL& url) {
@@ -552,28 +552,6 @@ bool HasGoogleHost(const GURL& url) {
}
bool IsGoogleHost(std::string_view host) {
@@ -7,7 +7,7 @@
--- a/chrome/BUILD.gn
+++ b/chrome/BUILD.gn
@@ -367,7 +367,6 @@ if (!is_android && !is_mac) {
@@ -368,7 +368,6 @@ if (!is_android && !is_mac) {
}
data_deps += [
@@ -15,7 +15,7 @@
"//components/webapps/isolated_web_apps/preload:component",
"//third_party/widevine/cdm",
]
@@ -1181,7 +1180,6 @@ if (is_win) {
@@ -1180,7 +1179,6 @@ if (is_win) {
":optimization_guide_library",
":swiftshader_binaries",
":widevine_cdm_library",
@@ -25,7 +25,7 @@
--- a/chrome/browser/resources/BUILD.gn
+++ b/chrome/browser/resources/BUILD.gn
@@ -106,11 +106,6 @@ group("resources") {
@@ -108,11 +108,6 @@ group("resources") {
]
}
@@ -5,7 +5,7 @@
--- a/components/network_time/network_time_tracker.cc
+++ b/components/network_time/network_time_tracker.cc
@@ -279,7 +279,7 @@ void NetworkTimeTracker::UpdateNetworkTi
@@ -275,7 +275,7 @@ void NetworkTimeTracker::UpdateNetworkTi
}
bool NetworkTimeTracker::AreTimeFetchesEnabled() const {
@@ -1,9 +1,9 @@
--- a/components/browsing_data/content/browsing_data_model.cc
+++ b/components/browsing_data/content/browsing_data_model.cc
@@ -991,12 +991,6 @@ void BrowsingDataModel::PopulateFromDisk
@@ -992,12 +992,6 @@ void BrowsingDataModel::PopulateFromDisk
base::FeatureList::IsEnabled(network::features::kSharedStorageAPI);
bool is_shared_dictionary_enabled = base::FeatureList::IsEnabled(
network::features::kCompressionDictionaryTransportBackend);
network::features::kCompressionDictionaryTransport);
- bool is_interest_group_enabled =
- base::FeatureList::IsEnabled(network::features::kInterestGroupStorage);
- bool is_attribution_reporting_enabled = base::FeatureList::IsEnabled(
@@ -13,7 +13,7 @@
base::RepeatingClosure completion =
base::BindRepeating([](const base::OnceClosure&) {},
@@ -1033,27 +1027,7 @@ void BrowsingDataModel::PopulateFromDisk
@@ -1034,27 +1028,7 @@ void BrowsingDataModel::PopulateFromDisk
base::BindOnce(&OnSharedDictionaryUsageLoaded, this, completion));
}
@@ -175,7 +175,7 @@
void AdAuctionServiceImpl::JoinInterestGroup(
--- a/content/browser/storage_partition_impl.cc
+++ b/content/browser/storage_partition_impl.cc
@@ -1484,38 +1484,7 @@ void StoragePartitionImpl::Initialize(
@@ -1506,38 +1506,7 @@ void StoragePartitionImpl::Initialize(
bucket_manager_ = std::make_unique<BucketManager>(this);
@@ -214,7 +214,7 @@
GeneratedCodeCacheSettings settings =
GetContentClient()->browser()->GetGeneratedCodeCacheSettings(
@@ -1544,8 +1513,6 @@ void StoragePartitionImpl::Initialize(
@@ -1566,8 +1535,6 @@ void StoragePartitionImpl::Initialize(
font_access_manager_ = FontAccessManager::Create();
@@ -223,7 +223,7 @@
#if BUILDFLAG(ENABLE_LIBRARY_CDMS)
if (is_in_memory()) {
@@ -1569,11 +1536,6 @@ void StoragePartitionImpl::Initialize(
@@ -1591,11 +1558,6 @@ void StoragePartitionImpl::Initialize(
std::make_unique<SharedStorageHeaderObserver>(this);
}
@@ -237,7 +237,7 @@
void StoragePartitionImpl::ResetSessionStorageConnections() {
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -4192,12 +4192,6 @@ void WebContentsImpl::Init(const WebCont
@@ -4267,12 +4267,6 @@ void WebContentsImpl::Init(const WebCont
DateTimeChooser::CreateDateTimeChooser(this);
#endif
@@ -252,7 +252,7 @@
BtmWebContentsObserver::MaybeCreateForWebContents(this);
--- a/content/services/auction_worklet/private_aggregation_bindings.cc
+++ b/content/services/auction_worklet/private_aggregation_bindings.cc
@@ -406,53 +406,6 @@ PrivateAggregationBindings::~PrivateAggr
@@ -407,53 +407,6 @@ PrivateAggregationBindings::~PrivateAggr
void PrivateAggregationBindings::AttachToContext(
v8::Local<v8::Context> context) {
@@ -262,8 +262,8 @@
- return;
- }
-
- v8::Local<v8::External> v8_this =
- v8::External::New(v8_helper_->isolate(), this);
- v8::Local<v8::External> v8_this = v8::External::New(
- v8_helper_->isolate(), this, gin::kPrivateAggregationBindingsTag);
-
- v8::Local<v8::Object> private_aggregation =
- v8::Object::New(v8_helper_->isolate());
@@ -2,7 +2,7 @@
--- a/rlz/lib/financial_ping.cc
+++ b/rlz/lib/financial_ping.cc
@@ -311,7 +311,7 @@ FinancialPing::PingResponse FinancialPin
@@ -308,7 +308,7 @@ FinancialPing::PingResponse FinancialPin
response->clear();
std::string url =
@@ -2,7 +2,7 @@
--- a/chrome/browser/media/webrtc/webrtc_log_uploader.cc
+++ b/chrome/browser/media/webrtc/webrtc_log_uploader.cc
@@ -179,31 +179,13 @@ void WebRtcLogUploader::OnLoggingStopped
@@ -178,31 +178,13 @@ void WebRtcLogUploader::OnLoggingStopped
DCHECK(meta_data.get());
DCHECK(!upload_done_data.paths.directory.empty());
@@ -35,7 +35,7 @@
} else {
main_task_runner_->PostTask(
FROM_HERE,
@@ -220,28 +202,7 @@ void WebRtcLogUploader::PrepareMultipart
@@ -219,28 +201,7 @@ void WebRtcLogUploader::PrepareMultipart
DCHECK(!compressed_log.empty());
DCHECK(meta_data.get());
@@ -65,7 +65,7 @@
}
void WebRtcLogUploader::UploadStoredLog(
@@ -308,48 +269,6 @@ void WebRtcLogUploader::LoggingStoppedDo
@@ -307,48 +268,6 @@ void WebRtcLogUploader::LoggingStoppedDo
DCHECK(log_buffer.get());
DCHECK(!log_paths.directory.empty());
@@ -116,7 +116,7 @@
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -139,7 +139,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -146,7 +146,7 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterStringPref(prefs::kWebRTCUDPPortRange, std::string());
registry->RegisterBooleanPref(prefs::kWebRtcEventLogCollectionAllowed, false);
registry->RegisterListPref(prefs::kWebRtcLocalIpsAllowedUrls);
@@ -2,7 +2,7 @@
--- a/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc
+++ b/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc
@@ -677,12 +677,6 @@ std::vector<url::Origin> ChromeContentBr
@@ -688,12 +688,6 @@ std::vector<url::Origin> ChromeContentBr
GetOriginsRequiringDedicatedProcess() {
std::vector<url::Origin> list;
@@ -17,7 +17,7 @@
--- a/chrome/browser/extensions/chrome_content_verifier_delegate.cc
+++ b/chrome/browser/extensions/chrome_content_verifier_delegate.cc
@@ -303,17 +303,7 @@ bool ChromeContentVerifierDelegate::IsFr
@@ -306,17 +306,7 @@ bool ChromeContentVerifierDelegate::IsFr
// between which extensions are considered in-store.
// See https://crbug.com/766806 for details.
if (!InstallVerifier::IsFromStore(extension, context_)) {
@@ -38,7 +38,7 @@
}
--- a/chrome/browser/extensions/extension_migrator.cc
+++ b/chrome/browser/extensions/extension_migrator.cc
@@ -19,7 +19,9 @@ namespace extensions {
@@ -22,7 +22,9 @@ namespace extensions {
ExtensionMigrator::ExtensionMigrator(Profile* profile,
const std::string& old_id,
const std::string& new_id)
@@ -49,7 +49,7 @@
ExtensionMigrator::~ExtensionMigrator() = default;
@@ -31,7 +33,7 @@ void ExtensionMigrator::StartLoading() {
@@ -34,7 +36,7 @@ void ExtensionMigrator::StartLoading() {
if (should_have_extension) {
base::Value::Dict entry;
entry.Set(ExternalProviderImpl::kExternalUpdateUrl,
@@ -126,7 +126,7 @@
return update_url;
}
@@ -366,10 +352,6 @@ void ExtensionDownloader::DoStartAllPend
@@ -360,10 +346,6 @@ void ExtensionDownloader::DoStartAllPend
AddToFetches(fetches_preparing, std::move(task));
pending_tasks_.clear();
@@ -137,7 +137,7 @@
}
void ExtensionDownloader::SetIdentityManager(
@@ -830,20 +812,6 @@ void ExtensionDownloader::HandleManifest
@@ -824,20 +806,6 @@ void ExtensionDownloader::HandleManifest
update.second->info);
}
@@ -158,7 +158,7 @@
ExtensionIdSet extension_ids_with_errors;
for (const auto& failure : failures)
extension_ids_with_errors.insert(failure.first.id);
@@ -1423,11 +1391,7 @@ bool ExtensionDownloader::IterateFetchCr
@@ -1417,11 +1385,7 @@ bool ExtensionDownloader::IterateFetchCr
// fetch.
switch (fetch->credentials) {
case ExtensionFetch::CREDENTIALS_NONE:
@@ -173,11 +173,11 @@
fetch->oauth2_attempt_count++;
--- a/extensions/common/extension_urls.cc
+++ b/extensions/common/extension_urls.cc
@@ -77,8 +77,6 @@ GURL AppendUtmSource(const GURL& url, st
@@ -82,8 +82,6 @@ GURL AppendUtmSource(const GURL& url, st
GURL GetWebstoreExtensionsCategoryURL() {
GURL base_url = GetNewWebstoreLaunchURL();
- CHECK_EQ(base_url.path_piece(), "/")
- CHECK_EQ(base_url.path(), "/")
- << "GURL::Resolve() won't work with a URL with a path.";
return base_url.Resolve("category/extensions");
}
@@ -55,10 +55,10 @@
base::FEATURE_ENABLED_BY_DEFAULT),
--- a/services/network/public/cpp/features.cc
+++ b/services/network/public/cpp/features.cc
@@ -108,12 +108,7 @@ BASE_FEATURE(kSplitAuthCacheByNetworkIso
@@ -92,12 +92,7 @@ BASE_FEATURE(kSplitAuthCacheByNetworkIso
// Enable usage of hardcoded DoH upgrade mapping for use in automatic mode.
BASE_FEATURE(kDnsOverHttpsUpgrade,
"DnsOverHttpsUpgrade",
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \
- BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX)
- base::FEATURE_ENABLED_BY_DEFAULT
@@ -1,9 +1,9 @@
--- a/chrome/browser/browser_features.cc
+++ b/chrome/browser/browser_features.cc
@@ -60,7 +60,7 @@ BASE_FEATURE(kBookmarkTriggerForPrefetch
@@ -49,7 +49,7 @@ BASE_FEATURE(kBookmarkTriggerForPrefetch
// On builds where CT is enabled, this flag is also used as an emergency kill
// switch.
BASE_FEATURE(kCertificateTransparencyAskBeforeEnabling,
"CertificateTransparencyAskBeforeEnabling",
-#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
+#if true
base::FEATURE_ENABLED_BY_DEFAULT);
@@ -2,12 +2,12 @@
--- a/chrome/browser/ui/views/toolbar/reload_button.cc
+++ b/chrome/browser/ui/views/toolbar/reload_button.cc
@@ -114,7 +114,7 @@ bool ReloadButton::GetMenuEnabled() cons
@@ -132,7 +132,7 @@ bool ReloadButton::GetMenuEnabled() cons
}
void ReloadButton::SetMenuEnabled(bool enable) {
- menu_enabled_ = enable;
+ menu_enabled_ = true;
void ReloadButton::SetMenuEnabled(bool is_menu_enabled) {
- is_menu_enabled_ = is_menu_enabled;
+ is_menu_enabled_ = true;
UpdateAccessibleHasPopup();
UpdateCachedTooltipText();
}
@@ -2,7 +2,7 @@
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -629,11 +629,6 @@ int GetContentRestrictions(const Browser
@@ -702,11 +702,6 @@ int GetContentRestrictions(const Browser
CoreTabHelper* core_tab_helper =
CoreTabHelper::FromWebContents(current_tab);
content_restrictions = core_tab_helper->content_restrictions();
@@ -14,7 +14,7 @@
}
return content_restrictions;
}
@@ -1992,8 +1987,7 @@ bool CanSavePage(const Browser* browser)
@@ -2050,8 +2045,7 @@ bool CanSavePage(const Browser* browser)
policy::DownloadRestriction::ALL_FILES) {
return false;
}
@@ -62,7 +62,7 @@
// These lists are lazily initialized below and are leaked on shutdown to
--- a/content/public/common/url_utils.cc
+++ b/content/public/common/url_utils.cc
@@ -33,11 +33,7 @@ bool HasWebUIOrigin(const url::Origin& o
@@ -41,11 +41,7 @@ bool HasWebUIOrigin(const url::Origin& o
}
bool IsSavableURL(const GURL& url) {
@@ -0,0 +1,44 @@
--- a/chrome/browser/ui/views/frame/tab_strip_region_view.cc
+++ b/chrome/browser/ui/views/frame/tab_strip_region_view.cc
@@ -301,6 +301,9 @@ TabStripRegionView::TabStripRegionView(s
l10n_util::GetStringUTF16(IDS_TOOLTIP_NEW_TAB));
new_tab_button_->GetViewAccessibility().SetName(
l10n_util::GetStringUTF16(IDS_ACCNAME_NEWTAB));
+ new_tab_button_->SetTriggerableEventFlags(
+ new_tab_button_->GetTriggerableEventFlags() |
+ ui::EF_MIDDLE_MOUSE_BUTTON);
}
reserved_grab_handle_space_ =
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -83,6 +83,8 @@
#include "components/tab_groups/tab_group_id.h"
#include "components/tab_groups/tab_group_visual_data.h"
#include "components/tabs/public/split_tab_id.h"
+#include "ui/base/clipboard/clipboard.h"
+#include "ui/base/clipboard/clipboard_constants.h"
#include "ui/base/dragdrop/drag_drop_types.h"
#include "ui/base/dragdrop/mojom/drag_drop_types.mojom.h"
#include "ui/base/interaction/element_identifier.h"
@@ -2255,6 +2257,20 @@ void TabStrip::NewTabButtonPressed(const
if (hover_card_controller_) {
hover_card_controller_->PreventImmediateReshow();
}
+ const ui::MouseEvent& mouse = static_cast<const ui::MouseEvent&>(event);
+ if (mouse.IsOnlyMiddleMouseButton()) {
+ ui::Clipboard* clipboard = ui::Clipboard::GetForCurrentThread();
+ CHECK(clipboard)
+ << "Clipboard instance is not available, cannot proceed with "
+ "middle mouse button action.";
+ std::u16string clipboard_text;
+ clipboard->ReadText(ui::ClipboardBuffer::kSelection,
+ /* data_dst = */ nullptr, &clipboard_text);
+ if (!clipboard_text.empty()) {
+ controller_->CreateNewTabWithLocation(clipboard_text);
+ }
+ return;
+ }
}
controller_->CreateNewTab(NewTabTypes::NEW_TAB_BUTTON);
}
@@ -1,6 +1,6 @@
--- a/chrome/browser/extensions/api/developer_private/extension_info_generator.cc
+++ b/chrome/browser/extensions/api/developer_private/extension_info_generator.cc
@@ -867,19 +867,6 @@ void ExtensionInfoGenerator::FillExtensi
@@ -870,19 +870,6 @@ void ExtensionInfoGenerator::FillExtensi
toolbar_actions_model->IsActionPinned(extension.id());
}
@@ -22,7 +22,7 @@
// `CanUploadAsAccountExtension` should already check for the feature flag
--- a/chrome/browser/extensions/extension_management.cc
+++ b/chrome/browser/extensions/extension_management.cc
@@ -348,31 +348,7 @@ bool ExtensionManagement::IsAllowedManif
@@ -367,31 +367,7 @@ bool ExtensionManagement::IsAllowedManif
int manifest_version,
const std::string& extension_id,
Manifest::Type manifest_type) {
@@ -54,7 +54,7 @@
}
bool ExtensionManagement::IsAllowedManifestVersion(const Extension* extension) {
@@ -393,26 +369,8 @@ bool ExtensionManagement::IsExemptFromMV
@@ -412,26 +388,8 @@ bool ExtensionManagement::IsExemptFromMV
return false;
}
@@ -83,7 +83,7 @@
bool ExtensionManagement::IsAllowedByUnpublishedAvailabilityPolicy(
--- a/chrome/browser/extensions/manifest_v2_experiment_manager.cc
+++ b/chrome/browser/extensions/manifest_v2_experiment_manager.cc
@@ -145,17 +145,6 @@ bool ManifestV2ExperimentManagerFactory:
@@ -148,17 +148,6 @@ bool ManifestV2ExperimentManagerFactory:
// Determines the current stage of the MV2 deprecation experiments.
MV2ExperimentStage CalculateCurrentExperimentStage() {
@@ -101,7 +101,7 @@
return MV2ExperimentStage::kWarning;
}
@@ -189,18 +178,7 @@ PrefMap GetGlobalNoticeAcknowledgedPrefF
@@ -192,18 +181,7 @@ PrefMap GetGlobalNoticeAcknowledgedPrefF
// Returns true if legacy extensions should be disabled, looking at both
// experiment stage and global state.
bool ShouldDisableLegacyExtensions(MV2ExperimentStage stage) {
@@ -3,7 +3,7 @@
--- a/chrome/BUILD.gn
+++ b/chrome/BUILD.gn
@@ -368,7 +368,6 @@ if (!is_android && !is_mac) {
@@ -369,7 +369,6 @@ if (!is_android && !is_mac) {
data_deps += [
"//chrome/browser/resources/media/mei_preload:component",
@@ -11,7 +11,7 @@
"//components/webapps/isolated_web_apps/preload:component",
"//third_party/widevine/cdm",
]
@@ -937,8 +936,6 @@ if (is_win) {
@@ -935,8 +934,6 @@ if (is_win) {
bundle_data("chrome_framework_resources") {
sources = [
@@ -20,7 +20,7 @@
# This image is used to badge the lock icon in the
# authentication dialogs, such as those used for installation
# from disk image and Keystone promotion (if so enabled). It
@@ -1185,7 +1182,6 @@ if (is_win) {
@@ -1184,7 +1181,6 @@ if (is_win) {
":swiftshader_binaries",
":widevine_cdm_library",
"//chrome/browser/resources/media/mei_preload:component_bundle",
@@ -30,7 +30,7 @@
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -793,10 +793,6 @@ static_library("browser") {
@@ -728,10 +728,6 @@ static_library("browser") {
"navigation_predictor/navigation_predictor_metrics_document_data.h",
"navigation_predictor/navigation_predictor_preconnect_client.cc",
"navigation_predictor/navigation_predictor_preconnect_client.h",
@@ -41,7 +41,7 @@
"navigation_predictor/search_engine_preconnector_keyed_service_factory.cc",
"navigation_predictor/search_engine_preconnector_keyed_service_factory.h",
"net/cert_verifier_service_time_updater.cc",
@@ -3686,10 +3682,6 @@ static_library("browser") {
@@ -3694,10 +3690,6 @@ static_library("browser") {
} else {
#!is_android
sources += [
@@ -52,7 +52,7 @@
"accessibility/caption_bubble_context_browser.h",
"accessibility/embedded_a11y_extension_loader.cc",
"accessibility/embedded_a11y_extension_loader.h",
@@ -4345,8 +4337,6 @@ static_library("browser") {
@@ -4341,8 +4333,6 @@ static_library("browser") {
"//chrome/app:command_ids",
"//chrome/app/theme:chrome_unscaled_resources_grit",
"//chrome/app/vector_icons",
@@ -61,7 +61,7 @@
"//chrome/browser/actor",
"//chrome/browser/actor:impl",
"//chrome/browser/actor/ui",
@@ -4373,10 +4363,6 @@ static_library("browser") {
@@ -4379,10 +4369,6 @@ static_library("browser") {
"//chrome/browser/performance_manager/user_tuning",
"//chrome/browser/policy:path_parser",
"//chrome/browser/resource_coordinator",
@@ -69,18 +69,18 @@
- "//chrome/browser/screen_ai:screen_ai_install_state",
- "//chrome/browser/screen_ai:screen_ai_service_router_factory",
- "//chrome/browser/screen_ai/public:optical_character_recognizer",
"//chrome/browser/search/background",
"//chrome/browser/sharing_hub",
"//chrome/browser/smart_card",
@@ -4421,7 +4407,6 @@ static_library("browser") {
"//chrome/browser/themes",
@@ -4457,7 +4443,6 @@ static_library("browser") {
"//chrome/browser/ui/webui/access_code_cast",
"//chrome/browser/ui/webui/actor_internals",
"//chrome/browser/ui/webui/app_service_internals",
- "//chrome/browser/ui/webui/autofill_ml_internals",
"//chrome/browser/ui/webui/color_pipeline_internals",
"//chrome/browser/ui/webui/infobar_internals",
"//chrome/browser/ui/webui/infobar_internals:impl",
@@ -4551,9 +4536,6 @@ static_library("browser") {
"//chrome/browser/ui/webui/commerce",
"//chrome/browser/ui/webui/commerce:impl",
@@ -4548,9 +4533,6 @@ static_library("browser") {
"//components/webauthn/core/browser",
"//components/webauthn/core/browser:passkey_model",
"//services/device/public/cpp/hid",
@@ -90,7 +90,7 @@
"//third_party/crashpad/crashpad/client:common",
"//third_party/zxcvbn-cpp",
"//ui/views",
@@ -4714,8 +4696,6 @@ static_library("browser") {
@@ -4742,8 +4724,6 @@ static_library("browser") {
sources += [
"accessibility/soda_installer_impl.cc",
"accessibility/soda_installer_impl.h",
@@ -98,8 +98,8 @@
- "component_updater/screen_ai_component_installer.h",
"device_identity/device_oauth2_token_store_desktop.cc",
"device_identity/device_oauth2_token_store_desktop.h",
"device_notifications/device_status_icon_renderer.cc",
@@ -4771,8 +4751,6 @@ static_library("browser") {
"download/bubble/download_bubble_accessible_alerts_map.cc",
@@ -4797,8 +4777,6 @@ static_library("browser") {
"profiles/profile_activity_metrics_recorder.h",
"profiles/profile_list_desktop.cc",
"profiles/profile_list_desktop.h",
@@ -108,7 +108,7 @@
"signin/force_signin_verifier.cc",
"signin/force_signin_verifier.h",
"signin/signin_manager.cc",
@@ -5568,7 +5546,6 @@ static_library("browser") {
@@ -5596,7 +5574,6 @@ static_library("browser") {
"//chrome/browser/policy:system_features_disable_list",
"//chrome/browser/push_notification",
"//chrome/browser/resources:app_icon_resources",
@@ -116,7 +116,7 @@
"//chrome/browser/sharesheet",
"//chrome/browser/support_tool/ash",
"//chrome/browser/ui/ash/accelerator",
@@ -5831,7 +5808,6 @@ static_library("browser") {
@@ -5861,7 +5838,6 @@ static_library("browser") {
"//remoting/host/chromeos:browser_interop",
"//remoting/host/chromeos:features",
"//services/device/public/cpp/geolocation",
@@ -140,7 +140,7 @@
}
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -243,12 +243,10 @@
@@ -247,12 +247,10 @@ void OnLocalStatePrefsLoaded();
#if BUILDFLAG(IS_CHROMEOS)
#include "chrome/browser/chromeos/extensions/telemetry/chromeos_telemetry_extensions_browser_api_provider.h"
#include "chrome/browser/hid/hid_pinned_notification.h"
@@ -153,7 +153,7 @@
#include "chrome/browser/usb/usb_status_icon.h"
#include "components/enterprise/browser/controller/chrome_browser_cloud_management_controller.h"
#endif
@@ -1381,9 +1379,6 @@ void BrowserProcessImpl::PreMainMessageL
@@ -1476,9 +1474,6 @@ void BrowserProcessImpl::PreMainMessageL
soda_installer_impl_ = std::make_unique<speech::SodaInstallerImplChromeOS>();
#endif // BUILDFLAG(IS_CHROMEOS)
@@ -165,7 +165,7 @@
bool result = base::PathService::Get(chrome::DIR_USER_DATA, &user_data_dir);
--- a/chrome/browser/browser_process_impl.h
+++ b/chrome/browser/browser_process_impl.h
@@ -90,9 +90,6 @@ namespace speech {
@@ -89,9 +89,6 @@ namespace speech {
class SodaInstaller;
} // namespace speech
@@ -175,7 +175,7 @@
// Real implementation of BrowserProcess that creates and returns the services.
class BrowserProcessImpl : public BrowserProcess,
@@ -437,9 +434,6 @@ class BrowserProcessImpl : public Browse
@@ -436,9 +433,6 @@ class BrowserProcessImpl : public Browse
// to ensure that SodaInstallerImpl gets destructed first.
std::unique_ptr<speech::SodaInstaller> soda_installer_impl_;
@@ -196,7 +196,7 @@
#include "chrome/browser/ui/web_applications/sub_apps_service_impl.h"
#endif
@@ -364,27 +362,6 @@ void BindMediaFoundationPreferences(
@@ -365,27 +363,6 @@ void BindMediaFoundationPreferences(
}
#endif // BUILDFLAG(IS_WIN)
@@ -224,7 +224,7 @@
void BindModelBroker(
content::RenderFrameHost* frame_host,
@@ -554,10 +531,6 @@ void PopulateChromeFrameBinders(
@@ -555,10 +532,6 @@ void PopulateChromeFrameBinders(
&web_app::SubAppsServiceImpl::CreateIfAllowed);
}
@@ -235,9 +235,9 @@
#endif
#if BUILDFLAG(IS_WIN)
--- a/chrome/browser/chrome_browser_interface_binders_webui.cc
+++ b/chrome/browser/chrome_browser_interface_binders_webui.cc
@@ -810,8 +810,6 @@ void PopulateChromeWebUIFrameBinders(
--- a/chrome/browser/chrome_browser_interface_binders_webui_parts_desktop.cc
+++ b/chrome/browser/chrome_browser_interface_binders_webui_parts_desktop.cc
@@ -484,8 +484,6 @@ void PopulateChromeWebUIFrameBindersPart
::mojom::app_service_internals::AppServiceInternalsPageHandler,
AppServiceInternalsUI>(map);
@@ -257,7 +257,7 @@
#endif // BUILDFLAG(IS_ANDROID)
#if !BUILDFLAG(IS_ANDROID)
@@ -221,9 +219,6 @@ void RegisterComponentsForUpdate() {
@@ -223,9 +221,6 @@ void RegisterComponentsForUpdate() {
RegisterAutofillStatesComponent(cus, g_browser_process->local_state());
@@ -370,24 +370,42 @@
}
void NavigationPredictor::SetModelScoreCallbackForTesting(
--- a/chrome/browser/password_manager/password_change_delegate_impl.cc
+++ b/chrome/browser/password_manager/password_change_delegate_impl.cc
@@ -393,15 +393,6 @@ void PasswordChangeDelegateImpl::StartPa
ProceedToChangePassword();
}
- // This creates FieldClassificationModelHandler and should trigger download of
- // a local ML model for field classification.
- // TODO(452883239): Clean this up when model is downloaded on start-up for
- // everybody.
- if (base::FeatureList::IsEnabled(
- password_manager::features::kDownloadModelForPasswordChange)) {
- PasswordFieldClassificationModelHandlerFactory::GetForBrowserContext(
- originator_->GetBrowserContext());
- }
}
void PasswordChangeDelegateImpl::OnLoginStateCheckResult(bool is_logged_in) {
--- a/chrome/browser/pdf/pdf_extension_util.cc
+++ b/chrome/browser/pdf/pdf_extension_util.cc
@@ -111,7 +111,6 @@ void AddPdfViewerStrings(base::Value::Di
@@ -121,7 +121,6 @@ base::Value::Dict GetPdfViewerStrings()
{"rotationStateLabel90", IDS_PDF_ROTATION_STATE_LABEL_90},
{"rotationStateLabel180", IDS_PDF_ROTATION_STATE_LABEL_180},
{"rotationStateLabel270", IDS_PDF_ROTATION_STATE_LABEL_270},
- {"searchifyInProgress", IDS_PDF_SEARCHIFY_IN_PROGRESS},
{"sidebarLabel", IDS_PDF_SIDEBAR_LABEL},
{"thumbnailPageAriaLabel", IDS_PDF_THUMBNAIL_PAGE_ARIA_LABEL},
{"tooltipAttachments", IDS_PDF_TOOLTIP_ATTACHMENTS},
{"tooltipDocumentOutline", IDS_PDF_TOOLTIP_DOCUMENT_OUTLINE},
--- a/chrome/browser/permissions/BUILD.gn
+++ b/chrome/browser/permissions/BUILD.gn
@@ -44,10 +44,6 @@ source_set("permissions") {
@@ -42,10 +42,6 @@ source_set("permissions") {
"prediction_service/language_detection_observer.h",
"prediction_service/passage_embedder_delegate.cc",
"prediction_service/passage_embedder_delegate.h",
"prediction_service/permissions_aiv1_handler.cc",
"prediction_service/permissions_aiv1_handler.h",
- "prediction_service/prediction_based_permission_ui_selector.cc",
- "prediction_service/prediction_based_permission_ui_selector.h",
- "prediction_service/permissions_ai_ui_selector.cc",
- "prediction_service/permissions_ai_ui_selector.h",
- "prediction_service/prediction_model_handler_provider.cc",
- "prediction_service/prediction_model_handler_provider.h",
"prediction_service/prediction_service_factory.cc",
@@ -395,15 +413,32 @@
"prediction_service/prediction_service_request.cc",
--- a/chrome/browser/permissions/chrome_permissions_client.cc
+++ b/chrome/browser/permissions/chrome_permissions_client.cc
@@ -474,8 +474,6 @@ ChromePermissionsClient::CreatePermissio
@@ -28,7 +28,6 @@
#include "chrome/browser/permissions/permission_actions_history_factory.h"
#include "chrome/browser/permissions/permission_decision_auto_blocker_factory.h"
#include "chrome/browser/permissions/permission_revocation_request.h"
-#include "chrome/browser/permissions/prediction_service/permissions_ai_ui_selector.h"
#include "chrome/browser/permissions/pref_based_quiet_permission_ui_selector.h"
#include "chrome/browser/permissions/quiet_notification_permission_ui_config.h"
#include "chrome/browser/permissions/system/system_permission_settings.h"
@@ -481,8 +480,6 @@ ChromePermissionsClient::CreatePermissio
#endif
selectors.emplace_back(std::make_unique<PrefBasedQuietPermissionUiSelector>(
Profile::FromBrowserContext(browser_context)));
- selectors.emplace_back(std::make_unique<PredictionBasedPermissionUiSelector>(
- selectors.emplace_back(std::make_unique<PermissionsAiUiSelector>(
- Profile::FromBrowserContext(browser_context)));
return selectors;
}
@@ -503,8 +500,6 @@ void ChromePermissionsClient::OnPromptRe
Profile* profile =
Profile::FromBrowserContext(web_contents->GetBrowserContext());
- PermissionActionsHistoryFactory::GetForProfile(profile)->RecordAction(
- action, request_type, prompt_disposition);
if (request_type == permissions::RequestType::kNotifications) {
if (action == permissions::PermissionAction::GRANTED &&
--- a/chrome/browser/permissions/prediction_service/passage_embedder_delegate.cc
+++ b/chrome/browser/permissions/prediction_service/passage_embedder_delegate.cc
@@ -17,18 +17,6 @@ PassageEmbedderDelegate::PassageEmbedder
@@ -425,9 +460,9 @@
PermissionUmaUtil::RecordPassageEmbedderMetadataValid(false);
return nullptr;
}
--- a/chrome/browser/permissions/prediction_service/prediction_based_permission_ui_selector.cc
+++ b/chrome/browser/permissions/prediction_service/prediction_based_permission_ui_selector.cc
@@ -857,7 +857,7 @@ void PredictionBasedPermissionUiSelector
--- a/chrome/browser/permissions/prediction_service/permissions_ai_ui_selector.cc
+++ b/chrome/browser/permissions/prediction_service/permissions_ai_ui_selector.cc
@@ -817,7 +817,7 @@ void PermissionsAiUiSelector::ExecuteOnD
ModelExecutionData model_data) {
VLOG(1) << "[PermissionsAI] ExecuteOnDeviceAivXModel";
PredictionModelHandlerProvider* prediction_model_handler_provider =
@@ -438,7 +473,7 @@
model_data.request_metadata.request_type;
--- a/chrome/browser/prefs/BUILD.gn
+++ b/chrome/browser/prefs/BUILD.gn
@@ -297,7 +297,6 @@ source_set("impl") {
@@ -305,7 +305,6 @@ source_set("impl") {
"//chrome/browser/actor/ui",
"//chrome/browser/contextual_cueing",
"//chrome/browser/promos:utils",
@@ -448,7 +483,7 @@
"//chrome/browser/search_engines",
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -1907,9 +1907,6 @@ void RegisterLocalState(PrefRegistrySimp
@@ -1787,9 +1787,6 @@ void RegisterLocalState(PrefRegistrySimp
DeviceOAuth2TokenStoreDesktop::RegisterPrefs(registry);
#endif
@@ -460,25 +495,25 @@
PlatformAuthPolicyObserver::RegisterPrefs(registry);
--- a/chrome/browser/profiles/BUILD.gn
+++ b/chrome/browser/profiles/BUILD.gn
@@ -324,7 +324,6 @@ source_set("profiles_extra_parts_impl")
@@ -344,7 +344,6 @@ source_set("profiles_extra_parts_impl")
]
} else {
deps += [
- "//chrome/browser/accessibility/tree_fixing:service",
"//chrome/browser/apps/app_service",
"//chrome/browser/autofill",
"//chrome/browser/contextual_cueing",
@@ -332,7 +331,6 @@ source_set("profiles_extra_parts_impl")
"//chrome/browser/badging",
@@ -354,7 +353,6 @@ source_set("profiles_extra_parts_impl")
"//chrome/browser/feedback",
"//chrome/browser/hid",
"//chrome/browser/media/router/discovery/access_code:access_code_sink_service",
- "//chrome/browser/screen_ai:screen_ai_service_router_factory",
"//chrome/browser/search",
"//chrome/browser/search/background",
"//chrome/browser/search_engine_choice",
"//chrome/browser/themes",
--- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
+++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
@@ -111,7 +111,6 @@
@@ -116,7 +116,6 @@
#include "chrome/browser/media_galleries/media_galleries_preferences_factory.h"
#include "chrome/browser/metrics/variations/google_groups_manager_factory.h"
#include "chrome/browser/navigation_predictor/navigation_predictor_keyed_service_factory.h"
@@ -486,7 +521,7 @@
#include "chrome/browser/navigation_predictor/search_engine_preconnector.h"
#include "chrome/browser/navigation_predictor/search_engine_preconnector_keyed_service_factory.h"
#include "chrome/browser/net/dns_probe_service_factory.h"
@@ -342,7 +341,6 @@
@@ -350,7 +349,6 @@
#include "chrome/browser/prefs/persistent_renderer_prefs_manager_factory.h"
#include "chrome/browser/privacy_sandbox/privacy_sandbox_survey_desktop_controller_factory.h"
#include "chrome/browser/profile_resetter/reset_report_uploader_factory.h"
@@ -494,15 +529,15 @@
#include "chrome/browser/search/background/ntp_background_service_factory.h"
#include "chrome/browser/search/background/ntp_custom_background_service_factory.h"
#include "chrome/browser/search/instant_service_factory.h"
@@ -1056,7 +1054,6 @@ void ChromeBrowserMainExtraPartsProfiles
@@ -1082,7 +1080,6 @@ void ChromeBrowserMainExtraPartsProfiles
#if BUILDFLAG(CHROME_ROOT_STORE_CERT_MANAGEMENT_UI)
net::ServerCertificateDatabaseServiceFactory::GetInstance();
#endif
- PreloadingModelKeyedServiceFactory::GetInstance();
#if BUILDFLAG(ENABLE_DICE_SUPPORT)
HistorySyncOptinServiceFactory::GetInstance();
ProfileManagementDisclaimerServiceFactory::GetInstance();
#endif
@@ -1105,9 +1102,6 @@ void ChromeBrowserMainExtraPartsProfiles
@@ -1132,9 +1129,6 @@ void ChromeBrowserMainExtraPartsProfiles
OneTimePermissionsTrackerFactory::GetInstance();
#endif
OpenerHeuristicServiceFactory::GetInstance();
@@ -512,21 +547,15 @@
OptimizationGuideKeyedServiceFactory::GetInstance();
OriginKeyedPermissionActionServiceFactory::GetInstance();
OriginTrialsFactory::GetInstance();
@@ -1187,13 +1181,6 @@ void ChromeBrowserMainExtraPartsProfiles
@@ -1216,7 +1210,6 @@ void ChromeBrowserMainExtraPartsProfiles
#else
policy::UserPolicySigninServiceFactory::GetInstance();
#endif
PolicyBlocklistFactory::GetInstance();
- if (base::FeatureList::IsEnabled(
- permissions::features::kPermissionOnDeviceNotificationPredictions) ||
- base::FeatureList::IsEnabled(
- permissions::features::kPermissionOnDeviceGeolocationPredictions) ||
- base::FeatureList::IsEnabled(permissions::features::kPermissionsAIv1)) {
- PredictionModelHandlerProviderFactory::GetInstance();
- }
- PredictionModelHandlerProviderFactory::GetInstance();
PredictionServiceFactory::GetInstance();
predictors::AutocompleteActionPredictorFactory::GetInstance();
predictors::LoadingPredictorFactory::GetInstance();
@@ -1275,10 +1262,6 @@ void ChromeBrowserMainExtraPartsProfiles
@@ -1298,10 +1291,6 @@ void ChromeBrowserMainExtraPartsProfiles
SafetyHubMenuNotificationServiceFactory::GetInstance();
#if !BUILDFLAG(IS_ANDROID)
SafetyHubHatsServiceFactory::GetInstance();
@@ -537,7 +566,7 @@
#endif
#if BUILDFLAG(IS_CHROMEOS)
if (ash::features::IsScannerEnabled()) {
@@ -1399,7 +1382,6 @@ void ChromeBrowserMainExtraPartsProfiles
@@ -1425,7 +1414,6 @@ void ChromeBrowserMainExtraPartsProfiles
TrackingProtectionSettingsFactory::GetInstance();
translate::TranslateRankerFactory::GetInstance();
#if !BUILDFLAG(IS_ANDROID)
@@ -547,7 +576,7 @@
#if !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_ANDROID)
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -224,11 +224,6 @@ void OffTheRecordProfileImpl::Init() {
@@ -227,11 +227,6 @@ void OffTheRecordProfileImpl::Init() {
// AccessibilityLabelsService has a default prefs behavior in incognito.
AccessibilityLabelsService::InitOffTheRecordPrefs(this);
@@ -561,7 +590,7 @@
// System Profile.
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -845,11 +845,6 @@ void ProfileImpl::DoFinalInit(CreateMode
@@ -842,11 +842,6 @@ void ProfileImpl::DoFinalInit(CreateMode
// The password settings service needs to start listening to settings
// changes from Google Mobile Services, as early as possible.
PasswordManagerSettingsServiceFactory::GetForProfile(this);
@@ -576,14 +605,14 @@
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -51,7 +51,6 @@
#include "chrome/browser/extensions/chrome_content_browser_client_extensions_part.h"
#include "chrome/browser/buildflags.h"
#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/navigation_predictor/navigation_predictor_keyed_service_factory.h"
-#include "chrome/browser/navigation_predictor/preloading_model_keyed_service_factory.h"
#include "chrome/browser/prefs/incognito_mode_prefs.h"
#include "chrome/browser/profiles/delete_profile_helper.h"
#include "chrome/browser/profiles/keep_alive/profile_keep_alive_types.h"
@@ -1486,9 +1485,6 @@ void ProfileManager::DoFinalInitForServi
@@ -1507,9 +1506,6 @@ void ProfileManager::DoFinalInitForServi
// Ensure NavigationPredictorKeyedService is started.
NavigationPredictorKeyedServiceFactory::GetForProfile(profile);
@@ -595,7 +624,7 @@
#if BUILDFLAG(IS_ANDROID)
--- a/chrome/browser/resources/BUILD.gn
+++ b/chrome/browser/resources/BUILD.gn
@@ -109,7 +109,6 @@ group("resources") {
@@ -111,7 +111,6 @@ group("resources") {
if (is_mac) {
public_deps += [
"//chrome/browser/resources/media/mei_preload:component",
@@ -618,7 +647,7 @@
${this.showErrorDialog ? html`<viewer-error-dialog id="error-dialog">
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -1430,8 +1430,6 @@ static_library("ui") {
@@ -1491,8 +1491,6 @@ static_library("ui") {
"//chrome/browser/regional_capabilities",
"//chrome/browser/safe_browsing",
"//chrome/browser/safe_browsing:advanced_protection",
@@ -627,7 +656,7 @@
"//chrome/browser/smart_card",
"//chrome/browser/tab_group_sync:utils",
"//chrome/browser/themes",
@@ -2191,7 +2189,6 @@ static_library("ui") {
@@ -2253,7 +2251,6 @@ static_library("ui") {
"//chrome/browser/policy:onc",
"//chrome/browser/policy:system_features_disable_list",
"//chrome/browser/push_notification",
@@ -635,8 +664,8 @@
"//chrome/browser/ui/ash/accessibility",
"//chrome/browser/ui/ash/app_access",
"//chrome/browser/ui/ash/arc",
@@ -4638,7 +4635,6 @@ static_library("ui") {
# c/b/ui/passwords/passwords_model_delegate.h, passwords_client_ui_delegate.h.
@@ -4727,7 +4724,6 @@ static_library("ui") {
"//chrome/browser/ui/views/zoom",
"//chrome/browser/ui/webauthn:impl",
"//chrome/browser/ui/webui/app_service_internals",
- "//chrome/browser/ui/webui/autofill_ml_internals",
@@ -688,16 +717,26 @@
--- a/chrome/browser/ui/pdf/chrome_pdf_document_helper_client.h
+++ b/chrome/browser/ui/pdf/chrome_pdf_document_helper_client.h
@@ -25,7 +25,6 @@ class ChromePDFDocumentHelperClient : pu
void OnSaveURL(content::WebContents* contents) override;
void OnSaveURL() override;
void SetPluginCanSave(content::RenderFrameHost* render_frame_host,
bool can_save) override;
- void OnSearchifyStarted(content::RenderFrameHost* render_frame_host) override;
// Holds subscriptions for TabInterface callbacks.
std::vector<base::CallbackListSubscription> tab_subscriptions_;
--- a/chrome/browser/ui/safety_hub/BUILD.gn
+++ b/chrome/browser/ui/safety_hub/BUILD.gn
@@ -37,7 +37,6 @@ source_set("safety_hub") {
"//components/content_settings/core/browser",
"//components/content_settings/core/common",
"//components/keyed_service/core",
- "//components/safe_browsing/content/browser/notification_content_detection",
"//components/safe_browsing/core/browser:safe_browsing_metrics_collector",
"//components/safe_browsing/core/browser/db:database_manager",
"//components/safety_check:features",
--- a/chrome/browser/ui/views/user_education/browser_user_education_service.cc
+++ b/chrome/browser/ui/views/user_education/browser_user_education_service.cc
@@ -746,39 +746,6 @@ void MaybeRegisterChromeFeaturePromos(
@@ -818,39 +818,6 @@ void MaybeRegisterChromeFeaturePromos(
.SetBubbleIcon(kLightbulbOutlineIcon)
.SetBubbleTitleText(IDS_PASSWORD_MANAGER_IPH_CREATE_SHORTCUT_TITLE)));
@@ -739,7 +778,7 @@
registry.RegisterFeature(std::move(
--- a/chrome/browser/ui/webui/BUILD.gn
+++ b/chrome/browser/ui/webui/BUILD.gn
@@ -59,7 +59,6 @@ source_set("configs") {
@@ -68,7 +68,6 @@ source_set("configs") {
"//chrome/browser/ui/webui/access_code_cast",
"//chrome/browser/ui/webui/actor_internals",
"//chrome/browser/ui/webui/app_service_internals",
@@ -749,7 +788,7 @@
"//chrome/browser/ui/webui/new_tab_footer",
--- a/chrome/browser/ui/webui/chrome_web_ui_configs.cc
+++ b/chrome/browser/ui/webui/chrome_web_ui_configs.cc
@@ -297,7 +297,6 @@ void RegisterChromeWebUIConfigs() {
@@ -299,7 +299,6 @@ void RegisterChromeWebUIConfigs() {
map.AddWebUIConfig(std::make_unique<actor::ui::ActorOverlayUIConfig>());
map.AddWebUIConfig(std::make_unique<ActorInternalsUIConfig>());
map.AddWebUIConfig(std::make_unique<AppServiceInternalsUIConfig>());
@@ -862,7 +901,7 @@
#include "chrome/browser/speech/extension_api/tts_engine_extension_api.h"
#include "chrome/browser/translate/chrome_translate_client.h"
#include "chrome/browser/ui/browser.h"
@@ -325,14 +323,6 @@ ReadAnythingUntrustedPageHandler::ReadAn
@@ -314,14 +312,6 @@ ReadAnythingUntrustedPageHandler::ReadAn
prefs_lang = language::ExtractBaseLanguage(prefs_lang);
SetDefaultLanguageCode(prefs_lang);
@@ -880,7 +919,7 @@
--- a/chrome/common/features.gni
+++ b/chrome/common/features.gni
@@ -46,7 +46,7 @@ declare_args() {
enable_chrome_notifications = is_mac || is_win || is_linux || is_fuchsia
enable_chrome_notifications = is_mac || is_win || is_linux
# Enables inclusion of glic in the build.
- enable_glic = is_mac || is_win || is_linux
@@ -890,7 +929,7 @@
# It is enableable separately to facilitate testing.
--- a/chrome/renderer/BUILD.gn
+++ b/chrome/renderer/BUILD.gn
@@ -340,18 +340,6 @@ static_library("renderer") {
@@ -345,18 +345,6 @@ static_library("renderer") {
]
} else {
sources += [
@@ -909,7 +948,7 @@
"media/chrome_speech_recognition_client.cc",
"media/chrome_speech_recognition_client.h",
"searchbox/searchbox.cc",
@@ -367,7 +355,6 @@ static_library("renderer") {
@@ -372,7 +360,6 @@ static_library("renderer") {
"//components/crx_file",
"//components/trusted_vault",
"//services/screen_ai/buildflags",
@@ -919,15 +958,15 @@
]
--- a/chrome/renderer/chrome_render_frame_observer.cc
+++ b/chrome/renderer/chrome_render_frame_observer.cc
@@ -72,7 +72,6 @@
@@ -73,7 +73,6 @@
#include "url/gurl.h"
#if !BUILDFLAG(IS_ANDROID)
-#include "chrome/renderer/accessibility/read_anything/read_anything_app_controller.h"
#include "chrome/renderer/actor/journal.h"
#include "chrome/renderer/actor/page_stability_monitor.h"
#include "chrome/renderer/actor/tool_executor.h"
#include "chrome/renderer/searchbox/searchbox_extension.h"
@@ -325,20 +324,6 @@ void ChromeRenderFrameObserver::DidCommi
@@ -338,20 +337,6 @@ void ChromeRenderFrameObserver::DidCommi
}
void ChromeRenderFrameObserver::DidClearWindowObject() {
@@ -950,7 +989,7 @@
void ChromeRenderFrameObserver::DidMeaningfulLayout(
--- a/chrome/test/BUILD.gn
+++ b/chrome/test/BUILD.gn
@@ -2405,9 +2405,6 @@ if (!is_android) {
@@ -2488,9 +2488,6 @@ if (!is_android) {
"//chrome/browser/resource_coordinator:tab_manager_features",
"//chrome/browser/safe_browsing:advanced_protection",
"//chrome/browser/safe_browsing:verdict_cache_manager_factory",
@@ -960,7 +999,7 @@
"//chrome/browser/search",
"//chrome/browser/search_engines",
"//chrome/browser/segmentation_platform:test_utils",
@@ -2847,8 +2844,6 @@ if (!is_android) {
@@ -2937,8 +2934,6 @@ if (!is_android) {
"//services/preferences/public/cpp",
"//services/preferences/public/cpp/tracked",
"//services/preferences/tracked:features",
@@ -969,7 +1008,17 @@
"//services/service_manager/public/cpp",
"//services/strings",
"//services/test/echo/public/mojom",
@@ -8504,7 +8499,6 @@ test("unit_tests") {
@@ -7253,9 +7248,6 @@ test("unit_tests") {
"//components/safe_browsing/content/browser",
"//components/safe_browsing/content/browser:client_side_detection_images_cache",
"//components/safe_browsing/content/browser:credit_card_form_event",
- "//components/safe_browsing/content/browser/notification_content_detection",
- "//components/safe_browsing/content/browser/notification_content_detection:notifications_global_cache_list",
- "//components/safe_browsing/content/browser/notification_content_detection:test_utils",
"//components/safe_browsing/content/browser/password_protection",
"//components/safe_browsing/content/browser/password_protection:mock_password_protection",
"//components/safe_browsing/content/browser/web_ui",
@@ -8586,7 +8578,6 @@ test("unit_tests") {
#
# TODO(crbug.com/417513088): Maybe merge with the non-android `deps` declaration above?
deps += [
@@ -977,7 +1026,7 @@
"//chrome:packed_resources_integrity_header",
"//chrome/browser/apps:icon_standardizer",
"//chrome/browser/apps/app_service",
@@ -8537,7 +8531,6 @@ test("unit_tests") {
@@ -8621,7 +8612,6 @@ test("unit_tests") {
"//chrome/browser/profile_resetter:fake_profile_resetter",
"//chrome/browser/resource_coordinator:tab_manager_features",
"//chrome/browser/resources/new_tab_page_instant:resources_grit",
@@ -1008,7 +1057,7 @@
python_library("fixtures") {
--- a/chrome/utility/BUILD.gn
+++ b/chrome/utility/BUILD.gn
@@ -145,7 +145,6 @@ static_library("utility") {
@@ -143,7 +143,6 @@ static_library("utility") {
"//components/user_data_importer/content",
"//components/user_data_importer/utility:bookmarks",
"//services/proxy_resolver:lib",
@@ -1027,7 +1076,7 @@
#endif // !BUILDFLAG(IS_ANDROID)
#if BUILDFLAG(ENABLE_BROWSER_SPEECH_SERVICE)
@@ -268,12 +266,6 @@ auto RunSpeechRecognitionService(
@@ -260,12 +258,6 @@ auto RunSpeechRecognitionService(
}
#endif // !BUILDFLAG(ENABLE_BROWSER_SPEECH_SERVICE)
@@ -1038,9 +1087,9 @@
-}
-#endif
#if BUILDFLAG(IS_CHROMEOS)
auto RunCupsIppParser(
@@ -476,7 +468,6 @@ void RegisterMainThreadServices(mojo::Se
#if (BUILDFLAG(SAFE_BROWSING_DOWNLOAD_PROTECTION) && \
!BUILDFLAG(IS_ANDROID)) || \
@@ -445,7 +437,6 @@ void RegisterMainThreadServices(mojo::Se
services.Add(RunProfileImporter);
services.Add(RunMirroringService);
services.Add(RunPassageEmbeddingsService);
@@ -1050,8 +1099,8 @@
#if BUILDFLAG(ENABLE_BROWSER_SPEECH_SERVICE)
--- a/components/BUILD.gn
+++ b/components/BUILD.gn
@@ -617,7 +617,6 @@ test("components_unittests") {
"//components/media_router/common/providers/cast/channel:unit_tests",
@@ -625,7 +625,6 @@ test("components_unittests") {
"//components/one_time_tokens/core/browser:unit_tests",
"//components/page_info:unit_tests",
"//components/permissions:unit_tests",
- "//components/permissions/prediction_service:unit_tests",
@@ -1060,21 +1109,55 @@
"//components/security_interstitials/content:unit_tests",
--- a/components/autofill/core/browser/autofill_field.cc
+++ b/components/autofill/core/browser/autofill_field.cc
@@ -24,7 +24,6 @@
@@ -25,7 +25,6 @@
#include "components/autofill/core/browser/field_type_utils.h"
#include "components/autofill/core/browser/field_types.h"
#include "components/autofill/core/browser/heuristic_source.h"
-#include "components/autofill/core/browser/ml_model/field_classification_model_handler.h"
#include "components/autofill/core/browser/proto/api_v1.pb.h"
#include "components/autofill/core/browser/proto/server.pb.h"
#include "components/autofill/core/common/autofill_constants.h"
#include "components/autofill/core/common/autofill_features.h"
--- a/components/autofill/core/browser/foundations/autofill_manager.cc
+++ b/components/autofill/core/browser/foundations/autofill_manager.cc
@@ -909,26 +909,6 @@ void AutofillManager::LogCurrentFieldTyp
@@ -137,8 +137,6 @@ struct AutofillManager::AsyncContext {
std::vector<FormData> forms;
std::vector<RegexPredictions> regex_predictions;
- std::vector<ModelPredictions> autofill_predictions;
- std::vector<ModelPredictions> password_manager_predictions;
GeoIpCountryCode country_code;
LanguageCode current_page_language;
std::unique_ptr<BufferingLogManager> log_manager;
@@ -721,13 +719,6 @@ void AutofillManager::ParseFormsAsyncCom
}
}
- if (!context.autofill_predictions.empty()) {
- context.autofill_predictions[i].ApplyTo(form_structure->fields());
- }
- if (!context.password_manager_predictions.empty()) {
- context.password_manager_predictions[i].ApplyTo(
- form_structure->fields());
- }
if (!context.regex_predictions.empty()) {
context.regex_predictions[i].ApplyTo(form_structure->fields());
}
@@ -846,10 +837,8 @@ void AutofillManager::RunMlModels(
}));
switch (source) {
case HeuristicSource::kAutofillMachineLearning:
- context.autofill_predictions = std::move(model_predictions);
break;
case HeuristicSource::kPasswordManagerMachineLearning:
- context.password_manager_predictions = std::move(model_predictions);
break;
case HeuristicSource::kRegexes:
NOTREACHED();
@@ -992,26 +981,6 @@ void AutofillManager::LogCurrentFieldTyp
void AutofillManager::SubscribeToMlModelChanges(
FieldClassificationModelHandler& handler,
optimization_guide::proto::OptimizationTarget optimization_target) {
- switch (optimization_target) {
FieldClassificationModelHandler& handler) {
- switch (handler.optimization_target()) {
- case optimization_guide::proto::OptimizationTarget::
- OPTIMIZATION_TARGET_AUTOFILL_FIELD_CLASSIFICATION:
- if (!autofill_model_change_subscription_) {
@@ -1099,7 +1182,7 @@
} // namespace autofill
--- a/components/omnibox/browser/autocomplete_classifier.cc
+++ b/components/omnibox/browser/autocomplete_classifier.cc
@@ -131,8 +131,6 @@ void AutocompleteClassifier::Classify(
@@ -136,8 +136,6 @@ void AutocompleteClassifier::Classify(
metrics::OmniboxEventProto::PageClassification page_classification,
AutocompleteMatch* match,
GURL* alternate_nav_url) {
@@ -1129,7 +1212,7 @@
};
--- a/components/update_client/BUILD.gn
+++ b/components/update_client/BUILD.gn
@@ -361,8 +361,6 @@ source_set("unit_tests") {
@@ -360,8 +360,6 @@ source_set("unit_tests") {
"//third_party/puffin:libpuffpatch",
"//third_party/re2",
]
@@ -1140,7 +1223,7 @@
fuzzer_test("update_client_protocol_serializer_fuzzer") {
--- a/content/shell/BUILD.gn
+++ b/content/shell/BUILD.gn
@@ -835,10 +835,6 @@ if (is_apple) {
@@ -836,10 +836,6 @@ if (is_apple) {
deps = [ "//third_party/icu:icudata" ]
}
@@ -1151,6 +1234,42 @@
if (v8_use_external_startup_data) {
public_deps += [ "//v8" ]
if (use_v8_context_snapshot) {
--- a/media/webrtc/BUILD.gn
+++ b/media/webrtc/BUILD.gn
@@ -26,7 +26,6 @@ component("webrtc") {
deps = [
"//base",
"//build:chromecast_buildflags",
- "//components/optimization_guide/core/inference:op_resolver",
"//media",
"//third_party/webrtc_overrides:webrtc_component",
]
--- a/media/webrtc/helpers.cc
+++ b/media/webrtc/helpers.cc
@@ -158,23 +158,6 @@ CreateWebRtcAudioProcessingModule(
webrtc::EchoCanceller3Config::CreateDefaultMultichannelConfig();
std::unique_ptr<webrtc::NeuralResidualEchoEstimator> echo_estimator;
- // Fuchsia does not use the optimization guide.
- // Avoid linking the op resolver to keep Fuchsia binary size down.
- // TODO(crbug.com/450466837): Investigate if this build guard can be avoided.
-#if !BUILDFLAG(IS_FUCHSIA)
- if (residual_echo_estimator_model) {
- optimization_guide::TFLiteOpResolver op_resolver;
- echo_estimator = webrtc::CreateNeuralResidualEchoEstimator(
- residual_echo_estimator_model, &op_resolver);
- if (echo_estimator) {
- aec3_config = echo_estimator->GetConfiguration(/*multi_channel=*/false);
- multichannel_aec3_config =
- echo_estimator->GetConfiguration(/*multi_channel=*/true);
- } else {
- LOG(ERROR) << "Failed to initialize neural residual echo estimator.";
- }
- }
-#endif // !BUILDFLAG(IS_FUCHSIA)
#if BUILDFLAG(SYSTEM_LOOPBACK_AS_AEC_REFERENCE)
if (settings.use_loopback_aec_reference) {
--- a/services/on_device_model/ml/BUILD.gn
+++ b/services/on_device_model/ml/BUILD.gn
@@ -66,7 +66,6 @@ if (use_blink || (is_ios && build_with_i
@@ -1208,18 +1327,18 @@
- }
}
#else
CHECK(params->safety_assets->which() ==
CHECK(!params->safety_assets || params->safety_assets->which() ==
--- a/services/on_device_model/on_device_model.gni
+++ b/services/on_device_model/on_device_model.gni
@@ -15,7 +15,6 @@ declare_args() {
# Constraint code is disabled on platforms where the on-device model does not
# run due to binary size.
enable_constraints = is_win || is_mac || is_linux || is_ios || is_cbx
- enable_ml_internal = build_with_internal_optimization_guide &&
- (is_win || is_mac || is_linux || is_ios || is_cbx)
+ enable_ml_internal = false
use_chromeos_model_service = is_chrome_branded && is_cbx
@@ -14,7 +14,7 @@ declare_args() {
declare_args() {
# The on device model service is only enabled on a subset of platforms.
# Exclude it on other platforms due to binary size.
- use_on_device_model_service = is_win || is_mac || is_linux || is_ios || is_cbx
+ use_on_device_model_service = false
}
declare_args() {
--- a/services/on_device_model/safety/BUILD.gn
+++ b/services/on_device_model/safety/BUILD.gn
@@ -4,42 +4,6 @@
@@ -1307,7 +1426,7 @@
}
--- a/third_party/devtools-frontend/src/front_end/BUILD.gn
+++ b/third_party/devtools-frontend/src/front_end/BUILD.gn
@@ -210,7 +210,6 @@ group("unittests") {
@@ -214,7 +214,6 @@ group("unittests") {
"panels/timeline:unittests",
"panels/timeline/components:unittests",
"panels/timeline/components/insights:unittests",

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