Compare commits

...

261 Commits

Author SHA1 Message Date
wukko 0caf5fe713 revision: bump to 2 2025-09-11 19:43:49 +06:00
wukko 66e9d195b2 helium/settings/fix-appearance-page: add a missing string to linux build
fixes the settings page crash (oops)
2025-09-11 19:42:31 +06:00
wukko 4acf516bbb helium/split-view: reduce drop target area, increase delay, fix colors 2025-09-11 13:08:33 +06:00
jj 18bc8e75e5 patches/core: disable unsupported importer services 2025-09-10 20:20:19 +00:00
jj 7df2e17c45 patches/core: add zen importer 2025-09-10 19:02:39 +00:00
wukko 6888497c4f readme: add info about linux and windows, remove general wip phrase 2025-09-11 00:10:30 +06:00
wukko a3b5843cea revision: reset to 1 2025-09-10 23:50:26 +06:00
wukko ae906424f7 resources/branding: update app_icon assets
the star is now easier to see from afar
2025-09-10 20:15:32 +06:00
wukko 6d832bc549 helium/core: protect browser keyboard shortcuts
websites will no longer take preference over cmd+shift+c and devtools shortcuts
2025-09-09 16:01:17 +06:00
wukko 76a70fa75a extras: update onboarding 2025-09-09 00:21:30 +06:00
wukko 1b024c9945 helium/core: remove dead toolbar actions
removes dead reading list toggle from ui and other things from code that we don't need
2025-09-08 22:28:05 +06:00
wukko 1fc24d56bc helium/ui/status-bubble: move further from edge, fix colors & border 2025-09-08 22:26:50 +06:00
wukko 3500b75e0f helium/ui/tabs: don't show close button on hover if tab is too small 2025-09-08 22:25:21 +06:00
jj 9b37c1dd59 patches/importer: add comet 2025-09-07 07:58:04 +00:00
jj 98bdc8bb87 patches/importer: add dia 2025-09-07 07:58:04 +00:00
jj 58094866a0 patches: refresh 2025-09-07 07:58:04 +00:00
jj d7389c84f0 patches/proxy-extensions: fix loading extension snippets 2025-09-07 07:58:04 +00:00
jj c22923e812 patches/extra: reimport brave importer from upstream
up to date as of 9d7ca1afc5d61bc0c1026eb0a35e964c68e7f42b
2025-09-07 07:58:04 +00:00
wukko 62650c3dba helium/split-view: remove rounded corners & padding, optimize drop area
and enable new features that enhance the split view experience
2025-09-07 03:38:43 +06:00
wukko 7fc97abd15 helium/settings: remove dead imports 2025-09-07 03:37:08 +06:00
wukko bd71d2dc10 helium/ui/omnibox: fix button chip insets 2025-09-07 03:36:52 +06:00
wukko 075a2ad97d patches: refresh for 140.0.7339.80 2025-09-07 01:15:51 +06:00
wukko 0cad541e9e merge: update to ungoogled-chromium 140.0.7339.80 2025-09-07 01:14:29 +06:00
jj 9650ad4adc patches/bangs: allow trailing commas in bangs.json (#51) 2025-09-04 18:56:15 +02:00
Blaise 6128ec6560 Update to Chromium 140.0.7339.80 2025-09-02 17:55:28 -05:00
jj 7b69063b6e ci: add action for bumping platform repos 2025-08-30 18:53:29 +00:00
jj 5480886df1 devutils/set_quilt_vars: fix undefined variable access 2025-08-30 17:48:05 +00:00
jj 15ecb1cf62 patches/utils: always dry run with fuzz=0 2025-08-30 17:48:05 +00:00
jj 919ea2bc82 utils/patches: add --no-fuzz flag for strict application 2025-08-30 17:48:05 +00:00
jj 3406ac5f76 patches/native-messaging: don't append suffix to "guessed" chrome path 2025-08-30 19:35:18 +02:00
wukko 5118e7ddfb revision: bump to 7 2025-08-28 23:52:55 +06:00
wukko 42947bebc1 merge: update to ungoogled-chromium 139.0.7258.154 2025-08-28 18:48:59 +06:00
jj ab2ee8d4e9 ci/release: fix changelog output (#47) 2025-08-27 09:47:40 +02:00
networkException 3799c9d957 Update to Chromium 139.0.7258.154 2025-08-26 23:27:18 +02:00
wukko 5abb6826a1 revision: bump to 6 2025-08-26 00:05:27 +06:00
wukko 1239a6715b helium/ui/omnibox: make "remove suggestion" button square 2025-08-25 23:55:41 +06:00
wukko 6311688cca helium/ui/tabs: make close button square 2025-08-25 23:55:12 +06:00
wukko 74da8e5721 helium/core/context-menu: remove google image desc entry 2025-08-25 23:54:54 +06:00
wukko 6db3e69109 helium/ui/gray-theme: set gray theme on reset, not blue 2025-08-25 23:54:08 +06:00
wukko 2873e42d24 helium/settings: fix appearance page
- updated "auto pin new tab groups" toggle text to not mention other devices
- removed gtk & qt options on linux
2025-08-25 23:53:38 +06:00
wukko dd31b185bd helium/settings: update search suggest toggle text
now it's more informational
2025-08-25 23:52:34 +06:00
jj 617f8df878 ci/release: use softprops action instead of deprecated one 2025-08-25 11:18:27 +00:00
jj 9f92137d3f ci: automatically tag commit and create release 2025-08-25 11:18:27 +00:00
jj dc626238a7 utils/helium_version: add support for generating root-only version 2025-08-25 10:49:05 +00:00
wukko fc9e935120 revision: bump to 5 2025-08-23 23:41:45 +06:00
wukko d0198c25f9 helium/ui: enable fluent scrollbar on windows & linux 2025-08-23 22:23:49 +06:00
jj 92f6d7d2c8 patches/bangs: fix bang completion cutting off suggested text (#41) 2025-08-23 13:47:46 +00:00
jj 988e4b4fb4 patches/bangs: add support for multiple triggers per bang
https://github.com/kagisearch/bangs/pull/259
2025-08-23 06:52:56 +00:00
jj 2ea2284c35 patches/bangs: fix DCHECK fail when triggered on text with leading space 2025-08-23 06:52:56 +00:00
jj e06a3a62f5 patches/native-messaging: fix env call to use current signature 2025-08-22 18:53:19 +00:00
jj b843eac0ce patches/block-requests: prevent profile_resetter from making requests 2025-08-21 13:32:09 +00:00
wukko 46b3fa7099 revision: bump to 4 2025-08-21 19:02:28 +06:00
wukko b249347978 merge: update to ungoogled-chromium 139.0.7258.138 2025-08-21 18:41:50 +06:00
Blaise 803eb8c3f5 Update to Chromium 139.0.7258.138 2025-08-19 16:06:15 -05:00
wukko 9ec3ed6ecd revision: bump to 3 2025-08-16 18:59:46 +06:00
wukko f240e14a58 helium/core: disable outdated build detector
it's not relevant for helium, we don't have background updaters
2025-08-16 18:59:46 +06:00
wukko b497f44124 helium/ui: fix app menu button styling in label state
- fixed padding & size
- background and icon are no longer highlighted with emphasis color in label state
- icon color is no longer blue
- enabled border in label state
- removed chrome-only bloat code for randomizing the update text
2025-08-16 18:59:46 +06:00
wukko 475fd063f3 helium/ui/app-menu: remove row bg, fix separators, refactor
also fixed related padding & colors
2025-08-16 18:59:46 +06:00
wukko 31bdefc2de helium/settings: fix text on cookies page
- replaced google.com with example.com in third party cookies section
- updated "do not track" popup text to not glaze evil tracking practices
- removed "learn more" link from do not track popup
2025-08-16 18:59:38 +06:00
jj 25c7197893 patches: refresh for 139.0.7258.127 2025-08-13 06:58:05 +00:00
jj f4f122c9f6 merge: update to ungoogled-chromium 139.0.7258.127 2025-08-13 06:57:14 +00:00
jj e9785fd0ac Update to Chromium 139.0.7258.127 2025-08-13 06:55:19 +00:00
wukko bcd55afb27 patches/extra: disable ai starter pack shortcuts 2025-08-08 20:24:30 +06:00
wukko df88312959 helium/core: disable google ai starterpack options
disables gemini, aimode, and page shortcuts; even if google didn't gate the features correctly, which happened with aimode
2025-08-08 20:16:15 +06:00
wukko 3826ee65e4 merge: update to chromium 139.0.7258.66 (#34) 2025-08-08 18:22:29 +06:00
wukko b3b03d89a8 helium/core/fix-search-engine-icons: enable builtin assets again
and remove the google logo exception, it's taken care of in a different grd now
2025-08-08 17:38:01 +06:00
wukko d5b941f6a1 extras: add search engines data
google removed all search engine icons & related resources from upstream, so we have to do this now
2025-08-08 17:37:13 +06:00
wukko 11d0256815 extras: update onboarding 2025-08-08 17:15:03 +06:00
wukko 04ecb9e752 helium/core/split-view: fix rounded corners
backported change from upstream, this should fix them on windows too maybe
2025-08-08 11:57:26 +06:00
wukko 9617147a23 patches: refresh for 139.0.7258.66
the issue that helium/ui/toolbar-avatar-button.patch fixed was fixed upstream
2025-08-08 10:42:58 +06:00
wukko 053a134aca merge: update to ungoogled-chromium 139.0.7258.66 2025-08-08 10:42:57 +06:00
jj 80158a7006 utils/generate_resources: make pylint happy 2025-08-07 12:48:52 +00:00
jj 6267361984 utils/generate_resources: allow omitting size in definitions 2025-08-07 12:43:00 +00:00
jj 185e973431 utils/generate_resources: use pathlib for output path 2025-08-07 11:28:14 +00:00
jj b66c25b115 ci: specify permissions for all workflows (#32) 2025-08-07 09:43:40 +02:00
Blaise a078b9be0f Update to Chromium 139.0.7258.66 2025-08-05 13:57:34 -05:00
wukko dfd5a4b8f8 revision: bump to 15 2025-08-04 23:00:24 +06:00
wukko 89ee3b3b14 helium/settings: fix section separators 2025-08-04 16:28:28 +06:00
wukko cfa6338be0 helium/core/eu-search: replace the settings subtitle 2025-08-04 16:28:06 +06:00
wukko fe8ffb61e4 helium/core/flags-setup: put helium flags on top 2025-08-04 16:27:43 +06:00
jj 2da6aa7a41 patches/extra: add ungoogled-chromium license and info to about page 2025-08-03 07:58:37 +00:00
wukko af66427d7a helium/ui: clean incognito & guest ntp
- removed inactive 3rd party cookies toggle
- replaced incognito text with a helium variant
- removed learn more link from guest ntp
2025-08-02 16:32:23 +06:00
jj f67127450a domain-substitution: exclude LICENSE files from substitution 2025-07-31 13:13:19 +00:00
wukko 72be230adb revision: bump to 14 2025-07-31 13:09:07 +06:00
wukko 5973e33db0 helium/core: add a flag for disabling ECH 2025-07-31 12:58:13 +06:00
wukko ce3794932e patches: refresh for 138.0.7204.183 2025-07-31 12:10:12 +06:00
wukko c3c2cfdce5 Update to Chromium 138.0.7204.183 2025-07-30 20:49:41 +06:00
Blaise d591df2fac Update to Chromium 138.0.7204.183 2025-07-29 16:30:30 -05:00
wukko d5328e5468 revision: bump to 13 2025-07-29 15:34:02 +06:00
wukko df3f623ce3 utils: raise an error if a line in resource file is invalid 2025-07-29 15:29:34 +06:00
wukko c85860fa87 utils & resources: generate scaled resources with a script 2025-07-29 15:29:28 +06:00
wukko 5bf0662a2e resources/branding: add various app icons 2025-07-29 13:53:16 +06:00
wukko 9721334c56 resources/branding: remove product_icon dir
it'll be replaced with automatically generated resources
2025-07-29 13:34:05 +06:00
wukko 374735e1ba resouces/branding: update & fix colored skia product logo 2025-07-28 17:54:36 +06:00
wukko 5333dad88e resources/branding: update product_logo.svg with new icon design 2025-07-28 17:54:36 +06:00
wukko f353c28ab7 resources/branding: update product_logo for better legibility 2025-07-28 17:54:35 +06:00
jj 0d9cf8aefa lint/tests: convert prints into asserts 2025-07-28 11:45:32 +00:00
jj 9d9d4479ae devutils/lint: fix pylint errors 2025-07-28 11:45:31 +00:00
jj b2ea2d84bd patches: refresh add-update-channel-flag.patch 2025-07-28 11:45:05 +00:00
wukko ea001f53af patches/helium: add helium license header to files that don't have it 2025-07-28 17:10:30 +06:00
wukko 29b9fd70dd devutils/lint_tests: fix license header check 2025-07-28 16:15:21 +06:00
wukko cd5f460053 patches/helium/core: fix incorrect header guards 2025-07-28 16:02:51 +06:00
wukko 0c784d8e79 devutils: add script for checking patch correctness (#29) 2025-07-28 15:28:27 +06:00
jj a86284a2c8 dev/lint: handle error correctly if defines are completely missing 2025-07-27 22:30:49 +00:00
jj 10132253e9 ci: add linting to ci 2025-07-27 22:25:45 +00:00
jj deeebee817 devutils: add script for checking patch correctness 2025-07-27 22:25:45 +00:00
jj 88d7a03d8d replace_resources: clean up error handling 2025-07-27 20:45:59 +00:00
jj 7b231012ef scripts: fix lint errors
utils: lint

helium_version: fix lint errors

name_substitution: fix lint errors

devutils: lint
2025-07-27 20:52:01 +00:00
jj 8013b3af73 ci: add ensurepip to cirrus 2025-07-27 20:24:53 +00:00
jj d2bb884eee ci: run cirrus tasks 2025-07-27 20:15:02 +00:00
wukko a25b8fdf15 revision: bump to 12 2025-07-24 20:38:09 +06:00
wukko 07314070e0 helium/core/split-view: fix corner radius 2025-07-24 20:32:46 +06:00
wukko b8e154c0a4 merge: update to ungoogled-chromium 138.0.7204.168 2025-07-24 18:45:59 +06:00
jj edd517e75f extras: update onboarding 2025-07-24 12:04:50 +00:00
jj dc4a8b6686 patches/scan-chrome-native-messaging-hosts: fix windows constant type 2025-07-23 21:26:08 +00:00
Blaise 5fd0da8902 Update to Chromium 138.0.7204.168 2025-07-23 15:43:49 -05:00
jj 2fe35f1cbc extras: update onboarding 2025-07-23 14:37:25 +00:00
jj c0e49a6e5f patches/disable-gcm: disable additional gcm client methods 2025-07-18 16:49:32 +00:00
wukko a68148b1b3 revision: bump to 11 2025-07-18 14:43:27 +06:00
wukko d7a24f79d3 patches: refresh for 138.0.7204.157 2025-07-18 14:27:57 +06:00
wukko ba4fee2f1c merge: update to ungoogled-chromium 138.0.7204.157 2025-07-18 13:01:57 +06:00
Derron Hu ada3db3214 Add -snld flag to 7z (#3387) 2025-07-17 17:29:20 -05:00
wukko 1fe2601442 revision: bump revision to 10 2025-07-18 00:14:52 +06:00
wukko 69ec6832db helium/settings/privacy-page: update descriptions, clean up sections
- updated descriptions of security & site settings pages to reflect what they actually contain
- removed the "third party cookies" section, it's accessible via site settings. 3rd party cookies are blocked by default
2025-07-18 00:00:22 +06:00
wukko b7e051ff66 helium/ui/omnibox: fix IPH_SUGGESTION height & icon alignment 2025-07-17 22:21:09 +06:00
wukko 5e6679af3b extras: update onboarding 2025-07-17 22:02:16 +06:00
wukko 127c193c16 helium/core: refresh a patch that wasn't refreshed during string update 2025-07-17 21:29:24 +06:00
wukko 1430f2f69b helium/ui: fix status bubble padding & refactor
no more extra padding on right
2025-07-17 21:27:36 +06:00
wukko 593fd56dd9 helium/ui: remove third party cookies icon from location bar
also removed other unused icons

third party cookies are blocked in helium by default, so showing an icon for that every time it happens is unnecessary. the user can enable third party cookies in site settings -> cookies without leaving the page.
2025-07-17 21:26:39 +06:00
wukko 10a9c6387a helium/core: update helium pref toggle titles and descriptions 2025-07-17 20:46:17 +06:00
wukko f1b511b12c revision: bump to 9 2025-07-16 22:55:17 +06:00
wukko 5cd4d9e585 helium/ui: rename a bunch of patches for better clarity 2025-07-16 16:52:37 +06:00
wukko dfd4885224 helium/ui: update omnibox ui & align everything related 2025-07-16 16:37:31 +06:00
wukko 84e0fdbde7 helium/ui: make status bubble floating all the time
no more weird uneven window edges

(not sure if this works on windows & linux ngl)
2025-07-16 16:36:09 +06:00
wukko 6e6809a053 helium/ui: remove tab group drag highlight
(again)
2025-07-16 16:35:25 +06:00
networkException 4473e83be8 Update to Chromium 138.0.7204.157 2025-07-15 21:09:55 +02:00
wukko 8c7b2012a9 revision: bump to 8 2025-07-13 23:27:58 +06:00
wukko fe261284a0 helium/ui/layout-constants: fix avatar chip insets 2025-07-13 23:09:07 +06:00
wukko 4439e6c91b helium/ui: fix avatar button bg colors in toolbar
normal state no longer has a background and guest state is way more bearable now
2025-07-13 23:08:38 +06:00
wukko 6e8168f3bc helium/ui: remove broken side panel separator
but keep the rounded corner :3
2025-07-13 21:03:19 +06:00
wukko 3f97be7852 helium/ui: reduce split view padding & align everything 2025-07-13 21:02:35 +06:00
wukko 8136fa3543 helium/ui: revamped top container ui 2025-07-13 19:46:44 +06:00
wukko e379f406e5 revision: bump to 7 2025-07-11 23:21:53 +06:00
wukko 7a02f2ac4b helium/settings: fix expression in translate patch 2025-07-11 22:09:38 +06:00
wukko 3a8dcfc49f helium/ui: new tab design
- tabs are now narrower and shorter
- split view tabs are wider to accommodate for two tabs in one component
- tabs are now attached to the toolbar
- close button now appears only on hover/focus
- fixed tab closing animation, close button no longer slides along with the rest of the tab
- new tab button no longer interferes with the tab separator
2025-07-11 21:59:26 +06:00
wukko 2f1884b2e5 helium/ui: transparent address bar and thinner toolbar 2025-07-11 21:42:18 +06:00
wukko 49e177c717 revision: bump to 6 2025-07-11 01:52:51 +06:00
wukko 21f7d239c9 patches: refresh for 138.0.7204.100 2025-07-11 00:43:27 +06:00
wukko 56d91da258 merge: update to ungoogled-chromium 138.0.7204.100 2025-07-10 22:20:03 +06:00
Blaise d945d574c6 Update CI config, scripts, and docs for python 3.10 2025-07-10 06:49:41 -05:00
jj d06b7de006 helium: add flag for setting energy saver fps 2025-07-09 22:19:31 +00:00
Blaise cff0ad9d51 Update to Chromium 138.0.7204.100 2025-07-08 13:57:01 -05:00
jj c27928ab4a revision: bump to 5 2025-07-06 19:18:32 +00:00
jj 3fa437ef53 helium/updater-prefs: change macos appcast url
this is easier to proxy
2025-07-05 15:39:10 +00:00
wukko 13d630288f revision: bump to 4 2025-07-05 16:25:00 +06:00
wukko d2021bb3ef helium/settings/about-page: remove learn more links 2025-07-04 23:00:01 +06:00
wukko a5b8806ff9 revision: bump to 3 2025-07-04 19:11:16 +06:00
wukko 62467f9b12 patches: refresh for 138.0.7204.96 2025-07-04 18:59:16 +06:00
wukko e8355e7d7c merge: update to ungoogled-chromium 138.0.7204.96 2025-07-04 18:29:15 +06:00
jj 15c3d58053 revision: bump to 2 2025-07-04 11:15:25 +00:00
jj e2f0519286 helium/settings: reenable update progress ui 2025-07-02 21:05:23 +00:00
jj 566f20b5ed helium: add preference to control fetching updates
configurable on mac only for now
2025-07-02 21:05:06 +00:00
jj 2fa5711cea helium: add update channel flag 2025-07-02 21:05:05 +00:00
jj c653aeb93b patches/versioning: include full version in CFBundleVersion 2025-07-02 21:04:47 +00:00
wukko eb50fd7139 settings: remove safety hub entry points
cuz they don't work
2025-07-02 19:48:24 +06:00
wukko be70b704a2 settings: remove translate section 2025-07-02 19:34:46 +06:00
wukko 8f98e3eac5 helium/core: fix tab sync unreached error
TabGroupSyncServiceProxy::OnTabSelected() is not implemented upstream
2025-07-02 18:48:07 +06:00
wukko 457da2ea74 helium/core/add-native-bangs: use VLOG() instead of LOG() 2025-07-02 18:45:37 +06:00
wukko c471f52d54 helium/core/split-view: remove mini toolbar 2025-07-02 18:45:10 +06:00
wukko 8d01b7d62f helium/core: don't disable tab groups in bookmark bar
cuz it results in an empty bookmark bar if you make a tab group and then close it without removing it
2025-07-02 18:44:38 +06:00
wukko 51aaf38e8d helium/core: remove google spellcheck from context menu 2025-07-02 18:44:00 +06:00
networkException d35f39cd85 Update to Chromium 138.0.7204.96 2025-06-30 23:33:03 +02:00
implicitfield e5f27a9138 Add a flag to increase the storage quota for Incognito/Guest profiles 2025-06-27 13:10:44 -05:00
implicitfield f7e6d2273d Remove the F1 shortcut 2025-06-27 13:10:44 -05:00
jj 8900b76f0b patches: refresh for 138.0.7204.49 2025-06-27 18:05:22 +00:00
Qian Qian "Qubik"‎ 15ee44b5a9 docs: Update Homebrew Cask Name
Signed-off-by: Qian Qian "Qubik"‎ <qubik65536@qubik65536.top>
2025-06-27 10:09:11 -04:00
jj 37da72130f update_lists: remove generate_search_engine_icons from sub list
gone upstream
2025-06-26 19:33:31 +00:00
jj 4d6fdeb156 merge: update to ungoogled-chromium 138.0.7204.49 2025-06-26 19:33:10 +00:00
Damir Modyarov 28823a634b utils/name_substitution: use utf-8 encoding when opening locale files 2025-06-25 00:14:23 +03:00
Blaise dad7e19df0 Update to Chromium 138.0.7204.49 2025-06-24 15:00:12 -05:00
Blaise 9a900f1e48 Update to Chromium 137.0.7151.119 2025-06-17 15:59:17 -05:00
wukko 672c986f28 repo: update README and remove unrelated upstream docs 2025-06-13 15:26:41 +06:00
wukko 6305ef215f revision: bump to 5 2025-06-13 11:14:46 +06:00
wukko 58f6aa1135 patches: refresh for 137.0.7151.104 2025-06-13 11:14:28 +06:00
networkException 483d84e481 LICENSE: Bump the year to 2025 for a complete decade
Happy Birthday ungoogled-chromium!

See 9456dad229 for the initial
commit, 10 years ago today :^)
2025-06-12 18:42:06 +02:00
wukko dbe7963624 merge: update to chromium 137.0.7151.104 2025-06-12 22:13:52 +06:00
Blaise 47bc6ecca7 Update to Chromium 137.0.7151.103 2025-06-10 16:19:42 -05:00
wukko ebb0cb88e4 revision: bump to 4 2025-06-05 23:17:54 +06:00
wukko 71cd486eaf patches/series: add split view patch
forgot to stage this
2025-06-05 18:55:21 +06:00
wukko bf26fa3e96 helium/core/split-view: fix spacing, backport code, enable by default
& also fix text color in empty state
2025-06-05 18:52:50 +06:00
wukko e1f2182e90 helium/core: remove "read later" from tab's context menu 2025-06-05 18:50:41 +06:00
wukko 058dbdb229 revision: bump to 3 2025-06-05 01:43:38 +06:00
wukko c9a7f5b1b3 helium/ui/tab-style: fix margin between tabs 2025-06-05 00:46:54 +06:00
wukko 1d5f225b08 helium/core: clean up context menu
- remove qr code generation action
- remove cast option from main page context menu
- merged "remove read anything context menu entry" into this patch
2025-06-04 23:38:59 +06:00
wukko d9213991cc helium/ui: fix pwa toolbar
- it's now not as tall
- action buttons don't have 1km spacing between them
2025-06-04 22:58:21 +06:00
wukko a6484f3d3f helium/ui: smaller window grab handle 2025-06-04 22:05:04 +06:00
wukko 6271d50506 helium/ui/layout-constants: adjust toolbar-related spacings 2025-06-04 22:03:57 +06:00
jj 6e13b31f0e chromium: update to 137.0.7151.69 2025-06-03 16:04:44 +00:00
networkException dbb383d84e Update to Chromium 137.0.7151.68 2025-06-03 01:47:13 +02:00
wukko 025564d6d7 helium/core/proxy-extensions: fix deps order in build.gn 2025-05-31 18:21:35 +06:00
jj 4010387eab repo: add ungoogled-chromium license to root 2025-05-31 11:51:48 +00:00
wukko 3a977845f0 patches/series: remove holes 2025-05-31 17:30:47 +06:00
wukko a126f65782 patches: refresh for 137.0.7151.55 2025-05-31 17:04:02 +06:00
wukko 28393b6386 merge: update to ungoogled-chromium 137.0.7151.55 2025-05-31 16:39:59 +06:00
Blaise 76f98dc4eb Update to Chromium 137.0.7151.55 2025-05-27 14:46:55 -05:00
Max Lee Abdurrahman As-Salafi Carter 祁明思 70eb9a635d fix: correct f-string quote usage in helium_version.py (#18) 2025-05-26 16:59:30 +02:00
jj 7413c75494 helium/bangs: verify keyword is matching before stripping 2025-05-23 09:17:31 +00:00
wukko b5f74116b5 revision: bump to 10
god damn
2025-05-22 01:08:13 +06:00
wukko 825f4133fb utils/replace_resources: print the destination after copying 2025-05-22 00:45:56 +06:00
wukko aa47b1c96b helium/ui: fix omnibox tabs icon
now it's a tab icon instead of brand icon
2025-05-22 00:44:37 +06:00
wukko 89b1d39616 helium/ui/app-menu: add customize action to main, fix bookmarks title
& also rename patch to be universal
2025-05-22 00:43:33 +06:00
wukko 0796d78ce2 helium/core: don't try to toggle the extension container that isnt there
fixes a crash in guest mode (because the container isn't created in guest mode)
2025-05-21 23:29:37 +06:00
wukko 0e489582aa helium/core: toggle extensions container in toolbar via a pref 2025-05-21 22:22:06 +06:00
wukko bb49e1680e helium/core: hide avatar in toolbar via a pref
& make it a toggle in customization side panel
2025-05-21 19:39:02 +06:00
wukko c242d6f7f6 helium/ui: make infobar & text button thinner 2025-05-21 16:56:00 +06:00
wukko 6f9cf25b95 helium/core: move tab search to toolbar & disable by default 2025-05-21 16:55:18 +06:00
jj 52271f9841 bump revision 2025-05-20 21:38:44 +00:00
jj 9873ccd1d9 helium/onboarding: don't open if --no-first-run is set, bump version 2025-05-20 21:38:07 +00:00
wukko 364ce99eaf revision: bump to 8 2025-05-18 18:44:42 +06:00
wukko aef6a463d5 extras: update onboarding 2025-05-18 18:44:29 +06:00
wukko 5fee4a7145 resources/branding: replace more skia product icons 2025-05-18 18:09:00 +06:00
wukko 55efa2111f resources: move helium skia icons to resources 2025-05-18 18:07:57 +06:00
wukko 49373d155b resources/branding: optimize product logo svg 2025-05-18 17:56:39 +06:00
wukko bb5af0c7b1 helium/ui/app-menu: remove obnoxious bg from default browser prompt 2025-05-18 17:56:24 +06:00
wukko af5539abf7 helium/ui/settings: clean up product info footer on about page
& merge other tiny patch into this one cuz it just makes sense
2025-05-18 17:14:50 +06:00
wukko a3db74b428 helium/ui/cr-components: fix segmented button border & size
now it doesn't stick out of its bounds, making it align perfectly with all other items in the "customize chrome" side panel
2025-05-18 16:34:20 +06:00
wukko 14d7bbb71b helium/ui/layout-provider: make side panel content radius 12dp 2025-05-18 12:02:15 +06:00
wukko 5607b15249 helium/ui/sidepanels: fix card widths, paddings, and radius
also made the search bar in bookmarks bar of appropriate radius
2025-05-18 12:01:52 +06:00
wukko 64ec07beb7 helium/ui/sidepanels: fix button order, header padding, and update icons 2025-05-18 11:33:52 +06:00
wukko 38a114d48d helium/ui/cr-components: fix focus ring on custom theme color picker 2025-05-18 11:31:57 +06:00
wukko 08f481a314 helium/ui/cr-components: fix segmented button option radius 2025-05-18 08:53:07 +06:00
jj cde40a97f0 helium/ui/bangs: add appropriate text and icons for ai chatbots 2025-05-17 21:59:42 +00:00
jj 0dae50b2f0 helium/bangs: add support for categories 2025-05-17 21:59:42 +00:00
wukko 327c2eccfc revision: bump to 7 2025-05-17 19:44:37 +06:00
jj a256e3a4e5 helium/bangs: support omnipositional bangs (#16) 2025-05-17 19:42:51 +06:00
wukko f753602e4e helium/ui: fix sidepanel headers 2025-05-17 19:19:46 +06:00
wukko f45035b8c9 helium/ui/cr-components: thinner segmented button 2025-05-17 18:04:45 +06:00
wukko 7310a65592 helium/ui: restyle the "customize chrome" sidepanel 2025-05-17 18:04:25 +06:00
wukko 03b64f23a4 helium/omnibox: make omnibox rows thinner, fix alignment
& also make omnibox_suggestion_button_row_view prettier
2025-05-17 14:51:24 +06:00
wukko 29cf8f0ad3 helium/ui: re-align location bar keyword search 2025-05-17 14:50:49 +06:00
wukko bf61a1a5c0 helium/ui: make toolbar & tab strip thinner 2025-05-17 14:50:23 +06:00
wukko 60f45b2ba5 helium/ui: clean up profile customization dialog
it's seen when you make a new profile
2025-05-17 11:57:23 +06:00
wukko 159473844a helium/copy-page-url-shortcut: fix copy url accelerator
alt -> shift
(oops)
2025-05-17 10:58:08 +06:00
wukko 1e4188bbca merge: update to ungoogled-chromium 136.0.7103.113 2025-05-15 20:23:34 +06:00
networkException 1a4952eb9e Update to Chromium 136.0.7103.113 2025-05-14 20:06:15 +02:00
wukko 2ce4603ecf revision: bump to 5
gawd damn
2025-05-12 22:21:07 +06:00
wukko 6cce6332c7 extras: update onboarding 2025-05-12 22:20:56 +06:00
wukko 8f89dcfa97 revision: bump to 4 2025-05-12 18:32:00 +06:00
wukko 830b7bcc4b helium/ui: disable tab group editor footer 2025-05-12 17:31:37 +06:00
wukko 06da4cfcdc helium/ui: clean up the profile picker
- removed google bg elements
- fixed bottom button alignment
- removed the chrome logo spin easter egg
2025-05-12 17:04:49 +06:00
wukko f34f4e8bd2 helium/settings: remove about page easter egg
no more spinny helium logo
2025-05-12 17:04:11 +06:00
wukko 27d17fa340 resources/branding: add product_logo.svg 2025-05-12 16:51:27 +06:00
wukko fc37b27f9a utils/name_substitution: don't add to tarball if it doesn't exist 2025-05-12 10:25:21 +06:00
jj a290073661 util: rewrite name substitution script in python 2025-05-11 22:03:52 +00:00
wukko 0814b98d6b revision: bump to 3 2025-05-12 00:10:44 +06:00
wukko b6eaed2233 helium/ui: reduce bookmarks bar padding 2025-05-12 00:07:59 +06:00
wukko d13d58652f helium/ui: remove devtools annoyances
- remove feedback button from recorder panel
- remove what's new panel entirely because it's useless & invasive (auto opened by default)
- remove empty help submenu
2025-05-11 22:44:34 +06:00
wukko fde4fe86b6 helium/ui: remove the autofill link from updated profiles menu 2025-05-11 22:43:16 +06:00
jj 91b3f790e6 merge: update to ungoogled-chromium 136.0.7103.92 2025-05-08 15:52:16 +00:00
Blaise ecacfbbb50 Update to Chromium 136.0.7103.92 2025-05-07 12:44:44 -05:00
jj dade70b890 patches/ui: fix crash caused by removed other_node_menu_separator_ 2025-05-06 16:59:50 +00:00
288 changed files with 12157 additions and 6676 deletions
+4 -4
View File
@@ -9,9 +9,9 @@ container:
code_check_task:
pip_cache:
folder: /usr/local/lib/python3.9/site-packages
folder: /usr/local/lib/python3.10/site-packages
fingerprint_script: cat .cirrus_requirements.txt
populate_script: pip install -r .cirrus_requirements.txt
populate_script: python3 -m ensurepip && pip install -r .cirrus_requirements.txt
utils_script:
- python3 -m yapf --style '.style.yapf' -e '*/third_party/*' -rpd utils
- ./devutils/run_utils_pylint.py --hide-fixme
@@ -26,9 +26,9 @@ validate_config_task:
validate_with_source_task:
pip_cache:
folder: /usr/local/lib/python3.9/site-packages
folder: /usr/local/lib/python3.10/site-packages
fingerprint_script: cat .cirrus_requirements.txt
populate_script: pip install -r .cirrus_requirements.txt
populate_script: python3 -m ensurepip && pip install -r .cirrus_requirements.txt
chromium_download_script: |
# These directories will not exist when this is called, unless cache retrieval
# fails and leaves partially-complete files around.
+1 -1
View File
@@ -1,5 +1,5 @@
# Dockerfile for Python 3 with xz-utils (for tar.xz unpacking)
FROM python:3.9-slim-bullseye
FROM python:3.10-slim-bookworm
RUN apt update && apt install -y xz-utils patch axel curl git
+10 -9
View File
@@ -1,9 +1,10 @@
# Based on Python package versions in Debian bullseye
# https://packages.debian.org/bullseye/python/
astroid==2.5.1 # via pylint
pylint==2.7.2
pytest-cov==2.10.1
pytest==6.0.2
httplib2==0.18.1
requests==2.25.1
yapf==0.30.0
# Based on Python package versions in Debian bookworm
# https://packages.debian.org/bookworm/python/
astroid==2.14.2 # via pylint
pylint==2.16.2
pytest-cov==4.0.0
pytest==7.2.1
httplib2==0.20.4
requests==2.28.1
pillow==11.3.0
yapf==0.32.0
-101
View File
@@ -1,101 +0,0 @@
name: Bug Report
description: Report a bug building or running ungoogled-chromium
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Before submitting this issue, please confirm if you should submit it to a [platform-specific issue tracker instead](https://github.com/ungoogled-software/ungoogled-chromium/blob/master/SUPPORT.md#platform-specific-support)
Otherwise, your issue may not be noticed. In addition, please read through the [SUPPORT.md](https://github.com/ungoogled-software/ungoogled-chromium/blob/master/SUPPORT.md) first
- type: dropdown
id: os
attributes:
label: OS/Platform
description: OS/Platform you are running ungoogled-chromium on
options:
- Android
- Arch Linux
- Debian, Ubuntu, and derivatives
- Fedora and CentOS
- Gentoo
- GNU Guix
- macOS
- NixOS
- Other Linux (please specify)
- Portable Linux
- Slackware
- Windows
validations:
required: true
- type: dropdown
id: install
attributes:
label: Installed
description: How was ungoogled-chromium installed on your OS/Platform
options:
- Compiled from source
- OS/Platform's package manager
- Flatpak
- https://ungoogled-software.github.io/ungoogled-chromium-binaries/
- Other (please use 'Additional context' field below to mention how exactly)
validations:
required: true
- type: input
id: version
attributes:
label: Version
description: ungoogled-chromium version. Could be copied from chrome://settings/help
validations:
required: true
- type: checkboxes
attributes:
label: Have you tested that this is not an upstream issue or an issue with your configuration?
options:
- label: I have tried reproducing this issue in Chrome and it could not be reproduced there
- label: I have tried reproducing this issue in vanilla Chromium and it could not be reproduced there
- label: I have tried reproducing this issue in ungoogled-chromium with a new and empty profile using `--user-data-dir` command line argument and it could not be reproduced there
- type: input
id: description
attributes:
label: Description
description: A clear and concise description (in one line) of what the bug is
validations:
required: true
- type: textarea
id: repro
attributes:
label: How to Reproduce?
description: Steps to reproduce the behaviour
placeholder: |
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
validations:
required: true
- type: textarea
id: actual
attributes:
label: Actual behaviour
description: A clear and concise description of what happens
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected behaviour
description: A clear and concise description of what you expected to happen
validations:
required: true
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: sh
- type: textarea
id: additional
attributes:
label: Additional context
description: Add any other context about the problem here. If applicable, add screenshots to help explain your problem.
@@ -1,18 +0,0 @@
---
name: Create an "Updating to Chromium x.x.x.x"
about: For letting the community track progress to a new stable Chromium
title: Updating to Chromium {{ env.VERSION }} on {{ env.PLATFORM }}
labels: update
assignees: ''
---
Chromium stable channel for {{ env.PLATFORM }} has been updated to a newer version: {{ env.VERSION }}.
If you are willing to work on updating the patches and lists, please leave a comment in this issue in order to facilitate better coordination and avoid wasted/duplicated efforts.
If you'd like to increase visibility of your progress or get early feedback/advice, consider creating a [Draft Pull Request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests#draft-pull-requests). Finally, make sure to reference this issue in your PR. Please make sure to read [/docs/developing.md](https://github.com/ungoogled-software/ungoogled-chromium/blob/master/docs/developing.md#updating-patches) for guidance.
Feel free to raise issues or questions throughout the process here. However, please refrain from asking for ETAs unless no visible progress has been made here or in the developer's PR for a while (e.g. 2 weeks).
{{ env.NOTIFY_MAINTAINERS }}
@@ -1,47 +0,0 @@
name: Feature request
description: Suggest an idea
labels: ["enhancement", "help wanted"]
body:
- type: markdown
attributes:
value: |
Before submitting this feature request, please confirm if you should submit it to a [platform-specific issue tracker instead](https://github.com/ungoogled-software/ungoogled-chromium/blob/master/SUPPORT.md#platform-specific-support)
Otherwise, your issue may not be noticed. In addition, please read through the [SUPPORT.md](https://github.com/ungoogled-software/ungoogled-chromium/blob/master/SUPPORT.md) first
- type: input
id: description
attributes:
label: Description
description: A clear and concise description (in one line) of what your suggestion is
validations:
required: true
- type: checkboxes
attributes:
label: Who's implementing?
options:
- label: I'm willing to implement this feature myself
- type: textarea
id: prob
attributes:
label: The problem
description: Please describe the problem you are solving or new feature you're suggesting
placeholder: I'm always frustrated when [...] happens
validations:
required: true
- type: textarea
id: sol
attributes:
label: Possible solutions
description: Please describe possible solution(-s) to The Problem
validations:
required: true
- type: textarea
id: alt
attributes:
label: Alternatives
description: Please describe alternatives you've considered, if any
- type: textarea
id: additional
attributes:
label: Additional context
description: Add any other context about the feature request here
-1
View File
@@ -1 +0,0 @@
*(Please ensure you have read SUPPORT.md and docs/contributing.md before submitting the Pull Request)*
+90
View File
@@ -0,0 +1,90 @@
name: Bump platform revision
description: Refreshes patches, updates the platform revision and submodule
inputs:
token:
description: 'GitHub access token'
required: true
runs:
using: composite
steps:
- name: Prepare
shell: bash
run: sudo apt install quilt
- name: Bump revision and make PR
shell: bash
env:
GH_TOKEN: ${{ inputs.token }}
run: |
set -euxo pipefail
PLATFORM_DIR="$PWD"
HELIUM_DIR="$PLATFORM_DIR/helium-chromium"
run_upstream() {
python3 "$HELIUM_DIR/$1" "${@:2}"
}
get_version() {
run_upstream utils/helium_version.py \
--tree "$HELIUM_DIR" \
--platform-tree "$PLATFORM_DIR" \
--print
}
# get versions and compare them after submodule update
version_before=$(get_version)
pushd "$HELIUM_DIR"
git fetch origin main
git checkout origin/main
popd
git switch update || git switch -c update
version_after=$(get_version)
# reset or bump revision counter depending on version change
if [ "$version_before" != "$version_after" ]; then
echo "main version changed, resetting platform revision"
echo 1 > "$PLATFORM_DIR/revision.txt"
else
echo "no change in main version, bumping platform revision"
revision=$(cat "$PLATFORM_DIR/revision.txt")
echo $((revision + 1)) > "$PLATFORM_DIR/revision.txt"
fi
version_after=$(get_version)
mkdir -p build/{src,download_cache}
# fetch soures, expect that patches apply cleanly (or die)
run_upstream utils/downloads.py retrieve \
-i "$HELIUM_DIR/downloads.ini" -c build/download_cache
run_upstream utils/downloads.py unpack \
-i "$HELIUM_DIR/downloads.ini" -c build/download_cache build/src
run_upstream utils/patches.py apply \
--no-fuzz build/src "$HELIUM_DIR/patches"
# refresh platform patches if necessary
source "$HELIUM_DIR/devutils/set_quilt_vars.sh"
export QUILT_PATCHES="$PLATFORM_DIR/patches"
pushd build/src
quilt --quiltrc - push -a --refresh
popd
# commit, push, make pr
TITLE="update: helium-chromium $version_after"
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -u patches helium-chromium revision.txt
if ! git status | tail -1 | grep -q 'nothing to commit'; then
git commit -m "$TITLE"
git push origin update
gh pr create --title "$TITLE" --body "" || :
fi
+13
View File
@@ -0,0 +1,13 @@
name: cirrus
on: [push, pull_request]
permissions:
contents: read
jobs:
cirrus:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cirruslabs/cirrus-action@ac5191d18a9bff05ff1a38f280f2b6d768e32153
+16
View File
@@ -0,0 +1,16 @@
name: Check patch series correctness
on: [push, pull_request]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- run: python3 ./devutils/lint.py
+3
View File
@@ -1,4 +1,7 @@
name: New version check
permissions:
contents: read
issues: write
on:
# enabling manual trigger
+52
View File
@@ -0,0 +1,52 @@
name: Create new release on version bump
permissions:
contents: write
on:
push: { branches: ["main"] }
jobs:
check-release:
name: Create release if it makes sense
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with: { fetch-depth: 0 }
- name: Check if a new release is needed
id: info
env:
COMMIT_BEFORE: ${{ github.event.before }}
COMMIT_AFTER: ${{ github.event.after }}
shell: bash
run: |
mkdir -p dummy && echo 0 > dummy/revision.txt
cp utils/helium_version.py .
git checkout "$COMMIT_BEFORE" \
&& OLD_VERSION=$(python3 helium_version.py --tree . --print)
git checkout "$COMMIT_AFTER" \
&& NEW_VERSION=$(python3 helium_version.py --tree . --print)
if [ "$OLD_VERSION" != "$NEW_VERSION" ]; then
echo "version=$NEW_VERSION" >> "$GITHUB_OUTPUT"
{
printf '### Changelog\n```\n'
git log --oneline "$OLD_VERSION.."
echo '```'
} | tee body.md
fi
- name: Create Release
if: steps.info.outputs.version
id: create_release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.info.outputs.version }}
name: ${{ steps.info.outputs.version }}
body_path: body.md
-22
View File
@@ -1,22 +0,0 @@
name: Create new empty release
on:
push:
tags:
- '*'
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
+3
View File
@@ -11,3 +11,6 @@ __pycache__/
# Ignore optional build / cache directory
/build
# Ignore generated resources
/resources/generated
-1
View File
@@ -1 +0,0 @@
* @ungoogled-software/core
+29
View File
@@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) 2015-2023, The ungoogled-chromium Authors
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+27 -173
View File
@@ -1,189 +1,43 @@
# ungoogled-chromium
# Helium
Bullshit-free web browser, based on Chromium. Follows [imput](https://github.com/imputnet)'s ethics and norms.
*A lightweight approach to removing Google web service dependency*
First and foremost, we're making a good browser for ourselves.
We don't intend to reinvent the wheel or target everyone, it isn't Helium's goal.
The main goal is to provide an honest, comfortable, privacy-respecting, and non-invasive experience.
If you don't like it - you don't like it, that's totally okay, and we don't care.
**Help is welcome!** See the [docs/contributing.md](docs/contributing.md) document for more information.
There's a lot more to Helium, but we don't have a complete set of features yet.
We'll update the documentation when we're closer to a public release!
## Objectives
## Platform-specific packaging
At the moment, only [Helium for macOS](https://github.com/imputnet/helium-macos) is polished and ready for daily use.
In descending order of significance (i.e. most important objective first):
1. **ungoogled-chromium is Google Chromium, sans dependency on Google web services**.
2. **ungoogled-chromium retains the default Chromium experience as closely as possible**. Unlike other Chromium forks that have their own visions of a web browser, ungoogled-chromium is essentially a drop-in replacement for Chromium.
3. **ungoogled-chromium features tweaks to enhance privacy, control, and transparency**. However, almost all of these features must be manually activated or enabled. For more details, see [Feature Overview](#feature-overview).
In scenarios where the objectives conflict, the objective of higher significance should take precedence.
## Content Overview
* [Objectives](#objectives)
* [Motivation and Philosophy](#motivation-and-philosophy)
* [Feature Overview](#feature-overview)
* [**Downloads**](#downloads)
* [Source Code](#source-code)
* [**FAQ**](#faq)
* [Building Instructions](#building-instructions)
* [Design Documentation](#design-documentation)
* [**Contributing, Reporting, Contacting**](#contributing-reporting-contacting)
* [Credits](#credits)
* [Related Projects](#related-projects)
* [License](#license)
## Motivation and Philosophy
Without signing in to a Google Account, Chromium does pretty well in terms of security and privacy. However, Chromium still has some dependency on Google web services and binaries. In addition, Google designed Chromium to be easy and intuitive for users, which means they compromise on transparency and control of internal operations.
ungoogled-chromium addresses these issues in the following ways:
1. Remove all remaining background requests to any web services while building and running the browser
2. Remove all code specific to Google web services
3. Remove all uses of pre-made binaries from the source code, and replace them with user-provided alternatives when possible.
4. Disable features that inhibit control and transparency, and add or modify features that promote them (these changes will almost always require manual activation or enabling).
These features are implemented as configuration flags, patches, and custom scripts. For more details, consult the [Design Documentation](docs/design.md).
## Feature Overview
*This section overviews the features of ungoogled-chromium. For more detailed information, it is best to consult the source code.*
Contents of this section:
* [Key Features](#key-features)
* [Enhancing Features](#enhancing-features)
* [Borrowed Features](#borrowed-features)
* [Supported Platforms and Distributions](#supported-platforms-and-distributions)
### Key Features
*These are the core features introduced by ungoogled-chromium.*
* Disable functionality specific to Google domains (e.g. Google Host Detector, Google URL Tracker, Google Cloud Messaging, Google Hotwording, etc.)
* This includes disabling [Safe Browsing](https://en.wikipedia.org/wiki/Google_Safe_Browsing). Consult [the FAQ for the rationale](https://ungoogled-software.github.io/ungoogled-chromium-wiki/faq#why-is-safe-browsing-disabled).
* Block internal requests to Google at runtime. This feature is a fail-safe measure for the above, in case Google changes or introduces new components that our patches do not disable. This feature is implemented by replacing many Google web domains in the source code with non-existent alternatives ending in `qjz9zk` (known as domain substitution; [see docs/design.md](docs/design.md#source-file-processors) for details), then [modifying Chromium to block its own requests with such domains](patches/core/ungoogled-chromium/block-trk-and-subdomains.patch). In other words, no connections are attempted to the `qjz9zk` domain.
* Strip binaries from the source code (known as binary pruning; [see docs/design.md](docs/design.md#source-file-processors) for details)
### Enhancing Features
*These are the non-essential features introduced by ungoogled-chromium.*
* Add many new command-line switches and `chrome://flags` entries to configure new features (which are disabled by default). See [docs/flags.md](docs/flags.md) for the exhaustive list.
* Add *Suggestions URL* text field in the search engine editor (`chrome://settings/searchEngines`) for customizing search engine suggestions.
* Add more URL schemes allowed to save page schemes.
* Add Omnibox search provider "No Search" to allow disabling of searching
* Add a custom cross-platform build configuration and packaging wrapper for Chromium. It currently supports many Linux distributions, macOS, and Windows. (See [docs/design.md](docs/design.md) for details on the system.)
* Force all pop-ups into tabs
* Disable automatic formatting of URLs in Omnibox (e.g. stripping `http://`, hiding certain parameters)
* Disable intranet redirect detector (extraneous DNS requests)
* This breaks captive portal detection, but captive portals still work.
* (Iridium Browser feature change) Prevent URLs with the `trk:` scheme from connecting to the Internet
* Also prevents any URLs with the top-level domain `qjz9zk` (as used in domain substitution) from attempting a connection.
* (Windows-specific) Do not set the Zone Identifier on downloaded files
### Borrowed Features
In addition to the features introduced by ungoogled-chromium, ungoogled-chromium selectively borrows many features from the following projects (in approximate order of significance):
* [Inox patchset](https://github.com/gcarq/inox-patchset)
* [Bromite](https://github.com/bromite/bromite)
* [Debian](https://tracker.debian.org/pkg/chromium)
* [Iridium Browser](https://iridiumbrowser.de/)
### Supported Platforms and Distributions
[See docs/platforms.md for a list of supported platforms](docs/platforms.md).
Other platforms are discussed and tracked in this repository's Issue Tracker. Learn more about using the Issue Tracker under the section [Contributing, Reporting, Contacting](#contributing-reporting-contacting).
## Downloads
### Automated or maintained builds
ungoogled-chromium is available in the following **software repositories**:
* Arch: Available in the AUR, [see instructions in ungoogled-chromium-archlinux](https://github.com/ungoogled-software/ungoogled-chromium-archlinux)
* Debian & Ubuntu: Available in OBS, find your [distribution specific instructions](https://github.com/ungoogled-software/ungoogled-chromium-debian) in the Installing section
* Fedora: Available in [COPR](https://copr.fedorainfracloud.org/coprs/) as [`wojnilowicz/ungoogled-chromium`](https://copr.fedorainfracloud.org/coprs/wojnilowicz/ungoogled-chromium/). Also available in [RPM Fusion](https://rpmfusion.org/Configuration) as `chromium-browser-privacy` (outdated).
* Gentoo: Available in [`::pf4public`](https://github.com/PF4Public/gentoo-overlay) overlay as [`ungoogled-chromium`](https://github.com/PF4Public/gentoo-overlay/tree/master/www-client/ungoogled-chromium) and [`ungoogled-chromium-bin`](https://github.com/PF4Public/gentoo-overlay/tree/master/www-client/ungoogled-chromium-bin) ebuilds
* [OpenMandriva](https://openmandriva.org/) includes ungoogled-chromium as its main browser. The `chromium` package includes all ungoogling patches.
* macOS: Available in [Homebrew](https://brew.sh/) as [`eloston-chromium`](https://formulae.brew.sh/cask/eloston-chromium). Just run `brew install --cask eloston-chromium`. Chromium will appear in your `/Applications` directory.
* FreeBSD: Available in pkg as [`www/ungoogled-chromium`](https://www.freshports.org/www/ungoogled-chromium/).
If your GNU/Linux distribution is not listed, there are distro-independent builds available via the following **package managers**:
* Flatpak: Available [in the Flathub repo](https://flathub.org/apps/details/io.github.ungoogled_software.ungoogled_chromium) as `io.github.ungoogled_software.ungoogled_chromium`
* GNU Guix: Available as `ungoogled-chromium`
* NixOS/nixpkgs: Available as `ungoogled-chromium`
### Third-party binaries
If your operating system is not listed above, you can also try to [**Download binaries from here**](https://ungoogled-software.github.io/ungoogled-chromium-binaries/)
*NOTE: These binaries are provided by anyone who are willing to build and submit them. Because these binaries are not necessarily [reproducible](https://reproducible-builds.org/), authenticity cannot be guaranteed; In other words, there is always a non-zero probability that these binaries may have been tampered with. In the unlikely event that this has happened to you, please [report it in a new issue](#contributing-reporting-contacting).*
These binaries are known as **contributor binaries**.
## Source Code
This repository only contains the common code for all platforms; it does not contain all the configuration and scripts necessary to build ungoogled-chromium. Most users will want to use platform-specific repos, where all the remaining configuration and scripts are provided for specific platforms:
[**Find the repo for a specific platform here**](docs/platforms.md).
If you wish to include ungoogled-chromium code in your own build process, consider using [the tags in this repo](https://github.com/ungoogled-software/ungoogled-chromium/tags). These tags follow the format `{chromium_version}-{revision}` where
* `chromium_version` is the version of Chromium used in `x.x.x.x` format, and
* `revision` is a number indicating the version of ungoogled-chromium for the corresponding Chromium version.
Additionally, most platform-specific repos extend their tag scheme upon this one.
**Building the source code**: [See docs/building.md](docs/building.md)
### Mirrors
List of mirrors:
* [Codeberg](https://codeberg.org): [main repo](https://codeberg.org/ungoogled-software/ungoogled-chromium) and [ungoogled-software](https://codeberg.org/ungoogled-software)
## FAQ
[See the frequently-asked questions (FAQ) on the Wiki](https://ungoogled-software.github.io/ungoogled-chromium-wiki/faq)
## Building Instructions
[See docs/building.md](docs/building.md)
## Design Documentation
[See docs/design.md](docs/design.md)
## Contributing, Reporting, Contacting
* For reporting and contacting, see [SUPPORT.md](SUPPORT.md)
* If you're willing to help, check out the [Issue Tracker](https://github.com/ungoogled-software/ungoogled-chromium/issues) and especially issues, which [need help](https://github.com/ungoogled-software/ungoogled-chromium/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22)
* For contributing (e.g. how to help, submitting changes, criteria for new features), see [docs/contributing.md](docs/contributing.md)
* If you have some small contributions that don't fit our criteria, consider adding them to [ungoogled-software/contrib](https://github.com/ungoogled-software/contrib) or [our Wiki](https://github.com/ungoogled-software/ungoogled-chromium-wiki) instead.
We also have packaging for Linux and Windows, but both of them are WIP:
- [Helium for Linux](https://github.com/imputnet/helium-linux) (AppImage)
- [Helium for Windows](https://github.com/imputnet/helium-windows) (no auto-updates yet)
## Credits
### ungoogled-chromium
Helium is proudly based on [ungoogled-chromium](https://github.com/ungoogled-software/ungoogled-chromium).
It wouldn't be possible for us to get rid of Google's bloat and get a development+building pipeline this fast without it.
Huge shout-out to everyone behind this amazing project!
(and we intend to contribute even more stuff upstream in the future)
* [The Chromium Project](https://www.chromium.org/)
* [Inox patchset](https://github.com/gcarq/inox-patchset)
* [Debian](https://tracker.debian.org/pkg/chromium-browser)
* [Bromite](https://github.com/bromite/bromite)
* [Iridium Browser](https://iridiumbrowser.de/)
* The users for testing and debugging, [contributing code](https://github.com/ungoogled-software/ungoogled-chromium/graphs/contributors), providing feedback, or simply using ungoogled-chromium in some capacity.
### The Chromium project
[The Chromium Project](https://www.chromium.org/) is obviously at the core of Helium,
making it possible to exist in the first place.
## Related Projects
List of known projects that fork or use changes from ungoogled-chromium:
* [Bromite](https://github.com/bromite/bromite) (Borrows some patches. Features builds for Android)
* [ppc64le fork](https://github.com/leo-lb/ungoogled-chromium) (Fork with changes to build for ppc64le CPUs)
### ungoogled-chromium's dependencies
- [Inox patchset](https://github.com/gcarq/inox-patchset)
- [Debian](https://tracker.debian.org/pkg/chromium-browser)
- [Bromite](https://github.com/bromite/bromite)
- [Iridium Browser](https://iridiumbrowser.de/)
## License
All code, patches, modified portions of imported code or patches, and
any other content that is unique to Helium and not imported from other
repositories is licensed under GPL-3.0. See [LICENSE](LICENSE).
Any content imported from other projects retains its original license (for
example, any original unmodified code imported from ungoogled-chromium remains
licensed under their [BSD 3-Clause license](https://github.com/ungoogled-software/ungoogled-chromium/blob/464e163fb067ad1134ffb7da5b6d2da478d8939e/LICENSE)).
licensed under their [BSD 3-Clause license](LICENSE.ungoogled_chromium)).
-30
View File
@@ -1,30 +0,0 @@
# Support
**Before you submit feedback, please ensure you have tried the following**:
* Read the [FAQ](https://ungoogled-software.github.io/ungoogled-chromium-wiki/faq)
* If you are using a build for an officially-supported platform ([see the list here](docs/platforms.md)), then please refer to the [Platform-specific Support](#platform-specific-support) section first.
* Check if your feedback already exists in the [Issue Tracker](https://github.com/ungoogled-software/ungoogled-chromium/issues) (make sure to search closed issues and use search filters, as applicable)
* If this is a problem, ensure it does *not* occur with regular Chromium or Google Chrome. If it does, then this is *not* a problem with ungoogled-chromium. Instead, please submit your feedback to the [Chromium bug tracker](https://bugs.chromium.org/p/chromium/issues/list) or Google.
* Read the documentation under [docs/](docs/)
There are a few channels for support:
* An issue tracker. Issue trackers are the main hubs for discussions and development activity, and thus the primary means of support. They includes problems, suggestions, and questions. If you are using a build for an officially-supported platform ([see the list here](docs/platforms.md)), then please refer to the [Platform-specific Support](#platform-specific-support) section to find its issue tracker. Otherwise, please use [the main issue tracker](https://github.com/ungoogled-software/ungoogled-chromium/issues).
* A chat room. There are two options available:
* [Gitter](https://gitter.im/ungoogled-software/Lobby). It can use your GitHub account as an identity.
* Matrix.org under name `ungoogled-software/lobby`. It has a bidirectional connection with Gitter.
## Platform-specific Support
For officially-supported platforms, **please visit their issue trackers before using the issue tracker in this repository**:
* Android: [Issue tracker](https://github.com/ungoogled-software/ungoogled-chromium-android/issues)
* Arch Linux and derivatives (e.g. Manjaro): [Issue tracker](https://github.com/ungoogled-software/ungoogled-chromium-archlinux/issues)
* Debian & Ubuntu: [Issue tracker](https://github.com/ungoogled-software/ungoogled-chromium-debian/issues)
* Fedora & CentOS: [Issue tracker](https://github.com/ungoogled-software/ungoogled-chromium-fedora/issues)
* Flatpak: [Issue tracker](https://github.com/ungoogled-software/ungoogled-chromium-flatpak/issues)
* Gentoo ([@PF4Public](https://github.com/PF4Public)'s overlay): [Issue tracker](https://github.com/PF4Public/gentoo-overlay/issues?q=is%3Aissue++ungoogled-chromium+)
* macOS: [Issue tracker](https://github.com/ungoogled-software/ungoogled-chromium-macos/issues)
* Portable Linux: [Issue tracker](https://github.com/ungoogled-software/ungoogled-chromium-portablelinux/issues)
* Windows: [Issue tracker](https://github.com/ungoogled-software/ungoogled-chromium-windows/issues)
+1 -1
View File
@@ -1 +1 @@
136.0.7103.59
140.0.7339.80
+114
View File
@@ -0,0 +1,114 @@
# pylint: disable=missing-function-docstring,invalid-name,global-statement,missing-module-docstring
# 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.
from third_party import unidiff
LICENSE_HEADER_IGNORES = ["html", "license", "readme"]
patches_dir = None
series = None
def _read_text(path):
with open(patches_dir / path, "r", encoding="utf-8") as f:
return filter(str, f.read().splitlines())
def _init(root):
global patches_dir
global series
patches_dir = root / "patches"
series = set(_read_text("series"))
def a_all_patches_in_series_exist():
for patch in series:
assert (patches_dir / patch).is_file(), \
f"{patch} is in series, but does not exist in the source tree"
def a_all_patches_in_tree_are_in_series():
for patch in patches_dir.rglob('*'):
if not patch.is_file() or patch == patches_dir / "series":
continue
assert str(patch.relative_to(patches_dir)) in series, \
f"{patch} exists in source tree, but is not included in the series"
def b_all_patches_have_meaningful_contents():
for patch in series:
assert any(l.startswith('+++ ') for l in _read_text(patch)), \
f"{patch} does not have any meaningful content"
def b_all_patches_have_no_trailing_whitespace():
for patch in series:
for i, line in enumerate(_read_text(patch)):
if not line.startswith('+ '):
continue
assert not line.endswith(' '), \
f"{patch} contains trailing whitespace on line {i + 1}"
def c_all_new_files_have_license_header():
for patch in series:
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)
for file in added_files:
if any(p in file.path.lower() for p in LICENSE_HEADER_IGNORES):
continue
assert any('terms of the GPL-3.0 license' in str(hunk) for hunk in file), \
f"File {file.path} was added in {patch}, but contains no Helium license header"
def c_all_new_headers_have_correct_guard():
for patch in series:
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)
for file in added_files:
expected_macro_name = file.path.upper() \
.replace('.', '_') \
.replace('/', '_') + '_'
assert len(file) == 1
expected = {
"ifndef": f'#ifndef {expected_macro_name}',
"define": f'#define {expected_macro_name}'
}
found = {
"ifndef": None,
"define": None,
}
for _line in file[0]:
line = str(_line)
if '#ifndef' in line:
assert found["define"] is None
assert found["ifndef"] is None
found["ifndef"] = line
elif '#define' in line:
assert found["ifndef"] is not None
assert found["define"] is None
found["define"] = line
for macro_type, value in found.items():
value_print = (value or '(none)').rstrip()
assert value == f"+{expected[macro_type]}\n", \
f"Patch {patch} has unexpected {macro_type} in {file.path}:" \
f"{value_print}, expecting: {expected[macro_type]}"
+2 -1
View File
@@ -3,7 +3,7 @@
# 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 file.
# found in the LICENSE.ungoogled_chromium file.
"""Run sanity checking algorithms over downloads.ini files
It checks the following:
@@ -21,6 +21,7 @@ from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parent.parent / 'utils'))
from downloads import DownloadInfo, schema
sys.path.pop(0)
+2 -3
View File
@@ -2,7 +2,7 @@
# 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 file.
# found in the LICENSE.ungoogled_chromium file.
"""
Checks if files in a list exist.
@@ -27,8 +27,7 @@ def main():
Path(input_name).read_text(encoding='UTF-8').splitlines()))
for file_name in file_iter:
if not Path(args.root_dir, file_name).exists():
print('ERROR: Path "{}" from file "{}" does not exist.'.format(
file_name, input_name),
print(f'ERROR: Path "{file_name}" from file "{input_name}" does not exist.',
file=sys.stderr)
sys.exit(1)
+2 -1
View File
@@ -3,7 +3,7 @@
# 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 file.
# found in the LICENSE.ungoogled_chromium file.
"""Run sanity checking algorithms over GN flags
It checks the following:
@@ -21,6 +21,7 @@ from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parent.parent / 'utils'))
from _common import ENCODING, get_logger
sys.path.pop(0)
+2 -1
View File
@@ -3,7 +3,7 @@
# 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 file.
# found in the LICENSE.ungoogled_chromium file.
"""Run sanity checking algorithms over ungoogled-chromium's patch files
It checks the following:
@@ -24,6 +24,7 @@ from third_party import unidiff
sys.path.insert(0, str(Path(__file__).resolve().parent.parent / 'utils'))
from _common import ENCODING, get_logger, parse_series # pylint: disable=wrong-import-order
sys.path.pop(0)
# File suffixes to ignore for checking unused patches
+46
View File
@@ -0,0 +1,46 @@
#!/usr/bin/env python3
# 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.
"""Script to run sanity checks against the Helium patchset."""
import sys
import inspect
import argparse
from pathlib import Path
import _lint_tests
def parse_args():
"""Parses the CLI arguments."""
parser = argparse.ArgumentParser()
parser.add_argument('-t', '--tree', help='root of the source tree to check')
return parser.parse_args()
def main():
"""CLI entrypoint for executing tests"""
args = parse_args()
root_dir = (Path(__file__).parent / "..").resolve()
if args.tree:
root_dir = Path(args.tree).resolve()
_lint_tests._init(root_dir) # pylint: disable=protected-access
for name, func in inspect.getmembers(_lint_tests, inspect.isfunction):
if name.startswith("_"):
continue
try:
func()
print(f"[OK] {name}")
except Exception:
print(f"[ERR] {name}:", file=sys.stderr)
raise
if __name__ == '__main__':
main()
+2 -3
View File
@@ -2,7 +2,7 @@
# 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 file.
# found in the LICENSE.ungoogled_chromium file.
"""Run Pylint over devutils"""
import argparse
@@ -23,7 +23,6 @@ def main():
disables = [
'wrong-import-position',
'bad-continuation',
'duplicate-code',
]
@@ -33,7 +32,7 @@ def main():
disables.append('locally-disabled')
pylint_options = [
'--disable={}'.format(','.join(disables)),
f"--disable={','.join(disables)}",
'--jobs=4',
'--score=n',
'--persistent=n',
+6 -6
View File
@@ -2,7 +2,7 @@
# 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 file.
# found in the LICENSE.ungoogled_chromium file.
"""Run Pylint over any module"""
import argparse
@@ -18,6 +18,7 @@ class ChangeDir:
"""
Changes directory to path in with statement
"""
def __init__(self, path):
self._path = path
self._orig_path = os.getcwd()
@@ -31,12 +32,12 @@ class ChangeDir:
def run_pylint(module_path, pylint_options, ignore_prefixes=tuple()):
"""Runs Pylint. Returns a boolean indicating success"""
pylint_stats = Path('/run/user/{}/pylint_stats'.format(os.getuid()))
pylint_stats = Path(f'/run/user/{os.getuid()}/pylint_stats')
if not pylint_stats.parent.is_dir(): #pylint: disable=no-member
pylint_stats = Path('/run/shm/pylint_stats')
os.environ['PYLINTHOME'] = str(pylint_stats)
input_paths = list()
input_paths = []
if not module_path.exists():
print('ERROR: Cannot find', module_path)
sys.exit(1)
@@ -75,12 +76,11 @@ def main():
args = parser.parse_args()
if not args.module_path.exists():
print('ERROR: Module path "{}" does not exist'.format(args.module_path))
print(f'ERROR: Module path "{args.module_path}" does not exist')
sys.exit(1)
disables = [
'wrong-import-position',
'bad-continuation',
]
if args.hide_fixme:
@@ -89,7 +89,7 @@ def main():
disables.append('locally-disabled')
pylint_options = [
'--disable={}'.format(','.join(disables)),
f"--disable={','.join(disables)}",
'--jobs=4',
'--score=n',
'--persistent=n',
+6 -9
View File
@@ -2,7 +2,7 @@
# 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 file.
# found in the LICENSE.ungoogled_chromium file.
"""Run Pylint over utils"""
import argparse
@@ -21,21 +21,18 @@ def main():
help='Show "locally-disabled" Pylint warnings.')
args = parser.parse_args()
disable = ['bad-continuation']
if args.hide_fixme:
disable.append('fixme')
if not args.show_locally_disabled:
disable.append('locally-disabled')
pylint_options = [
'--disable={}'.format(','.join(disable)),
'--jobs=4',
'--max-args=7',
'--score=n',
'--persistent=n',
]
if args.hide_fixme:
pylint_options.append('--disable=fixme')
if not args.show_locally_disabled:
pylint_options.append('--disable=locally-disabled')
ignore_prefixes = [
('third_party', ),
('tests', ),
+3 -1
View File
@@ -26,4 +26,6 @@ export QUILT_PATCHES_ARGS="--color=auto"
export LC_ALL=C
# When non-default less options are used, add the -R option so that less outputs
# ANSI color escape codes "raw".
[ -n "$LESS" -a -z "${QUILT_PAGER+x}" ] && export QUILT_PAGER="less -FRX"
if [ -n "${LESS-}" -a -z "${QUILT_PAGER+x}" ]; then
export QUILT_PAGER="less -FRX"
fi
+7 -4
View File
@@ -2,7 +2,7 @@
# Copyright (c) 2020 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 file.
# found in the LICENSE.ungoogled_chromium file.
"""Test check_patch_files.py"""
import logging
@@ -11,11 +11,13 @@ import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parent.parent.parent / 'utils'))
from _common import get_logger, set_logging_level
from _common import ENCODING, get_logger, set_logging_level
sys.path.pop(0)
sys.path.insert(0, str(Path(__file__).resolve().parent.parent))
from check_patch_files import check_series_duplicates
sys.path.pop(0)
@@ -33,7 +35,7 @@ def test_check_series_duplicates():
'a.patch',
'b.patch',
'c.patch',
]))
]), encoding=ENCODING)
assert not check_series_duplicates(patches_dir)
get_logger().info('Check duplicates')
@@ -42,7 +44,8 @@ def test_check_series_duplicates():
'b.patch',
'c.patch',
'a.patch',
]))
]),
encoding=ENCODING)
assert check_series_duplicates(patches_dir)
+6 -4
View File
@@ -2,7 +2,7 @@
# Copyright (c) 2020 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 file.
# found in the LICENSE.ungoogled_chromium file.
"""Test validate_patches.py"""
import logging
@@ -11,11 +11,13 @@ import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parent.parent.parent / 'utils'))
from _common import get_logger, set_logging_level
from _common import ENCODING, get_logger, set_logging_level
sys.path.pop(0)
sys.path.insert(0, str(Path(__file__).resolve().parent.parent))
import validate_patches
sys.path.pop(0)
@@ -30,8 +32,8 @@ def test_test_patches():
def _run_test_patches(patch_content):
with tempfile.TemporaryDirectory() as tmpdirname:
Path(tmpdirname, 'foobar.txt').write_text(orig_file_content)
Path(tmpdirname, 'test.patch').write_text(patch_content)
Path(tmpdirname, 'foobar.txt').write_text(orig_file_content, encoding=ENCODING)
Path(tmpdirname, 'test.patch').write_text(patch_content, encoding=ENCODING)
_, patch_cache = validate_patches._load_all_patches(series_iter, Path(tmpdirname))
required_files = validate_patches._get_required_files(patch_cache)
files_under_test = validate_patches._retrieve_local_files(required_files,
+10 -7
View File
@@ -6,8 +6,7 @@
# 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 file.
# found in the LICENSE.ungoogled_chromium file.
"""
Update binary pruning and domain substitution lists automatically.
@@ -28,6 +27,7 @@ sys.path.insert(0, str(Path(__file__).resolve().parent.parent / 'utils'))
from _common import get_logger
from domain_substitution import DomainRegexList, TREE_ENCODINGS
from prune_binaries import CONTINGENT_PATHS
sys.path.pop(0)
# Encoding for output files
@@ -70,6 +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',
# Exclusions for safe file extensions
'*.avif',
'*.ttf',
@@ -81,6 +83,7 @@ PRUNING_EXCLUDE_PATTERNS = [
'*.mp3',
'*.wav',
'*.flac',
'*.car',
'*.icns',
'*.woff',
'*.woff2',
@@ -118,14 +121,13 @@ DOMAIN_EXCLUDE_PREFIXES = [
'third_party/blink/renderer/core/dom/document.cc',
# Exclusion to allow download of sysroots
'build/linux/sysroot_scripts/sysroots.json',
# Licenses and credits
'tools/licenses/licenses.py',
# Google Web Store extension stuff
'tools/search_engine_choice/generate_search_engine_icons.py',
'extensions/common/api/_api_features.json',
'chrome/common/extensions/api/_api_features.json',
'extensions/common/extension_urls.cc',
'extensions/browser/updater/safe_manifest_parser.cc',
# License/credits stuff
'tools/licenses/licenses.py',
]
# pylint: enable=line-too-long
@@ -256,6 +258,7 @@ def should_domain_substitute(path, relative_path, search_regex, used_dep_set, us
if relative_path_posix.startswith(exclude_prefix):
used_dep_set.add(exclude_prefix)
return False
# Skip LICENSE.* files so that they remain untouched.
for license_path in ['license', 'license.txt', 'license.html']:
if relative_path_posix.endswith('/' + license_path):
return False
@@ -399,9 +402,9 @@ def main(args_list=None):
args.tree,
DomainRegexList(args.domain_regex).search_regex, args.processes)
with args.pruning.open('w', encoding=_ENCODING) as file_obj:
file_obj.writelines('%s\n' % line for line in pruning_set)
file_obj.writelines(f'{line}\n' for line in pruning_set)
with args.domain_substitution.open('w', encoding=_ENCODING) as file_obj:
file_obj.writelines('%s\n' % line for line in domain_substitution_set)
file_obj.writelines(f'{line}\n' for line in domain_substitution_set)
if unused_patterns.log_unused(args.error_unused) and args.error_unused:
get_logger().error('Please update or remove unused patterns and/or prefixes. '
'The lists have still been updated with the remaining valid entries.')
+5 -5
View File
@@ -7,8 +7,7 @@
# 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 file.
# found in the LICENSE.ungoogled_chromium file.
"""
Utility to ease the updating of platform patches against ungoogled-chromium's patches
"""
@@ -22,6 +21,7 @@ from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parent.parent / 'utils'))
from _common import ENCODING, get_logger
from patches import merge_patches
sys.path.pop(0)
_SERIES = 'series'
@@ -114,14 +114,14 @@ def unmerge_platform_patches(platform_patches_dir):
return False
orig_series = (platform_patches_dir / _SERIES_ORIG).read_text(encoding=ENCODING).splitlines()
# patch path -> list of lines after patch path and before next patch path
path_comments = dict()
path_comments = {}
# patch path -> inline comment for patch
path_inline_comments = dict()
path_inline_comments = {}
previous_path = None
for partial_path in orig_series:
if not partial_path or partial_path.startswith('#'):
if partial_path not in path_comments:
path_comments[previous_path] = list()
path_comments[previous_path] = []
path_comments[previous_path].append(partial_path)
else:
path_parts = partial_path.split(' #', maxsplit=1)
+1 -1
View File
@@ -3,7 +3,7 @@
# 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 file.
# found in the LICENSE.ungoogled_chromium file.
"""Run sanity checking algorithms over ungoogled-chromium's config files
NOTE: This script is hardcoded to run over ungoogled-chromium's config files only.
+30 -29
View File
@@ -3,7 +3,7 @@
# Copyright (c) 2020 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 file.
# found in the LICENSE.ungoogled_chromium file.
"""
Validates that all patches apply cleanly against the source tree.
@@ -23,12 +23,14 @@ from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parent / 'third_party'))
import unidiff
from unidiff.constants import LINE_TYPE_EMPTY, LINE_TYPE_NO_NEWLINE
sys.path.pop(0)
sys.path.insert(0, str(Path(__file__).resolve().parent.parent / 'utils'))
from domain_substitution import TREE_ENCODINGS
from _common import ENCODING, get_logger, get_chromium_version, parse_series, add_common_params
from patches import dry_run_check
sys.path.pop(0)
try:
@@ -38,6 +40,7 @@ try:
class _VerboseRetry(urllib3.util.Retry):
"""A more verbose version of HTTP Adatper about retries"""
def sleep_for_retry(self, response=None):
"""Sleeps for Retry-After, and logs the sleep time"""
if response:
@@ -100,16 +103,16 @@ class _DepsNodeVisitor(ast.NodeVisitor):
def visit_Call(self, node): #pylint: disable=invalid-name
"""Override Call syntax handling"""
if node.func.id not in self._allowed_callables:
raise _UnexpectedSyntaxError('Unexpected call of "%s" at line %s, column %s' %
(node.func.id, node.lineno, node.col_offset))
raise _UnexpectedSyntaxError(f'Unexpected call of "{node.func.id}" '
f'at line {node.lineno}, column {node.col_offset}')
def generic_visit(self, node):
for ast_type in self._valid_syntax_types:
if isinstance(node, ast_type):
super().generic_visit(node)
return
raise _UnexpectedSyntaxError('Unexpected {} at line {}, column {}'.format(
type(node).__name__, node.lineno, node.col_offset))
raise _UnexpectedSyntaxError(f'Unexpected {type(node).__name__} '
f'at line {node.lineno}, column {node.col_offset}')
def _validate_deps(deps_text):
@@ -124,6 +127,7 @@ def _validate_deps(deps_text):
def _deps_var(deps_globals):
"""Return a function that implements DEPS's Var() function"""
def _var_impl(var_name):
"""Implementation of Var() in DEPS"""
return deps_globals['vars'][var_name]
@@ -145,8 +149,8 @@ def _download_googlesource_file(download_session, repo_url, version, relative_pa
googlesource.com repo as a string.
"""
if 'googlesource.com' not in repo_url:
raise ValueError('Repository URL is not a googlesource.com URL: {}'.format(repo_url))
full_url = repo_url + '/+/{}/{}?format=TEXT'.format(version, str(relative_path))
raise ValueError(f'Repository URL is not a googlesource.com URL: {repo_url}')
full_url = repo_url + f'/+/{version}/{str(relative_path)}?format=TEXT'
get_logger().debug('Downloading: %s', full_url)
response = download_session.get(full_url)
if response.status_code == 404:
@@ -172,13 +176,13 @@ def _get_dep_value_url(deps_globals, dep_value):
# Probably a Python format string
url = url.format(**deps_globals['vars'])
if url.count('@') != 1:
raise _PatchValidationError('Invalid number of @ symbols in URL: {}'.format(url))
raise _PatchValidationError(f'Invalid number of @ symbols in URL: {url}')
return url
def _process_deps_entries(deps_globals, child_deps_tree, child_path, deps_use_relative_paths):
"""Helper for _get_child_deps_tree"""
for dep_path_str, dep_value in deps_globals.get('deps', dict()).items():
for dep_path_str, dep_value in deps_globals.get('deps', {}).items():
url = _get_dep_value_url(deps_globals, dep_value)
if url is None:
continue
@@ -200,7 +204,7 @@ def _process_deps_entries(deps_globals, child_deps_tree, child_path, deps_use_re
grandchild_deps_tree = recursedeps_item_depsfile
if grandchild_deps_tree is None:
# This dep is not recursive; i.e. it is fully loaded
grandchild_deps_tree = dict()
grandchild_deps_tree = {}
child_deps_tree[dep_path] = (*url.split('@'), grandchild_deps_tree)
@@ -211,7 +215,7 @@ def _get_child_deps_tree(download_session, current_deps_tree, child_path, deps_u
# Load unloaded DEPS
deps_globals = _parse_deps(
_download_googlesource_file(download_session, repo_url, version, child_deps_tree))
child_deps_tree = dict()
child_deps_tree = {}
current_deps_tree[child_path] = (repo_url, version, child_deps_tree)
deps_use_relative_paths = deps_globals.get('use_relative_paths', False)
_process_deps_entries(deps_globals, child_deps_tree, child_path, deps_use_relative_paths)
@@ -221,9 +225,8 @@ def _get_child_deps_tree(download_session, current_deps_tree, child_path, deps_u
def _get_last_chromium_modification():
"""Returns the last modification date of the chromium-browser-official tar file"""
with _get_requests_session() as session:
response = session.head(
'https://storage.googleapis.com/chromium-browser-official/chromium-{}.tar.xz'.format(
get_chromium_version()))
response = session.head('https://storage.googleapis.com/chromium-browser-official/'
f'chromium-{get_chromium_version()}.tar.xz')
response.raise_for_status()
return email.utils.parsedate_to_datetime(response.headers['Last-Modified'])
@@ -235,7 +238,7 @@ def _get_gitiles_git_log_date(log_entry):
def _get_gitiles_commit_before_date(repo_url, target_branch, target_datetime):
"""Returns the hexadecimal hash of the closest commit before target_datetime"""
json_log_url = '{repo}/+log/{branch}?format=JSON'.format(repo=repo_url, branch=target_branch)
json_log_url = f'{repo_url}/+log/{target_branch}?format=JSON'
with _get_requests_session() as session:
response = session.get(json_log_url)
response.raise_for_status()
@@ -410,7 +413,7 @@ def _retrieve_remote_files(file_iter):
Returns a dict of relative UNIX path strings to a list of lines in the file as strings
"""
files = dict()
files = {}
root_deps_tree = _initialize_deps_tree()
@@ -459,7 +462,7 @@ def _retrieve_local_files(file_iter, source_dir):
Returns a dict of relative UNIX path strings to a list of lines in the file as strings
"""
files = dict()
files = {}
for file_path in file_iter:
try:
raw_content = (source_dir / file_path).read_bytes()
@@ -473,7 +476,7 @@ def _retrieve_local_files(file_iter, source_dir):
except UnicodeDecodeError:
continue
if not content:
raise UnicodeDecodeError('Unable to decode with any encoding: %s' % file_path)
raise UnicodeDecodeError(f'Unable to decode with any encoding: {file_path}')
files[file_path] = content.split('\n')
if not files:
get_logger().error('All files used by patches are missing!')
@@ -488,7 +491,7 @@ def _modify_file_lines(patched_file, file_lines):
for hunk in patched_file:
# Validate hunk will match
if not hunk.is_valid():
raise _PatchValidationError('Hunk is not valid: {}'.format(repr(hunk)))
raise _PatchValidationError(f'Hunk is not valid: {repr(hunk)}')
line_cursor = hunk.target_start - 1
for line in hunk:
normalized_line = line.value.rstrip('\n')
@@ -497,18 +500,16 @@ def _modify_file_lines(patched_file, file_lines):
line_cursor += 1
elif line.is_removed:
if normalized_line != file_lines[line_cursor]:
raise _PatchValidationError(
"Line '{}' does not match removal line '{}' from patch".format(
file_lines[line_cursor], normalized_line))
raise _PatchValidationError(f"Line '{file_lines[line_cursor]}' does not match "
f"removal line '{normalized_line}' from patch")
del file_lines[line_cursor]
elif line.is_context:
if not normalized_line and line_cursor == len(file_lines):
# We reached the end of the file
break
if normalized_line != file_lines[line_cursor]:
raise _PatchValidationError(
"Line '{}' does not match context line '{}' from patch".format(
file_lines[line_cursor], normalized_line))
raise _PatchValidationError(f"Line '{file_lines[line_cursor]}' does not match "
f"context line '{normalized_line}' from patch")
line_cursor += 1
else:
assert line.line_type in (LINE_TYPE_EMPTY, LINE_TYPE_NO_NEWLINE)
@@ -592,7 +593,7 @@ def _load_all_patches(series_iter, patches_dir):
- dict of relative UNIX path strings to unidiff.PatchSet
"""
had_failure = False
unidiff_dict = dict()
unidiff_dict = {}
for relative_path in series_iter:
if relative_path in unidiff_dict:
continue
@@ -682,12 +683,12 @@ def main():
if args.cache_remote.parent.exists():
args.cache_remote.mkdir()
else:
parser.error('Parent of cache path {} does not exist'.format(args.cache_remote))
parser.error(f'Parent of cache path {args.cache_remote} does not exist')
if not args.series.is_file():
parser.error('--series path is not a file or not found: {}'.format(args.series))
parser.error(f'--series path is not a file or not found: {args.series}')
if not args.patches.is_dir():
parser.error('--patches path is not a directory or not found: {}'.format(args.patches))
parser.error(f'--patches path is not a directory or not found: {args.patches}')
series_iterable = tuple(parse_series(args.series))
had_failure, patch_cache = _load_all_patches(series_iterable, args.patches)
-76
View File
@@ -1,76 +0,0 @@
# Building ungoogled-chromium
The recommended way to build ungoogled-chromium is by consulting [the repository for your supported platform (links here)](platforms.md).
* *Linux users*: If your distribution is not listed, you will need to use Portable Linux.
If you want to add ungoogled-chromium to your existing Chromium build process, see the next section. Additionally, you may reference the repositories for supported platforms for inspiration.
## Integrating ungoogled-chromium into your Chromium build process
Typically, ungoogled-chromium is built from [code in platform-specific repositories](platforms.md). However, ungoogled-chromium can also be included in part or in whole into any custom Chromium build. In this section, **we will assume you already have a process to make your own Chromium builds**.
**NOTE**: You may need additional patches and/or build configuration for [your supported platform](platforms.md) because this repository does not contain all the code necessary for all platforms.
Before continuing, you may find it helpful to have a look through [the design documentation](design.md).
The following procedure outline the essential steps to build Chromium will all of ungoogled-chromium's features. **They are not sufficient to build ungoogled-chromium on their own**.
1. Ensure Chromium is downloaded, such as by `depot_tools`. In most of our supported platforms, we instead use a custom tool to do this.
```sh
mkdir -p build/download_cache
./utils/downloads.py retrieve -c build/download_cache -i downloads.ini
./utils/downloads.py retrieve -c build/download_cache -i extras.ini
./utils/downloads.py unpack -c build/download_cache -i downloads.ini -- build/src
./utils/downloads.py unpack -c build/download_cache -i extras.ini -- build/src
```
2. Prune binaries
```sh
./utils/prune_binaries.py build/src pruning.list
```
3. Apply patches
```sh
./utils/patches.py apply build/src patches
```
4. Substitute domains and names
```sh
./utils/domain_substitution.py apply -r domain_regex.list -f domain_substitution.list -c build/domsubcache.tar.gz build/src
./utils/name_substitution.sh" sub build/src
```
5. Build GN. If you are using `depot_tools` to checkout Chromium or you already have a GN binary, you should skip this step.
```sh
mkdir -p build/src/out/Default
cd build/src
./tools/gn/bootstrap/bootstrap.py --skip-generate-buildfiles -j4 -o out/Default/
```
6. Invoke the build:
```
mkdir -p build/src/out/Default
# NOTE: flags.gn contains only a subset of what is needed to run the build.
cp flags.gn build/src/out/Default/args.gn
cd build/src
# If you have additional GN flags to add, make sure to add them now.
./out/Default/gn gen out/Default --fail-on-unused-args
ninja -C out/Default chrome chromedriver chrome_sandbox
```
## Building FAQ
### My build keeps crashing because I run out of RAM! How can I fix it?
Here are several ways to address this, in decreasing order of preference:
1. Decrease the number of parallel threads to Ninja (the `-j` flag)
2. Add swap space
-52
View File
@@ -1,52 +0,0 @@
# Contributing
This document contains our criteria and guidelines for contributing to ungoogled-chromium.
If you have **small contributions that don't fit our criteria**, consider adding them to [ungoogled-software/contrib](https://github.com/ungoogled-software/contrib) or [our Wiki](https://github.com/ungoogled-software/ungoogled-chromium-wiki) instead.
If you are a developer of an **officially-supported platform**, be sure to check out the [Platform Repository Standards and Guidelines](repo_management.md).
List of contents:
* [How to help](#how-to-help)
* [Submitting changes](#submitting-changes)
* [Criteria for new features](#criteria-for-new-features)
### How to help
Generally, ungoogled-chromium needs contributors to help:
* Keep up-to-date with the latest stable Chromium, and any problematic changes in the new version that needs modification.
* Help with issues marked with the `help wanted` tag (usually either questions for other users, or request for help from other developers)
* Review Pull Requests from other contributors
* Implement feature requests ("enhancements" in the Issue Tracker), large or small.
* Implement issues marked with the `backlog` tag (that are closed).
* If it requires new code, please read through the [Submitting changes](#submitting-changes) section below.
In addition, anyone is free to help others in need of support in the Issue Tracker.
If there are fixes, tweaks, or additions you want to make, continue onto the following section.
### Submitting changes
Please submit all changes via Pull Requests.
Guidelines:
* You are welcome to submit minor changes, such as bug fixes, documentation fixes, and tweaks.
* If your change has an associated issue, please let others know that you are working on it.
* If you want to submit a new feature, please read through the [Criteria for new features](#criteria-for-new-features) below.
* When in doubt about the acceptance of a change, you are welcome to ask via an issue first.
### Criteria for new features
1. New features should not detract from the default Chromium experience, unless it falls under the project's main objectives (i.e. removing Google integration and enhancing privacy).
* For larger features, please propose them via an issue first.
2. New features should live behind a setting that is **off by default**.
* Settings are usually added via a command-line flag and `chrome://flags` entries. See [the relevant section in docs/developing.md](developing.md#adding-command-line-flags-and-chromeflags-options) for more information.
* Unless there are significant benefits, adding the setting to `chrome://settings` is *not recommended* due to the additional maintenance required (caused by the infrastructure that backs preferences).
**NOTE**: In the event that the codebase changes significantly for a non-essential patch (i.e. a patch that does not contribute to the main objectives of ungoogled-chromium), it will be removed until someone updates it.
-20
View File
@@ -1,20 +0,0 @@
# Default Settings
Vanilla Chromium settings are not often changed by ungoogled-chromium, however there are some exceptions.
Below is a list of the documented changes to the default Chromium settings.
Setting | New State | Location
-- | -- | --
Allow sites to check if you have payment methods saved | Disabled | chrome://settings/payments
Ask where to save each file before downloading | Enabled | chrome://settings/downloads
Auto sign-in | Disabled | chrome://settings/passwords
Block third-party cookies | Enabled | chrome://settings/cookies
Continue running background apps when Chromium is closed | Disabled | chrome://settings/system
Hyperlink auditing (\<a ping>) | Disabled | NA
Link Doctor | Disabled | NA
Offer to save passwords | Disabled | chrome://settings/passwords
Payment autofill | Disabled | chrome://settings/payments
Preload pages | Disabled | chrome://settings/cookies
Search suggestions | Disabled | chrome://settings/syncSetup
Show bookmark bar | Enabled | chrome://settings/appearance
WebRTC IP handling policy | Disable Non-Proxied UDP | `--webrtc-ip-handling-policy`
-118
View File
@@ -1,118 +0,0 @@
# Design
This document contains a high-level technical description of ungoogled-chromium and its components.
## Overview
ungoogled-chromium consists of the following major components:
* [Configuration](#configuration)
* [Configuration files](#configuration-files)
* [Source file processors](#source-file-processors)
* [Patches](#patches)
* [Packaging](#packaging)
The following sections describe each component.
## Configuration
Configuration is a broad term that refers to patches, build flags, and metadata about Chromium source code. It consists of the following components:
* [Configuration files](#configuration-files)
* [Source file processors](#source-file-processors)
* [Patches](#patches)
The following sections describe each component in more depth.
### Configuration Files
Configuration files (or config files) are files that store build configuration and source code changes for a build.
**IMPORTANT**: For consistency, all config files must be encoded in UTF-8.
List of configuration files:
* `chromium_version.txt` - The Chromium version used by ungoogled-chromium
* `revision.txt` - The revision of the changes on top of the given Chromium version.
* `pruning.list` - [See the Source File Processors section](#source-file-processors)
* `domain_regex.list` - [See the Source File Processors section](#source-file-processors)
* `domain_substitution.list` - [See the Source File Processors section](#source-file-processors)
* `downloads.ini` - Archives to download and unpack into the buildspace tree. This includes code not bundled in the Chromium source code archive that is specific to a non-Linux platform. On platforms such as macOS, this also includes a pre-built LLVM toolchain for convenience (which can be removed and built from source if desired).
* `flags.gn` - GN arguments to set before building.
### Source File Processors
Source file processors are utilities that directly manipulate the Chromium source tree before building. Currently, there are two such utilities: binary pruning, and domain substitution.
**Binary Pruning**: Strips binaries from the source code. This includes pre-built executables, shared libraries, and other forms of machine code. Most are substituted with system or user-provided equivalents, or are built from source; those binaries that cannot be removed do not contain machine code.
The list of files to remove are determined by the config file `pruning.list`. This config file is generated by `devutils/update_lists.py`.
**Domain Substitution**: Replaces Google and several other web domain names in the Chromium source code with non-existent alternatives ending in `qjz9zk`. These changes are mainly used as a backup measure to detect potentially unpatched requests to Google. Note that domain substitution is a crude process, and *may not be easily undone*.
With a few patches from ungoogled-chromium, any requests with these domain names sent via `net::URLRequest` in the Chromium code are blocked and notify the user via a info bar.
Similar to binary pruning, the list of files to modify are listed in `domain_substitution.list`; it is also updated with `devutils/update_lists.py`.
The regular expressions to use are listed in `domain_regex.list`; the search and replacement expressions are delimited with a pound (`#`) symbol. The restrictions for the entries are as follows:
* All replacement expressions must end in the TLD `qjz9zk`.
* The search and replacement expressions must have a one-to-one correspondence: no two search expressions can match the same string, and no two replacement expressions can result in the same string.
### Patches
All of ungoogled-chromium's patches for the Chromium source code are located in `patches/`. This directory conforms to the default GNU Quilt format. That is:
* All patches must reside inside `patches/`
* There is a `patches/series` text file that defines the order to apply all the patches. These patches are listed as a relative path from the `patches` directory.
* Lines starting with the pound symbol (`#`) are ignored
* For lines with patch paths: If there is a space followed by a pound symbol, the text after the patch path will be ignored.
All patch files in ungoogled-chromium must satisfy these formatting requirements:
* Patch filenames must end with the extension `.patch`
* The content must be in [unified format](https://en.wikipedia.org/wiki/Diff_utility#Unified_format).
* All paths in the hunk headers must begin after the first slash (which corresponds to the argument `-p1` for GNU patch).
* All patches must apply cleanly (i.e. no fuzz).
* It is recommended that hunk paths have the `a/` and `b/` prefixes, and a context of 3 (like the git default).
* All patches must be encoded in UTF-8 (i.e. same encoding as config files).
Patches are categorized into two directories directly under `patches/`:
1. **core**: Changes regarding background requests, code specific to Google web services, or code using pre-made binaries. They must be kept up-to-date with all of the changes in Chromium.
2. **extra**: Changes to features regarding control and transparency. They are not guaranteed to persist across updates to Chromium.
Within each category, patches are grouped by the following:
* `debian/` - Patches from Debian's Chromium
* Patches are not modified unless they conflict with Inox's patches
* These patches are not Debian-specific. For those, see the `debian/patches` directory
* `inox-patchset/` - Contains a modified subset of patches from Inox patchset.
* Some patches such as those that change branding are omitted
* Patches are not modified unless they do not apply cleanly onto the version of Chromium being built
* Patches are from [inox-patchset's GitHub](https://github.com/gcarq/inox-patchset)
* [Inox patchset's license](https://github.com/gcarq/inox-patchset/blob/master/LICENSE)
* `bromite/` - Patches from [Bromite](https://github.com/bromite/bromite)
* `iridium-browser/` - Contains a modified subset of patches from Iridium Browser.
* Some patches such as those that change branding or URLs to point to Iridium's own servers are omitted
* Patches are not modified unless they conflict with Debian's or Inox's patches
* Patches are from the `patchview` branch of Iridium's Git repository. [Git webview of the patchview branch](https://git.iridiumbrowser.de/cgit.cgi/iridium-browser/?h=patchview)
* `opensuse/` - Patches from openSUSE's Chromium
* `ubuntu/` - Patches from Ubuntu's Chromium
* `ungoogled-chromium/` - Patches by ungoogled-chromium developers
## Packaging
Packaging is the process of downloading, building, and producing a distributable package of ungoogled-chromium.
Packaging files use the code from this repository to build ungoogled-chromium. Each platform and configuration has an associated packaging repository under the [ungoogled-software](https://github.com/ungoogled-software) organization. For more information about each packaging repository, see the [building documentation](building.md).
Packaging generally consists of the major steps:
1. Download and unpack the source tree
2. Prune binaries
3. Apply patches
4. Substitute domains
5. Build GN via `tools/gn/bootstrap/bootstrap.py`
6. Run `gn gen` with the GN flags
7. Build Chromium via `ninja`
8. Create package(s) of build output (usually in `out/Default`)
-90
View File
@@ -1,90 +0,0 @@
# Development notes and procedures
This document contains an assortment of information for those who want to develop ungoogled-chromium.
Information targeted towards developers *and* other users live in [the Wiki](https://ungoogled-software.github.io/ungoogled-chromium-wiki/).
Contents:
* [Branches](#branches)
* [Adding command-line flags and chrome://flags options](#adding-command-line-flags-and-chromeflags-options)
* [Workflow of updating to a new Chromium version](#workflow-of-updating-to-a-new-chromium-version)
## Branches
Development is focused on `master`, and any changes in there should not break anything unless platforms break during a Chromium version rebase.
Larger feature changes or hotfixes must be done in a separate branch. Once they are ready, then a Pull Request can be made onto `master` (for contributors with write access, merging directly via a git client is fine). After the branch is merged, it should be removed.
## Adding command-line flags and `chrome://flags` options
See `docs/how_to_add_your_feature_flag.md` in the Chromium source tree for the steps needed. Note that updating `tools/metrics/histograms/enums.xml` is not required.
For new flags, first add a constant to `third_party/ungoogled/ungoogled_switches.cc` (by modifying patch `resources/patches/ungoogled-chromium/add-third-party-ungoogled.patch`). Then, use this constant in the steps outlined above.
## Workflow of updating to a new Chromium version
Tested on Debian 10 (buster). Exact instructions should work on any other Linux or macOS system with the proper dependencies.
To gain a deeper understanding of this updating process, have a read through [docs/design.md](design.md).
### Dependencies
* [`quilt`](http://savannah.nongnu.org/projects/quilt)
* This is available in most (if not all) Linux distributions, and also Homebrew on macOS.
* This utility facilitates most of the updating process, so it is important to learn how to use this. The manpage for quilt (as of early 2017) lacks an example of a workflow. There are multiple guides online, but [this guide from Debian](https://wiki.debian.org/UsingQuilt) and [the referenced guide on that page](https://raphaelhertzog.com/2012/08/08/how-to-use-quilt-to-manage-patches-in-debian-packages/) are the ones referenced in developing the current workflow.
* Python 3.9 or newer
* `httplib2` and `six` are also required if you wish to utilize a source clone instead of the source tarball.
### Downloading the source code
```sh
./utils/clone.py -o build/src
```
### Updating lists
The utility `devutils/update_lists.py` automates this process. By default, it will update the files in the local repo. Pass in `-h` or `--help` for available options.
```sh
./devutils/update_lists.py -t build/src
```
The resulting source tree in `build/src` *will not* have binaries pruned or domains substituted.
### Updating patches
**IMPORTANT**: Make sure domain substitution has not been applied before updating patches.
1. Run `source devutils/set_quilt_vars.sh` (or `source devutils/set_quilt_vars.fish` if you are using the fish shell)
* This will setup quilt to modify patches directly in `patches/`
2. Go into the source tree: `cd build/src`
3. Use `quilt` to refresh all patches: `quilt push -a --refresh`
* If an error occurs, go to the next step. Otherwise, skip to Step 5.
4. Use `quilt` to fix the broken patch:
1. Run `quilt push -f`
2. Edit the broken files as necessary by adding (`quilt edit ...` or `quilt add ...`) or removing (`quilt remove ...`) files as necessary
* When removing large chunks of code, remove each line instead of using language features to hide or remove the code. This makes the patches less susceptible to breakages when using quilt's refresh command (e.g. quilt refresh updates the line numbers based on the patch context, so it's possible for new but desirable code in the middle of the block comment to be excluded.). It also helps with readability when someone wants to see the changes made based on the patch alone.
3. Refresh the patch: `quilt refresh`
4. Go back to Step 3.
5. Run `quilt pop -a`
6. Go back to ungoogled-chromium repo: `cd ../..`
7. Run `devutils/validate_config.py`. If any warnings are printed, address them; otherwise, continue to Step 8.
8. Run `devutils/validate_patches.py -l build/src`. If errors occur, go back to Step 3.
This should leave unstaged changes in the git repository to be reviewed, added, and committed.
### Steps for fixing patches after a failed build attempt
If domain substitution is not applied, then the steps from the previous section will work for revising patches.
If domain substitution is applied, then the steps for the initial update will not apply since that would create patches which depend on domain substitution. Here is a method of dealing with this:
1. Revert domain substitution: `./utils/domain_substitution.py revert -c CACHE_PATH_HERE build/src`
2. Follow the patch updating section above
3. Reapply domain substitution: `./utils/domain_substitution.py apply -r domain_regex.list -f domain_substitution.list -c CACHE_PATH_HERE build/src`
4. Reattempt build. Repeat steps as necessary.
### Next steps
* Submit a Pull Request of these changes to the ungoogled-chromium repo.
* Once the PR is merged, update the repositories of each platform repository that you are maintaining under the `ungoogled-software` organization.
-100
View File
@@ -1,100 +0,0 @@
# List of flags and switches
This is an exhaustive list of command-line switches and flags introduced by ungoogled-chromium.
Each switch has a corresponding entry on the `chrome://flags` page which can be filtered by searching for `ungoogled-chromium`.
If a switch requires a value, you must specify it with an `=` sign; e.g. flag `--foo` with value `bar` should be written as `--foo=bar`.
> **NOTE**: If you add a command-line argument that is also in `chrome://flags`, the flag's state will not be indicated in `chrome://flags`. There is no universal way to ensure command-line flags are taking effect, but you can find if they're being seen by checking `chrome://version`.
- ### Available on all platforms
<code>Switch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code> | Description
-- | --
`--disable-beforeunload` | Disables JavaScript dialog boxes triggered by `beforeunload`
`--disable-grease-tls` | Disables GREASE for TLS. Combined with `--http-accept-header` allows browser to look more like a tor-browser. See https://github.com/ungoogled-software/ungoogled-chromium/issues/783 for more details.
`--disable-search-engine-collection` | Disable automatic search engine scraping from webpages.
`--extension-mime-request-handling` | Change how extension MIME types (CRX and user scripts) are handled. Acceptable values are `download-as-regular-file` or `always-prompt-for-install`. Leave unset to use normal behavior.
`--fingerprinting-canvas-image-data-noise` | (Added flag to Bromite feature) Implements fingerprinting deception for Canvas image data retrieved via JS APIs. In the data, at most 10 pixels are slightly modified.
`--fingerprinting-canvas-measuretext-noise` | (Added flag to Bromite feature) Scale the output values of Canvas::measureText() with a randomly selected factor in the range -0.0003% to 0.0003%, which are recomputed on every document initialization.
`--fingerprinting-client-rects-noise` | (Added flag to Bromite feature) Implements fingerprinting deception of JS APIs `getClientRects()` and `getBoundingClientRect()` by scaling their output values with a random factor in the range -0.0003% to 0.0003%, which are recomputed for every document instantiation.
`--force-punycode-hostnames` | Convert all Internationalized Domain Names to punycode (ASCII representation of Unicode). See https://github.com/ungoogled-software/ungoogled-chromium/issues/370 for more details.
`--hide-crashed-bubble` | Hides the bubble box with the message "Restore Pages? Chromium didn't shut down correctly." that shows on startup after the browser did not exit cleanly.
`--http-accept-header` | Changes the default value of the `Accept` HTTP header sent with HTTP requests. Combined with `--disable-grease-tls` allows browser to look more like a tor-browser. See https://github.com/ungoogled-software/ungoogled-chromium/issues/783 for more details.
`--keep-old-history` | Disables deletion of local browser history after 90 days
`--max-connections-per-host` | (from Bromite) Configure the maximum allowed connections per host. Valid values are `6` and `15`
`--omnibox-autocomplete-filtering` | Restrict omnibox autocomplete results to a combination of search suggestions (if enabled), bookmarks, and internal chrome pages. Accepts `search`, `search-bookmarks`, `search-chrome`, and `search-bookmarks-chrome`.
`--popups-to-tabs` | Makes popups open in new tabs.
- ### Available only on desktop
<code>Switch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code> | Description
-- | --
`--bookmark-bar-ntp` | Sets the visibility of the bookmark bar on the New Tab Page. Only takes the value `never`.
`--close-confirmation` | Show a warning prompt when closing the browser window. Accepts `last` (prompt when closing the last window with several tabs) and `multiple` (prompt only if more than one window is open).
`--close-window-with-last-tab` | Determines whether a window should close once the last tab is closed. Only takes the value `never`.
`--custom-ntp` | Allows setting a custom URL for the new tab page. Value can be internal (e.g. `about:blank` or `chrome://new-tab-page`), external (e.g. `example.com`), or local (e.g. `file:///tmp/startpage.html`). This applies for incognito windows as well when not set to a `chrome://` internal page.
`--disable-sharing-hub` | Disables the sharing hub button.
`--enable-incognito-themes` | Allows themes to change the appearance of Incognito windows.
`--hide-extensions-menu` | Hides the extensions container. This includes the puzzle piece icon as well as any pinned extensions.
`--hide-fullscreen-exit-ui` | Hides the "X" that appears when the mouse cursor is moved towards the top of the window in fullscreen mode. Additionally, this hides the "Press F11 to exit full screen" popup.
`--hide-tab-close-buttons` | Hides the close buttons on tabs.
`--remove-grab-handle` | Removes the reserved empty space in the tabstrip for moving the window.
`--remove-tabsearch-button` | Removes the tabsearch button from the tabstrip.
`--scroll-tabs` | Determines if scrolling will cause a switch to a neighboring tab if the cursor hovers over the tabs, or the empty space beside the tabs. The flag requires one the values: `always`, `never`, `incognito-and-guest`. When omitted, the default is to use platform-specific behavior, which is currently enabled only on desktop Linux.
`--show-avatar-button` | Sets visibility of the avatar button. The flag requires one of the values: `always`, `incognito-and-guest` (only show Incognito or Guest modes), or `never`.
`--tab-hover-cards` | Allows removing the tab hover cards or using a tooltip as a replacement. This can be set with the values `none` or `tooltip`.
- #### Available only on Windows
<code>Switch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code> | Description
-- | --
`--disable-encryption` | Disable encryption of cookies, passwords, and settings which uses a generated machine-specific encryption key. This is used to enable portable user data directories.
`--disable-machine-id` | Disables use of a generated machine-specific ID to lock the user data directory to that machine. This is used to enable portable user data directories.
## Feature flags
Feature flags are similar to switches with the difference being that they are passed as values for the `--enable-features` switch. Multiple features can be passed at the same time by separating them with a comma, e.g. `--enable-features=flag1,flag2,flag3`.
These are also available on the `chrome://flags` page.
- ### Available on all platforms
Feature | Description
-- | --
`MinimalReferrers` | Removes all cross-origin referrers and strips same-origin referrers down to the origin. Has lower precedence than `NoCrossOriginReferrers`.
`NoCrossOriginReferrers` | Removes all cross-origin referrers. Has lower precedence than `NoReferrers`.
`NoReferrers` | Removes all referrers.
`ReducedSystemInfo` | Reduces the amount of system information obatainable through headers and javascript, also causes hardwareConcurrency to respond with two cores.
`RemoveClientHints` | Removes client hints (information sent to servers about your system, similar to a user agent).
`SetIpv6ProbeFalse` | Forces the result of the browser's IPv6 probing (i.e. IPv6 connectivity test) to be unsuccessful. This causes IPv4 addresses to be prioritized over IPv6 addresses. Without this flag, the probing result is set to be successful, which causes IPv6 to be used over IPv4 when possible.
`SpoofWebGLInfo` | Return generic values for WebGLDebugRendererInfo to remove a potential data leak while preventing potential website breakage.
- ### Available only on desktop
Feature | Description
-- | --
`ClearDataOnExit` | Clears all browsing data on exit.
`DisableLinkDrag` | Prevents dragging of links and selected text. Allows selecting text from a middle of a link. Also allows starting selection without first clearing the existing one. This behaviour is similar to the one from older Opera. See https://github.com/ungoogled-software/ungoogled-chromium/pull/2080 and https://github.com/ungoogled-software/ungoogled-chromium/discussions/2055 for more information.
`DisableQRGenerator` | Disables the QR generator for sharing page links.
## Flags for existing switches
Chromium contains switches that do no have corresponding entries in `chrome://flags`. For convenience, ungoogled-chromium has created entries for some of the commonly-used switches.
- ### Available on all platforms
<code>Switch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code> | Description
-- | --
`--disable-top-sites` | Disables the top sites and most visited entries on the new tab page.
`--disable-webgl` | Disable all versions of WebGL.
`--enable-low-end-device-mode` | Force low-end device mode when set.
`--force-dark-mode` | Forces dark mode in UI for platforms that support it.
`--no-default-browser-check` | Disables the default browser check.
`--no-pings` | Don't send hyperlink auditing pings.
`--webrtc-ip-handling-policy` | Restrict which IP addresses and interfaces WebRTC uses.
- ### Available only on desktop
<code>Switch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code> | Description
-- | --
`--incognito` | Start in Incognito.
`--start-maximized` | Starts the browser maximized, regardless of any previous settings.
-11
View File
@@ -1,11 +0,0 @@
# Supported Platforms
This page lists platforms officially supported by ungoogled-chromium, and their associated repositories.
* Android: [ungoogled-chromium-android](https://github.com/ungoogled-software/ungoogled-chromium-android)
* Arch Linux: [ungoogled-chromium-archlinux](https://github.com/ungoogled-software/ungoogled-chromium-archlinux)
* Debian, Ubuntu, and derivatives: [ungoogled-chromium-debian](https://github.com/ungoogled-software/ungoogled-chromium-debian)
* Fedora and CentOS: [ungoogled-chromium-fedora](https://github.com/ungoogled-software/ungoogled-chromium-fedora)
* Portable Linux (for any Linux distro): [ungoogled-chromium-portablelinux](https://github.com/ungoogled-software/ungoogled-chromium-portablelinux)
* Windows: [ungoogled-chromium-windows](https://github.com/ungoogled-software/ungoogled-chromium-windows)
* macOS: [ungoogled-chromium-macos](https://github.com/ungoogled-software/ungoogled-chromium-macos)
-56
View File
@@ -1,56 +0,0 @@
# Platform Repository Standards and Guidelines
*This document is new, and its structure and content may change. If you have suggestions, please create an issue!*
ungoogled-chromium is comprised of anonymous developers who volunteer their efforts. Some of these developers may choose to provide long-term support for [an officially-supported platform](platforms.md), or bring support to a new platform. For such developers, this document consists of standards and management guidelines for platform repos.
We will refer to this git repository as "the main repo", and refer to repositories that add platform-specific code to build ungoogled-chromium as "platform repos". An "officially-supported platform" is a platform with a platform repo in [the ungoogled-software organization](https://github.com/ungoogled-software) and noted in [docs/platforms.md](platforms.md).
## Standards
An officially-supported platform repo:
* Must not modify or remove existing patches, GN flags, domain substitution, or binary pruning in the main repo. Instead, you can add new patches or add more files/rules to domain substitution or binary pruning. (If you think a change is needed in the main repo, please make an issue!)
* Must have a tagging/versioning scheme that includes the ungoogled-chromium version.
* Must not require an Internet connection during compilation (before compilation is OK).
* Should allow the user to download all build requirements before building.
* Must not require external services to build, aside from repos in the ungoogled-software organization and repos provided by or used by Chromium.
* Should have a reproducible build for all versions (currently, there is no formal process to enforce/verify reproducibility of binaries)
Each deviation must be clearly noted in the platform repo's documentation (such as the repo's README), and have an associated issue in the platform repo.
## Teams in the ungoogled-software organization
Each officially-supported platform has one or more teams in the ungoogled-software organization. These teams provide additional means for collaborating with other developers, such as issue triaging and private discussions (see section "How to communicate" below).
If you are a regular contributor and would like to provide long-term support for a platform, you can request to be included in the ungoogled-software organization team for your platform. Since the number of developers is low, there is no formal process to do this; just ask in an issue.
## How to communicate
In the interest of transparency, it is recommended to discuss work in public spaces like issues or PRs. If a discussion should not involve outsiders, you can lock the issue or PR to collaborators only.
You must use team discussions if you are discussing or sharing information that can affect the security of the repository. Otherwise, you may use team discussions at your discretion.
## Issues
Each platform repo should have a team in ungoogled-software with the Triage permission level. All members should feel free to manage issues.
TODO: More details?
## Pull Requests
TODO
## Repository Settings and Shared Resources
Shared resources includes:
* CI services like CirrusCI, GitHub Actions, etc.
* Build services like OpenSUSE Build Service (OBS)
These need to be handled with care, as they can cause a wide variety of issues from security and privacy leaks all the way to data loss.
There are several ways to handle shared resources:
* Assign one person to manage a certain set of settings (i.e. grant them "ownership" of those settings). If you want to change a setting, you should request a change in a team discussion.
* TODO: More ways to manage settings?
+701 -469
View File
File diff suppressed because it is too large Load Diff
+7 -7
View File
@@ -1,12 +1,12 @@
[icons]
url = https://gist.githubusercontent.com/dumbmoron/a8aeb8926c4baa8fdd0fa8e8de47e5eb/raw/b5aae9abdceb64661afcf3dc2712523f8e3b1952/icons.tar.gz
download_filename = icons.tar.gz
sha256 = cd954c7257f126be871f79ecf8fff143425708d5d33501d0ba870fa466dafbe7
output_path = ./components/resources/default_100_percent/search_engine_choice
[search_engines_data]
url = https://gist.githubusercontent.com/wukko/2a591364dda346e10219e4adabd568b1/raw/e75ae3c4a1ce940ef7627916a48bc40882d24d40/nonfree-search-engines-data.tar.gz
download_filename = nonfree-search-engines-data.tar.gz
sha256 = 00a87050fa3f941d04d67fb5763991e0b8ea399a88b505ab0e56dd263f06864c
output_path = ./third_party/search_engines_data/resources_internal
[onboarding]
version = 202505031903
version = 202509081820
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 = a8f2ba7665b98191ef343f0134fadea4d73c5954bbc4d2413d10c8fb5e9f8f4c
sha256 = 4eb5fba49c3ef63af2d9a163cfbff1ccc081e0713034587656aed277544cf35d
output_path = ./components/helium_onboarding
-2
View File
@@ -4,8 +4,6 @@ clang_use_chrome_plugins=false
disable_fieldtrial_testing_config=true
enable_hangout_services_extension=false
enable_mdns=false
enable_nacl=false
enable_reading_list=false
enable_remoting=false
enable_reporting=false
enable_service_discovery=false
@@ -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
@@ -59,7 +59,7 @@ public abstract class ChromeFeatureList
@@ -60,7 +60,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
}
/**
@@ -71,8 +71,7 @@ public abstract class ChromeFeatureList
@@ -72,8 +72,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
}
/**
@@ -84,8 +83,7 @@ public abstract class ChromeFeatureList
@@ -85,8 +84,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
}
/**
@@ -97,8 +95,7 @@ public abstract class ChromeFeatureList
@@ -98,8 +96,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() {
@@ -1,30 +1,30 @@
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -3685,8 +3685,6 @@ static_library("browser") {
@@ -3794,8 +3794,6 @@ static_library("browser") {
"download/download_auto_open_policy_handler.cc",
"download/download_auto_open_policy_handler.h",
"download/download_commands.cc",
"download/download_crx_util.cc",
"download/download_crx_util.h",
- "download/download_danger_prompt.cc",
- "download/download_danger_prompt.h",
"download/download_dir_policy_handler.cc",
"download/download_dir_policy_handler.h",
"download/download_dir_util.cc",
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -5467,10 +5467,6 @@ ChromeContentBrowserClient::CreateThrott
throttles.push_back(std::make_unique<PolicyBlocklistNavigationThrottle>(
handle, handle->GetWebContents()->GetBrowserContext()));
--- 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()));
- // Before setting up SSL error detection, configure SSLErrorHandler to invoke
- // the relevant extension API whenever an SSL interstitial is shown.
- SSLErrorHandler::SetClientCallbackOnInterstitialsShown(
- base::BindRepeating(&MaybeTriggerSecurityInterstitialShownEvent));
throttles.push_back(std::make_unique<SSLErrorNavigationThrottle>(
handle,
base::BindOnce(&HandleSSLErrorWrapper), base::BindOnce(&IsInHostedApp),
registry.AddThrottle(std::make_unique<SSLErrorNavigationThrottle>(
registry, base::BindOnce(&HandleSSLErrorWrapper),
base::BindOnce(&IsInHostedApp),
--- a/chrome/browser/component_updater/file_type_policies_component_installer.cc
+++ b/chrome/browser/component_updater/file_type_policies_component_installer.cc
@@ -38,21 +38,6 @@ const uint8_t kFileTypePoliciesPublicKey
@@ -36,21 +36,6 @@ const uint8_t kFileTypePoliciesPublicKey
const char kFileTypePoliciesManifestName[] = "File Type Policies";
void LoadFileTypesFromDisk(const base::FilePath& pb_path) {
@@ -57,7 +57,7 @@
// Whether the download is currently being revived.
bool is_being_revived_ = false;
@@ -512,13 +512,13 @@ void DownloadItemModel::SetShouldPreferO
@@ -463,13 +463,13 @@ void DownloadItemModel::SetShouldPreferO
data->should_prefer_opening_in_browser_ = preference;
}
@@ -76,15 +76,15 @@
}
--- a/chrome/browser/extensions/api/downloads/downloads_api.cc
+++ b/chrome/browser/extensions/api/downloads/downloads_api.cc
@@ -38,7 +38,6 @@
#include "chrome/browser/download/bubble/download_bubble_ui_controller.h"
@@ -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"
-#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"
@@ -1378,9 +1377,6 @@ DownloadsAcceptDangerFunction::Downloads
@@ -1379,9 +1378,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());
@@ -1430,44 +1426,7 @@ void DownloadsAcceptDangerFunction::Prom
@@ -1431,44 +1427,7 @@ void DownloadsAcceptDangerFunction::Prom
return;
}
RecordApiFunctions(DOWNLOADS_FUNCTION_ACCEPT_DANGER);
RecordApiFunctions(DownloadsFunctionName::kDownloadsFunctionAcceptDanger);
- // DownloadDangerPrompt displays a modal dialog using native widgets that the
- // user must either accept or cancel. It cannot be scripted.
- DownloadDangerPrompt* prompt = DownloadDangerPrompt::Create(
@@ -180,7 +180,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
@@ -711,18 +711,6 @@ void WebstorePrivateBeginInstallWithMani
@@ -703,18 +703,6 @@ void WebstorePrivateBeginInstallWithMani
void WebstorePrivateBeginInstallWithManifest3Function::
ReportFrictionAcceptedEvent() {
@@ -226,7 +226,7 @@
std::unique_ptr<std::string> response_body) {
--- a/chrome/browser/extensions/blocklist_state_fetcher.h
+++ b/chrome/browser/extensions/blocklist_state_fetcher.h
@@ -36,8 +36,6 @@ class BlocklistStateFetcher {
@@ -39,8 +39,6 @@ class BlocklistStateFetcher {
virtual void Request(const std::string& id, RequestCallback callback);
@@ -245,15 +245,15 @@
sources = [
"chrome_controller_client.cc",
"chrome_controller_client.h",
@@ -73,6 +74,7 @@ static_library("safe_browsing") {
"//mojo/public/cpp/system",
@@ -77,6 +78,7 @@ static_library("safe_browsing") {
"//services/metrics/public/cpp:ukm_builders",
"//services/preferences/public/cpp",
]
+ }
# Note: is_android is not equivalent to safe_browsing_mode == 2.
# Sources and dependencies added to this block must not depend on anything
@@ -564,6 +566,7 @@ static_library("advanced_protection") {
if (enable_extensions) {
deps += [ "//chrome/browser/ui/web_applications" ]
@@ -601,6 +603,7 @@ static_library("advanced_protection") {
}
source_set("metrics_collector") {
@@ -261,35 +261,35 @@
sources = [
"safe_browsing_metrics_collector_factory.cc",
"safe_browsing_metrics_collector_factory.h",
@@ -583,6 +586,7 @@ source_set("metrics_collector") {
@@ -620,6 +623,7 @@ source_set("metrics_collector") {
"//components/safe_browsing/core/common:safe_browsing_prefs",
"//content/public/browser",
]
+ }
}
source_set("test_support") {
source_set("unit_tests") {
--- a/chrome/browser/ui/views/download/BUILD.gn
+++ b/chrome/browser/ui/views/download/BUILD.gn
@@ -27,7 +27,6 @@ source_set("download") {
"bubble/download_dialog_view.h",
"bubble/download_toolbar_ui_controller.cc",
"bubble/download_toolbar_ui_controller.h",
@@ -6,7 +6,6 @@ assert(is_win || is_mac || is_linux || i
source_set("download") {
sources = [
- "download_danger_prompt_views.cc",
"download_in_progress_dialog_view.cc",
"download_in_progress_dialog_view.h",
"download_item_view.cc",
]
--- a/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc
+++ b/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc
@@ -25,7 +25,6 @@
@@ -24,7 +24,6 @@
#include "base/threading/thread.h"
#include "base/values.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/download/bubble/download_bubble_ui_controller.h"
-#include "chrome/browser/download/download_danger_prompt.h"
#include "chrome/browser/download/download_history.h"
#include "chrome/browser/download/download_item_model.h"
#include "chrome/browser/download/download_item_warning_data.h"
@@ -541,12 +540,6 @@ void DownloadsDOMHandler::RemoveDownload
@@ -550,12 +549,6 @@ void DownloadsDOMHandler::RemoveDownload
IdSet ids;
for (download::DownloadItem* download : to_remove) {
@@ -300,7 +300,7 @@
- }
-
DownloadItemModel item_model(download);
if (!item_model.ShouldShowInShelf() ||
if (!item_model.ShouldShowInUi() ||
download->GetState() == download::DownloadItem::IN_PROGRESS) {
--- a/chrome/browser/ui/webui/downloads/downloads_dom_handler.h
+++ b/chrome/browser/ui/webui/downloads/downloads_dom_handler.h
@@ -314,7 +314,7 @@
#include "chrome/browser/ui/webui/downloads/downloads_list_tracker.h"
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -112,7 +112,6 @@
@@ -110,7 +110,6 @@
#include "components/pdf/common/pdf_util.h"
#include "components/permissions/features.h"
#include "components/safe_browsing/buildflags.h"
@@ -1,6 +1,6 @@
--- a/components/autofill/core/browser/crowdsourcing/autofill_crowdsourcing_manager.cc
+++ b/components/autofill/core/browser/crowdsourcing/autofill_crowdsourcing_manager.cc
@@ -890,93 +890,6 @@ std::tuple<GURL, std::string> AutofillCr
@@ -925,94 +925,6 @@ std::tuple<GURL, std::string> AutofillCr
}
bool AutofillCrowdsourcingManager::StartRequest(FormRequestData request_data) {
@@ -13,15 +13,16 @@
-#if BUILDFLAG(IS_IOS)
- DCHECK(!request_data.isolation_info);
-#else
- DCHECK((request_data.request_type == RequestType::kRequestUpload) ==
- !request_data.isolation_info);
- DCHECK(
- (request_data.request_type == CrowdsourcingRequestType::kRequestUpload) ==
- !request_data.isolation_info);
-#endif
- // Get the URL and method to use for this request.
- auto [request_url, method] = GetRequestURLAndMethod(request_data);
-
- // Track the URL length for GET queries because the URL length can be in the
- // thousands when rich metadata is enabled.
- if (request_data.request_type == RequestType::kRequestQuery &&
- if (request_data.request_type == CrowdsourcingRequestType::kRequestQuery &&
- method == "GET") {
- base::UmaHistogramCounts100000(kUmaGetUrlLength,
- request_url.spec().length());
@@ -1,6 +1,6 @@
--- a/chrome/updater/configurator.cc
+++ b/chrome/updater/configurator.cc
@@ -115,7 +115,7 @@ base::TimeDelta Configurator::UpdateDela
@@ -147,7 +147,7 @@ base::TimeDelta Configurator::UpdateDela
std::vector<GURL> Configurator::UpdateUrl() const {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
@@ -2,7 +2,7 @@
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -477,14 +477,6 @@ group("gn_all") {
@@ -469,14 +469,6 @@ group("gn_all") {
]
}
@@ -112,7 +112,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
@@ -535,7 +535,7 @@ void WebRtcLogUploader::UploadCompressed
@@ -531,7 +531,7 @@ void WebRtcLogUploader::UploadCompressed
}
})");
@@ -121,17 +121,6 @@ by default.
auto resource_request = std::make_unique<network::ResourceRequest>();
resource_request->url = !upload_url_for_testing_.is_empty()
? upload_url_for_testing_
--- a/chrome/browser/nacl_host/nacl_infobar_delegate.cc
+++ b/chrome/browser/nacl_host/nacl_infobar_delegate.cc
@@ -33,7 +33,7 @@ std::u16string NaClInfoBarDelegate::GetL
}
GURL NaClInfoBarDelegate::GetLinkURL() const {
- return GURL("https://support.google.com/chrome/?p=ib_nacl");
+ return GURL("trk:143:https://support.google.com/chrome/?p=ib_nacl");
}
std::u16string NaClInfoBarDelegate::GetMessageText() const {
--- a/chrome/browser/profiles/profile_avatar_downloader.cc
+++ b/chrome/browser/profiles/profile_avatar_downloader.cc
@@ -20,7 +20,7 @@
@@ -167,7 +156,7 @@ by default.
DownloadFeedbackFactory* DownloadFeedback::factory_ = nullptr;
--- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
+++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
@@ -273,7 +273,7 @@ GURL SpellcheckHunspellDictionary::GetDi
@@ -277,7 +277,7 @@ GURL SpellcheckHunspellDictionary::GetDi
DCHECK(!bdict_file.empty());
static const char kDownloadServerUrl[] =
@@ -178,7 +167,7 @@ by default.
base::ToLowerASCII(bdict_file));
--- a/chrome/browser/ui/dialogs/outdated_upgrade_bubble.cc
+++ b/chrome/browser/ui/dialogs/outdated_upgrade_bubble.cc
@@ -33,7 +33,7 @@
@@ -32,7 +32,7 @@
namespace {
// The URL to be used to re-install Chrome when auto-update failed for too long.
@@ -189,7 +178,7 @@ by default.
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
@@ -73,17 +73,17 @@ namespace {
@@ -76,17 +76,17 @@ namespace {
// The URL for the the Learn More page shown on incognito new tab.
const char kLearnMoreIncognitoUrl[] =
#if BUILDFLAG(IS_CHROMEOS)
@@ -227,7 +216,7 @@ by default.
--- a/chrome/installer/setup/google_chrome_behaviors.cc
+++ b/chrome/installer/setup/google_chrome_behaviors.cc
@@ -36,7 +36,7 @@ namespace installer {
@@ -37,7 +37,7 @@ namespace installer {
namespace {
constexpr std::wstring_view kUninstallSurveyUrl(
@@ -274,7 +263,7 @@ by default.
--- a/components/google/core/common/google_util.cc
+++ b/components/google/core/common/google_util.cc
@@ -147,7 +147,7 @@ bool IsGoogleSearchSubdomainUrl(const GU
@@ -152,7 +152,7 @@ BASE_FEATURE(kIsViewerGoogleSearchUrl,
// Global functions -----------------------------------------------------------
@@ -304,7 +293,7 @@ by default.
"https://history.google.com/history/api/lookup?client=audio";
--- a/components/safe_browsing/content/browser/client_side_detection_service.cc
+++ b/components/safe_browsing/content/browser/client_side_detection_service.cc
@@ -70,7 +70,7 @@ const int ClientSideDetectionService::kN
@@ -68,7 +68,7 @@ const int ClientSideDetectionService::kN
const int ClientSideDetectionService::kPositiveCacheIntervalMinutes = 30;
const char ClientSideDetectionService::kClientReportPhishingUrl[] =
@@ -405,7 +394,7 @@ by default.
GURL url(base::WideToUTF16(args[0]));
--- a/extensions/common/extension_urls.cc
+++ b/extensions/common/extension_urls.cc
@@ -38,11 +38,11 @@ const GURL* g_item_snippet_url_for_test_
@@ -38,13 +38,13 @@ const GURL* g_item_snippet_url_for_test_
} // namespace
@@ -413,6 +402,9 @@ by default.
-const char kNewChromeWebstoreBaseURL[] = "https://chromewebstore.google.com/";
+const char kChromeWebstoreBaseURL[] = "trk:09:https://chrome.google.com/webstore";
+const char kNewChromeWebstoreBaseURL[] = "trk:08:https://chromewebstore.google.com/";
const char kExtensionsDocsWhatsNewURL[] =
- "https://developer.chrome.com/docs/extensions/whats-new";
+ "trk:06:https://developer.chrome.com/docs/extensions/whats-new";
const char kChromeWebstoreUpdateURL[] =
- "https://clients2.google.com/service/update2/crx";
-const char kChromeWebstoreApiURL[] = "https://chromewebstore.googleapis.com/";
@@ -423,7 +415,7 @@ by default.
const char kExtensionsMenuUtmSource[] = "ext_extensions_menu";
--- a/google_apis/gaia/gaia_constants.cc
+++ b/google_apis/gaia/gaia_constants.cc
@@ -14,169 +14,169 @@ const char kChromeSource[] = "ChromiumBr
@@ -14,173 +14,173 @@ const char kChromeSource[] = "ChromiumBr
const char kUnexpectedServiceResponse[] = "UnexpectedServiceResponse";
// OAuth scopes.
@@ -579,6 +571,11 @@ by default.
- "https://www.googleapis.com/auth/experimentsandconfigs";
+ "trk:209:https://www.googleapis.com/auth/experimentsandconfigs";
// OAuth2 scope for access for DriveFS to use client-side notifications.
const char kClientChannelOAuth2Scope[] =
- "https://www.googleapis.com/auth/client_channel";
+ "trk:210:https://www.googleapis.com/auth/client_channel";
// The scope required for an access token in order to query ItemSuggest.
const char kDriveReadOnlyOAuth2Scope[] =
- "https://www.googleapis.com/auth/drive.readonly";
@@ -39,7 +39,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
@@ -304,11 +304,14 @@ IncidentReportingService::UploadContext:
@@ -303,11 +303,14 @@ IncidentReportingService::UploadContext:
// static
bool IncidentReportingService::IsEnabledForProfile(Profile* profile) {
@@ -13,7 +13,7 @@ This prevents trk:148 (phishing) and trk:149 (malware).
--- a/components/safe_browsing/content/browser/client_side_detection_service.cc
+++ b/components/safe_browsing/content/browser/client_side_detection_service.cc
@@ -324,6 +324,10 @@ void ClientSideDetectionService::StartCl
@@ -281,6 +281,10 @@ void ClientSideDetectionService::StartCl
return;
}
@@ -24,7 +24,7 @@ This prevents trk:148 (phishing) and trk:149 (malware).
std::string request_data;
request->SerializeToString(&request_data);
@@ -406,6 +410,7 @@ void ClientSideDetectionService::StartCl
@@ -362,6 +366,7 @@ void ClientSideDetectionService::StartCl
base::BindOnce(&WebUIInfoSingleton::AddToClientPhishingRequestsSent,
base::Unretained(WebUIInfoSingleton::GetInstance()),
std::move(request), access_token));
@@ -18,7 +18,7 @@
// Note: If there is an ongoing request, abandon it. It's possible that
--- a/chrome/browser/new_tab_page/promos/promo_service.cc
+++ b/chrome/browser/new_tab_page/promos/promo_service.cc
@@ -175,6 +175,7 @@ PromoService::PromoService(
@@ -171,6 +171,7 @@ PromoService::PromoService(
PromoService::~PromoService() = default;
void PromoService::Refresh() {
@@ -26,19 +26,29 @@
std::string command_id;
// Replace the promo URL with "command:<id>" if such a command ID is set
// via the feature params.
--- a/chrome/browser/search/background/ntp_background_service.cc
+++ b/chrome/browser/search/background/ntp_background_service.cc
@@ -96,6 +96,7 @@ void NtpBackgroundService::Shutdown() {
--- a/chrome/browser/profile_resetter/profile_resetter.cc
+++ b/chrome/browser/profile_resetter/profile_resetter.cc
@@ -99,17 +99,6 @@ ProfileResetter::ProfileResetter(Profile
cookies_remover_(nullptr) {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
DCHECK(profile_);
-
- google_brand::GetBrand(&brandcode_);
- if (brandcode_.empty()) {
- return;
- }
- config_fetcher_ = std::make_unique<BrandcodeConfigFetcher>(
- g_browser_process->system_network_context_manager()
- ->GetURLLoaderFactory(),
- base::BindOnce(&ProfileResetter::OnDefaultSettingsFetched,
- base::Unretained(this)),
- GURL("https://tools.google.com/service/update2"), brandcode_);
}
void NtpBackgroundService::FetchCollectionInfo() {
+ return;
if (collections_loader_ != nullptr)
return;
collection_error_info_.ClearError();
void ProfileResetter::OnDefaultSettingsFetched() {
--- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
+++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
@@ -280,6 +280,7 @@ GURL SpellcheckHunspellDictionary::GetDi
@@ -284,6 +284,7 @@ GURL SpellcheckHunspellDictionary::GetDi
}
void SpellcheckHunspellDictionary::DownloadDictionary(GURL url) {
@@ -48,7 +58,7 @@
--- a/components/affiliations/core/browser/hash_affiliation_fetcher.cc
+++ b/components/affiliations/core/browser/hash_affiliation_fetcher.cc
@@ -137,6 +137,10 @@ AffiliationFetcherDelegate* HashAffiliat
@@ -128,6 +128,10 @@ HashAffiliationFetcher::~HashAffiliation
}
void HashAffiliationFetcher::StartRequest(
@@ -80,6 +90,18 @@
// This function is not supposed to be called if the previous operation is not
// finished.
if (state_ == REQUESTING) {
--- a/components/themes/ntp_background_service.cc
+++ b/components/themes/ntp_background_service.cc
@@ -90,9 +90,7 @@ void NtpBackgroundService::Shutdown() {
void NtpBackgroundService::FetchCollectionInfo(
const std::string& filtering_label) {
// If a request is currently in progress, drop the new request.
- if (collections_loader_ != nullptr) {
return;
- }
collection_error_info_.ClearError();
net::NetworkTrafficAnnotationTag traffic_annotation =
--- a/components/update_client/update_checker.cc
+++ b/components/update_client/update_checker.cc
@@ -104,6 +104,7 @@ void UpdateCheckerImpl::CheckForUpdates(
@@ -92,12 +114,24 @@
update_check_callback_ = std::move(update_check_callback);
--- a/third_party/devtools-frontend/src/front_end/panels/elements/WebCustomData.ts
+++ b/third_party/devtools-frontend/src/front_end/panels/elements/WebCustomData.ts
@@ -19,18 +19,7 @@ export class WebCustomData {
readonly fetchPromiseForTest: Promise<unknown>;
@@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
constructor(remoteBase: string) {
-import * as Root from '../../core/root/root.js';
/**
* Lazily loads the vscode.web-custom-data/browser.css-data.json and allows
@@ -15,33 +14,14 @@ import * as Root from '../../core/root/r
export class WebCustomData {
#data = new Map<string, CSSProperty>();
- /** The test actually needs to wait for the result */
- readonly fetchPromiseForTest: Promise<unknown>;
-
- constructor(remoteBase: string) {
- if (!remoteBase) {
this.fetchPromiseForTest = Promise.resolve();
- this.fetchPromiseForTest = Promise.resolve();
- return;
- }
- this.fetchPromiseForTest = fetch(`${remoteBase}third_party/vscode.web-custom-data/browsers.css-data.json`)
@@ -108,6 +142,28 @@
- }
- })
- .catch();
- }
-
/**
* Creates a fresh `WebCustomData` instance using the standard
* DevTools remote base.
* Throws if no valid remoteBase was found.
*/
static create(): WebCustomData {
- const remoteBase = Root.Runtime.getRemoteBase();
// Silently skip loading of the CSS data if remoteBase is not set properly.
- return new WebCustomData(remoteBase?.base ?? '');
+ return new WebCustomData();
}
/**
@@ -54,9 +34,6 @@ export class WebCustomData {
}
}
-interface CSSBrowserData {
- properties: CSSProperty[];
-}
export interface CSSProperty {
name: string;
@@ -3,7 +3,7 @@
--- a/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc
+++ b/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc
@@ -56,6 +56,7 @@ ChromeAutocompleteSchemeClassifier::GetI
@@ -72,6 +72,7 @@ ChromeAutocompleteSchemeClassifier::GetI
if (base::IsStringASCII(scheme) &&
(ProfileIOData::IsHandledProtocol(scheme) ||
base::EqualsCaseInsensitiveASCII(scheme, content::kViewSourceScheme) ||
@@ -23,7 +23,7 @@
url.SchemeIs(dom_distiller::kDomDistillerScheme))
--- a/chrome/browser/ui/singleton_tabs.cc
+++ b/chrome/browser/ui/singleton_tabs.cc
@@ -124,7 +124,8 @@ int GetIndexOfExistingTab(Browser* brows
@@ -132,7 +132,8 @@ int GetIndexOfExistingTab(Browser* brows
// 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
@@ -582,7 +582,8 @@ void AutocompleteInput::ParseForEmphasiz
@@ -578,7 +578,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) ||
@@ -47,7 +47,7 @@
std::u16string real_url(text.substr(after_scheme_and_colon));
--- a/components/url_formatter/url_fixer.cc
+++ b/components/url_formatter/url_fixer.cc
@@ -607,6 +607,10 @@ GURL FixupURLInternal(const std::string&
@@ -602,6 +602,10 @@ GURL FixupURLInternal(const std::string&
}
}
@@ -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
@@ -939,6 +939,7 @@ ChildProcessSecurityPolicyImpl::ChildPro
@@ -958,6 +958,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
@@ -1081,6 +1081,8 @@ component("net") {
@@ -1113,6 +1113,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",
@@ -84,7 +84,7 @@
@@ -0,0 +1,25 @@
+// Copyright (c) 2018 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 file.
+// found in the LICENSE.ungoogled_chromium file.
+
+#include "net/url_request/trk_protocol_handler.h"
+
@@ -112,7 +112,7 @@
@@ -0,0 +1,30 @@
+// Copyright (c) 2018 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 file.
+// found in the LICENSE.ungoogled_chromium file.
+
+#ifndef NET_URL_REQUEST_TRK_PROTOCOL_HANDLER_H_
+#define NET_URL_REQUEST_TRK_PROTOCOL_HANDLER_H_
@@ -173,7 +173,7 @@
return NetLogURLRequestConstructorParams(url, priority_,
--- a/net/url_request/url_request_context_builder.cc
+++ b/net/url_request/url_request_context_builder.cc
@@ -50,6 +50,7 @@
@@ -55,6 +55,7 @@
#include "net/socket/network_binding_client_socket_factory.h"
#include "net/ssl/ssl_config_service_defaults.h"
#include "net/url_request/static_http_user_agent_settings.h"
@@ -181,7 +181,7 @@
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_job_factory.h"
#include "url/url_constants.h"
@@ -597,6 +598,9 @@ std::unique_ptr<URLRequestContext> URLRe
@@ -621,6 +622,9 @@ std::unique_ptr<URLRequestContext> URLRe
}
protocol_handlers_.clear();
@@ -204,7 +204,7 @@
inline constexpr char kUuidInPackageScheme[] = "uuid-in-package";
--- a/url/url_util.cc
+++ b/url/url_util.cc
@@ -84,6 +84,7 @@ struct SchemeRegistry {
@@ -85,6 +85,7 @@ struct SchemeRegistry {
kWssScheme,
kDataScheme,
kAboutScheme,
@@ -212,7 +212,7 @@
};
// Schemes that normal pages cannot link to or access (i.e., with the same
@@ -98,6 +99,7 @@ struct SchemeRegistry {
@@ -99,6 +100,7 @@ struct SchemeRegistry {
kAboutScheme,
kJavaScriptScheme,
kDataScheme,
@@ -2,7 +2,7 @@
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -2714,24 +2714,6 @@ void ChromeContentBrowserClient::AppendE
@@ -2711,24 +2711,6 @@ void ChromeContentBrowserClient::AppendE
command_line->AppendSwitchASCII(switches::kMetricsClientID,
client_info->client_id);
}
@@ -26,7 +26,7 @@
- command_line->AppendSwitchASCII(switches::kEnableCrashReporter, switch_value);
#endif
if (logging::DialogsAreSuppressed())
if (logging::DialogsAreSuppressed()) {
--- a/components/crash/core/app/crashpad.cc
+++ b/components/crash/core/app/crashpad.cc
@@ -72,6 +72,12 @@ void InitializeDatabasePath(const base::
@@ -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
@@ -323,6 +323,11 @@ GWP_ASAN_EXPORT std::optional<AllocatorS
@@ -345,6 +345,11 @@ GWP_ASAN_EXPORT std::optional<AllocatorS
// Exported for testing.
GWP_ASAN_EXPORT std::optional<AllocatorSettings> GetAllocatorSettings(
@@ -705,7 +705,7 @@
--- a/components/domain_reliability/uploader.cc
+++ b/components/domain_reliability/uploader.cc
@@ -81,7 +81,7 @@ class DomainReliabilityUploaderImpl : pu
@@ -80,7 +80,7 @@ class DomainReliabilityUploaderImpl : pu
if (discard_uploads_)
discarded_upload_count_++;
@@ -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
@@ -297,7 +297,7 @@ bool DomDistillerViewerSource::ShouldSer
@@ -295,7 +295,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
@@ -109,7 +109,7 @@ function maybeSetWebFont() {
@@ -153,7 +153,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
@@ -250,62 +250,6 @@ void GaiaAuthFetcher::CreateAndStartGaia
@@ -232,61 +232,6 @@ void GaiaAuthFetcher::CreateAndStartGaia
network::mojom::CredentialsMode credentials_mode,
const net::NetworkTrafficAnnotationTag& traffic_annotation) {
DCHECK(!fetch_pending_) << "Tried to fetch two things at once!";
@@ -29,8 +29,7 @@
- if (!body.empty())
- resource_request->method = "POST";
-
- if (!headers.empty())
- resource_request->headers.AddHeadersFromString(headers);
- resource_request->headers = request_headers;
-
- resource_request->credentials_mode = credentials_mode;
-
@@ -44,7 +43,7 @@
- url_loader_->SetAllowHttpErrorResults(true);
-
- VLOG(2) << "Gaia fetcher URL: " << gaia_gurl.spec();
- VLOG(2) << "Gaia fetcher headers: " << headers;
- VLOG(2) << "Gaia fetcher headers: " << request_headers.ToString();
- VLOG(2) << "Gaia fetcher body: " << body;
-
- // Fetchers are sometimes cancelled because a network change was detected,
@@ -2,7 +2,46 @@
--- a/components/gcm_driver/gcm_client_impl.cc
+++ b/components/gcm_driver/gcm_client_impl.cc
@@ -432,6 +432,7 @@ void GCMClientImpl::StartGCM() {
@@ -296,38 +296,6 @@ void GCMClientImpl::Initialize(
}
void GCMClientImpl::Start(StartMode start_mode) {
- DCHECK_NE(UNINITIALIZED, state_);
- DCHECK(io_task_runner_->RunsTasksInCurrentSequence());
-
- if (state_ == LOADED) {
- // Start the GCM if not yet.
- if (start_mode == IMMEDIATE_START) {
- // Give up the scheduling to wipe out the store since now some one starts
- // to use GCM.
- destroying_gcm_store_ptr_factory_.InvalidateWeakPtrs();
-
- StartGCM();
- }
- return;
- }
-
- // The delay start behavior will be abandoned when Start has been called
- // once with IMMEDIATE_START behavior.
- if (start_mode == IMMEDIATE_START)
- start_mode_ = IMMEDIATE_START;
-
- // Bail out if the loading is not started or completed.
- if (state_ != INITIALIZED)
- return;
-
- // Once the loading is completed, the check-in will be initiated.
- // If we're in lazy start mode, don't create a new store since none is really
- // using GCM functionality yet.
- gcm_store_->Load((start_mode == IMMEDIATE_START) ? GCMStore::CREATE_IF_MISSING
- : GCMStore::DO_NOT_CREATE,
- base::BindOnce(&GCMClientImpl::OnLoadCompleted,
- weak_ptr_factory_.GetWeakPtr()));
- state_ = LOADING;
}
void GCMClientImpl::OnLoadCompleted(
@@ -431,6 +399,7 @@ void GCMClientImpl::StartGCM() {
void GCMClientImpl::InitializeMCSClient() {
DCHECK(network_connection_tracker_);
@@ -10,7 +49,37 @@
std::vector<GURL> endpoints;
endpoints.push_back(gservices_settings_.GetMCSMainEndpoint());
GURL fallback_endpoint = gservices_settings_.GetMCSFallbackEndpoint();
@@ -611,23 +612,6 @@ void GCMClientImpl::RemoveHeartbeatInter
@@ -482,8 +451,6 @@ void GCMClientImpl::OnReady(const std::v
void GCMClientImpl::StartMCSLogin() {
DCHECK_EQ(READY, state_);
DCHECK(device_checkin_info_.IsValid());
- mcs_client_->Login(device_checkin_info_.android_id,
- device_checkin_info_.secret);
}
void GCMClientImpl::DestroyStoreWhenNotNeeded() {
@@ -554,8 +521,6 @@ void GCMClientImpl::SetLastTokenFetchTim
void GCMClientImpl::UpdateHeartbeatTimer(
std::unique_ptr<base::RetainingOneShotTimer> timer) {
DCHECK(io_task_runner_->RunsTasksInCurrentSequence());
- DCHECK(mcs_client_);
- mcs_client_->UpdateHeartbeatTimer(std::move(timer));
}
void GCMClientImpl::AddInstanceIDData(const std::string& app_id,
@@ -598,35 +563,14 @@ void GCMClientImpl::GetInstanceIDData(co
void GCMClientImpl::AddHeartbeatInterval(const std::string& scope,
int interval_ms) {
DCHECK(io_task_runner_->RunsTasksInCurrentSequence());
- DCHECK(mcs_client_);
- mcs_client_->AddHeartbeatInterval(scope, interval_ms);
}
void GCMClientImpl::RemoveHeartbeatInterval(const std::string& scope) {
DCHECK(io_task_runner_->RunsTasksInCurrentSequence());
- DCHECK(mcs_client_);
- mcs_client_->RemoveHeartbeatInterval(scope);
}
void GCMClientImpl::StartCheckin() {
DCHECK(io_task_runner_->RunsTasksInCurrentSequence());
@@ -34,7 +103,7 @@
}
void GCMClientImpl::OnCheckinCompleted(
@@ -684,24 +668,6 @@ void GCMClientImpl::SetGServicesSettings
@@ -683,24 +627,6 @@ void GCMClientImpl::SetGServicesSettings
void GCMClientImpl::SchedulePeriodicCheckin() {
DCHECK(io_task_runner_->RunsTasksInCurrentSequence());
@@ -59,3 +128,29 @@
}
base::TimeDelta GCMClientImpl::GetTimeToNextCheckin() const {
@@ -1124,25 +1050,6 @@ void GCMClientImpl::Send(const std::stri
const OutgoingMessage& message) {
DCHECK_EQ(state_, READY);
DCHECK(io_task_runner_->RunsTasksInCurrentSequence());
-
- mcs_proto::DataMessageStanza stanza;
- stanza.set_ttl(message.time_to_live);
- stanza.set_sent(clock_->Now().ToInternalValue() /
- base::Time::kMicrosecondsPerSecond);
- stanza.set_id(message.id);
- stanza.set_from(kSendMessageFromValue);
- stanza.set_to(receiver_id);
- stanza.set_category(app_id);
-
- for (auto iter = message.data.begin(); iter != message.data.end(); ++iter) {
- mcs_proto::AppData* app_data = stanza.add_app_data();
- app_data->set_key(iter->first);
- app_data->set_value(iter->second);
- }
-
- MCSMessage mcs_message(stanza);
- DVLOG(1) << "MCS message size: " << mcs_message.size();
- mcs_client_->SendMessage(mcs_message);
}
std::string GCMClientImpl::GetStateString() const {
@@ -197,7 +197,7 @@
#if BUILDFLAG(ENABLE_BOUND_SESSION_CREDENTIALS)
--- a/components/google/core/common/google_util.cc
+++ b/components/google/core/common/google_util.cc
@@ -32,117 +32,6 @@ namespace google_util {
@@ -33,117 +33,6 @@ namespace google_util {
namespace {
@@ -314,8 +314,8 @@
-
} // namespace
// Global functions -----------------------------------------------------------
@@ -150,13 +39,6 @@ bool IsGoogleSearchSubdomainUrl(const GU
BASE_FEATURE(kIsViewerGoogleSearchUrl,
@@ -155,13 +44,6 @@ BASE_FEATURE(kIsViewerGoogleSearchUrl,
const char kGoogleHomepageURL[] = "trk:113:https://www.google.com/";
bool HasGoogleSearchQueryParam(std::string_view str) {
@@ -329,7 +329,7 @@
return false;
}
@@ -167,170 +49,53 @@ std::string GetGoogleLocale(const std::s
@@ -172,175 +54,53 @@ std::string GetGoogleLocale(const std::s
GURL AppendGoogleLocaleParam(const GURL& url,
const std::string& application_locale) {
@@ -445,7 +445,12 @@
- // Make sure the path is a known search path.
- std::string_view path(url.path_piece());
- bool is_home_page_base = IsPathHomePageBase(path);
- if (!is_home_page_base && path != "/search" && path != "/imgres") {
- bool is_search_url =
- is_home_page_base || path == "/search" || path == "/imgres";
- if (base::FeatureList::IsEnabled(kIsViewerGoogleSearchUrl)) {
- is_search_url |= path == "/viewer" || base::StartsWith(path, "/viewer/");
- }
- if (!is_search_url) {
- return false;
- }
-
@@ -565,7 +570,7 @@
bool IsProbablyGoogleSearchUrl(const GURL& url) {
--- a/components/search_engines/template_url.cc
+++ b/components/search_engines/template_url.cc
@@ -615,10 +615,7 @@ std::u16string TemplateURLRef::SearchTer
@@ -608,10 +608,7 @@ std::u16string TemplateURLRef::SearchTer
bool TemplateURLRef::HasGoogleBaseURLs(
const SearchTermsData& search_terms_data) const {
ParseIfNecessary(search_terms_data);
@@ -681,7 +686,7 @@
} // namespace variations
--- a/content/browser/preloading/prefetch/prefetch_container.cc
+++ b/content/browser/preloading/prefetch/prefetch_container.cc
@@ -999,7 +999,7 @@ void PrefetchContainer::AddRedirectHop(c
@@ -949,7 +949,7 @@ void PrefetchContainer::AddRedirectHop(c
// some which are added by throttles). These aren't yet supported for
// prefetch, including browsing topics and client hints.
net::HttpRequestHeaders updated_headers;
@@ -692,7 +697,7 @@
--- a/net/base/url_util.cc
+++ b/net/base/url_util.cc
@@ -519,28 +519,6 @@ bool HasGoogleHost(const GURL& url) {
@@ -538,28 +538,6 @@ bool HasGoogleHost(const GURL& url) {
}
bool IsGoogleHost(std::string_view host) {
@@ -7,26 +7,26 @@
--- a/chrome/BUILD.gn
+++ b/chrome/BUILD.gn
@@ -372,7 +372,6 @@ if (!is_android && !is_mac) {
@@ -367,7 +367,6 @@ if (!is_android && !is_mac) {
}
data_deps += [
- "//chrome/browser/resources/media/mei_preload:component",
"//chrome/browser/web_applications/isolated_web_apps/key_distribution/preload:component",
"//components/webapps/isolated_web_apps/preload:component",
"//third_party/widevine/cdm",
]
@@ -1202,7 +1201,6 @@ if (is_win) {
@@ -1181,7 +1180,6 @@ if (is_win) {
":optimization_guide_library",
":swiftshader_binaries",
":widevine_cdm_library",
- "//chrome/browser/resources/media/mei_preload:component_bundle",
"//chrome/browser/web_applications/isolated_web_apps/key_distribution/preload:component_bundle",
"//components/webapps/isolated_web_apps/preload:component_bundle",
]
--- a/chrome/browser/resources/BUILD.gn
+++ b/chrome/browser/resources/BUILD.gn
@@ -88,11 +88,6 @@ group("resources") {
public_deps += [ "accessibility:reading_mode_gdocs_extension_resources" ]
@@ -104,11 +104,6 @@ group("resources") {
]
}
- if (is_mac) {
@@ -35,5 +35,5 @@
- ]
- }
if (is_win || is_mac || is_linux || is_chromeos) {
public_deps += [
if (is_win || is_mac || is_linux || is_chromeos || is_desktop_android) {
public_deps += [ "discards:resources" ]
@@ -5,7 +5,7 @@
--- a/components/network_time/network_time_tracker.cc
+++ b/components/network_time/network_time_tracker.cc
@@ -282,7 +282,7 @@ void NetworkTimeTracker::UpdateNetworkTi
@@ -279,7 +279,7 @@ void NetworkTimeTracker::UpdateNetworkTi
}
bool NetworkTimeTracker::AreTimeFetchesEnabled() const {
@@ -1,6 +1,6 @@
--- a/components/browsing_data/content/browsing_data_model.cc
+++ b/components/browsing_data/content/browsing_data_model.cc
@@ -998,12 +998,6 @@ void BrowsingDataModel::PopulateFromDisk
@@ -991,12 +991,6 @@ void BrowsingDataModel::PopulateFromDisk
base::FeatureList::IsEnabled(network::features::kSharedStorageAPI);
bool is_shared_dictionary_enabled = base::FeatureList::IsEnabled(
network::features::kCompressionDictionaryTransportBackend);
@@ -13,7 +13,7 @@
base::RepeatingClosure completion =
base::BindRepeating([](const base::OnceClosure&) {},
@@ -1040,27 +1034,7 @@ void BrowsingDataModel::PopulateFromDisk
@@ -1033,27 +1027,7 @@ void BrowsingDataModel::PopulateFromDisk
base::BindOnce(&OnSharedDictionaryUsageLoaded, this, completion));
}
@@ -52,7 +52,7 @@
}
// static
@@ -861,7 +861,7 @@ void PrivacySandboxSettingsImpl::SetTopi
@@ -888,7 +888,7 @@ void PrivacySandboxSettingsImpl::SetTopi
}
bool PrivacySandboxSettingsImpl::IsPrivacySandboxRestricted() const {
@@ -61,7 +61,7 @@
}
bool PrivacySandboxSettingsImpl::IsPrivacySandboxCurrentlyUnrestricted() const {
@@ -947,11 +947,7 @@ PrivacySandboxSettingsImpl::GetPrivacySa
@@ -957,11 +957,7 @@ PrivacySandboxSettingsImpl::GetPrivacySa
return Status::kIncognitoProfile;
}
@@ -164,7 +164,7 @@
// static
--- a/content/browser/interest_group/ad_auction_service_impl.cc
+++ b/content/browser/interest_group/ad_auction_service_impl.cc
@@ -191,11 +191,6 @@ AdAuctionServiceImpl::BiddingAndAuctionD
@@ -192,11 +192,6 @@ AdAuctionServiceImpl::BiddingAndAuctionD
void AdAuctionServiceImpl::CreateMojoService(
RenderFrameHost* render_frame_host,
mojo::PendingReceiver<blink::mojom::AdAuctionService> receiver) {
@@ -178,7 +178,7 @@
void AdAuctionServiceImpl::JoinInterestGroup(
--- a/content/browser/storage_partition_impl.cc
+++ b/content/browser/storage_partition_impl.cc
@@ -1483,38 +1483,7 @@ void StoragePartitionImpl::Initialize(
@@ -1484,38 +1484,7 @@ void StoragePartitionImpl::Initialize(
bucket_manager_ = std::make_unique<BucketManager>(this);
@@ -217,7 +217,7 @@
GeneratedCodeCacheSettings settings =
GetContentClient()->browser()->GetGeneratedCodeCacheSettings(
@@ -1543,8 +1512,6 @@ void StoragePartitionImpl::Initialize(
@@ -1544,8 +1513,6 @@ void StoragePartitionImpl::Initialize(
font_access_manager_ = FontAccessManager::Create();
@@ -226,7 +226,7 @@
#if BUILDFLAG(ENABLE_LIBRARY_CDMS)
if (is_in_memory()) {
@@ -1568,11 +1535,6 @@ void StoragePartitionImpl::Initialize(
@@ -1569,11 +1536,6 @@ void StoragePartitionImpl::Initialize(
std::make_unique<SharedStorageHeaderObserver>(this);
}
@@ -237,10 +237,10 @@
- }
}
void StoragePartitionImpl::OnStorageServiceDisconnected() {
void StoragePartitionImpl::ResetSessionStorageConnections() {
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -3949,12 +3949,6 @@ void WebContentsImpl::Init(const WebCont
@@ -4196,12 +4196,6 @@ void WebContentsImpl::Init(const WebCont
DateTimeChooser::CreateDateTimeChooser(this);
#endif
@@ -255,7 +255,7 @@
BtmWebContentsObserver::MaybeCreateForWebContents(this);
--- a/content/services/auction_worklet/private_aggregation_bindings.cc
+++ b/content/services/auction_worklet/private_aggregation_bindings.cc
@@ -402,56 +402,6 @@ PrivateAggregationBindings::~PrivateAggr
@@ -406,53 +406,6 @@ PrivateAggregationBindings::~PrivateAggr
void PrivateAggregationBindings::AttachToContext(
v8::Local<v8::Context> context) {
@@ -281,8 +281,6 @@
- send_histogram_report_function)
- .Check();
-
- if (blink::features::kPrivateAggregationApiProtectedAudienceExtensionsEnabled
- .Get()) {
- v8::Local<v8::Function> report_contribution_for_event_function =
- v8::Function::New(
- context, &PrivateAggregationBindings::ContributeToHistogramOnEvent,
@@ -294,7 +292,6 @@
- v8_helper_->CreateStringFromLiteral("contributeToHistogramOnEvent"),
- report_contribution_for_event_function)
- .Check();
- }
-
- v8::Local<v8::Function> enable_debug_mode_function =
- v8::Function::New(context, &PrivateAggregationBindings::EnableDebugMode,
@@ -2,7 +2,7 @@
--- a/chrome/browser/media/webrtc/webrtc_log_uploader.cc
+++ b/chrome/browser/media/webrtc/webrtc_log_uploader.cc
@@ -183,31 +183,13 @@ void WebRtcLogUploader::OnLoggingStopped
@@ -179,31 +179,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,
@@ -224,28 +206,7 @@ void WebRtcLogUploader::PrepareMultipart
@@ -220,28 +202,7 @@ void WebRtcLogUploader::PrepareMultipart
DCHECK(!compressed_log.empty());
DCHECK(meta_data.get());
@@ -65,7 +65,7 @@
}
void WebRtcLogUploader::UploadStoredLog(
@@ -312,48 +273,6 @@ void WebRtcLogUploader::LoggingStoppedDo
@@ -308,48 +269,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
@@ -114,7 +114,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -135,7 +135,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
@@ -680,12 +680,6 @@ std::vector<url::Origin> ChromeContentBr
@@ -677,12 +677,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
@@ -300,17 +300,7 @@ bool ChromeContentVerifierDelegate::IsFr
@@ -303,17 +303,7 @@ bool ChromeContentVerifierDelegate::IsFr
// between which extensions are considered in-store.
// See https://crbug.com/766806 for details.
if (!InstallVerifier::IsFromStore(extension, context_)) {
@@ -60,15 +60,15 @@
}
--- a/chrome/browser/extensions/extension_migrator.h
+++ b/chrome/browser/extensions/extension_migrator.h
@@ -9,6 +9,7 @@
@@ -10,6 +10,7 @@
#include "base/memory/raw_ptr.h"
#include "chrome/browser/extensions/external_loader.h"
#include "extensions/buildflags/buildflags.h"
+#include "url/gurl.h"
class Profile;
static_assert(BUILDFLAG(ENABLE_EXTENSIONS_CORE));
@@ -40,6 +41,7 @@ class ExtensionMigrator : public Externa
@@ -43,6 +44,7 @@ class ExtensionMigrator : public Externa
raw_ptr<Profile> profile_;
const std::string old_id_;
const std::string new_id_;
@@ -177,7 +177,7 @@
fetch->oauth2_attempt_count++;
--- a/extensions/common/extension_urls.cc
+++ b/extensions/common/extension_urls.cc
@@ -68,8 +68,6 @@ GURL AppendUtmSource(const GURL& url, st
@@ -77,8 +77,6 @@ GURL AppendUtmSource(const GURL& url, st
GURL GetWebstoreExtensionsCategoryURL() {
GURL base_url = GetNewWebstoreLaunchURL();
@@ -55,7 +55,7 @@
base::FEATURE_ENABLED_BY_DEFAULT),
--- a/services/network/public/cpp/features.cc
+++ b/services/network/public/cpp/features.cc
@@ -124,12 +124,7 @@ BASE_FEATURE(kSplitAuthCacheByNetworkIso
@@ -108,12 +108,7 @@ BASE_FEATURE(kSplitAuthCacheByNetworkIso
// Enable usage of hardcoded DoH upgrade mapping for use in automatic mode.
BASE_FEATURE(kDnsOverHttpsUpgrade,
"DnsOverHttpsUpgrade",
@@ -1,26 +1,28 @@
--- a/chrome/browser/extensions/api/developer_private/extension_info_generator_desktop.cc
+++ b/chrome/browser/extensions/api/developer_private/extension_info_generator_desktop.cc
@@ -132,17 +132,6 @@ void ExtensionInfoGenerator::FillExtensi
info.controlled_info.emplace();
info.controlled_info->text =
l10n_util::GetStringUTF8(IDS_EXTENSIONS_INSTALL_LOCATION_ENTERPRISE);
- } else {
- // Create Safety Hub information for any non-enterprise extension.
- developer::SafetyCheckWarningReason warning_reason =
- ExtensionSafetyCheckUtils::GetSafetyCheckWarningReason(extension,
- profile);
- if (warning_reason != developer::SafetyCheckWarningReason::kNone) {
- info.safety_check_warning_reason = warning_reason;
- info.safety_check_text =
- ExtensionSafetyCheckUtils::GetSafetyCheckWarningStrings(
- warning_reason, state);
- }
--- a/chrome/browser/extensions/api/developer_private/extension_info_generator.cc
+++ b/chrome/browser/extensions/api/developer_private/extension_info_generator.cc
@@ -864,19 +864,6 @@ void ExtensionInfoGenerator::FillExtensi
toolbar_actions_model->IsActionPinned(extension.id());
}
bool is_enabled = state == developer::ExtensionState::kEnabled;
- // MV2 deprecation.
- ManifestV2ExperimentManager* mv2_experiment_manager =
- ManifestV2ExperimentManager::Get(profile);
- CHECK(mv2_experiment_manager);
- info.is_affected_by_mv2_deprecation =
- mv2_experiment_manager->IsExtensionAffected(extension);
- info.did_acknowledge_mv2_deprecation_notice =
- mv2_experiment_manager->DidUserAcknowledgeNotice(extension.id());
- if (info.web_store_url.length() > 0) {
- info.recommendations_url =
- extension_urls::GetNewWebstoreItemRecommendationsUrl(extension.id())
- .spec();
- }
// Whether the extension can be uploaded as an account extension.
// `CanUploadAsAccountExtension` should already check for the feature flag
--- a/chrome/browser/extensions/extension_management.cc
+++ b/chrome/browser/extensions/extension_management.cc
@@ -317,31 +317,7 @@ bool ExtensionManagement::IsAllowedManif
@@ -355,31 +355,7 @@ bool ExtensionManagement::IsAllowedManif
int manifest_version,
const std::string& extension_id,
Manifest::Type manifest_type) {
@@ -52,7 +54,7 @@
}
bool ExtensionManagement::IsAllowedManifestVersion(const Extension* extension) {
@@ -362,26 +338,8 @@ bool ExtensionManagement::IsExemptFromMV
@@ -400,26 +376,8 @@ bool ExtensionManagement::IsExemptFromMV
return false;
}
@@ -126,18 +128,18 @@
// Returns true if the given `stage` is one in which extension enablement should
--- a/chrome/browser/ui/webui/extensions/extensions_ui.cc
+++ b/chrome/browser/ui/webui/extensions/extensions_ui.cc
@@ -481,7 +481,7 @@ content::WebUIDataSource* CreateAndAddEx
@@ -482,7 +482,7 @@ content::WebUIDataSource* CreateAndAddEx
extensions_features::kExtensionsMenuAccessControlWithPermittedSites));
source->AddBoolean(
"safetyHubThreeDotDetails",
- base::FeatureList::IsEnabled(features::kSafetyHubThreeDotDetails));
+ false);
#if BUILDFLAG(IS_ANDROID)
source->AddResourcePath("images/product_logo.png",
// MV2 deprecation.
auto* mv2_experiment_manager = ManifestV2ExperimentManager::Get(profile);
--- a/extensions/common/extension.cc
+++ b/extensions/common/extension.cc
@@ -96,13 +96,6 @@ bool IsManifestSupported(int manifest_ve
@@ -103,13 +103,6 @@ bool IsManifestSupported(int manifest_ve
// Supported versions are always safe.
if (manifest_version >= kMinimumSupportedManifestVersion &&
manifest_version <= kMaximumSupportedManifestVersion) {
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -2,7 +2,7 @@
--- a/net/tools/transport_security_state_generator/transport_security_state_generator.cc
+++ b/net/tools/transport_security_state_generator/transport_security_state_generator.cc
@@ -132,7 +132,7 @@ bool CheckDuplicateEntries(const Transpo
@@ -129,7 +129,7 @@ bool CheckDuplicateEntries(const Transpo
bool CheckNoopEntries(const TransportSecurityStateEntries& entries) {
for (const auto& entry : entries) {
if (!entry->force_https && entry->pinset.empty()) {
@@ -0,0 +1,10 @@
--- a/chrome/browser/ui/views/accelerator_table.cc
+++ b/chrome/browser/ui/views/accelerator_table.cc
@@ -132,7 +132,6 @@ const AcceleratorMapping kAcceleratorMap
{ui::VKEY_OEM_PLUS, ui::EF_PLATFORM_ACCELERATOR, IDC_ZOOM_PLUS},
{ui::VKEY_ADD, ui::EF_PLATFORM_ACCELERATOR, IDC_ZOOM_PLUS},
- {ui::VKEY_F1, ui::EF_NONE, IDC_HELP_PAGE_VIA_KEYBOARD},
{ui::VKEY_F3, ui::EF_NONE, IDC_FIND_NEXT},
{ui::VKEY_F3, ui::EF_SHIFT_DOWN, IDC_FIND_PREVIOUS},
{ui::VKEY_F4, ui::EF_CONTROL_DOWN, IDC_CLOSE_TAB},
File diff suppressed because it is too large Load Diff
@@ -1,7 +1,7 @@
# Disables translation and removes the "Translate to" context menu when --translate-script-url flag is not set
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
@@ -173,6 +173,7 @@
@@ -176,6 +176,7 @@
#include "components/supervised_user/core/browser/supervised_user_preferences.h"
#include "components/supervised_user/core/browser/supervised_user_service.h"
#include "components/supervised_user/core/browser/supervised_user_url_filter.h"
@@ -9,7 +9,7 @@
#include "components/translate/core/browser/translate_download_manager.h"
#include "components/translate/core/browser/translate_manager.h"
#include "components/translate/core/browser/translate_prefs.h"
@@ -2241,6 +2242,7 @@ void RenderViewContextMenu::AppendPageIt
@@ -2179,6 +2180,7 @@ void RenderViewContextMenu::AppendPageIt
}
if (CanTranslate(/*menu_logging=*/true)) {
@@ -47,7 +47,7 @@
request_pending_ = true;
--- a/components/translate/core/browser/translate_manager.cc
+++ b/components/translate/core/browser/translate_manager.cc
@@ -837,8 +837,9 @@ void TranslateManager::FilterIsTranslate
@@ -821,8 +821,9 @@ void TranslateManager::FilterIsTranslate
TriggerDecision::kDisabledOffline);
}
File diff suppressed because it is too large Load Diff
+183 -91
View File
@@ -34,7 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
namespace {
#if BUILDFLAG(IS_WIN)
@@ -164,20 +166,30 @@ std::vector<importer::SourceProfile> Det
@@ -171,20 +173,30 @@ std::vector<user_data_importer::SourcePr
if (shell_integration::IsFirefoxDefaultBrowser()) {
DetectFirefoxProfiles(locale, &profiles);
DetectBuiltinWindowsProfiles(&profiles);
@@ -65,15 +65,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ }
#endif
if (include_interactive_profiles) {
importer::SourceProfile bookmarks_profile;
@@ -227,5 +239,11 @@ void ImporterList::SourceProfilesLoaded(
user_data_importer::SourceProfile bookmarks_profile;
@@ -234,5 +246,11 @@ void ImporterList::SourceProfilesLoaded(
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
source_profiles_.assign(profiles.begin(), profiles.end());
+
+ for (auto& profile : source_profiles_) {
+ if (profile.services_supported & importer::PASSWORDS)
+ profile.services_supported ^= importer::PASSWORDS;
+ if (profile.services_supported & user_data_importer::PASSWORDS)
+ profile.services_supported ^= user_data_importer::PASSWORDS;
+ }
+
std::move(profiles_loaded_callback).Run();
@@ -97,19 +97,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
public_deps = [
"//mojo/public/mojom/base",
@@ -81,6 +85,9 @@ source_set("importer") {
@@ -82,19 +86,28 @@ source_set("importer") {
sources = [
"firefox_importer_utils.cc",
"firefox_importer_utils.h",
+ "chrome_importer_constants.h",
+ "chrome_importer_utils.cc",
+ "chrome_importer_utils.h",
"imported_bookmark_entry.cc",
"imported_bookmark_entry.h",
"importer_autofill_form_data_entry.cc",
@@ -93,14 +100,20 @@ source_set("importer") {
"importer_url_row.cc",
"importer_url_row.h",
"importer_autofill_form_data_entry.h",
"importer_bridge.cc",
"importer_bridge.h",
"pstore_declarations.h",
+ "scoped_copy_file.cc",
+ "scoped_copy_file.h",
@@ -130,7 +128,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
]
} else if (is_win) {
sources += [
@@ -111,6 +124,7 @@ source_set("importer") {
@@ -105,6 +118,7 @@ source_set("importer") {
"ie_importer_utils_win.h",
"importer_test_registry_overrider_win.cc",
"importer_test_registry_overrider_win.h",
@@ -138,10 +136,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
]
}
deps = [
@@ -118,8 +132,17 @@ source_set("importer") {
"//chrome/app:generated_resources",
@@ -113,10 +127,19 @@ source_set("importer") {
"//chrome/common:ini_parser",
"//components/favicon_base",
"//components/user_data_importer/common",
+ "//components/webdata/common",
"//content/public/common",
+ "//extensions/buildflags",
@@ -156,9 +154,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ ]
+ }
}
--- a/chrome/common/importer/importer_type.h
+++ b/chrome/common/importer/importer_type.h
@@ -28,6 +28,14 @@ enum ImporterType {
if (!is_android) {
--- a/components/user_data_importer/common/importer_type.h
+++ b/components/user_data_importer/common/importer_type.h
@@ -28,6 +28,16 @@ enum ImporterType {
#if BUILDFLAG(IS_WIN)
TYPE_EDGE = 6,
#endif
@@ -170,12 +170,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ TYPE_WHALE = 69,
+ TYPE_ARC = 70,
+ TYPE_BRAVE = 71,
+ TYPE_DIA = 72,
+ TYPE_PERPLEXITY_COMET = 73,
};
} // namespace importer
} // namespace user_data_importer
--- a/tools/metrics/histograms/metadata/sql/histograms.xml
+++ b/tools/metrics/histograms/metadata/sql/histograms.xml
@@ -38,6 +38,7 @@ chromium-metrics-reviews@google.com.
@@ -39,6 +39,7 @@ chromium-metrics-reviews@google.com.
<variant name="DataSharingGroupStorage" summary="DataSharingGroupStorage"/>
<variant name="DBSCSessions" summary="DBSCSessions"/>
<variant name="DIPS" summary="DIPS"/>
@@ -183,15 +185,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<variant name="FileIndexService" summary="FileIndexService"/>
<variant name="FirefoxImporter" summary="FirefoxImporter"/>
<variant name="FirstPartySets" summary="FirstPartySets"/>
--- a/chrome/common/importer/importer_data_types.h
+++ b/chrome/common/importer/importer_data_types.h
--- a/components/user_data_importer/common/importer_data_types.h
+++ b/components/user_data_importer/common/importer_data_types.h
@@ -29,7 +29,8 @@ enum ImportItem {
SEARCH_ENGINES = 1 << 4,
HOME_PAGE = 1 << 5,
SEARCH_ENGINES = 1 << 4,
HOME_PAGE = 1 << 5,
AUTOFILL_FORM_DATA = 1 << 6,
- ALL = (1 << 7) - 1 // All the bits should be 1, hence the -1.
+ EXTENSIONS = 1 << 7,
+ ALL = (1 << 8) - 1 // All the bits should be 1, hence the -1.
- ALL = (1 << 7) - 1 // All the bits should be 1, hence the -1.
+ EXTENSIONS = 1 << 7,
+ ALL = (1 << 8) - 1 // All the bits should be 1, hence the -1.
};
// Information about a profile needed by an importer to do import work.
@@ -202,60 +204,59 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ VISIT_SOURCE_CHROME_IMPORTED = 4,
};
} // namespace importer
} // 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 @@
#if BUILDFLAG(IS_WIN)
IPC_ENUM_TRAITS_MIN_MAX_VALUE(importer::ImporterType,
importer::TYPE_UNKNOWN,
- importer::TYPE_EDGE)
+ importer::TYPE_BRAVE)
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImporterType,
user_data_importer::TYPE_UNKNOWN,
- user_data_importer::TYPE_EDGE)
+ user_data_importer::TYPE_PERPLEXITY_COMET)
#else
IPC_ENUM_TRAITS_MIN_MAX_VALUE(importer::ImporterType,
importer::TYPE_UNKNOWN,
- importer::TYPE_BOOKMARKS_FILE)
+ importer::TYPE_BRAVE)
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImporterType,
user_data_importer::TYPE_UNKNOWN,
- user_data_importer::TYPE_BOOKMARKS_FILE)
+ user_data_importer::TYPE_PERPLEXITY_COMET)
#endif
IPC_ENUM_TRAITS_MIN_MAX_VALUE(importer::ImportItem,
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImportItem,
--- a/chrome/browser/ui/webui/settings/import_data_handler.cc
+++ b/chrome/browser/ui/webui/settings/import_data_handler.cc
@@ -146,6 +146,9 @@ void ImportDataHandler::HandleImportData
if (*type_dict.FindBool(prefs::kImportDialogSearchEngine)) {
selected_items |= importer::SEARCH_ENGINES;
selected_items |= user_data_importer::SEARCH_ENGINES;
}
+ if (*type_dict.FindBool(prefs::kImportDialogExtensions)) {
+ selected_items |= importer::EXTENSIONS;
+ selected_items |= user_data_importer::EXTENSIONS;
+ }
const importer::SourceProfile& source_profile =
const user_data_importer::SourceProfile& source_profile =
importer_list_->GetSourceProfileAt(browser_index);
@@ -223,6 +226,8 @@ void ImportDataHandler::SendBrowserProfi
(browser_services & importer::SEARCH_ENGINES) != 0);
browser_profile.Set("autofillFormData",
(browser_services & importer::AUTOFILL_FORM_DATA) != 0);
@@ -225,6 +228,8 @@ void ImportDataHandler::SendBrowserProfi
browser_profile.Set(
"autofillFormData",
(browser_services & user_data_importer::AUTOFILL_FORM_DATA) != 0);
+ browser_profile.Set("extensions",
+ (browser_services & importer::EXTENSIONS) != 0);
+ (browser_services & user_data_importer::EXTENSIONS) != 0);
browser_profiles.Append(std::move(browser_profile));
}
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -4231,6 +4231,10 @@ inline constexpr char kServiceWorkerToCo
// is set as a SharedWorker script URL.
@@ -4273,6 +4273,9 @@ inline constexpr char kServiceWorkerToCo
inline constexpr char kSharedWorkerBlobURLFixEnabled[] =
"worker.shared_worker_blob_url_fix_enabled";
+
+inline constexpr char kImportDialogExtensions[] =
+ "import_dialog_extensions";
+
} // namespace prefs
#endif // CHROME_COMMON_PREF_NAMES_H_
// Boolean indicating whether clearing window.name when the navigation is
// top-level, cross-site and swaps BrowsingContextGroup is allowed or not.
inline constexpr char kClearWindowNameForNewBrowsingContextGroup[] =
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -1148,6 +1148,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -1157,6 +1157,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kImportDialogSearchEngine] =
settings_api::PrefType::kBoolean;
@@ -274,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"
@@ -207,6 +208,7 @@ void SettingsUI::RegisterProfilePrefs(
@@ -202,6 +203,7 @@ void SettingsUI::RegisterProfilePrefs(
registry->RegisterBooleanPref(prefs::kImportDialogHistory, true);
registry->RegisterBooleanPref(prefs::kImportDialogSavedPasswords, true);
registry->RegisterBooleanPref(prefs::kImportDialogSearchEngine, true);
@@ -282,7 +283,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
}
SettingsUI::SettingsUI(content::WebUI* web_ui)
@@ -251,7 +253,7 @@ SettingsUI::SettingsUI(content::WebUI* w
@@ -231,7 +233,7 @@ SettingsUI::SettingsUI(content::WebUI* w
AddSettingsPageUIHandler(std::make_unique<DownloadsHandler>(profile));
AddSettingsPageUIHandler(std::make_unique<ExtensionControlHandler>());
AddSettingsPageUIHandler(std::make_unique<FontHandler>(profile));
@@ -293,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
@@ -849,6 +849,8 @@ void AddImportDataStrings(content::WebUI
@@ -907,6 +907,8 @@ void AddImportDataStrings(content::WebUI
{"importHistory", IDS_SETTINGS_IMPORT_HISTORY_CHECKBOX},
{"importFavorites", IDS_SETTINGS_IMPORT_FAVORITES_CHECKBOX},
{"importPasswords", IDS_SETTINGS_IMPORT_PASSWORDS_CHECKBOX},
@@ -318,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
@@ -1524,6 +1524,10 @@ static_library("ui") {
@@ -1311,6 +1311,10 @@ static_library("ui") {
"webui/settings/accessibility_main_handler.h",
"webui/settings/appearance_handler.cc",
"webui/settings/appearance_handler.h",
@@ -329,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",
@@ -1679,6 +1683,13 @@ static_library("ui") {
@@ -1463,6 +1467,13 @@ static_library("ui") {
]
}
@@ -342,17 +343,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
# Non-android deps for "ui" target.
deps += [
"//base",
":browser_tab_strip",
--- a/chrome/browser/ui/webui/settings/import_data_handler.h
+++ b/chrome/browser/ui/webui/settings/import_data_handler.h
@@ -38,7 +38,9 @@ class ImportDataHandler : public Setting
@@ -36,9 +36,9 @@ class ImportDataHandler : public Setting
void RegisterMessages() override;
void OnJavascriptAllowed() override {}
void OnJavascriptDisallowed() override;
private:
- void StartImport(const importer::SourceProfile& source_profile,
-
+ friend class BraveImportDataHandler;
+ private:
+ virtual void StartImport(const importer::SourceProfile& source_profile,
private:
- void StartImport(const user_data_importer::SourceProfile& source_profile,
+ virtual void StartImport(const user_data_importer::SourceProfile& source_profile,
uint16_t imported_items);
// Handler for the "importData" message. First argument is the selected
@@ -369,7 +371,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
"external_process_importer_client.h",
"external_process_importer_host.h",
"firefox_profile_lock.h",
@@ -36,6 +40,10 @@ source_set("impl") {
@@ -37,6 +41,10 @@ source_set("impl") {
public_deps = [ "//chrome/browser:browser_public_dependencies" ]
sources = [
@@ -382,34 +384,38 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
"firefox_profile_lock.cc",
--- a/chrome/browser/importer/external_process_importer_host.h
+++ b/chrome/browser/importer/external_process_importer_host.h
@@ -78,8 +78,9 @@ class ExternalProcessImporterHost
@@ -79,8 +79,13 @@ class ExternalProcessImporterHost
void NotifyImportStarted();
void NotifyImportItemStarted(importer::ImportItem item);
void NotifyImportItemEnded(importer::ImportItem item);
void NotifyImportItemStarted(user_data_importer::ImportItem item);
void NotifyImportItemEnded(user_data_importer::ImportItem item);
- void NotifyImportEnded();
+ void virtual NotifyImportEnded();
+ friend class BraveExternalProcessImporterHost;
+ void set_parent_view(gfx::NativeView parent_view) {
+ parent_view_ = parent_view;
+ }
+ gfx::NativeView parent_view_ = gfx::NativeView();
private:
// ExternalProcessImporterHost deletes itself in OnImportEnded().
~ExternalProcessImporterHost() override;
--- a/components/history/core/browser/history_types.h
+++ b/components/history/core/browser/history_types.h
@@ -54,6 +54,8 @@ enum VisitSource {
SOURCE_FIREFOX_IMPORTED = 3,
SOURCE_IE_IMPORTED = 4,
@@ -55,6 +55,8 @@ enum VisitSource {
SOURCE_SAFARI_IMPORTED = 5,
+ SOURCE_CHROME_IMPORTED = 6,
+ SOURCE_BRAVE_IMPORTED = 7,
SOURCE_ACTOR = 6,
SOURCE_OS_MIGRATION_IMPORTED = 7,
+ SOURCE_CHROME_IMPORTED = 8,
+ SOURCE_BRAVE_IMPORTED = 9,
};
// 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
@@ -118,6 +118,8 @@ VisitSource VisitSourceFromInt(int value
case SOURCE_FIREFOX_IMPORTED:
case SOURCE_IE_IMPORTED:
@@ -119,6 +119,8 @@ VisitSource VisitSourceFromInt(int value
case SOURCE_SAFARI_IMPORTED:
case SOURCE_ACTOR:
case SOURCE_OS_MIGRATION_IMPORTED:
+ case SOURCE_CHROME_IMPORTED:
+ case SOURCE_BRAVE_IMPORTED:
return converted;
@@ -419,9 +425,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+++ b/chrome/browser/importer/in_process_importer_bridge.cc
@@ -53,6 +53,8 @@ history::VisitSource ConvertImporterVisi
return history::SOURCE_IE_IMPORTED;
case importer::VISIT_SOURCE_SAFARI_IMPORTED:
case user_data_importer::VISIT_SOURCE_SAFARI_IMPORTED:
return history::SOURCE_SAFARI_IMPORTED;
+ case importer::VISIT_SOURCE_CHROME_IMPORTED:
+ case user_data_importer::VISIT_SOURCE_CHROME_IMPORTED:
+ return history::SOURCE_CHROME_IMPORTED;
}
NOTREACHED();
@@ -429,7 +435,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") {
"importer/bookmark_html_reader.h",
sources += [
"importer/bookmarks_file_importer.cc",
"importer/bookmarks_file_importer.h",
+ "importer/brave_external_process_importer_bridge.cc",
@@ -440,10 +446,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ "importer/chrome_importer.h",
"importer/external_process_importer_bridge.cc",
"importer/external_process_importer_bridge.h",
"importer/favicon_reencode.cc",
"importer/importer.cc",
--- a/chrome/utility/services.cc
+++ b/chrome/utility/services.cc
@@ -54,7 +54,9 @@
@@ -56,7 +56,9 @@
#if !BUILDFLAG(IS_ANDROID)
#include "chrome/common/importer/profile_import.mojom.h"
@@ -453,7 +459,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "components/mirroring/service/mirroring_service.h"
#include "services/passage_embeddings/passage_embeddings_service.h"
#include "services/proxy_resolver/proxy_resolver_factory_impl.h" // nogncheck
@@ -144,6 +146,13 @@ static_assert(BUILDFLAG(ENABLE_PRINTING)
@@ -146,6 +148,13 @@ static_assert(BUILDFLAG(ENABLE_PRINTING)
namespace {
@@ -467,8 +473,8 @@ 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));
}
@@ -454,6 +463,7 @@ void RegisterMainThreadServices(mojo::Se
services.Add(RunCSVPasswordParser);
@@ -465,6 +474,7 @@ void RegisterMainThreadServices(mojo::Se
services.Add(ContentBookmarkParser);
#if !BUILDFLAG(IS_ANDROID)
+ services.Add(RunBraveProfileImporter);
@@ -477,7 +483,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
services.Add(RunPassageEmbeddingsService);
--- a/chrome/utility/importer/external_process_importer_bridge.h
+++ b/chrome/utility/importer/external_process_importer_bridge.h
@@ -69,7 +69,7 @@ class ExternalProcessImporterBridge : pu
@@ -72,7 +72,7 @@ class ExternalProcessImporterBridge : pu
std::u16string GetLocalizedString(int message_id) override;
// End ImporterBridge implementation.
@@ -513,7 +519,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
}
--- a/chrome/browser/importer/in_process_importer_bridge.h
+++ b/chrome/browser/importer/in_process_importer_bridge.h
@@ -57,7 +57,7 @@ class InProcessImporterBridge : public I
@@ -59,7 +59,7 @@ class InProcessImporterBridge : public I
std::u16string GetLocalizedString(int message_id) override;
// End ImporterBridge implementation.
@@ -527,13 +533,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
@@ -35,6 +35,7 @@ enum ImporterTypeMetrics {
void LogImporterUseToMetrics(const std::string& metric_postfix,
ImporterType type) {
user_data_importer::ImporterType type) {
+ return;
ImporterTypeMetrics metrics_type = IMPORTER_METRICS_UNKNOWN;
switch (type) {
case TYPE_UNKNOWN:
case user_data_importer::TYPE_UNKNOWN:
@@ -59,6 +60,9 @@ void LogImporterUseToMetrics(const std::
case TYPE_BOOKMARKS_FILE:
case user_data_importer::TYPE_BOOKMARKS_FILE:
metrics_type = IMPORTER_METRICS_BOOKMARKS_FILE;
break;
+ default:
@@ -544,7 +550,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Note: This leaks memory, which is the expected behavior as the factory
--- a/chrome/browser/importer/external_process_importer_client.h
+++ b/chrome/browser/importer/external_process_importer_client.h
@@ -51,10 +51,10 @@ class ExternalProcessImporterClient
@@ -48,10 +48,10 @@ class ExternalProcessImporterClient
const ExternalProcessImporterClient&) = delete;
// Launches the task to start the external process.
@@ -557,7 +563,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// chrome::mojom::ProfileImportObserver:
void OnImportStart() override;
@@ -84,6 +84,8 @@ class ExternalProcessImporterClient
@@ -82,6 +82,8 @@ class ExternalProcessImporterClient
const std::vector<ImporterAutofillFormDataEntry>&
autofill_form_data_entry_group) override;
@@ -566,7 +572,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
protected:
~ExternalProcessImporterClient() override;
@@ -99,7 +101,7 @@ class ExternalProcessImporterClient
@@ -97,7 +99,7 @@ class ExternalProcessImporterClient
// The Mojo connections need to be torn down on the same thread that created
// them, but the destructor is not guaranteed to be run on that thread so we
// tear down the connections explicitly.
@@ -575,3 +581,89 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// These variables store data being collected from the importer until the
// 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
@@ -11002,6 +11002,15 @@ Check your passwords anytime in <ph name
Microsoft Edge
</message>
</if>
+ <message name="IDS_IMPORTED_FROM_BOOKMARK_FOLDER" desc="Name for bookmark panel folder imported from another browser">
+ Imported from <ph name="BROWSER_NAME">$1<ex>Chrome</ex></ph>
+ </message>
+ <message name="IDS_EXTENSIONS_IMPORTER_LOCK_TITLE" desc="Dialog title for importer lock dialog">
+ Import profile still in use
+ </message>
+ <message name="IDS_EXTENSIONS_IMPORTER_LOCK_TEXT" desc="The message to be displayed in the importer-lock dialog">
+ To continue importing data, first close the browser you're importing from.
+ </message>
<message name="IDS_IMPORT_FROM_FIREFOX" desc="browser combo box: Mozilla Firefox">
Mozilla Firefox
</message>
--- a/chrome/browser/importer/importer_lock_dialog.h
+++ b/chrome/browser/importer/importer_lock_dialog.h
@@ -21,6 +21,11 @@ void ShowImportLockDialog(gfx::NativeWin
base::OnceCallback<void(bool)> callback,
int importer_lock_title_id = IDS_IMPORTER_LOCK_TITLE,
int importer_lock_text_id = IDS_IMPORTER_LOCK_TEXT);
+void ShowImportLockDialog(gfx::NativeView parent_view,
+ gfx::NativeWindow parent,
+ base::OnceCallback<void(bool)> callback,
+ int importer_lock_title_id = IDS_IMPORTER_LOCK_TITLE,
+ int importer_lock_text_id = IDS_IMPORTER_LOCK_TEXT);
} // namespace importer
--- a/chrome/browser/ui/views/importer/import_lock_dialog_view.cc
+++ b/chrome/browser/ui/views/importer/import_lock_dialog_view.cc
@@ -27,8 +27,36 @@ void ShowImportLockDialog(gfx::NativeWin
importer_lock_title_id, importer_lock_text_id);
}
+void ShowImportLockDialog(gfx::NativeView parent_view,
+ gfx::NativeWindow parent,
+ base::OnceCallback<void(bool)> callback,
+ int importer_lock_title_id,
+ int importer_lock_text_id) {
+ ImportLockDialogView::Show(parent_view, parent, std::move(callback),
+ importer_lock_title_id, importer_lock_text_id);
+}
+
} // namespace importer
+
+// static
+void ImportLockDialogView::Show(gfx::NativeView parent_view,
+ gfx::NativeWindow parent,
+ base::OnceCallback<void(bool)> callback,
+ int importer_lock_title_id,
+ int importer_lock_text_id) {
+ views::DialogDelegate::CreateDialogWidget(
+ new ImportLockDialogView(std::move(callback), importer_lock_title_id,
+ importer_lock_text_id),
+ parent, parent_view)
+ ->Show();
+ base::RecordAction(UserMetricsAction("ImportLockDialogView_Shown"));
+}
+
+ui::mojom::ModalType ImportLockDialogView::GetModalType() const {
+ return ui::mojom::ModalType::kChild;
+}
+
// static
void ImportLockDialogView::Show(gfx::NativeWindow parent,
base::OnceCallback<void(bool)> callback,
--- a/chrome/browser/ui/views/importer/import_lock_dialog_view.h
+++ b/chrome/browser/ui/views/importer/import_lock_dialog_view.h
@@ -23,6 +23,12 @@ class ImportLockDialogView : public view
base::OnceCallback<void(bool)> callback,
int importer_lock_title_id = IDS_IMPORTER_LOCK_TITLE,
int importer_lock_text_id = IDS_IMPORTER_LOCK_TEXT);
+ static void Show(gfx::NativeView parent_view,
+ gfx::NativeWindow parent,
+ base::OnceCallback<void(bool)> callback,
+ int importer_lock_title_id = IDS_IMPORTER_LOCK_TITLE,
+ int importer_lock_text_id = IDS_IMPORTER_LOCK_TEXT);
+ ui::mojom::ModalType GetModalType() const override;
private:
ImportLockDialogView(base::OnceCallback<void(bool)> callback,
@@ -9,7 +9,7 @@
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -2530,6 +2530,7 @@ static_library("browser") {
@@ -2617,6 +2617,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
@@ -181,6 +181,7 @@
@@ -183,6 +183,7 @@
#include "components/translate/core/common/translate_util.h"
#include "components/trusted_vault/features.h"
#include "components/ui_devtools/switches.h"
@@ -44,7 +44,7 @@
#endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -294,6 +294,7 @@ source_set("browser") {
@@ -299,6 +299,7 @@ source_set("browser") {
"//third_party/re2",
"//third_party/snappy",
"//third_party/sqlite",
@@ -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
@@ -80,6 +80,7 @@
@@ -81,6 +81,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"
@@ -3493,6 +3494,8 @@ void RenderProcessHostImpl::PropagateBro
@@ -3498,6 +3499,8 @@ void RenderProcessHostImpl::PropagateBro
switches::kEnableWebGLImageChromium,
switches::kEnableWebGPUDeveloperFeatures,
switches::kFileUrlPathAlias,
@@ -70,7 +70,7 @@
+ switches::kFingerprintingCanvasMeasureTextNoise,
switches::kForceDeviceScaleFactor,
switches::kForceDisplayColorProfile,
switches::kForceGpuMemAvailableMb,
switches::kForceHighContrast,
--- a/content/child/BUILD.gn
+++ b/content/child/BUILD.gn
@@ -110,6 +110,7 @@ target(link_target_type, "child") {
@@ -83,7 +83,7 @@
"//ui/events/blink",
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -40,6 +40,7 @@
@@ -41,6 +41,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"
@@ -485,6 +486,10 @@ void SetRuntimeFeaturesFromCommandLine(c
@@ -481,6 +482,10 @@ void SetRuntimeFeaturesFromCommandLine(c
true},
{wrf::EnableWebAudioBypassOutputBufferingOptOut,
blink::switches::kWebAudioBypassOutputBufferingOptOut, true},
@@ -104,9 +104,9 @@
for (const auto& mapping : switchToFeatureMapping) {
--- a/third_party/blink/public/platform/web_runtime_features.h
+++ b/third_party/blink/public/platform/web_runtime_features.h
@@ -69,6 +69,9 @@ class BLINK_PLATFORM_EXPORT WebRuntimeFe
static void EnableFluentScrollbars(bool);
static void EnableFluentOverlayScrollbars(bool);
@@ -71,6 +71,9 @@ class BLINK_PLATFORM_EXPORT WebRuntimeFe
static void EnableLocalNetworkAccessWebRTC(bool);
+ static void EnableFingerprintingClientRectsNoise(bool);
+ static void EnableFingerprintingCanvasMeasureTextNoise(bool);
@@ -116,15 +116,15 @@
--- a/third_party/blink/renderer/core/dom/document.cc
+++ b/third_party/blink/renderer/core/dom/document.cc
@@ -42,6 +42,7 @@
@@ -41,6 +41,7 @@
#include "base/i18n/time_formatting.h"
#include "base/metrics/histogram_functions.h"
#include "base/not_fatal_until.h"
#include "base/notreached.h"
+#include "base/rand_util.h"
#include "base/task/single_thread_task_runner.h"
#include "base/time/time.h"
#include "base/trace_event/trace_event.h"
@@ -869,6 +870,11 @@ Document::Document(const DocumentInit& i
@@ -1085,6 +1086,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();
@@ -995,6 +1001,14 @@ const Position Document::PositionAdjuste
@@ -1215,6 +1221,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
@@ -558,6 +558,10 @@ class CORE_EXPORT Document : public Cont
@@ -572,6 +572,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;
@@ -2704,6 +2708,9 @@ class CORE_EXPORT Document : public Cont
@@ -2770,6 +2774,9 @@ class CORE_EXPORT Document : public Cont
base::ElapsedTimer start_time_;
@@ -176,7 +176,7 @@
--- a/third_party/blink/renderer/core/dom/element.cc
+++ b/third_party/blink/renderer/core/dom/element.cc
@@ -2836,6 +2836,11 @@ DOMRectList* Element::getClientRects() {
@@ -3092,6 +3092,11 @@ DOMRectList* Element::getClientRects() {
DCHECK(element_layout_object);
GetDocument().AdjustQuadsForScrollAndAbsoluteZoom(quads,
*element_layout_object);
@@ -188,7 +188,7 @@
return MakeGarbageCollected<DOMRectList>(quads);
}
@@ -2863,6 +2868,9 @@ gfx::RectF Element::GetBoundingClientRec
@@ -3119,6 +3124,9 @@ gfx::RectF Element::GetBoundingClientRec
DCHECK(element_layout_object);
GetDocument().AdjustRectForScrollAndAbsoluteZoom(result,
*element_layout_object);
@@ -200,7 +200,7 @@
--- a/third_party/blink/renderer/core/dom/range.cc
+++ b/third_party/blink/renderer/core/dom/range.cc
@@ -1634,6 +1634,12 @@ DOMRectList* Range::getClientRects() con
@@ -1655,6 +1655,12 @@ DOMRectList* Range::getClientRects() con
Vector<gfx::QuadF> quads;
GetBorderAndTextQuads(quads);
@@ -213,7 +213,7 @@
return MakeGarbageCollected<DOMRectList>(quads);
}
@@ -1641,7 +1647,11 @@ DOMRect* Range::getBoundingClientRect()
@@ -1662,7 +1668,11 @@ DOMRect* Range::getBoundingClientRect()
// TODO(crbug.com/1499981): This should be removed once synchronized scrolling
// impact is understood.
SyncScrollAttemptHeuristic::DidAccessScrollOffset();
@@ -266,7 +266,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
@@ -103,6 +103,9 @@
@@ -108,6 +108,9 @@
// https://github.com/include-what-you-use/include-what-you-use/issues/1122
// IWYU pragma: no_include "base/numerics/clamped_math.h"
@@ -275,8 +275,8 @@
+
namespace blink {
constexpr char kDefaultFont[] = "10px sans-serif";
@@ -1182,13 +1185,26 @@ TextMetrics* BaseRenderingContext2D::mea
class MemoryManagedPaintCanvas;
@@ -1248,13 +1251,26 @@ TextMetrics* BaseRenderingContext2D::mea
TextDirection direction =
ToTextDirection(state.GetDirection(), host, computed_style);
@@ -308,20 +308,20 @@
String BaseRenderingContext2D::lang() const {
--- a/third_party/blink/renderer/platform/BUILD.gn
+++ b/third_party/blink/renderer/platform/BUILD.gn
@@ -1784,6 +1784,7 @@ component("platform") {
@@ -1797,6 +1797,7 @@ component("platform") {
"//components/paint_preview/common",
"//components/search_engines:search_engine_utils",
"//components/translate/core/language_detection:language_detection",
"//components/translate/core/language_detection",
+ "//components/ungoogled:ungoogled_switches",
"//components/viz/client",
"//components/viz/common",
"//components/webrtc:net_address_utils",
--- a/third_party/blink/renderer/platform/exported/web_runtime_features.cc
+++ b/third_party/blink/renderer/platform/exported/web_runtime_features.cc
@@ -68,4 +68,12 @@ void WebRuntimeFeatures::EnableFluentScr
void WebRuntimeFeatures::EnableFluentOverlayScrollbars(bool enable) {
RuntimeEnabledFeatures::SetFluentOverlayScrollbarsEnabled(enable);
@@ -73,4 +73,12 @@ void WebRuntimeFeatures::EnableLocalNetw
RuntimeEnabledFeatures::SetLocalNetworkAccessWebRTCEnabled(enable);
}
+void WebRuntimeFeatures::EnableFingerprintingClientRectsNoise(bool enable) {
+ RuntimeEnabledFeatures::SetFingerprintingClientRectsNoiseEnabled(enable);
+}
@@ -339,11 +339,11 @@
#include "third_party/blink/renderer/platform/image-encoders/image_encoder_utils.h"
+#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "third_party/blink/renderer/platform/wtf/text/base64.h"
#include "third_party/blink/renderer/platform/wtf/text/strcat.h"
#include "third_party/skia/include/core/SkImage.h"
#include "third_party/skia/include/core/SkSurface.h"
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
@@ -2092,6 +2092,12 @@
@@ -2273,6 +2273,12 @@
status: "stable",
},
{
@@ -34,17 +34,17 @@ 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
@@ -3496,6 +3496,7 @@ void RenderProcessHostImpl::PropagateBro
@@ -3501,6 +3501,7 @@ void RenderProcessHostImpl::PropagateBro
switches::kFileUrlPathAlias,
switches::kFingerprintingClientRectsNoise,
switches::kFingerprintingCanvasMeasureTextNoise,
+ switches::kFingerprintingCanvasImageDataNoise,
switches::kForceDeviceScaleFactor,
switches::kForceDisplayColorProfile,
switches::kForceGpuMemAvailableMb,
switches::kForceHighContrast,
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -490,6 +490,8 @@ void SetRuntimeFeaturesFromCommandLine(c
@@ -486,6 +486,8 @@ void SetRuntimeFeaturesFromCommandLine(c
switches::kFingerprintingClientRectsNoise, true},
{wrf::EnableFingerprintingCanvasMeasureTextNoise,
switches::kFingerprintingCanvasMeasureTextNoise, true},
@@ -55,7 +55,7 @@ approach to change color components.
for (const auto& mapping : switchToFeatureMapping) {
--- a/third_party/blink/public/platform/web_runtime_features.h
+++ b/third_party/blink/public/platform/web_runtime_features.h
@@ -71,6 +71,7 @@ class BLINK_PLATFORM_EXPORT WebRuntimeFe
@@ -73,6 +73,7 @@ class BLINK_PLATFORM_EXPORT WebRuntimeFe
static void EnableFingerprintingClientRectsNoise(bool);
static void EnableFingerprintingCanvasMeasureTextNoise(bool);
@@ -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
@@ -508,6 +508,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
@@ -1729,7 +1729,9 @@ component("platform") {
@@ -1741,7 +1741,9 @@ component("platform") {
"//third_party/blink/renderer:non_test_config",
]
@@ -90,7 +90,7 @@ approach to change color components.
"//third_party/blink/renderer/platform/blob",
--- a/third_party/blink/renderer/platform/exported/web_runtime_features.cc
+++ b/third_party/blink/renderer/platform/exported/web_runtime_features.cc
@@ -76,4 +76,8 @@ void WebRuntimeFeatures::EnableFingerpri
@@ -81,4 +81,8 @@ void WebRuntimeFeatures::EnableFingerpri
RuntimeEnabledFeatures::SetFingerprintingCanvasMeasureTextNoiseEnabled(enable);
}
@@ -99,19 +99,6 @@ approach to change color components.
+}
+
} // namespace blink
--- a/third_party/blink/renderer/platform/graphics/image_data_buffer.cc
+++ b/third_party/blink/renderer/platform/graphics/image_data_buffer.cc
@@ -130,6 +130,10 @@ base::span<const uint8_t> ImageDataBuffe
bool ImageDataBuffer::EncodeImage(const ImageEncodingMimeType mime_type,
const double& quality,
Vector<unsigned char>* encoded_image) const {
+ if (RuntimeEnabledFeatures::FingerprintingCanvasImageDataNoiseEnabled()) {
+ // shuffle subchannel color data within the pixmap
+ StaticBitmapImage::ShuffleSubchannelColorData(pixmap_.writable_addr(), pixmap_.info(), 0, 0);
+ }
return ImageEncoder::Encode(encoded_image, pixmap_, mime_type, quality);
}
--- a/third_party/blink/renderer/platform/graphics/static_bitmap_image.cc
+++ b/third_party/blink/renderer/platform/graphics/static_bitmap_image.cc
@@ -4,6 +4,8 @@
@@ -303,9 +290,31 @@ approach to change color components.
bool IsStaticBitmapImage() const override { return true; }
// 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 @@
#include <stdio.h> // Needed by jpeglib.h
#include "jpeglib.h" // for JPEG_MAX_DIMENSION
+#include "third_party/blink/renderer/platform/graphics/static_bitmap_image.h"
+#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "third_party/libwebp/src/src/webp/encode.h" // for WEBP_MAX_DIMENSION
namespace blink {
@@ -43,6 +45,10 @@ bool ImageEncoder::Encode(Vector<unsigne
const SkPixmap& src,
ImageEncodingMimeType mime_type,
double quality) {
+ if (RuntimeEnabledFeatures::FingerprintingCanvasImageDataNoiseEnabled()) {
+ // shuffle subchannel color data within the pixmap
+ StaticBitmapImage::ShuffleSubchannelColorData(src.writable_addr(), src.info(), 0, 0);
+ }
switch (mime_type) {
case kMimeTypeJpeg: {
SkJpegEncoder::Options options;
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
@@ -2098,6 +2098,9 @@
@@ -2279,6 +2279,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
@@ -2205,6 +2205,7 @@ static_library("browser") {
@@ -2295,6 +2295,7 @@ static_library("browser") {
"//components/net_log",
"//components/network_hints/common:mojo_bindings",
"//components/network_session_configurator/browser",
@@ -65,7 +65,7 @@ with limited CPU/memory resources and it is disabled by default.
#include "base/synchronization/waitable_event.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
@@ -118,6 +120,7 @@
@@ -119,6 +121,7 @@
#include "components/metrics/metrics_service.h"
#include "components/metrics_services_manager/metrics_services_manager.h"
#include "components/metrics_services_manager/metrics_services_manager_client.h"
@@ -73,15 +73,15 @@ with limited CPU/memory resources and it is disabled by default.
#include "components/network_time/network_time_tracker.h"
#include "components/os_crypt/async/browser/os_crypt_async.h"
#include "components/permissions/permissions_client.h"
@@ -151,6 +154,7 @@
@@ -153,6 +156,7 @@
#include "extensions/common/constants.h"
#include "media/media_buildflags.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
+#include "net/socket/client_socket_pool_manager.h"
#include "ppapi/buildflags/buildflags.h"
#include "printing/buildflags/buildflags.h"
#include "services/network/public/cpp/features.h"
@@ -417,6 +421,18 @@ void BrowserProcessImpl::Init() {
#include "services/network/public/cpp/network_switches.h"
@@ -421,6 +425,18 @@ void BrowserProcessImpl::Init() {
pref_change_registrar_.Add(metrics::prefs::kMetricsReportingEnabled,
base::BindRepeating(&ApplyMetricsReportingPolicy));
@@ -102,7 +102,7 @@ with limited CPU/memory resources and it is disabled by default.
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -2536,6 +2536,10 @@ const char kMantisFeatureKeyDescription[
@@ -2657,6 +2657,10 @@ const char kMantisFeatureKeyDescription[
"Feature key to use the Mantis feature on ChromeOS.";
#endif // BUILDFLAG(IS_CHROMEOS)
@@ -115,7 +115,7 @@ with limited CPU/memory resources and it is disabled by default.
const char kMediaRouterCastAllowAllIPsDescription[] =
--- a/chrome/browser/flag_descriptions.h
+++ b/chrome/browser/flag_descriptions.h
@@ -1465,6 +1465,9 @@ extern const char kMantisFeatureKeyName[
@@ -1548,6 +1548,9 @@ extern const char kMantisFeatureKeyName[
extern const char kMantisFeatureKeyDescription[];
#endif // IS_CHROMEOS
@@ -3,14 +3,14 @@ author: Michael Gilbert <mgilbert@debian.org>
--- a/chrome/browser/ui/startup/infobar_utils.cc
+++ b/chrome/browser/ui/startup/infobar_utils.cc
@@ -156,10 +156,6 @@ void AddInfoBarsIfNecessary(Browser* bro
infobars::ContentInfoBarManager* infobar_manager =
infobars::ContentInfoBarManager::FromWebContents(web_contents);
@@ -175,10 +175,6 @@ void AddInfoBarsIfNecessary(Browser* bro
infobars::ContentInfoBarManager* infobar_manager =
infobars::ContentInfoBarManager::FromWebContents(web_contents);
- if (!google_apis::HasAPIKeyConfigured()) {
- GoogleApiKeysInfoBarDelegate::Create(infobar_manager);
- }
- if (!google_apis::HasAPIKeyConfigured()) {
- GoogleApiKeysInfoBarDelegate::Create(infobar_manager);
- }
-
if (ObsoleteSystem::IsObsoleteNowOrSoon()) {
PrefService* local_state = g_browser_process->local_state();
if (!local_state ||
if (ObsoleteSystem::IsObsoleteNowOrSoon()) {
PrefService* local_state = g_browser_process->local_state();
if (!local_state ||
@@ -1,7 +1,7 @@
--- a/chrome/browser/background/extensions/background_mode_manager.cc
+++ b/chrome/browser/background/extensions/background_mode_manager.cc
@@ -364,7 +364,7 @@ BackgroundModeManager::~BackgroundModeMa
@@ -350,7 +350,7 @@ BackgroundModeManager::~BackgroundModeMa
// static
void BackgroundModeManager::RegisterPrefs(PrefRegistrySimple* registry) {
@@ -12,7 +12,7 @@
void BackgroundModeManager::RegisterProfile(Profile* profile) {
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1558,7 +1558,7 @@ void ChromeContentBrowserClient::Registe
@@ -1418,7 +1418,7 @@ void ChromeContentBrowserClient::Registe
void ChromeContentBrowserClient::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(prefs::kDisable3DAPIs, false);
@@ -23,7 +23,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
@@ -529,7 +529,7 @@ void ProfileNetworkContextService::Confi
@@ -620,7 +620,7 @@ void ProfileNetworkContextService::Confi
void ProfileNetworkContextService::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(embedder_support::kAlternateErrorPagesEnabled,
@@ -56,7 +56,7 @@
</cr-dialog>
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -97,7 +97,7 @@ void RegisterBrowserUserPrefs(user_prefs
@@ -117,7 +117,7 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, true);
registry->RegisterBooleanPref(prefs::kWebAppCreateInQuickLaunchBar, true);
registry->RegisterBooleanPref(
@@ -67,7 +67,7 @@
registry->RegisterBooleanPref(prefs::kCloudPrintProxyEnabled, true);
--- a/components/autofill/core/common/autofill_prefs.cc
+++ b/components/autofill/core/common/autofill_prefs.cc
@@ -29,7 +29,7 @@ constexpr char kAutofillRanQuasiDuplicat
@@ -31,7 +31,7 @@ constexpr char kAutofillRanQuasiDuplicat
void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
// Synced prefs. Used for cross-device choices, e.g., credit card Autofill.
registry->RegisterBooleanPref(
@@ -76,7 +76,7 @@
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
registry->RegisterIntegerPref(
kAutofillLastVersionDeduped, 0,
@@ -38,7 +38,7 @@ void RegisterProfilePrefs(user_prefs::Pr
@@ -40,7 +40,7 @@ void RegisterProfilePrefs(user_prefs::Pr
kAutofillHasSeenIban, false,
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
registry->RegisterBooleanPref(
@@ -87,7 +87,7 @@
kAutofillPaymentCvcStorage, true,
--- a/components/bookmarks/browser/bookmark_utils.cc
+++ b/components/bookmarks/browser/bookmark_utils.cc
@@ -456,7 +456,7 @@ bool DoesBookmarkContainWords(const std:
@@ -449,7 +449,7 @@ bool DoesBookmarkContainWords(const std:
void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(
@@ -109,7 +109,7 @@
--- a/components/password_manager/core/browser/password_manager.cc
+++ b/components/password_manager/core/browser/password_manager.cc
@@ -411,7 +411,7 @@ void RecordProvisionalSaveFailure(
@@ -504,7 +504,7 @@ void HandleFailedLoginDetectionForPasswo
void PasswordManager::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(
@@ -118,7 +118,7 @@
user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF);
#if BUILDFLAG(IS_IOS)
// Deprecated pref in profile prefs.
@@ -419,7 +419,7 @@ void PasswordManager::RegisterProfilePre
@@ -512,7 +512,7 @@ void PasswordManager::RegisterProfilePre
false);
#endif // BUILDFLAG(IS_IOS)
registry->RegisterBooleanPref(
@@ -1,6 +1,6 @@
--- a/sandbox/linux/BUILD.gn
+++ b/sandbox/linux/BUILD.gn
@@ -295,6 +295,14 @@ if (is_linux || is_chromeos) {
@@ -299,6 +299,14 @@ if (is_linux || is_chromeos) {
"suid/process_util_linux.c",
"suid/sandbox.c",
]
@@ -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
@@ -1578,11 +1578,6 @@ int ChromeBrowserMainParts::PreMainMessa
@@ -1588,11 +1588,6 @@ int ChromeBrowserMainParts::PreMainMessa
// and preferences have been registered since some of the import code depends
// on preferences.
if (first_run::IsChromeFirstRun()) {
@@ -11,7 +11,7 @@ very interesting in themselves. Force them to be stored.
--- a/third_party/blink/common/mime_util/mime_util.cc
+++ b/third_party/blink/common/mime_util/mime_util.cc
@@ -87,6 +87,7 @@ constexpr auto kUnsupportedTextTypes =
@@ -88,6 +88,7 @@ constexpr auto kUnsupportedTextTypes =
"text/x-csv",
"text/x-vcf",
"text/rtf",
@@ -1,23 +0,0 @@
From 088a50b2fc66418294166b61f31925426b1a9c54 Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Mon, 15 Sep 2014 10:52:32 +0200
Subject: [PATCH 12/66] net/cert: increase default key length for
newly-generated RSA keys
Should we add something for chrome://settings, or just leave
it as hidden as it was before?
---
net/cert/x509_util.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/net/cert/x509_util.cc
+++ b/net/cert/x509_util.cc
@@ -280,7 +280,7 @@ bool GetTLSServerEndPointChannelBinding(
}
// RSA keys created by CreateKeyAndSelfSignedCert will be of this length.
-static const uint16_t kRSAKeyLength = 1024;
+static const uint16_t kRSAKeyLength = 2048;
// Certificates made by CreateKeyAndSelfSignedCert will be signed using this
// digest algorithm.
@@ -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
@@ -1072,7 +1072,7 @@ class AppControllerNativeThemeObserver :
@@ -1076,7 +1076,7 @@ class AppControllerNativeThemeObserver :
CFStringRef checkInterval = CFSTR("checkInterval");
CFPropertyListRef plist = CFPreferencesCopyAppValue(checkInterval, app);
if (!plist) {
@@ -22,7 +22,7 @@
@@ -0,0 +1,18 @@
+// Copyright (c) 2020 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 file.
+// found in the LICENSE.ungoogled_chromium file.
+
+#include "components/ungoogled/ungoogled_switches.h"
+
@@ -43,7 +43,7 @@
@@ -0,0 +1,20 @@
+// Copyright (c) 2020 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 file.
+// found in the LICENSE.ungoogled_chromium file.
+
+// Defines all the fingerprinting command-line switches.
+
@@ -0,0 +1,71 @@
--- a/components/webui/about/resources/about_credits_reciprocal.tmpl
+++ b/components/webui/about/resources/about_credits_reciprocal.tmpl
@@ -1,4 +1,4 @@
<div class="open-sourced">
- {{opensource_project}} software is made available as source code
- <a href="{{opensource_link}}">here</a>.
+ {{opensource_project}} source code is available in
+ the <a href="{{opensource_link}}">repository</a>.
</div>
--- /dev/null
+++ b/third_party/ungoogled-chromium/LICENSE
@@ -0,0 +1,29 @@
+BSD 3-Clause License
+
+Copyright (c) 2015-2025, The ungoogled-chromium Authors
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+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))
+ 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')],
+ }
+
+ 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()
reciprocal_contents = EvaluateTemplate(reciprocal_template, {
- 'opensource_project': 'Chromium',
- 'opensource_link': 'https://source.chromium.org/chromium'
+ 'opensource_project': 'ungoogled-chromium',
+ 'opensource_link': 'https://github.com/ungoogled-software/ungoogled-chromium'
},
escape=False)
@@ -1,27 +1,24 @@
--- a/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
+++ b/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
--- a/chrome/browser/ui/bookmarks/bookmark_bar_controller.cc
+++ b/chrome/browser/ui/bookmarks/bookmark_bar_controller.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
#include "chrome/browser/ui/bookmarks/bookmark_bar_controller.h"
+#include "base/command_line.h"
#include "base/observer_list.h"
#include "build/build_config.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
@@ -86,9 +87,12 @@ bool BookmarkTabHelper::ShouldShowBookma
const bool has_saved_tab_groups =
tab_group_service && !tab_group_service->GetAllGroups().empty();
+ const std::string flag_value =
+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("bookmark-bar-ntp");
// The bookmark bar is only shown on the NTP if the user
// has added something to it.
- return IsNTP(web_contents()) && (has_bookmarks || has_saved_tab_groups);
+ return IsNTP(web_contents()) && (has_bookmarks || has_saved_tab_groups) &&
+ (flag_value != "never");
#include "chrome/browser/browser_features.h"
#include "chrome/browser/defaults.h"
@@ -132,6 +133,10 @@ void BookmarkBarController::OnSplitTabCh
}
void BookmarkTabHelper::AddObserver(BookmarkTabHelperObserver* observer) {
bool BookmarkBarController::ShouldShowBookmarkBar() const {
+ if (base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("bookmark-bar-ntp") == "never") {
+ return false;
+ }
+
Profile* profile = browser_->GetProfile();
if (profile->IsGuestSession()) {
return false;
--- a/chrome/browser/ungoogled_flag_choices.h
+++ b/chrome/browser/ungoogled_flag_choices.h
@@ -34,4 +34,10 @@ const FeatureEntry::Choice kScrollEventC
@@ -1,14 +1,14 @@
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -142,6 +142,7 @@
#include "chrome/browser/ui/unload_controller.h"
@@ -138,6 +138,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/web_applications/web_app_launch_utils.h"
@@ -586,6 +587,7 @@ Browser::Browser(const CreateParams& par
@@ -620,6 +621,7 @@ Browser::Browser(const CreateParams& par
omit_from_session_restore_(params.omit_from_session_restore),
should_trigger_session_restore_(params.should_trigger_session_restore),
cancel_download_confirmation_state_(NOT_PROMPTED),
@@ -16,7 +16,7 @@
override_bounds_(params.initial_bounds),
initial_show_state_(params.initial_show_state),
initial_workspace_(params.initial_workspace),
@@ -1049,20 +1051,22 @@ Browser::WarnBeforeClosingResult Browser
@@ -994,20 +996,22 @@ Browser::WarnBeforeClosingResult Browser
return WarnBeforeClosingResult::kOkToClose;
}
@@ -52,7 +52,7 @@
}
DCHECK(!warn_before_closing_callback_)
@@ -1100,6 +1104,7 @@ bool Browser::TryToCloseWindow(
@@ -1045,6 +1049,7 @@ bool Browser::TryToCloseWindow(
void Browser::ResetTryToCloseWindow() {
cancel_download_confirmation_state_ = NOT_PROMPTED;
@@ -60,7 +60,7 @@
unload_controller_.ResetTryToCloseWindow();
}
@@ -3408,6 +3413,58 @@ bool Browser::CanCloseWithInProgressDown
@@ -3496,6 +3501,58 @@ bool Browser::CanCloseWithInProgressDown
return false;
}
@@ -119,7 +119,7 @@
void Browser::InProgressDownloadResponse(bool cancel_downloads) {
if (cancel_downloads) {
cancel_download_confirmation_state_ = RESPONSE_RECEIVED;
@@ -3433,6 +3490,22 @@ void Browser::InProgressDownloadResponse
@@ -3521,6 +3578,22 @@ void Browser::InProgressDownloadResponse
std::move(warn_before_closing_callback_)
.Run(WarnBeforeClosingResult::kDoNotClose);
@@ -144,15 +144,15 @@
void Browser::CookieMigrationNoticeResponse(bool proceed_closing) {
--- a/chrome/browser/ui/browser.h
+++ b/chrome/browser/ui/browser.h
@@ -31,6 +31,7 @@
#include "chrome/browser/ui/browser_navigator_params.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/chrome_web_modal_dialog_manager_delegate.h"
+#include "chrome/browser/ui/simple_message_box.h"
#include "chrome/browser/ui/signin/signin_view_controller.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
@@ -1216,12 +1217,17 @@ class Browser : public TabStripModelObse
#include "chrome/browser/ui/unload_controller.h"
@@ -1147,12 +1148,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.
@@ -1394,6 +1400,8 @@ class Browser : public TabStripModelObse
@@ -1333,6 +1339,8 @@ class Browser : public TabStripModelObse
// when the browser is closed with in-progress downloads.
CancelDownloadConfirmationState cancel_download_confirmation_state_;
@@ -1,20 +1,21 @@
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -934,10 +934,14 @@ bool HandleNewTabPageLocationOverride(
@@ -821,11 +821,15 @@ bool HandleNewTabPageLocationOverride(
// Don't change the URL when incognito mode.
if (profile->IsOffTheRecord())
if (profile->IsOffTheRecord()) {
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch("custom-ntp"))
return false;
}
std::string ntp_location =
profile->GetPrefs()->GetString(prefs::kNewTabPageLocationOverride);
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("custom-ntp"))
+ ntp_location = base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("custom-ntp");
+ if (profile->IsOffTheRecord() && ntp_location.find("chrome://") != std::string::npos) return false;
if (ntp_location.empty())
if (ntp_location.empty()) {
return false;
url::Component scheme;
}
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -76,4 +76,8 @@
@@ -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
@@ -18,6 +18,8 @@
@@ -19,6 +19,8 @@
namespace blink::features {
@@ -22,7 +22,7 @@
//
--- a/third_party/blink/public/common/features.h
+++ b/third_party/blink/public/common/features.h
@@ -20,6 +20,8 @@
@@ -22,6 +22,8 @@
namespace blink {
namespace features {
@@ -33,15 +33,15 @@
//
--- a/third_party/blink/renderer/core/editing/selection_controller.cc
+++ b/third_party/blink/renderer/core/editing/selection_controller.cc
@@ -30,6 +30,7 @@
#include "third_party/blink/renderer/core/editing/selection_controller.h"
@@ -31,6 +31,7 @@
#include "base/auto_reset.h"
#include "base/trace_event/trace_event.h"
+#include "third_party/blink/public/common/features.h"
#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/dom/document.h"
@@ -1434,10 +1435,14 @@ FrameSelection& SelectionController::Sel
#include "third_party/blink/renderer/core/annotation/annotation_agent_impl.h"
@@ -1437,10 +1438,14 @@ FrameSelection& SelectionController::Sel
}
bool IsSelectionOverLink(const MouseEventWithHitTestResults& event) {
@@ -66,7 +66,7 @@
#include "third_party/blink/public/platform/web_input_event_result.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_drag_event_init.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_pointer_event_init.h"
@@ -656,8 +657,14 @@ WebInputEventResult MouseEventManager::H
@@ -623,8 +624,14 @@ WebInputEventResult MouseEventManager::H
bool single_click = event.Event().click_count <= 1;
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/frame/tab_strip_region_view.cc
+++ b/chrome/browser/ui/views/frame/tab_strip_region_view.cc
@@ -75,6 +75,7 @@ class FrameGrabHandle : public views::Vi
@@ -74,6 +74,7 @@ class FrameGrabHandle : public views::Vi
// Reserve some space for the frame to be grabbed by, even if the tabstrip
// is full.
// TODO(tbergquist): Define this relative to the NTB insets again.
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/frame/browser_frame.cc
+++ b/chrome/browser/ui/views/frame/browser_frame.cc
@@ -642,5 +642,7 @@ bool BrowserFrame::RegenerateFrameOnThem
@@ -707,5 +707,7 @@ bool BrowserFrame::RegenerateFrameOnThem
}
bool BrowserFrame::IsIncognitoBrowser() const {
@@ -10,7 +10,7 @@
}
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
@@ -57,6 +57,7 @@
@@ -60,6 +60,7 @@
#include "ui/base/webui/jstemplate_builder.h"
#include "ui/base/webui/web_ui_util.h"
#include "ui/color/color_provider.h"
@@ -18,7 +18,7 @@
#include "ui/gfx/color_utils.h"
#include "ui/native_theme/native_theme.h"
@@ -454,7 +455,9 @@ void NTPResourceCache::CreateNewTabIncog
@@ -467,7 +468,9 @@ void NTPResourceCache::CreateNewTabIncog
profile_->GetPrefs()->GetString(prefs::kCurrentThemeID);
// Colors.
@@ -33,7 +33,7 @@
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
--- a/components/omnibox/browser/autocomplete_controller.cc
+++ b/components/omnibox/browser/autocomplete_controller.cc
@@ -22,6 +22,7 @@
@@ -23,6 +23,7 @@
#include "base/check_op.h"
#include "base/containers/contains.h"
@@ -41,7 +41,7 @@
#include "base/feature_list.h"
#include "base/format_macros.h"
#include "base/functional/bind.h"
@@ -544,6 +545,15 @@ AutocompleteController::AutocompleteCont
@@ -568,6 +569,15 @@ AutocompleteController::AutocompleteCont
steady_state_omnibox_position_(
metrics::OmniboxEventProto::UNKNOWN_POSITION) {
provider_types &= ~OmniboxFieldTrial::GetDisabledProviderTypes();
@@ -59,7 +59,7 @@
// so their async requests can be kicked off before waiting a few milliseconds
--- a/components/omnibox/browser/history_url_provider.cc
+++ b/components/omnibox/browser/history_url_provider.cc
@@ -489,6 +489,9 @@ void HistoryURLProvider::Start(const Aut
@@ -488,6 +488,9 @@ void HistoryURLProvider::Start(const Aut
if (fixed_up_input.type() != metrics::OmniboxInputType::QUERY)
matches_.push_back(what_you_typed_match);
@@ -71,15 +71,15 @@
client()->GetHistoryService();
--- a/components/omnibox/browser/search_provider.cc
+++ b/components/omnibox/browser/search_provider.cc
@@ -12,6 +12,7 @@
#include <utility>
@@ -15,6 +15,7 @@
#include <vector>
#include "base/base64.h"
+#include "base/command_line.h"
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
@@ -629,6 +630,9 @@ void SearchProvider::Run(bool query_is_p
@@ -632,6 +633,9 @@ void SearchProvider::Run(bool query_is_p
}
void SearchProvider::DoHistoryQuery(bool minimal_changes) {
@@ -100,7 +100,7 @@
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/i18n/char_iterator.h"
@@ -655,6 +657,8 @@ GURL FixupURLInternal(const std::string&
@@ -648,6 +650,8 @@ GURL FixupURLInternal(const std::string&
FixupHost(trimmed, parts.host, parts.scheme.is_valid(), desired_tld, &url);
if (chrome_url && !parts.host.is_valid()) {
@@ -1,14 +1,14 @@
--- a/chrome/browser/ui/qrcode_generator/qrcode_generator_bubble_controller.cc
+++ b/chrome/browser/ui/qrcode_generator/qrcode_generator_bubble_controller.cc
@@ -12,6 +12,7 @@
#include "chrome/browser/ui/sharing_hub/sharing_hub_bubble_controller.h"
@@ -13,6 +13,7 @@
#include "chrome/common/pref_names.h"
#include "components/prefs/pref_change_registrar.h"
#include "components/prefs/pref_service.h"
+#include "components/sharing_message/features.h"
#include "content/public/browser/web_contents.h"
#include "url/gurl.h"
@@ -37,7 +38,7 @@ QRCodeGeneratorBubbleController::~QRCode
@@ -38,7 +39,7 @@ QRCodeGeneratorBubbleController::~QRCode
// static
bool QRCodeGeneratorBubbleController::IsGeneratorAvailable(const GURL& url) {
@@ -2,7 +2,7 @@
--- a/chrome/browser/ui/tab_helpers.cc
+++ b/chrome/browser/ui/tab_helpers.cc
@@ -541,7 +541,9 @@ void TabHelpers::AttachTabHelpers(WebCon
@@ -544,7 +544,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
@@ -256,14 +256,16 @@ void ChromeRenderFrameObserver::DidFinis
@@ -259,14 +259,16 @@ void ChromeRenderFrameObserver::DidFinis
if (frame->Parent() || frame->IsInFencedFrameTree())
return;
@@ -52,7 +52,7 @@
--- a/components/search_engines/template_url_service.cc
+++ b/components/search_engines/template_url_service.cc
@@ -20,6 +20,7 @@
@@ -15,6 +15,7 @@
#include "base/base64url.h"
#include "base/check_deref.h"
#include "base/check_is_test.h"
@@ -60,8 +60,8 @@
#include "base/containers/contains.h"
#include "base/containers/fixed_flat_map.h"
#include "base/containers/flat_map.h"
@@ -309,6 +310,12 @@ std::string_view SyncChangeTypeToHistogr
NOTREACHED();
@@ -402,6 +403,12 @@ bool IsGoogleAiModeUrl(GURL url) {
google_util::DISALLOW_NON_STANDARD_PORTS);
}
+bool ShouldAutocollect() {
@@ -73,7 +73,7 @@
} // namespace
// TemplateURLService::LessWithPrefix -----------------------------------------
@@ -489,6 +496,7 @@ TemplateURLService::TemplateURLService(
@@ -582,6 +589,7 @@ TemplateURLService::TemplateURLService(
std::unique_ptr<TemplateURLServiceClient> client,
const base::RepeatingClosure& dsp_change_callback)
: prefs_(prefs),
@@ -81,7 +81,7 @@
search_engine_choice_service_(search_engine_choice_service),
prepopulate_data_resolver_(prepopulate_data_resolver),
search_terms_data_(std::move(search_terms_data)),
@@ -592,8 +600,8 @@ bool TemplateURLService::CanAddAutogener
@@ -665,8 +673,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.
@@ -92,7 +92,7 @@
}
bool TemplateURLService::IsPrepopulatedOrDefaultProviderByPolicy(
@@ -2316,6 +2324,8 @@ SyncDataMap TemplateURLService::CreateGU
@@ -2493,6 +2501,8 @@ SyncDataMap TemplateURLService::CreateGU
}
void TemplateURLService::Init() {
@@ -101,7 +101,7 @@
if (client_) {
client_->SetOwner(this);
}
@@ -2498,6 +2508,9 @@ void TemplateURLService::ChangeToLoadedS
@@ -2658,6 +2668,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
@@ -895,6 +895,8 @@ class TemplateURLService final : public
@@ -905,6 +905,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"
@@ -726,6 +727,13 @@ void Tab::HideHover(TabStyle::HideHoverS
@@ -754,6 +755,13 @@ void Tab::HideHover(TabStyle::HideHoverS
DeprecatedLayoutImmediately();
}
@@ -24,7 +24,7 @@
// BrowserView::GetAccessibleTabLabel to get the updated accessible name.
--- a/chrome/browser/ui/views/tabs/tab.h
+++ b/chrome/browser/ui/views/tabs/tab.h
@@ -89,6 +89,7 @@ class Tab : public gfx::AnimationDelegat
@@ -100,6 +100,7 @@ class Tab : public gfx::AnimationDelegat
void OnMouseEntered(const ui::MouseEvent& event) override;
void OnMouseExited(const ui::MouseEvent& event) override;
void OnGestureEvent(ui::GestureEvent* event) override;
@@ -34,7 +34,7 @@
void PaintChildren(const views::PaintInfo& info) override;
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -15,6 +15,7 @@
@@ -17,6 +17,7 @@
#include <utility>
#include <vector>
@@ -42,7 +42,7 @@
#include "base/check.h"
#include "base/compiler_specific.h"
#include "base/containers/adapters.h"
@@ -1923,6 +1924,8 @@ void TabStrip::OnMouseEventInTab(views::
@@ -2003,6 +2004,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
@@ -1487,7 +1487,8 @@ void BrowserCommandController::InitComma
@@ -1585,7 +1585,8 @@ void BrowserCommandController::InitComma
command_updater_.UpdateCommandEnabled(IDC_WINDOW_CLOSE_OTHER_TABS,
normal_window);
@@ -10,9 +10,22 @@
command_updater_.UpdateCommandEnabled(IDC_TAB_SEARCH,
enable_tab_search_commands);
command_updater_.UpdateCommandEnabled(IDC_TAB_SEARCH_CLOSE,
--- a/chrome/browser/ui/ui_features.cc
+++ b/chrome/browser/ui/ui_features.cc
@@ -594,6 +594,10 @@ static std::string GetCountryCode() {
}
bool HasTabSearchToolbarButton() {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button")) {
+ return false;
+ }
+
static const bool is_tab_search_moving = [] {
if (GetCountryCode() == "us" &&
base::FeatureList::IsEnabled(
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -5069,6 +5069,7 @@ void BrowserView::AddedToWidget() {
@@ -5148,6 +5148,7 @@ void BrowserView::AddedToWidget() {
toolbar_->Init();
@@ -30,14 +43,14 @@
#include "base/functional/bind.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/single_thread_task_runner.h"
@@ -119,6 +120,7 @@ TabStripRegionView::TabStripRegionView(s
std::unique_ptr<TabStripComboButton> tab_strip_combo_button;
@@ -127,6 +128,7 @@ TabStripRegionView::TabStripRegionView(s
std::unique_ptr<TabStripActionContainer> tab_strip_action_container;
std::unique_ptr<ProductSpecificationsButton> product_specifications_button;
if (browser &&
+ !base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button") &&
(browser->GetType() == BrowserWindowInterface::Type::TYPE_NORMAL)) {
if (features::IsTabSearchMoving() &&
!features::HasTabSearchToolbarButton() &&
if (features::HasTabSearchToolbarButton()) {
tab_strip_action_container = std::make_unique<TabStripActionContainer>(
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -60,4 +60,8 @@
@@ -49,15 +62,3 @@
+ "Removes the tabsearch button from the tabstrip. ungoogled-chromium flag",
+ kOsDesktop, SINGLE_VALUE_TYPE("remove-tabsearch-button")},
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
--- a/chrome/common/chrome_features.cc
+++ b/chrome/common/chrome_features.cc
@@ -436,7 +436,8 @@ BASE_FEATURE(kTabstripComboButton,
base::FEATURE_DISABLED_BY_DEFAULT);
bool IsTabSearchMoving() {
- return base::FeatureList::IsEnabled(features::kTabstripComboButton);
+ return base::FeatureList::IsEnabled(features::kTabstripComboButton) &&
+ !base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button");
}
const base::FeatureParam<bool> kTabstripComboButtonHasBackground{

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