mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Compare commits
100 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 36f1f56e6a | |||
| 0455a0ebc1 | |||
| 34ebe96fcc | |||
| 0198aeaac1 | |||
| 7c6d64e244 | |||
| eadab75c6e | |||
| 0366b01487 | |||
| 83a38925d8 | |||
| c12e746219 | |||
| 9cfd581f96 | |||
| 6a7a75d0d4 | |||
| e0995b8b42 | |||
| c7275e01d6 | |||
| 3952195984 | |||
| d7451e760c | |||
| efaf686acf | |||
| 0b535463d6 | |||
| 792a3d0dfa | |||
| bf550b7cb2 | |||
| b2050c2c8b | |||
| ec7340c086 | |||
| 35fe39c483 | |||
| 2e9125d326 | |||
| e347cca951 | |||
| 2a79cab2b4 | |||
| 256b83e902 | |||
| f7ad164068 | |||
| ed72676c85 | |||
| b3031f79b3 | |||
| ab6faeaed9 | |||
| 5bf2bc5966 | |||
| 68ef8ffe61 | |||
| 11b9b4f0eb | |||
| fd4e3ec87b | |||
| 7f886834a7 | |||
| 1c4ad07e9c | |||
| ce80c9748f | |||
| ea61e0bcd5 | |||
| d813f47f4e | |||
| dd24681d9d | |||
| 50e0255fe2 | |||
| b735b3ae1d | |||
| 115cf2e55a | |||
| 7022a9e02e | |||
| 9fc0ab1720 | |||
| abb3c6628a | |||
| f62b1281a3 | |||
| f46cc85e7c | |||
| 6f6679d446 | |||
| 662041df27 | |||
| 86710deb6a | |||
| 8f51e9f904 | |||
| f01e2d502a | |||
| 5ed9e4cff3 | |||
| 0fbca2dcbd | |||
| 1da4771ecd | |||
| 7cc782cf18 | |||
| eff0437c87 | |||
| 6eaf98d1c5 | |||
| 739f2f2fd2 | |||
| 1fd0941818 | |||
| 12534c0398 | |||
| 67bf782dac | |||
| 62b06ba077 | |||
| b066056346 | |||
| 139c0cfa36 | |||
| 0d7f1ab5fe | |||
| 6f004aa444 | |||
| 6f18e3293c | |||
| b11373dc1f | |||
| 2d19e843bd | |||
| 00af1fcf09 | |||
| 01541411bb | |||
| a56d8adbf9 | |||
| d2a745498b | |||
| 13d2de5691 | |||
| f07f00bad4 | |||
| 851ffe6c62 | |||
| c7434cb02e | |||
| 62c15e6720 | |||
| a6c3e9365c | |||
| 241320ecf8 | |||
| 53fb10ad9f | |||
| 35a97e939a | |||
| 63a7f2a8f6 | |||
| ec1d464f81 | |||
| c0be4cb6f6 | |||
| 643d756f99 | |||
| f4bff59760 | |||
| 65b83952ab | |||
| f222e11317 | |||
| 0fb8ca5007 | |||
| b21cc8eee0 | |||
| 425b998ad1 | |||
| d6f09b3963 | |||
| 7b5e85c9c7 | |||
| 44155aff41 | |||
| 290a999fbc | |||
| ece7f03452 | |||
| f4c4fdfa0e |
+5
-1
@@ -36,6 +36,7 @@ validate_with_source_task:
|
||||
rm -rf chromium_download_cache
|
||||
mkdir chromium_download_cache
|
||||
# Attempt to download tarball
|
||||
./utils/downloads.py retrieve -i extras.ini -c chromium_download_cache &
|
||||
if ! ./utils/downloads.py retrieve -i downloads.ini -c chromium_download_cache ; then
|
||||
# If tarball is not available, attempt a clone
|
||||
./utils/clone.py -o chromium_src
|
||||
@@ -44,9 +45,12 @@ validate_with_source_task:
|
||||
tar cf chromium_download_cache/chromium-$(cat chromium_version.txt)-lite.tar.xz \
|
||||
--transform s/chromium_src/chromium-$(cat chromium_version.txt)/ chromium_src
|
||||
fi
|
||||
wait
|
||||
unpack_source_script: |
|
||||
if [ ! -d chromium_src ]; then
|
||||
./utils/downloads.py unpack -i downloads.ini -c chromium_download_cache chromium_src
|
||||
for file in downloads extras; do
|
||||
./utils/downloads.py unpack -i $file.ini -c chromium_download_cache chromium_src
|
||||
done
|
||||
fi
|
||||
validate_patches_script:
|
||||
- ./devutils/validate_patches.py -l chromium_src -v
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
name: Bug Report
|
||||
description: Report a bug building or running Helium
|
||||
labels: ["bug"]
|
||||
title: "[Bug]: "
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Before submitting this bug report, please search existing issues and make sure it's unique.
|
||||
If you ignore this text, and create this one, you will be permanently banned from
|
||||
interacting with the entire organization.
|
||||
|
||||
If you suspect your bug might be specific to a certain platform (e.g. macOS),
|
||||
please submit it to the relevant repository instead of the root "helium" repo.
|
||||
- type: dropdown
|
||||
id: os
|
||||
attributes:
|
||||
label: Operating system
|
||||
description: The OS you are running Helium on
|
||||
options:
|
||||
- macOS
|
||||
- Linux
|
||||
- Windows
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: version
|
||||
attributes:
|
||||
label: Version
|
||||
description: Can be copied from helium://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 ungoogled-chromium and it could not be reproduced there
|
||||
- label: I have tried reproducing this issue in Helium 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 behavior
|
||||
placeholder: |
|
||||
1. Go to '...'
|
||||
2. Click on '...'
|
||||
3. Scroll down to '...'
|
||||
4. See error
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: actual
|
||||
attributes:
|
||||
label: Actual behavior
|
||||
description: A clear and concise description of what actually happened
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: expected
|
||||
attributes:
|
||||
label: Expected behavior
|
||||
description: A clear and concise description of what you expected to happen
|
||||
validations:
|
||||
required: true
|
||||
- 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.
|
||||
@@ -0,0 +1 @@
|
||||
blank_issues_enabled: false
|
||||
@@ -0,0 +1,49 @@
|
||||
name: Feature request
|
||||
description: Suggest an idea
|
||||
labels: ["feat", "pending"]
|
||||
title: "[FR]: "
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Before submitting this request, please search existing issues and make sure it's unique.
|
||||
If you ignore this text, and create this one, you will be permanently banned from
|
||||
interacting with the entire organization.
|
||||
|
||||
Please do not use AI for writing your request's description, no one wishes
|
||||
to read that and thus your request will be closed.
|
||||
|
||||
If your request is for a platform-specific feature (e.g. for macOS), please
|
||||
submit it to the relevant platform repo instead of the generic "helium" repo.
|
||||
- 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 your problem
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: additional
|
||||
attributes:
|
||||
label: Additional context
|
||||
description: Add any other context about the feature request here
|
||||
@@ -0,0 +1,17 @@
|
||||
---
|
||||
name: Blank issue
|
||||
about: Create a new issue from scratch
|
||||
---
|
||||
|
||||
For your issue to not get closed without review, please confirm that:
|
||||
|
||||
- [ ] This issue does not fit into any of the predefined categories, which is
|
||||
why I am making a blank issue from scratch.
|
||||
- [ ] I am not reporting a security vulnerability through this issue, because
|
||||
I am aware that there is an appropriate channel for that.
|
||||
- [x] I understand that I will be permanently banned from interacting with this
|
||||
organization if I lied by checking any of these checkboxes.
|
||||
|
||||
---
|
||||
|
||||
[your issue text goes here]
|
||||
@@ -0,0 +1,18 @@
|
||||
For your pull request to not get closed without review, please confirm that:
|
||||
|
||||
- [ ] An issue exists where the maintainers agreed that this should be implemented.
|
||||
If such issue did not exist before, I opened one.
|
||||
- [ ] I tested that my contribution works locally, and does not break anything,
|
||||
otherwise I have marked my PR as draft.
|
||||
- [ ] If my contribution is non-trivial, I did not use AI to write most of it.
|
||||
- [x] I understand that I will be permanently banned from interacting with this
|
||||
organization if I lied by checking any of these checkboxes.
|
||||
|
||||
Tested on (check one or more):
|
||||
- [ ] Windows
|
||||
- [ ] macOS
|
||||
- [ ] Linux
|
||||
|
||||
---
|
||||
|
||||
[short description of your PR goes here]
|
||||
@@ -59,7 +59,7 @@ runs:
|
||||
|
||||
mkdir -p build/{src,download_cache}
|
||||
|
||||
for file in "$HELIUM_DIR/downloads.ini" "$PLATFORM_DIR/downloads.ini"; do
|
||||
for file in "$HELIUM_DIR/downloads.ini" "$HELIUM_DIR/extras.ini" "$PLATFORM_DIR/downloads.ini"; do
|
||||
if ! [ -f "$file" ]; then continue; fi
|
||||
|
||||
run_upstream utils/downloads.py retrieve \
|
||||
@@ -83,8 +83,8 @@ runs:
|
||||
# commit, push, make pr
|
||||
TITLE="update: helium $version_after"
|
||||
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git config user.name "helium-bot"
|
||||
git config user.email "helium-bot@imput.net"
|
||||
git add -u patches helium-chromium revision.txt
|
||||
if ! git status | tail -1 | grep -q 'nothing to commit'; then
|
||||
git commit -m "$TITLE"
|
||||
|
||||
@@ -1,100 +0,0 @@
|
||||
name: New version check
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
|
||||
on:
|
||||
# enabling manual trigger
|
||||
workflow_dispatch:
|
||||
# running every hour
|
||||
schedule:
|
||||
- cron: '48 * * * *'
|
||||
|
||||
jobs:
|
||||
check:
|
||||
# do not run in forks
|
||||
if: github.repository == 'ungoogled-software/ungoogled-chromium'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set maintainer groups
|
||||
id: maintainers
|
||||
run: |
|
||||
echo "all=@networkException" >> $GITHUB_OUTPUT
|
||||
echo "linux=@rany2 @clickot @emilylange" >> $GITHUB_OUTPUT
|
||||
echo "windows=" >> $GITHUB_OUTPUT
|
||||
echo "macos=" >> $GITHUB_OUTPUT
|
||||
- name: Get the latest Chromium version
|
||||
id: latest-version
|
||||
run: |
|
||||
set -eo pipefail
|
||||
BASE_URL="https://versionhistory.googleapis.com/v1/chrome/platforms"
|
||||
END_URL="channels/stable/versions/all/releases?filter=endtime%3Dnone%2Cfraction%3E%3D0.5&order_by=version%20desc"
|
||||
JQ_FILTER='if .releases | select(type=="array") | length > 0 then .releases | first | .version else "null" end'
|
||||
for platform in linux win mac; do
|
||||
printf %s "${platform}_version=" >> $GITHUB_OUTPUT
|
||||
curl -sf "${BASE_URL}/${platform}/${END_URL}" | jq -re "${JQ_FILTER}" >> $GITHUB_OUTPUT
|
||||
done
|
||||
- uses: actions/checkout@v3
|
||||
- name: Create Issue for all platforms
|
||||
if: |
|
||||
contains(steps.latest-version.outputs.win_version, steps.latest-version.outputs.mac_version) &&
|
||||
contains(steps.latest-version.outputs.mac_version, steps.latest-version.outputs.linux_version) &&
|
||||
!contains(steps.latest-version.outputs.linux_version, 'null')
|
||||
uses: dblock/create-a-github-issue@v3
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
VERSION: ${{ steps.latest-version.outputs.linux_version }}
|
||||
PLATFORM: all platforms
|
||||
NOTIFY_MAINTAINERS: "${{ steps.maintainers.outputs.all }} ${{ steps.maintainers.outputs.linux }} ${{ steps.maintainers.outputs.windows }} ${{ steps.maintainers.outputs.macos }}"
|
||||
with:
|
||||
update_existing: false
|
||||
search_existing: all
|
||||
filename: .github/ISSUE_TEMPLATE/create-an--updating-to-chromium-x-x-x-x-.md
|
||||
- name: Create Issue for Linux
|
||||
if: |
|
||||
(
|
||||
!contains(steps.latest-version.outputs.win_version, steps.latest-version.outputs.mac_version) ||
|
||||
!contains(steps.latest-version.outputs.mac_version, steps.latest-version.outputs.linux_version)
|
||||
) && !contains(steps.latest-version.outputs.linux_version, 'null')
|
||||
uses: dblock/create-a-github-issue@v3
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
VERSION: ${{ steps.latest-version.outputs.linux_version }}
|
||||
PLATFORM: Linux
|
||||
NOTIFY_MAINTAINERS: "${{ steps.maintainers.outputs.all }} ${{ steps.maintainers.outputs.linux }}"
|
||||
with:
|
||||
update_existing: false
|
||||
search_existing: all
|
||||
filename: .github/ISSUE_TEMPLATE/create-an--updating-to-chromium-x-x-x-x-.md
|
||||
- name: Create Issue for macOS
|
||||
if: |
|
||||
(
|
||||
!contains(steps.latest-version.outputs.win_version, steps.latest-version.outputs.mac_version) ||
|
||||
!contains(steps.latest-version.outputs.mac_version, steps.latest-version.outputs.linux_version)
|
||||
) && !contains(steps.latest-version.outputs.mac_version, 'null')
|
||||
uses: dblock/create-a-github-issue@v3
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
VERSION: ${{ steps.latest-version.outputs.mac_version }}
|
||||
PLATFORM: macOS
|
||||
NOTIFY_MAINTAINERS: "${{ steps.maintainers.outputs.all }} ${{ steps.maintainers.outputs.macos }}"
|
||||
with:
|
||||
update_existing: false
|
||||
search_existing: all
|
||||
filename: .github/ISSUE_TEMPLATE/create-an--updating-to-chromium-x-x-x-x-.md
|
||||
- name: Create Issue for Windows
|
||||
if: |
|
||||
(
|
||||
!contains(steps.latest-version.outputs.win_version, steps.latest-version.outputs.mac_version) ||
|
||||
!contains(steps.latest-version.outputs.mac_version, steps.latest-version.outputs.linux_version)
|
||||
) && !contains(steps.latest-version.outputs.win_version, 'null')
|
||||
uses: dblock/create-a-github-issue@v3
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
VERSION: ${{ steps.latest-version.outputs.win_version }}
|
||||
PLATFORM: Windows
|
||||
NOTIFY_MAINTAINERS: "${{ steps.maintainers.outputs.all }} ${{ steps.maintainers.outputs.windows }}"
|
||||
with:
|
||||
update_existing: false
|
||||
search_existing: all
|
||||
filename: .github/ISSUE_TEMPLATE/create-an--updating-to-chromium-x-x-x-x-.md
|
||||
@@ -1,20 +1,47 @@
|
||||
# Helium
|
||||
Bullshit-free web browser, based on Chromium. Follows [imput](https://github.com/imputnet)'s ethics and norms.
|
||||
<div align="center">
|
||||
<br/>
|
||||
<p>
|
||||
<img src="resources/branding/app_icon/raw.png"
|
||||
title="Helium" alt="Helium logo" width="120" />
|
||||
<h1>Helium</h1>
|
||||
</p>
|
||||
<p width="120">
|
||||
The Chromium-based web browser made for people, with love.
|
||||
<br>
|
||||
Best privacy by default, unbiased ad-blocking, no bloat and no noise.
|
||||
</p>
|
||||
<a href="https://helium.computer/">
|
||||
helium.computer
|
||||
</a>
|
||||
<br/>
|
||||
</div>
|
||||
|
||||
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.
|
||||
## Downloads
|
||||
> [!NOTE]
|
||||
> Helium is still in beta, so unexpected issues may occur. We are not responsible
|
||||
for any damage caused by usage of beta software.
|
||||
|
||||
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!
|
||||
Best way to download Helium is to open [helium.computer](https://helium.computer/) on your computer.
|
||||
It'll pick the right build for your OS and architecture automatically.
|
||||
|
||||
## Platform-specific packaging
|
||||
At the moment, only [Helium for macOS](https://github.com/imputnet/helium-macos) is polished and ready for daily use.
|
||||
If you wish to download builds "straight from the tap" with all options in one place,
|
||||
you can do it on GitHub in the Releases section in each platform's repo:
|
||||
- [macOS](https://github.com/imputnet/helium-macos/releases/latest)
|
||||
- [Linux](https://github.com/imputnet/helium-linux/releases/latest) (AppImage)
|
||||
- [Windows](https://github.com/imputnet/helium-windows/releases/latest) (no auto-updates yet)
|
||||
|
||||
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)
|
||||
## Platform packaging
|
||||
Helium is available on all major desktop platforms, with entirety of source code
|
||||
for all of them published here:
|
||||
- [Helium for macOS](https://github.com/imputnet/helium-macos)
|
||||
- [Helium for Linux](https://github.com/imputnet/helium-linux)
|
||||
- [Helium for Windows](https://github.com/imputnet/helium-windows)
|
||||
|
||||
## Other Helium repos
|
||||
Along with the main repo and platform packaging, these projects are also a part of Helium:
|
||||
- [Helium services](https://github.com/imputnet/helium-services)
|
||||
- [Helium onboarding](https://github.com/imputnet/helium-onboarding) (the onboarding page seen in Helium at `helium://setup`)
|
||||
- [uBlock Origin packaging](https://github.com/imputnet/ublock-origin-crx)
|
||||
|
||||
## Credits
|
||||
### ungoogled-chromium
|
||||
@@ -41,3 +68,8 @@ 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](LICENSE.ungoogled_chromium)).
|
||||
|
||||
## More documentation (soon)
|
||||
> [!NOTE]
|
||||
> We will add more documentation along with design and motivation guidelines in the future.
|
||||
All docs will be linked here along with other related content.
|
||||
|
||||
@@ -1 +1 @@
|
||||
140.0.7339.185
|
||||
142.0.7444.59
|
||||
|
||||
@@ -70,8 +70,8 @@ PRUNING_EXCLUDE_PATTERNS = [
|
||||
'third_party/node/node_modules/@rollup/wasm-node/dist/wasm-node/bindings_wasm_bg.wasm',
|
||||
# Exclusion for performance tracing
|
||||
'third_party/perfetto/src/trace_processor/importers/proto/atoms.descriptor',
|
||||
# Exclusion for jiff
|
||||
'third_party/rust/chromium_crates_io/vendor/jiff-tzdb-v0_1/concatenated-zoneinfo.dat',
|
||||
# Exclusion for zoneinfo64
|
||||
'third_party/rust/chromium_crates_io/vendor/zoneinfo64-v0_2/src/data/zoneinfo64.res',
|
||||
# Exclusions for safe file extensions
|
||||
'*.avif',
|
||||
'*.ttf',
|
||||
|
||||
+607
-152
File diff suppressed because it is too large
Load Diff
@@ -6,12 +6,3 @@ download_filename = chromium-%(_chromium_version)s-lite.tar.xz
|
||||
hash_url = chromium|chromium-%(_chromium_version)s-lite.tar.xz.hashes|https://commondatastorage.googleapis.com/chromium-browser-official/chromium-%(_chromium_version)s-lite.tar.xz.hashes
|
||||
output_path = ./
|
||||
strip_leading_dirs = chromium-%(_chromium_version)s
|
||||
|
||||
# If you are bumping this, you *NEED* to re-strip the assets.json
|
||||
# file *every time* by using `devutils/clear-ublock-assets.js`.
|
||||
[ublock_origin]
|
||||
version = 1.66.4
|
||||
url = https://github.com/imputnet/ublock-origin-crx/releases/download/%(version)s/uBlock0_%(version)s.crx
|
||||
sha256 = c2809bb4cd2f3a6b9ddfc5e165cba74a200cd80ca691521f73d98bf5ab5abcef
|
||||
download_filename = ublock-origin-%(version)s.zip
|
||||
output_path = third_party/ublock
|
||||
|
||||
+11
-2
@@ -7,8 +7,17 @@ sha256 = 00a87050fa3f941d04d67fb5763991e0b8ea399a88b505ab0e56dd263f06864c
|
||||
output_path = ./third_party/search_engines_data/resources_internal
|
||||
|
||||
[onboarding]
|
||||
version = 202509221633
|
||||
version = 202509241653
|
||||
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 = a32a0f55a0d8157e50613c1dc16bba16940d3610c1a7bb90a9d5e08dac4e6483
|
||||
sha256 = fb23110d391419fbbbe2c8f7c3d96765b9b50aa1c20025343ab7f8bd59f9e7ab
|
||||
output_path = ./components/helium_onboarding
|
||||
|
||||
# If you are bumping this, you *NEED* to re-strip the assets.json
|
||||
# file *every time* by using `devutils/clear-ublock-assets.js`.
|
||||
[ublock_origin]
|
||||
version = 1.67.0
|
||||
url = https://github.com/imputnet/ublock-origin-crx/releases/download/%(version)s/uBlock0_%(version)s.crx
|
||||
sha256 = 969eaaa4e0b1893a35e1c5767c33bcfcc62737667644c97f644ff3c84677aff7
|
||||
download_filename = ublock-origin-%(version)s.zip
|
||||
output_path = third_party/ublock
|
||||
|
||||
@@ -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
|
||||
@@ -223,22 +223,7 @@ bool GetInstanceManipulations(const net:
|
||||
@@ -224,22 +224,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,6 +1,6 @@
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -3794,8 +3794,6 @@ static_library("browser") {
|
||||
@@ -3801,8 +3801,6 @@ static_library("browser") {
|
||||
"download/download_auto_open_policy_handler.cc",
|
||||
"download/download_auto_open_policy_handler.h",
|
||||
"download/download_commands.cc",
|
||||
@@ -11,7 +11,7 @@
|
||||
"download/download_dir_util.cc",
|
||||
--- a/chrome/browser/chrome_content_browser_client_navigation_throttles.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client_navigation_throttles.cc
|
||||
@@ -390,10 +390,6 @@ void CreateAndAddChromeThrottlesForNavig
|
||||
@@ -393,10 +393,6 @@ void CreateAndAddChromeThrottlesForNavig
|
||||
registry.AddThrottle(std::make_unique<PolicyBlocklistNavigationThrottle>(
|
||||
registry, handle.GetWebContents()->GetBrowserContext()));
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
} // namespace
|
||||
--- a/chrome/browser/download/download_item_model.cc
|
||||
+++ b/chrome/browser/download/download_item_model.cc
|
||||
@@ -128,7 +128,7 @@ class DownloadItemModelData : public bas
|
||||
@@ -129,7 +129,7 @@ class DownloadItemModelData : public bas
|
||||
|
||||
// Danger level of the file determined based on the file type and whether
|
||||
// there was a user action associated with the download.
|
||||
@@ -57,7 +57,7 @@
|
||||
|
||||
// Whether the download is currently being revived.
|
||||
bool is_being_revived_ = false;
|
||||
@@ -463,13 +463,13 @@ void DownloadItemModel::SetShouldPreferO
|
||||
@@ -464,13 +464,13 @@ void DownloadItemModel::SetShouldPreferO
|
||||
data->should_prefer_opening_in_browser_ = preference;
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
#include "chrome/browser/download/download_file_icon_extractor.h"
|
||||
#include "chrome/browser/download/download_open_prompt.h"
|
||||
#include "chrome/browser/download/download_prefs.h"
|
||||
@@ -1379,9 +1378,6 @@ DownloadsAcceptDangerFunction::Downloads
|
||||
@@ -1382,9 +1381,6 @@ DownloadsAcceptDangerFunction::Downloads
|
||||
|
||||
DownloadsAcceptDangerFunction::~DownloadsAcceptDangerFunction() = default;
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
ExtensionFunction::ResponseAction DownloadsAcceptDangerFunction::Run() {
|
||||
std::optional<downloads::AcceptDanger::Params> params =
|
||||
downloads::AcceptDanger::Params::Create(args());
|
||||
@@ -1431,44 +1427,7 @@ void DownloadsAcceptDangerFunction::Prom
|
||||
@@ -1434,44 +1430,7 @@ void DownloadsAcceptDangerFunction::Prom
|
||||
return;
|
||||
}
|
||||
RecordApiFunctions(DownloadsFunctionName::kDownloadsFunctionAcceptDanger);
|
||||
@@ -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
|
||||
@@ -703,18 +703,6 @@ void WebstorePrivateBeginInstallWithMani
|
||||
@@ -706,18 +706,6 @@ void WebstorePrivateBeginInstallWithMani
|
||||
|
||||
void WebstorePrivateBeginInstallWithManifest3Function::
|
||||
ReportFrictionAcceptedEvent() {
|
||||
@@ -201,7 +201,7 @@
|
||||
void WebstorePrivateBeginInstallWithManifest3Function::OnInstallPromptDone(
|
||||
--- a/chrome/browser/extensions/blocklist_state_fetcher.cc
|
||||
+++ b/chrome/browser/extensions/blocklist_state_fetcher.cc
|
||||
@@ -75,8 +75,7 @@ void BlocklistStateFetcher::SendRequest(
|
||||
@@ -78,8 +78,7 @@ void BlocklistStateFetcher::SendRequest(
|
||||
std::string request_str;
|
||||
request.SerializeToString(&request_str);
|
||||
|
||||
@@ -211,7 +211,7 @@
|
||||
net::NetworkTrafficAnnotationTag traffic_annotation =
|
||||
net::DefineNetworkTrafficAnnotation("extension_blacklist", R"(
|
||||
semantics {
|
||||
@@ -131,12 +130,6 @@ void BlocklistStateFetcher::SendRequest(
|
||||
@@ -134,12 +133,6 @@ void BlocklistStateFetcher::SendRequest(
|
||||
base::Unretained(this), fetcher));
|
||||
}
|
||||
|
||||
@@ -245,7 +245,7 @@
|
||||
sources = [
|
||||
"chrome_controller_client.cc",
|
||||
"chrome_controller_client.h",
|
||||
@@ -77,6 +78,7 @@ static_library("safe_browsing") {
|
||||
@@ -81,6 +82,7 @@ static_library("safe_browsing") {
|
||||
"//services/metrics/public/cpp:ukm_builders",
|
||||
"//services/preferences/public/cpp",
|
||||
]
|
||||
@@ -253,7 +253,7 @@
|
||||
|
||||
if (enable_extensions) {
|
||||
deps += [ "//chrome/browser/ui/web_applications" ]
|
||||
@@ -601,6 +603,7 @@ static_library("advanced_protection") {
|
||||
@@ -614,6 +616,7 @@ static_library("advanced_protection") {
|
||||
}
|
||||
|
||||
source_set("metrics_collector") {
|
||||
@@ -261,7 +261,7 @@
|
||||
sources = [
|
||||
"safe_browsing_metrics_collector_factory.cc",
|
||||
"safe_browsing_metrics_collector_factory.h",
|
||||
@@ -620,6 +623,7 @@ source_set("metrics_collector") {
|
||||
@@ -633,6 +636,7 @@ source_set("metrics_collector") {
|
||||
"//components/safe_browsing/core/common:safe_browsing_prefs",
|
||||
"//content/public/browser",
|
||||
]
|
||||
@@ -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
|
||||
@@ -110,7 +110,6 @@
|
||||
@@ -114,7 +114,6 @@
|
||||
#include "components/pdf/common/pdf_util.h"
|
||||
#include "components/permissions/features.h"
|
||||
#include "components/safe_browsing/buildflags.h"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/updater/configurator.cc
|
||||
+++ b/chrome/updater/configurator.cc
|
||||
@@ -147,7 +147,7 @@ base::TimeDelta Configurator::UpdateDela
|
||||
@@ -133,7 +133,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
|
||||
@@ -469,14 +469,6 @@ group("gn_all") {
|
||||
@@ -458,14 +458,6 @@ group("gn_all") {
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
+21
-21
@@ -90,7 +90,7 @@ by default.
|
||||
// once per machine.
|
||||
--- a/chrome/browser/extensions/install_signer.cc
|
||||
+++ b/chrome/browser/extensions/install_signer.cc
|
||||
@@ -63,7 +63,7 @@ const int kSignatureFormatVersion = 2;
|
||||
@@ -66,7 +66,7 @@ const int kSignatureFormatVersion = 2;
|
||||
const size_t kSaltBytes = 32;
|
||||
|
||||
const char kBackendUrl[] =
|
||||
@@ -101,7 +101,7 @@ by default.
|
||||
"-----BEGIN PUBLIC KEY-----"
|
||||
--- a/chrome/browser/media/webrtc/webrtc_event_log_uploader.cc
|
||||
+++ b/chrome/browser/media/webrtc/webrtc_event_log_uploader.cc
|
||||
@@ -110,7 +110,7 @@ void OnURLLoadUploadProgress(uint64_t cu
|
||||
@@ -111,7 +111,7 @@ void OnURLLoadUploadProgress(uint64_t cu
|
||||
} // namespace
|
||||
|
||||
const char WebRtcEventLogUploaderImpl::kUploadURL[] =
|
||||
@@ -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
|
||||
@@ -531,7 +531,7 @@ void WebRtcLogUploader::UploadCompressed
|
||||
@@ -530,7 +530,7 @@ void WebRtcLogUploader::UploadCompressed
|
||||
}
|
||||
})");
|
||||
|
||||
@@ -167,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
|
||||
@@ -32,7 +32,7 @@
|
||||
@@ -33,7 +33,7 @@
|
||||
namespace {
|
||||
|
||||
// The URL to be used to re-install Chrome when auto-update failed for too long.
|
||||
@@ -178,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
|
||||
@@ -76,17 +76,17 @@ namespace {
|
||||
@@ -66,17 +66,17 @@ namespace {
|
||||
// The URL for the the Learn More page shown on incognito new tab.
|
||||
const char kLearnMoreIncognitoUrl[] =
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
@@ -202,7 +202,7 @@ by default.
|
||||
std::string ReplaceTemplateExpressions(
|
||||
--- a/chrome/common/extensions/chrome_extensions_client.cc
|
||||
+++ b/chrome/common/extensions/chrome_extensions_client.cc
|
||||
@@ -45,9 +45,9 @@ namespace {
|
||||
@@ -46,9 +46,9 @@ namespace {
|
||||
|
||||
// TODO(battre): Delete the HTTP URL once the blocklist is downloaded via HTTPS.
|
||||
const char kExtensionBlocklistUrlPrefix[] =
|
||||
@@ -252,7 +252,7 @@ by default.
|
||||
// Mime type to create a directory.
|
||||
--- a/components/feedback/feedback_uploader.cc
|
||||
+++ b/components/feedback/feedback_uploader.cc
|
||||
@@ -39,7 +39,7 @@ constexpr base::FilePath::CharType kFeed
|
||||
@@ -40,7 +40,7 @@ constexpr base::FilePath::CharType kFeed
|
||||
FILE_PATH_LITERAL("Feedback Reports");
|
||||
|
||||
constexpr char kFeedbackPostUrl[] =
|
||||
@@ -263,7 +263,7 @@ by default.
|
||||
|
||||
--- a/components/google/core/common/google_util.cc
|
||||
+++ b/components/google/core/common/google_util.cc
|
||||
@@ -152,7 +152,7 @@ BASE_FEATURE(kIsViewerGoogleSearchUrl,
|
||||
@@ -150,7 +150,7 @@ BASE_FEATURE(kIsViewerGoogleSearchUrl, b
|
||||
|
||||
// Global functions -----------------------------------------------------------
|
||||
|
||||
@@ -274,13 +274,9 @@ by default.
|
||||
url::Component query(0, static_cast<int>(str.length())), key, value;
|
||||
--- a/components/history/core/browser/web_history_service.cc
|
||||
+++ b/components/history/core/browser/web_history_service.cc
|
||||
@@ -42,13 +42,13 @@ namespace history {
|
||||
|
||||
@@ -44,13 +44,13 @@ namespace history {
|
||||
namespace {
|
||||
|
||||
-const char kHistoryOAuthScope[] = "https://www.googleapis.com/auth/chromesync";
|
||||
+const char kHistoryOAuthScope[] = "trk:138:https://www.googleapis.com/auth/chromesync";
|
||||
|
||||
const char kHistoryQueryHistoryUrl[] =
|
||||
- "https://history.google.com/history/api/lookup?client=chrome";
|
||||
+ "trk:139:https://history.google.com/history/api/lookup?client=chrome";
|
||||
@@ -289,8 +285,12 @@ by default.
|
||||
- "https://history.google.com/history/api/delete?client=chrome";
|
||||
+ "trk:140:https://history.google.com/history/api/delete?client=chrome";
|
||||
|
||||
const char kHistoryAudioHistoryUrl[] =
|
||||
"https://history.google.com/history/api/lookup?client=audio";
|
||||
const char kQueryWebAndAppActivityUrl[] =
|
||||
- "https://history.google.com/history/api/lookup?client=web_app";
|
||||
+ "trk:138:https://history.google.com/history/api/lookup?client=web_app";
|
||||
|
||||
const char kQueryOtherFormsOfBrowsingHistoryUrlSuffix[] = "/historystatus";
|
||||
|
||||
--- a/components/safe_browsing/content/browser/client_side_detection_service.cc
|
||||
+++ b/components/safe_browsing/content/browser/client_side_detection_service.cc
|
||||
@@ -68,7 +68,7 @@ const int ClientSideDetectionService::kN
|
||||
@@ -326,9 +326,9 @@ by default.
|
||||
base::Value::Dict dict;
|
||||
--- a/components/translate/core/browser/translate_url_fetcher.cc
|
||||
+++ b/components/translate/core/browser/translate_url_fetcher.cc
|
||||
@@ -98,6 +98,7 @@ bool TranslateURLFetcher::Request(const
|
||||
if (!extra_request_header_.empty())
|
||||
resource_request->headers.AddHeaderFromString(extra_request_header_);
|
||||
@@ -97,6 +97,7 @@ bool TranslateURLFetcher::Request(const
|
||||
resource_request->credentials_mode = network::mojom::CredentialsMode::kOmit;
|
||||
resource_request->headers.MergeFrom(extra_request_header_);
|
||||
|
||||
+ fprintf(stderr, "translator: fetching something from %s\n", url_.spec().c_str());
|
||||
simple_loader_ =
|
||||
@@ -343,8 +343,8 @@ by default.
|
||||
-const char kSecurityOrigin[] = "https://translate.googleapis.com/";
|
||||
+const char kSecurityOrigin[] = "trk:220:https://translate.googleapis.com/";
|
||||
|
||||
// The feature is explicitly disabled on Webview and Weblayer.
|
||||
// TODO(crbug.com/40819484): Enable the feature on Webview.
|
||||
// The feature is explicitly disabled on WebView.
|
||||
// TODO(crbug.com/40819484): Enable the feature on WebView.
|
||||
--- a/components/variations/variations_url_constants.cc
|
||||
+++ b/components/variations/variations_url_constants.cc
|
||||
@@ -8,7 +8,7 @@ namespace variations {
|
||||
@@ -369,7 +369,7 @@ by default.
|
||||
|
||||
--- a/content/browser/webauth/webauth_request_security_checker.h
|
||||
+++ b/content/browser/webauth/webauth_request_security_checker.h
|
||||
@@ -90,9 +90,9 @@ class CONTENT_EXPORT WebAuthRequestSecur
|
||||
@@ -85,9 +85,9 @@ class CONTENT_EXPORT WebAuthRequestSecur
|
||||
// Legacy App IDs, which google.com origins are allowed to assert for
|
||||
// compatibility reasons.
|
||||
static constexpr char kGstaticAppId[] =
|
||||
|
||||
@@ -16,7 +16,7 @@ the URL so we get notified if this happens again in the future).
|
||||
|
||||
--- a/chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc
|
||||
+++ b/chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc
|
||||
@@ -63,8 +63,7 @@ ChromeSafeBrowsingBlockingPageFactory::C
|
||||
@@ -64,8 +64,7 @@ ChromeSafeBrowsingBlockingPageFactory::C
|
||||
Profile::FromBrowserContext(web_contents->GetBrowserContext());
|
||||
// Create appropriate display options for this blocking page.
|
||||
PrefService* prefs = profile->GetPrefs();
|
||||
@@ -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
|
||||
@@ -303,11 +303,14 @@ IncidentReportingService::UploadContext:
|
||||
@@ -302,11 +302,14 @@ IncidentReportingService::UploadContext:
|
||||
|
||||
// static
|
||||
bool IncidentReportingService::IsEnabledForProfile(Profile* profile) {
|
||||
|
||||
+5
-5
@@ -19,15 +19,15 @@ This prevents trk:148 (phishing) and trk:149 (malware).
|
||||
|
||||
+#if 1
|
||||
+ if (!callback.is_null())
|
||||
+ callback.Run(GURL(request->url()), false);
|
||||
+ std::move(callback).Run(GURL(request->url()), false, std::nullopt, std::nullopt);
|
||||
+#else
|
||||
std::string request_data;
|
||||
request->SerializeToString(&request_data);
|
||||
|
||||
@@ -362,6 +366,7 @@ void ClientSideDetectionService::StartCl
|
||||
base::BindOnce(&WebUIInfoSingleton::AddToClientPhishingRequestsSent,
|
||||
base::Unretained(WebUIInfoSingleton::GetInstance()),
|
||||
std::move(request), access_token));
|
||||
@@ -363,6 +367,7 @@ void ClientSideDetectionService::StartCl
|
||||
&WebUIContentInfoSingleton::AddToClientPhishingRequestsSent,
|
||||
base::Unretained(WebUIContentInfoSingleton::GetInstance()),
|
||||
std::move(request), access_token));
|
||||
+#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
# Dev tools attempts to download css data
|
||||
--- a/chrome/browser/new_tab_page/one_google_bar/one_google_bar_loader_impl.cc
|
||||
+++ b/chrome/browser/new_tab_page/one_google_bar/one_google_bar_loader_impl.cc
|
||||
@@ -307,6 +307,7 @@ OneGoogleBarLoaderImpl::OneGoogleBarLoad
|
||||
@@ -302,6 +302,7 @@ OneGoogleBarLoaderImpl::OneGoogleBarLoad
|
||||
OneGoogleBarLoaderImpl::~OneGoogleBarLoaderImpl() = default;
|
||||
|
||||
void OneGoogleBarLoaderImpl::Load(OneGoogleCallback callback) {
|
||||
@@ -58,7 +58,7 @@
|
||||
|
||||
--- a/components/affiliations/core/browser/hash_affiliation_fetcher.cc
|
||||
+++ b/components/affiliations/core/browser/hash_affiliation_fetcher.cc
|
||||
@@ -128,6 +128,10 @@ HashAffiliationFetcher::~HashAffiliation
|
||||
@@ -129,6 +129,10 @@ HashAffiliationFetcher::~HashAffiliation
|
||||
}
|
||||
|
||||
void HashAffiliationFetcher::StartRequest(
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
url.SchemeIs(dom_distiller::kDomDistillerScheme))
|
||||
--- a/chrome/browser/ui/singleton_tabs.cc
|
||||
+++ b/chrome/browser/ui/singleton_tabs.cc
|
||||
@@ -132,7 +132,8 @@ int GetIndexOfExistingTab(Browser* brows
|
||||
@@ -137,7 +137,8 @@ int GetIndexOfExistingTab(BrowserWindowI
|
||||
// RewriteURLIfNecessary removes the "view-source:" scheme which could lead
|
||||
// to incorrect matching, so ensure that the target and the candidate are
|
||||
// either both view-source:, or neither is.
|
||||
@@ -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
|
||||
@@ -602,6 +602,10 @@ GURL FixupURLInternal(const std::string&
|
||||
@@ -598,6 +598,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
|
||||
@@ -958,6 +958,7 @@ ChildProcessSecurityPolicyImpl::ChildPro
|
||||
@@ -957,6 +957,7 @@ ChildProcessSecurityPolicyImpl::ChildPro
|
||||
RegisterWebSafeScheme(url::kWssScheme);
|
||||
#endif // BUILDFLAG(ENABLE_WEBSOCKETS)
|
||||
RegisterWebSafeScheme(url::kDataScheme);
|
||||
@@ -70,7 +70,7 @@
|
||||
// other origins, so we should not treat them as web safe. Remove callers of
|
||||
--- a/net/BUILD.gn
|
||||
+++ b/net/BUILD.gn
|
||||
@@ -1113,6 +1113,8 @@ component("net") {
|
||||
@@ -1128,6 +1128,8 @@ component("net") {
|
||||
"url_request/static_http_user_agent_settings.cc",
|
||||
"url_request/static_http_user_agent_settings.h",
|
||||
"url_request/storage_access_status_cache.h",
|
||||
@@ -158,7 +158,7 @@
|
||||
|
||||
namespace net {
|
||||
|
||||
@@ -653,6 +655,12 @@ URLRequest::URLRequest(base::PassKey<URL
|
||||
@@ -650,6 +652,12 @@ URLRequest::URLRequest(base::PassKey<URL
|
||||
// Sanity check out environment.
|
||||
DCHECK(base::SingleThreadTaskRunner::HasCurrentDefault());
|
||||
|
||||
@@ -169,8 +169,8 @@
|
||||
+ }
|
||||
+
|
||||
context->url_requests()->insert(this);
|
||||
net_log_.BeginEvent(NetLogEventType::REQUEST_ALIVE, [&] {
|
||||
return NetLogURLRequestConstructorParams(url, priority_,
|
||||
net_log_.BeginEvent(NetLogEventType::REQUEST_ALIVE,
|
||||
[&](NetLogCaptureMode capture_mode) {
|
||||
--- a/net/url_request/url_request_context_builder.cc
|
||||
+++ b/net/url_request/url_request_context_builder.cc
|
||||
@@ -55,6 +55,7 @@
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/chrome/browser/chrome_content_browser_client.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client.cc
|
||||
@@ -2711,24 +2711,6 @@ void ChromeContentBrowserClient::AppendE
|
||||
@@ -2790,24 +2790,6 @@ void ChromeContentBrowserClient::AppendE
|
||||
command_line->AppendSwitchASCII(switches::kMetricsClientID,
|
||||
client_info->client_id);
|
||||
}
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
bool InitializeCrashpadImpl(bool initial_client,
|
||||
+ const std::string& a, const std::string& b, const base::FilePath& c,
|
||||
+ const std::vector<std::string>& d, bool e) {
|
||||
+ const std::vector<std::string>& d, bool e, const std::vector<base::FilePath>& f) {
|
||||
+ return false;
|
||||
+}
|
||||
+[[maybe_unused]]
|
||||
@@ -44,7 +44,7 @@
|
||||
const base::FilePath& exe_path,
|
||||
--- a/components/gwp_asan/client/gwp_asan.cc
|
||||
+++ b/components/gwp_asan/client/gwp_asan.cc
|
||||
@@ -345,6 +345,11 @@ GWP_ASAN_EXPORT std::optional<AllocatorS
|
||||
@@ -344,6 +344,11 @@ GWP_ASAN_EXPORT std::optional<AllocatorS
|
||||
|
||||
// Exported for testing.
|
||||
GWP_ASAN_EXPORT std::optional<AllocatorSettings> GetAllocatorSettings(
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
|
||||
+++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
|
||||
@@ -295,7 +295,7 @@ bool DomDistillerViewerSource::ShouldSer
|
||||
@@ -296,7 +296,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
|
||||
@@ -153,7 +153,7 @@ function maybeSetWebFont() {
|
||||
@@ -402,7 +402,7 @@ function maybeSetWebFont() {
|
||||
}
|
||||
|
||||
const e = document.createElement('link');
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
--- a/google_apis/gaia/gaia_auth_fetcher.cc
|
||||
+++ b/google_apis/gaia/gaia_auth_fetcher.cc
|
||||
@@ -232,61 +232,6 @@ void GaiaAuthFetcher::CreateAndStartGaia
|
||||
@@ -236,61 +236,6 @@ void GaiaAuthFetcher::CreateAndStartGaia
|
||||
network::mojom::CredentialsMode credentials_mode,
|
||||
const net::NetworkTrafficAnnotationTag& traffic_annotation) {
|
||||
DCHECK(!fetch_pending_) << "Tried to fetch two things at once!";
|
||||
|
||||
@@ -314,8 +314,8 @@
|
||||
-
|
||||
} // namespace
|
||||
|
||||
BASE_FEATURE(kIsViewerGoogleSearchUrl,
|
||||
@@ -155,13 +44,6 @@ BASE_FEATURE(kIsViewerGoogleSearchUrl,
|
||||
BASE_FEATURE(kIsViewerGoogleSearchUrl, base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
@@ -153,13 +42,6 @@ BASE_FEATURE(kIsViewerGoogleSearchUrl, b
|
||||
const char kGoogleHomepageURL[] = "trk:113:https://www.google.com/";
|
||||
|
||||
bool HasGoogleSearchQueryParam(std::string_view str) {
|
||||
@@ -329,7 +329,7 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -172,175 +54,53 @@ std::string GetGoogleLocale(const std::s
|
||||
@@ -170,175 +52,53 @@ std::string GetGoogleLocale(const std::s
|
||||
|
||||
GURL AppendGoogleLocaleParam(const GURL& url,
|
||||
const std::string& application_locale) {
|
||||
@@ -570,7 +570,7 @@
|
||||
bool IsProbablyGoogleSearchUrl(const GURL& url) {
|
||||
--- a/components/search_engines/template_url.cc
|
||||
+++ b/components/search_engines/template_url.cc
|
||||
@@ -608,10 +608,7 @@ std::u16string TemplateURLRef::SearchTer
|
||||
@@ -610,10 +610,7 @@ std::u16string TemplateURLRef::SearchTer
|
||||
bool TemplateURLRef::HasGoogleBaseURLs(
|
||||
const SearchTermsData& search_terms_data) const {
|
||||
ParseIfNecessary(search_terms_data);
|
||||
@@ -595,7 +595,7 @@
|
||||
namespace {
|
||||
|
||||
// The result of checking whether a request to a URL should have variations
|
||||
@@ -112,16 +108,6 @@ URLValidationResult GetUrlValidationResu
|
||||
@@ -116,16 +112,6 @@ URLValidationResult GetUrlValidationResu
|
||||
return URLValidationResult::kShouldAppend;
|
||||
}
|
||||
|
||||
@@ -612,7 +612,7 @@
|
||||
// Returns true if the request is sent from a Google web property, i.e. from a
|
||||
// first-party context.
|
||||
//
|
||||
@@ -248,28 +234,7 @@ class VariationsHeaderHelper {
|
||||
@@ -252,30 +238,7 @@ class VariationsHeaderHelper {
|
||||
VariationsHeaderHelper& operator=(const VariationsHeaderHelper&) = delete;
|
||||
|
||||
bool AppendHeaderIfNeeded(const GURL& url, InIncognito incognito) {
|
||||
@@ -626,11 +626,13 @@
|
||||
- // 2. Only transmit for non-Incognito profiles.
|
||||
- // 3. For the X-Client-Data header, only include non-empty variation IDs.
|
||||
- if ((incognito == InIncognito::kYes) ||
|
||||
- !ShouldAppendVariationsHeader(url, "Append"))
|
||||
- !ShouldAppendVariationsHeader(url, "Append")) {
|
||||
- return false;
|
||||
- }
|
||||
-
|
||||
- if (variations_header_.empty())
|
||||
- if (variations_header_.empty()) {
|
||||
- return false;
|
||||
- }
|
||||
-
|
||||
- // Set the variations header to cors_exempt_headers rather than headers to
|
||||
- // be exempted from CORS checks, and to avoid exposing the header to service
|
||||
@@ -642,16 +644,17 @@
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -334,8 +299,6 @@ void RemoveVariationsHeaderIfNeeded(
|
||||
@@ -341,9 +304,6 @@ void RemoveVariationsHeaderIfNeeded(
|
||||
const net::RedirectInfo& redirect_info,
|
||||
const network::mojom::URLResponseHead& response_head,
|
||||
std::vector<std::string>* to_be_removed_headers) {
|
||||
- if (!ShouldAppendVariationsHeader(redirect_info.new_url, "Remove"))
|
||||
- if (!ShouldAppendVariationsHeader(redirect_info.new_url, "Remove")) {
|
||||
- to_be_removed_headers->push_back(kClientDataHeader);
|
||||
- }
|
||||
}
|
||||
|
||||
std::unique_ptr<network::SimpleURLLoader>
|
||||
@@ -371,29 +334,22 @@ CreateSimpleURLLoaderWithVariationsHeade
|
||||
@@ -379,29 +339,22 @@ CreateSimpleURLLoaderWithVariationsHeade
|
||||
}
|
||||
|
||||
bool HasVariationsHeader(const network::ResourceRequest& request) {
|
||||
@@ -686,9 +689,9 @@
|
||||
} // namespace variations
|
||||
--- a/content/browser/preloading/prefetch/prefetch_container.cc
|
||||
+++ b/content/browser/preloading/prefetch/prefetch_container.cc
|
||||
@@ -949,7 +949,7 @@ void PrefetchContainer::AddRedirectHop(c
|
||||
// some which are added by throttles). These aren't yet supported for
|
||||
@@ -713,7 +713,7 @@ void PrefetchContainer::AddRedirectHop(c
|
||||
// prefetch, including browsing topics and client hints.
|
||||
// TODO(crbug.com/441612842): Support User-Agent overrides.
|
||||
net::HttpRequestHeaders updated_headers;
|
||||
- std::vector<std::string> headers_to_remove = {variations::kClientDataHeader};
|
||||
+ std::vector<std::string> headers_to_remove;
|
||||
@@ -697,7 +700,7 @@
|
||||
|
||||
--- a/net/base/url_util.cc
|
||||
+++ b/net/base/url_util.cc
|
||||
@@ -538,28 +538,6 @@ bool HasGoogleHost(const GURL& url) {
|
||||
@@ -550,28 +550,6 @@ bool HasGoogleHost(const GURL& url) {
|
||||
}
|
||||
|
||||
bool IsGoogleHost(std::string_view host) {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
--- a/chrome/BUILD.gn
|
||||
+++ b/chrome/BUILD.gn
|
||||
@@ -367,7 +367,6 @@ if (!is_android && !is_mac) {
|
||||
@@ -369,7 +369,6 @@ if (!is_android && !is_mac) {
|
||||
}
|
||||
|
||||
data_deps += [
|
||||
@@ -15,7 +15,7 @@
|
||||
"//components/webapps/isolated_web_apps/preload:component",
|
||||
"//third_party/widevine/cdm",
|
||||
]
|
||||
@@ -1181,7 +1180,6 @@ if (is_win) {
|
||||
@@ -1185,7 +1184,6 @@ if (is_win) {
|
||||
":optimization_guide_library",
|
||||
":swiftshader_binaries",
|
||||
":widevine_cdm_library",
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
--- a/chrome/browser/resources/BUILD.gn
|
||||
+++ b/chrome/browser/resources/BUILD.gn
|
||||
@@ -104,11 +104,6 @@ group("resources") {
|
||||
@@ -107,11 +107,6 @@ group("resources") {
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
--- a/components/network_time/network_time_tracker.cc
|
||||
+++ b/components/network_time/network_time_tracker.cc
|
||||
@@ -279,7 +279,7 @@ void NetworkTimeTracker::UpdateNetworkTi
|
||||
@@ -275,7 +275,7 @@ void NetworkTimeTracker::UpdateNetworkTi
|
||||
}
|
||||
|
||||
bool NetworkTimeTracker::AreTimeFetchesEnabled() const {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
@@ -991,12 +991,6 @@ void BrowsingDataModel::PopulateFromDisk
|
||||
base::FeatureList::IsEnabled(network::features::kSharedStorageAPI);
|
||||
bool is_shared_dictionary_enabled = base::FeatureList::IsEnabled(
|
||||
network::features::kCompressionDictionaryTransportBackend);
|
||||
network::features::kCompressionDictionaryTransport);
|
||||
- bool is_interest_group_enabled =
|
||||
- base::FeatureList::IsEnabled(network::features::kInterestGroupStorage);
|
||||
- bool is_attribution_reporting_enabled = base::FeatureList::IsEnabled(
|
||||
@@ -75,7 +75,7 @@
|
||||
PrivacySandboxSettingsImpl::Status
|
||||
--- a/content/browser/attribution_reporting/attribution_suitable_context.cc
|
||||
+++ b/content/browser/attribution_reporting/attribution_suitable_context.cc
|
||||
@@ -45,85 +45,13 @@ bool UkmSourceIdAllowed(RenderFrameHostI
|
||||
@@ -44,82 +44,13 @@ bool UkmSourceIdAllowed(RenderFrameHostI
|
||||
// static
|
||||
std::optional<AttributionSuitableContext> AttributionSuitableContext::Create(
|
||||
NavigationHandle* navigation_handle) {
|
||||
@@ -152,9 +152,6 @@
|
||||
- attribution_host->GetMostRecentNavigationInputEvent(),
|
||||
- AttributionOsLevelManager::GetAttributionReportingOsRegistrars(
|
||||
- web_contents),
|
||||
- !url_matcher::util::GetGoogleAmpViewerEmbeddedURL(
|
||||
- initiator_root_frame->GetLastCommittedURL())
|
||||
- .is_empty(),
|
||||
- UkmSourceIdAllowed(initiator_root_frame)
|
||||
- ? attribution_host->GetPageUkmSourceId()
|
||||
- : ukm::kInvalidSourceId,
|
||||
@@ -164,7 +161,7 @@
|
||||
// static
|
||||
--- a/content/browser/interest_group/ad_auction_service_impl.cc
|
||||
+++ b/content/browser/interest_group/ad_auction_service_impl.cc
|
||||
@@ -192,11 +192,6 @@ AdAuctionServiceImpl::BiddingAndAuctionD
|
||||
@@ -193,11 +193,6 @@ AdAuctionServiceImpl::BiddingAndAuctionD
|
||||
void AdAuctionServiceImpl::CreateMojoService(
|
||||
RenderFrameHost* render_frame_host,
|
||||
mojo::PendingReceiver<blink::mojom::AdAuctionService> receiver) {
|
||||
@@ -178,7 +175,7 @@
|
||||
void AdAuctionServiceImpl::JoinInterestGroup(
|
||||
--- a/content/browser/storage_partition_impl.cc
|
||||
+++ b/content/browser/storage_partition_impl.cc
|
||||
@@ -1484,38 +1484,7 @@ void StoragePartitionImpl::Initialize(
|
||||
@@ -1505,38 +1505,7 @@ void StoragePartitionImpl::Initialize(
|
||||
|
||||
bucket_manager_ = std::make_unique<BucketManager>(this);
|
||||
|
||||
@@ -217,7 +214,7 @@
|
||||
|
||||
GeneratedCodeCacheSettings settings =
|
||||
GetContentClient()->browser()->GetGeneratedCodeCacheSettings(
|
||||
@@ -1544,8 +1513,6 @@ void StoragePartitionImpl::Initialize(
|
||||
@@ -1565,8 +1534,6 @@ void StoragePartitionImpl::Initialize(
|
||||
|
||||
font_access_manager_ = FontAccessManager::Create();
|
||||
|
||||
@@ -226,7 +223,7 @@
|
||||
|
||||
#if BUILDFLAG(ENABLE_LIBRARY_CDMS)
|
||||
if (is_in_memory()) {
|
||||
@@ -1569,11 +1536,6 @@ void StoragePartitionImpl::Initialize(
|
||||
@@ -1590,11 +1557,6 @@ void StoragePartitionImpl::Initialize(
|
||||
std::make_unique<SharedStorageHeaderObserver>(this);
|
||||
}
|
||||
|
||||
@@ -240,7 +237,7 @@
|
||||
void StoragePartitionImpl::ResetSessionStorageConnections() {
|
||||
--- a/content/browser/web_contents/web_contents_impl.cc
|
||||
+++ b/content/browser/web_contents/web_contents_impl.cc
|
||||
@@ -4196,12 +4196,6 @@ void WebContentsImpl::Init(const WebCont
|
||||
@@ -4210,12 +4210,6 @@ void WebContentsImpl::Init(const WebCont
|
||||
DateTimeChooser::CreateDateTimeChooser(this);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/rlz/lib/financial_ping.cc
|
||||
+++ b/rlz/lib/financial_ping.cc
|
||||
@@ -311,7 +311,7 @@ FinancialPing::PingResponse FinancialPin
|
||||
@@ -308,7 +308,7 @@ FinancialPing::PingResponse FinancialPin
|
||||
response->clear();
|
||||
|
||||
std::string url =
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/chrome/browser/media/webrtc/webrtc_log_uploader.cc
|
||||
+++ b/chrome/browser/media/webrtc/webrtc_log_uploader.cc
|
||||
@@ -179,31 +179,13 @@ void WebRtcLogUploader::OnLoggingStopped
|
||||
@@ -178,31 +178,13 @@ void WebRtcLogUploader::OnLoggingStopped
|
||||
DCHECK(meta_data.get());
|
||||
DCHECK(!upload_done_data.paths.directory.empty());
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
} else {
|
||||
main_task_runner_->PostTask(
|
||||
FROM_HERE,
|
||||
@@ -220,28 +202,7 @@ void WebRtcLogUploader::PrepareMultipart
|
||||
@@ -219,28 +201,7 @@ void WebRtcLogUploader::PrepareMultipart
|
||||
DCHECK(!compressed_log.empty());
|
||||
DCHECK(meta_data.get());
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
}
|
||||
|
||||
void WebRtcLogUploader::UploadStoredLog(
|
||||
@@ -308,48 +269,6 @@ void WebRtcLogUploader::LoggingStoppedDo
|
||||
@@ -307,48 +268,6 @@ void WebRtcLogUploader::LoggingStoppedDo
|
||||
DCHECK(log_buffer.get());
|
||||
DCHECK(!log_paths.directory.empty());
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -135,7 +135,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -143,7 +143,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterStringPref(prefs::kWebRTCUDPPortRange, std::string());
|
||||
registry->RegisterBooleanPref(prefs::kWebRtcEventLogCollectionAllowed, false);
|
||||
registry->RegisterListPref(prefs::kWebRtcLocalIpsAllowedUrls);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc
|
||||
+++ b/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc
|
||||
@@ -677,12 +677,6 @@ std::vector<url::Origin> ChromeContentBr
|
||||
@@ -681,12 +681,6 @@ std::vector<url::Origin> ChromeContentBr
|
||||
GetOriginsRequiringDedicatedProcess() {
|
||||
std::vector<url::Origin> list;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
--- a/chrome/browser/extensions/chrome_content_verifier_delegate.cc
|
||||
+++ b/chrome/browser/extensions/chrome_content_verifier_delegate.cc
|
||||
@@ -303,17 +303,7 @@ bool ChromeContentVerifierDelegate::IsFr
|
||||
@@ -306,17 +306,7 @@ bool ChromeContentVerifierDelegate::IsFr
|
||||
// between which extensions are considered in-store.
|
||||
// See https://crbug.com/766806 for details.
|
||||
if (!InstallVerifier::IsFromStore(extension, context_)) {
|
||||
@@ -38,7 +38,7 @@
|
||||
}
|
||||
--- a/chrome/browser/extensions/extension_migrator.cc
|
||||
+++ b/chrome/browser/extensions/extension_migrator.cc
|
||||
@@ -19,7 +19,9 @@ namespace extensions {
|
||||
@@ -22,7 +22,9 @@ namespace extensions {
|
||||
ExtensionMigrator::ExtensionMigrator(Profile* profile,
|
||||
const std::string& old_id,
|
||||
const std::string& new_id)
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
ExtensionMigrator::~ExtensionMigrator() = default;
|
||||
|
||||
@@ -31,7 +33,7 @@ void ExtensionMigrator::StartLoading() {
|
||||
@@ -34,7 +36,7 @@ void ExtensionMigrator::StartLoading() {
|
||||
if (should_have_extension) {
|
||||
base::Value::Dict entry;
|
||||
entry.Set(ExternalProviderImpl::kExternalUpdateUrl,
|
||||
@@ -78,15 +78,11 @@
|
||||
} // namespace extensions
|
||||
--- a/extensions/browser/updater/extension_downloader.cc
|
||||
+++ b/extensions/browser/updater/extension_downloader.cc
|
||||
@@ -92,28 +92,19 @@ const char kNotFromWebstoreInstallSource
|
||||
@@ -92,25 +92,16 @@ const char kNotFromWebstoreInstallSource
|
||||
const char kDefaultInstallSource[] = "";
|
||||
const char kReinstallInstallSource[] = "reinstall";
|
||||
|
||||
-const char kGoogleDotCom[] = "google.com";
|
||||
const char kTokenServiceConsumerId[] = "extension_downloader";
|
||||
const char kWebstoreOAuth2Scope[] =
|
||||
- "https://www.googleapis.com/auth/chromewebstore.readonly";
|
||||
+ "trk:10:https://www.googleapis.com/auth/chromewebstore.readonly";
|
||||
|
||||
ExtensionDownloader::TestObserver* g_test_observer = nullptr;
|
||||
ExtensionDownloaderTestDelegate* g_test_delegate = nullptr;
|
||||
@@ -109,7 +105,7 @@
|
||||
|
||||
bool ShouldRetryRequest(const network::SimpleURLLoader* loader) {
|
||||
DCHECK(loader);
|
||||
@@ -169,7 +160,7 @@ std::optional<GURL> SanitizeUpdateURL(co
|
||||
@@ -166,7 +157,7 @@ std::optional<GURL> SanitizeUpdateURL(co
|
||||
const GURL& update_url) {
|
||||
if (update_url.is_empty()) {
|
||||
// Fill in default update URL.
|
||||
@@ -118,7 +114,7 @@
|
||||
}
|
||||
|
||||
// Skip extensions with non-empty invalid update URLs.
|
||||
@@ -187,11 +178,6 @@ std::optional<GURL> SanitizeUpdateURL(co
|
||||
@@ -184,11 +175,6 @@ std::optional<GURL> SanitizeUpdateURL(co
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
@@ -130,7 +126,7 @@
|
||||
|
||||
return update_url;
|
||||
}
|
||||
@@ -369,10 +355,6 @@ void ExtensionDownloader::DoStartAllPend
|
||||
@@ -360,10 +346,6 @@ void ExtensionDownloader::DoStartAllPend
|
||||
AddToFetches(fetches_preparing, std::move(task));
|
||||
pending_tasks_.clear();
|
||||
|
||||
@@ -141,7 +137,7 @@
|
||||
}
|
||||
|
||||
void ExtensionDownloader::SetIdentityManager(
|
||||
@@ -833,20 +815,6 @@ void ExtensionDownloader::HandleManifest
|
||||
@@ -824,20 +806,6 @@ void ExtensionDownloader::HandleManifest
|
||||
update.second->info);
|
||||
}
|
||||
|
||||
@@ -162,7 +158,7 @@
|
||||
ExtensionIdSet extension_ids_with_errors;
|
||||
for (const auto& failure : failures)
|
||||
extension_ids_with_errors.insert(failure.first.id);
|
||||
@@ -1428,11 +1396,7 @@ bool ExtensionDownloader::IterateFetchCr
|
||||
@@ -1417,11 +1385,7 @@ bool ExtensionDownloader::IterateFetchCr
|
||||
// fetch.
|
||||
switch (fetch->credentials) {
|
||||
case ExtensionFetch::CREDENTIALS_NONE:
|
||||
|
||||
@@ -55,10 +55,10 @@
|
||||
base::FEATURE_ENABLED_BY_DEFAULT),
|
||||
--- a/services/network/public/cpp/features.cc
|
||||
+++ b/services/network/public/cpp/features.cc
|
||||
@@ -108,12 +108,7 @@ BASE_FEATURE(kSplitAuthCacheByNetworkIso
|
||||
@@ -92,12 +92,7 @@ BASE_FEATURE(kSplitAuthCacheByNetworkIso
|
||||
|
||||
// Enable usage of hardcoded DoH upgrade mapping for use in automatic mode.
|
||||
BASE_FEATURE(kDnsOverHttpsUpgrade,
|
||||
"DnsOverHttpsUpgrade",
|
||||
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \
|
||||
- BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX)
|
||||
- base::FEATURE_ENABLED_BY_DEFAULT
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/extensions/api/developer_private/extension_info_generator.cc
|
||||
+++ b/chrome/browser/extensions/api/developer_private/extension_info_generator.cc
|
||||
@@ -864,19 +864,6 @@ void ExtensionInfoGenerator::FillExtensi
|
||||
@@ -870,19 +870,6 @@ void ExtensionInfoGenerator::FillExtensi
|
||||
toolbar_actions_model->IsActionPinned(extension.id());
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
// `CanUploadAsAccountExtension` should already check for the feature flag
|
||||
--- a/chrome/browser/extensions/extension_management.cc
|
||||
+++ b/chrome/browser/extensions/extension_management.cc
|
||||
@@ -355,31 +355,7 @@ bool ExtensionManagement::IsAllowedManif
|
||||
@@ -362,31 +362,7 @@ bool ExtensionManagement::IsAllowedManif
|
||||
int manifest_version,
|
||||
const std::string& extension_id,
|
||||
Manifest::Type manifest_type) {
|
||||
@@ -54,7 +54,7 @@
|
||||
}
|
||||
|
||||
bool ExtensionManagement::IsAllowedManifestVersion(const Extension* extension) {
|
||||
@@ -400,26 +376,8 @@ bool ExtensionManagement::IsExemptFromMV
|
||||
@@ -407,26 +383,8 @@ bool ExtensionManagement::IsExemptFromMV
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
bool ExtensionManagement::IsAllowedByUnpublishedAvailabilityPolicy(
|
||||
--- a/chrome/browser/extensions/manifest_v2_experiment_manager.cc
|
||||
+++ b/chrome/browser/extensions/manifest_v2_experiment_manager.cc
|
||||
@@ -145,22 +145,6 @@ bool ManifestV2ExperimentManagerFactory:
|
||||
@@ -148,17 +148,6 @@ bool ManifestV2ExperimentManagerFactory:
|
||||
|
||||
// Determines the current stage of the MV2 deprecation experiments.
|
||||
MV2ExperimentStage CalculateCurrentExperimentStage() {
|
||||
@@ -98,15 +98,10 @@
|
||||
- return MV2ExperimentStage::kDisableWithReEnable;
|
||||
- }
|
||||
-
|
||||
- if (base::FeatureList::IsEnabled(
|
||||
- extensions_features::kExtensionManifestV2DeprecationWarning)) {
|
||||
- return MV2ExperimentStage::kWarning;
|
||||
- }
|
||||
-
|
||||
return MV2ExperimentStage::kNone;
|
||||
return MV2ExperimentStage::kWarning;
|
||||
}
|
||||
|
||||
@@ -200,19 +184,7 @@ PrefMap GetGlobalNoticeAcknowledgedPrefF
|
||||
@@ -192,18 +181,7 @@ PrefMap GetGlobalNoticeAcknowledgedPrefF
|
||||
// Returns true if legacy extensions should be disabled, looking at both
|
||||
// experiment stage and global state.
|
||||
bool ShouldDisableLegacyExtensions(MV2ExperimentStage stage) {
|
||||
@@ -116,7 +111,6 @@
|
||||
- }
|
||||
-
|
||||
- switch (stage) {
|
||||
- case MV2ExperimentStage::kNone:
|
||||
- case MV2ExperimentStage::kWarning:
|
||||
return false;
|
||||
- case MV2ExperimentStage::kDisableWithReEnable:
|
||||
@@ -128,7 +122,7 @@
|
||||
// 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
|
||||
@@ -482,7 +482,7 @@ content::WebUIDataSource* CreateAndAddEx
|
||||
@@ -484,7 +484,7 @@ content::WebUIDataSource* CreateAndAddEx
|
||||
extensions_features::kExtensionsMenuAccessControlWithPermittedSites));
|
||||
source->AddBoolean(
|
||||
"safetyHubThreeDotDetails",
|
||||
@@ -139,7 +133,7 @@
|
||||
auto* mv2_experiment_manager = ManifestV2ExperimentManager::Get(profile);
|
||||
--- a/extensions/common/extension.cc
|
||||
+++ b/extensions/common/extension.cc
|
||||
@@ -103,13 +103,6 @@ bool IsManifestSupported(int manifest_ve
|
||||
@@ -101,13 +101,6 @@ bool IsManifestSupported(int manifest_ve
|
||||
// Supported versions are always safe.
|
||||
if (manifest_version >= kMinimumSupportedManifestVersion &&
|
||||
manifest_version <= kMaximumSupportedManifestVersion) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
--- a/chrome/BUILD.gn
|
||||
+++ b/chrome/BUILD.gn
|
||||
@@ -368,7 +368,6 @@ if (!is_android && !is_mac) {
|
||||
@@ -370,7 +370,6 @@ if (!is_android && !is_mac) {
|
||||
|
||||
data_deps += [
|
||||
"//chrome/browser/resources/media/mei_preload:component",
|
||||
@@ -11,7 +11,7 @@
|
||||
"//components/webapps/isolated_web_apps/preload:component",
|
||||
"//third_party/widevine/cdm",
|
||||
]
|
||||
@@ -937,8 +936,6 @@ if (is_win) {
|
||||
@@ -940,8 +939,6 @@ if (is_win) {
|
||||
|
||||
bundle_data("chrome_framework_resources") {
|
||||
sources = [
|
||||
@@ -20,7 +20,7 @@
|
||||
# This image is used to badge the lock icon in the
|
||||
# authentication dialogs, such as those used for installation
|
||||
# from disk image and Keystone promotion (if so enabled). It
|
||||
@@ -1185,7 +1182,6 @@ if (is_win) {
|
||||
@@ -1189,7 +1186,6 @@ if (is_win) {
|
||||
":swiftshader_binaries",
|
||||
":widevine_cdm_library",
|
||||
"//chrome/browser/resources/media/mei_preload:component_bundle",
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -797,10 +797,6 @@ static_library("browser") {
|
||||
@@ -760,10 +760,6 @@ static_library("browser") {
|
||||
"navigation_predictor/navigation_predictor_metrics_document_data.h",
|
||||
"navigation_predictor/navigation_predictor_preconnect_client.cc",
|
||||
"navigation_predictor/navigation_predictor_preconnect_client.h",
|
||||
@@ -41,7 +41,7 @@
|
||||
"navigation_predictor/search_engine_preconnector_keyed_service_factory.cc",
|
||||
"navigation_predictor/search_engine_preconnector_keyed_service_factory.h",
|
||||
"net/cert_verifier_service_time_updater.cc",
|
||||
@@ -3678,10 +3674,6 @@ static_library("browser") {
|
||||
@@ -3698,10 +3694,6 @@ static_library("browser") {
|
||||
} else {
|
||||
#!is_android
|
||||
sources += [
|
||||
@@ -52,7 +52,7 @@
|
||||
"accessibility/caption_bubble_context_browser.h",
|
||||
"accessibility/embedded_a11y_extension_loader.cc",
|
||||
"accessibility/embedded_a11y_extension_loader.h",
|
||||
@@ -4341,8 +4333,6 @@ static_library("browser") {
|
||||
@@ -4330,8 +4322,6 @@ static_library("browser") {
|
||||
"//chrome/app:command_ids",
|
||||
"//chrome/app/theme:chrome_unscaled_resources_grit",
|
||||
"//chrome/app/vector_icons",
|
||||
@@ -61,7 +61,7 @@
|
||||
"//chrome/browser/actor",
|
||||
"//chrome/browser/actor:impl",
|
||||
"//chrome/browser/actor/ui",
|
||||
@@ -4369,10 +4359,6 @@ static_library("browser") {
|
||||
@@ -4364,10 +4354,6 @@ static_library("browser") {
|
||||
"//chrome/browser/performance_manager/user_tuning",
|
||||
"//chrome/browser/policy:path_parser",
|
||||
"//chrome/browser/resource_coordinator",
|
||||
@@ -69,18 +69,18 @@
|
||||
- "//chrome/browser/screen_ai:screen_ai_install_state",
|
||||
- "//chrome/browser/screen_ai:screen_ai_service_router_factory",
|
||||
- "//chrome/browser/screen_ai/public:optical_character_recognizer",
|
||||
"//chrome/browser/search/background",
|
||||
"//chrome/browser/sharing_hub",
|
||||
"//chrome/browser/smart_card",
|
||||
@@ -4416,7 +4402,6 @@ static_library("browser") {
|
||||
"//chrome/browser/themes",
|
||||
@@ -4440,7 +4426,6 @@ static_library("browser") {
|
||||
"//chrome/browser/ui/webui/access_code_cast",
|
||||
"//chrome/browser/ui/webui/actor_internals",
|
||||
"//chrome/browser/ui/webui/app_service_internals",
|
||||
- "//chrome/browser/ui/webui/autofill_ml_internals",
|
||||
"//chrome/browser/ui/webui/color_pipeline_internals",
|
||||
"//chrome/browser/ui/webui/infobar_internals",
|
||||
"//chrome/browser/ui/webui/infobar_internals:impl",
|
||||
@@ -4536,9 +4521,6 @@ static_library("browser") {
|
||||
"//chrome/browser/ui/webui/commerce",
|
||||
"//chrome/browser/ui/webui/commerce:impl",
|
||||
@@ -4530,9 +4515,6 @@ static_library("browser") {
|
||||
"//components/webauthn/core/browser",
|
||||
"//components/webauthn/core/browser:passkey_model",
|
||||
"//services/device/public/cpp/hid",
|
||||
@@ -90,7 +90,7 @@
|
||||
"//third_party/crashpad/crashpad/client:common",
|
||||
"//third_party/zxcvbn-cpp",
|
||||
"//ui/views",
|
||||
@@ -4644,8 +4626,6 @@ static_library("browser") {
|
||||
@@ -4725,8 +4707,6 @@ static_library("browser") {
|
||||
sources += [
|
||||
"accessibility/soda_installer_impl.cc",
|
||||
"accessibility/soda_installer_impl.h",
|
||||
@@ -98,8 +98,8 @@
|
||||
- "component_updater/screen_ai_component_installer.h",
|
||||
"device_identity/device_oauth2_token_store_desktop.cc",
|
||||
"device_identity/device_oauth2_token_store_desktop.h",
|
||||
"device_notifications/device_status_icon_renderer.cc",
|
||||
@@ -4701,8 +4681,6 @@ static_library("browser") {
|
||||
"download/bubble/download_bubble_accessible_alerts_map.cc",
|
||||
@@ -4780,8 +4760,6 @@ static_library("browser") {
|
||||
"profiles/profile_activity_metrics_recorder.h",
|
||||
"profiles/profile_list_desktop.cc",
|
||||
"profiles/profile_list_desktop.h",
|
||||
@@ -108,7 +108,7 @@
|
||||
"signin/force_signin_verifier.cc",
|
||||
"signin/force_signin_verifier.h",
|
||||
"signin/signin_manager.cc",
|
||||
@@ -5511,7 +5489,6 @@ static_library("browser") {
|
||||
@@ -5595,7 +5573,6 @@ static_library("browser") {
|
||||
"//chrome/browser/policy:system_features_disable_list",
|
||||
"//chrome/browser/push_notification",
|
||||
"//chrome/browser/resources:app_icon_resources",
|
||||
@@ -116,7 +116,7 @@
|
||||
"//chrome/browser/sharesheet",
|
||||
"//chrome/browser/support_tool/ash",
|
||||
"//chrome/browser/ui/ash/accelerator",
|
||||
@@ -5775,7 +5752,6 @@ static_library("browser") {
|
||||
@@ -5860,7 +5837,6 @@ static_library("browser") {
|
||||
"//remoting/host/chromeos:browser_interop",
|
||||
"//remoting/host/chromeos:features",
|
||||
"//services/device/public/cpp/geolocation",
|
||||
@@ -140,7 +140,7 @@
|
||||
}
|
||||
--- a/chrome/browser/browser_process_impl.cc
|
||||
+++ b/chrome/browser/browser_process_impl.cc
|
||||
@@ -247,12 +247,10 @@
|
||||
@@ -243,12 +243,10 @@
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
#include "chrome/browser/chromeos/extensions/telemetry/chromeos_telemetry_extensions_browser_api_provider.h"
|
||||
#include "chrome/browser/hid/hid_pinned_notification.h"
|
||||
@@ -153,7 +153,7 @@
|
||||
#include "chrome/browser/usb/usb_status_icon.h"
|
||||
#include "components/enterprise/browser/controller/chrome_browser_cloud_management_controller.h"
|
||||
#endif
|
||||
@@ -1384,9 +1382,6 @@ void BrowserProcessImpl::PreMainMessageL
|
||||
@@ -1459,9 +1457,6 @@ void BrowserProcessImpl::PreMainMessageL
|
||||
soda_installer_impl_ = std::make_unique<speech::SodaInstallerImplChromeOS>();
|
||||
#endif // BUILDFLAG(IS_CHROMEOS)
|
||||
|
||||
@@ -235,9 +235,9 @@
|
||||
#endif
|
||||
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
--- a/chrome/browser/chrome_browser_interface_binders_webui.cc
|
||||
+++ b/chrome/browser/chrome_browser_interface_binders_webui.cc
|
||||
@@ -803,8 +803,6 @@ void PopulateChromeWebUIFrameBinders(
|
||||
--- a/chrome/browser/chrome_browser_interface_binders_webui_parts_desktop.cc
|
||||
+++ b/chrome/browser/chrome_browser_interface_binders_webui_parts_desktop.cc
|
||||
@@ -487,8 +487,6 @@ void PopulateChromeWebUIFrameBindersPart
|
||||
::mojom::app_service_internals::AppServiceInternalsPageHandler,
|
||||
AppServiceInternalsUI>(map);
|
||||
|
||||
@@ -372,22 +372,24 @@
|
||||
void NavigationPredictor::SetModelScoreCallbackForTesting(
|
||||
--- a/chrome/browser/pdf/pdf_extension_util.cc
|
||||
+++ b/chrome/browser/pdf/pdf_extension_util.cc
|
||||
@@ -110,7 +110,6 @@ void AddPdfViewerStrings(base::Value::Di
|
||||
@@ -121,7 +121,6 @@ base::Value::Dict GetPdfViewerStrings()
|
||||
{"rotationStateLabel90", IDS_PDF_ROTATION_STATE_LABEL_90},
|
||||
{"rotationStateLabel180", IDS_PDF_ROTATION_STATE_LABEL_180},
|
||||
{"rotationStateLabel270", IDS_PDF_ROTATION_STATE_LABEL_270},
|
||||
- {"searchifyInProgress", IDS_PDF_SEARCHIFY_IN_PROGRESS},
|
||||
{"sidebarLabel", IDS_PDF_SIDEBAR_LABEL},
|
||||
{"thumbnailPageAriaLabel", IDS_PDF_THUMBNAIL_PAGE_ARIA_LABEL},
|
||||
{"tooltipAttachments", IDS_PDF_TOOLTIP_ATTACHMENTS},
|
||||
{"tooltipDocumentOutline", IDS_PDF_TOOLTIP_DOCUMENT_OUTLINE},
|
||||
--- a/chrome/browser/permissions/BUILD.gn
|
||||
+++ b/chrome/browser/permissions/BUILD.gn
|
||||
@@ -44,10 +44,6 @@ source_set("permissions") {
|
||||
@@ -42,12 +42,8 @@ source_set("permissions") {
|
||||
"prediction_service/language_detection_observer.h",
|
||||
"prediction_service/passage_embedder_delegate.cc",
|
||||
"prediction_service/passage_embedder_delegate.h",
|
||||
- "prediction_service/permissions_ai_ui_selector.cc",
|
||||
- "prediction_service/permissions_ai_ui_selector.h",
|
||||
"prediction_service/permissions_aiv1_handler.cc",
|
||||
"prediction_service/permissions_aiv1_handler.h",
|
||||
- "prediction_service/prediction_based_permission_ui_selector.cc",
|
||||
- "prediction_service/prediction_based_permission_ui_selector.h",
|
||||
- "prediction_service/prediction_model_handler_provider.cc",
|
||||
- "prediction_service/prediction_model_handler_provider.h",
|
||||
"prediction_service/prediction_service_factory.cc",
|
||||
@@ -395,32 +397,39 @@
|
||||
"prediction_service/prediction_service_request.cc",
|
||||
--- a/chrome/browser/permissions/chrome_permissions_client.cc
|
||||
+++ b/chrome/browser/permissions/chrome_permissions_client.cc
|
||||
@@ -475,8 +475,6 @@ ChromePermissionsClient::CreatePermissio
|
||||
@@ -472,8 +472,6 @@ ChromePermissionsClient::CreatePermissio
|
||||
#endif
|
||||
selectors.emplace_back(std::make_unique<PrefBasedQuietPermissionUiSelector>(
|
||||
Profile::FromBrowserContext(browser_context)));
|
||||
- selectors.emplace_back(std::make_unique<PredictionBasedPermissionUiSelector>(
|
||||
- selectors.emplace_back(std::make_unique<PermissionsAiUiSelector>(
|
||||
- Profile::FromBrowserContext(browser_context)));
|
||||
return selectors;
|
||||
}
|
||||
|
||||
--- a/chrome/browser/permissions/prediction_service/passage_embedder_delegate.cc
|
||||
+++ b/chrome/browser/permissions/prediction_service/passage_embedder_delegate.cc
|
||||
@@ -17,11 +17,6 @@ PassageEmbedderDelegate::PassageEmbedder
|
||||
@@ -17,18 +17,6 @@ PassageEmbedderDelegate::PassageEmbedder
|
||||
: profile_(profile) {}
|
||||
|
||||
Embedder* PassageEmbedderDelegate::get_passage_embedder() {
|
||||
- if (auto* prediction_model_handler_provider =
|
||||
- PredictionModelHandlerProviderFactory::GetForBrowserContext(
|
||||
- profile_)) {
|
||||
- bool is_ready = prediction_model_handler_provider->IsPassageEmbedderReady();
|
||||
- PermissionUmaUtil::RecordPassageEmbedderMetadataValid(is_ready);
|
||||
- if (!is_ready) {
|
||||
- VLOG(1) << "[PermissionsAIv4] "
|
||||
- "PassageEmbedderDelegate::get_passage_embedder is not ready.";
|
||||
- return nullptr;
|
||||
- }
|
||||
- return prediction_model_handler_provider->GetPassageEmbedder();
|
||||
- }
|
||||
PermissionUmaUtil::RecordPassageEmbedderMetadataValid(false);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
--- a/chrome/browser/permissions/prediction_service/prediction_based_permission_ui_selector.cc
|
||||
+++ b/chrome/browser/permissions/prediction_service/prediction_based_permission_ui_selector.cc
|
||||
@@ -836,7 +836,7 @@ void PredictionBasedPermissionUiSelector
|
||||
--- a/chrome/browser/permissions/prediction_service/permissions_ai_ui_selector.cc
|
||||
+++ b/chrome/browser/permissions/prediction_service/permissions_ai_ui_selector.cc
|
||||
@@ -857,7 +857,7 @@ void PermissionsAiUiSelector::ExecuteOnD
|
||||
ModelExecutionData model_data) {
|
||||
VLOG(1) << "[PermissionsAI] ExecuteOnDeviceAivXModel";
|
||||
PredictionModelHandlerProvider* prediction_model_handler_provider =
|
||||
@@ -431,7 +440,7 @@
|
||||
model_data.request_metadata.request_type;
|
||||
--- a/chrome/browser/prefs/BUILD.gn
|
||||
+++ b/chrome/browser/prefs/BUILD.gn
|
||||
@@ -297,7 +297,6 @@ source_set("impl") {
|
||||
@@ -304,7 +304,6 @@ source_set("impl") {
|
||||
"//chrome/browser/actor/ui",
|
||||
"//chrome/browser/contextual_cueing",
|
||||
"//chrome/browser/promos:utils",
|
||||
@@ -441,7 +450,7 @@
|
||||
"//chrome/browser/search_engines",
|
||||
--- a/chrome/browser/prefs/browser_prefs.cc
|
||||
+++ b/chrome/browser/prefs/browser_prefs.cc
|
||||
@@ -1830,9 +1830,6 @@ void RegisterLocalState(PrefRegistrySimp
|
||||
@@ -1971,9 +1971,6 @@ void RegisterLocalState(PrefRegistrySimp
|
||||
DeviceOAuth2TokenStoreDesktop::RegisterPrefs(registry);
|
||||
#endif
|
||||
|
||||
@@ -453,25 +462,25 @@
|
||||
PlatformAuthPolicyObserver::RegisterPrefs(registry);
|
||||
--- a/chrome/browser/profiles/BUILD.gn
|
||||
+++ b/chrome/browser/profiles/BUILD.gn
|
||||
@@ -320,7 +320,6 @@ source_set("profiles_extra_parts_impl")
|
||||
@@ -336,7 +336,6 @@ source_set("profiles_extra_parts_impl")
|
||||
]
|
||||
} else {
|
||||
deps += [
|
||||
- "//chrome/browser/accessibility/tree_fixing:service",
|
||||
"//chrome/browser/apps/app_service",
|
||||
"//chrome/browser/autofill",
|
||||
"//chrome/browser/contextual_cueing",
|
||||
@@ -328,7 +327,6 @@ source_set("profiles_extra_parts_impl")
|
||||
"//chrome/browser/badging",
|
||||
@@ -345,7 +344,6 @@ source_set("profiles_extra_parts_impl")
|
||||
"//chrome/browser/feedback",
|
||||
"//chrome/browser/hid",
|
||||
"//chrome/browser/media/router/discovery/access_code:access_code_sink_service",
|
||||
- "//chrome/browser/screen_ai:screen_ai_service_router_factory",
|
||||
"//chrome/browser/search",
|
||||
"//chrome/browser/search/background",
|
||||
"//chrome/browser/search_engine_choice",
|
||||
"//chrome/browser/themes",
|
||||
--- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
|
||||
+++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
|
||||
@@ -111,7 +111,6 @@
|
||||
@@ -115,7 +115,6 @@
|
||||
#include "chrome/browser/media_galleries/media_galleries_preferences_factory.h"
|
||||
#include "chrome/browser/metrics/variations/google_groups_manager_factory.h"
|
||||
#include "chrome/browser/navigation_predictor/navigation_predictor_keyed_service_factory.h"
|
||||
@@ -479,7 +488,7 @@
|
||||
#include "chrome/browser/navigation_predictor/search_engine_preconnector.h"
|
||||
#include "chrome/browser/navigation_predictor/search_engine_preconnector_keyed_service_factory.h"
|
||||
#include "chrome/browser/net/dns_probe_service_factory.h"
|
||||
@@ -339,7 +338,6 @@
|
||||
@@ -349,7 +348,6 @@
|
||||
#include "chrome/browser/prefs/persistent_renderer_prefs_manager_factory.h"
|
||||
#include "chrome/browser/privacy_sandbox/privacy_sandbox_survey_desktop_controller_factory.h"
|
||||
#include "chrome/browser/profile_resetter/reset_report_uploader_factory.h"
|
||||
@@ -487,15 +496,15 @@
|
||||
#include "chrome/browser/search/background/ntp_background_service_factory.h"
|
||||
#include "chrome/browser/search/background/ntp_custom_background_service_factory.h"
|
||||
#include "chrome/browser/search/instant_service_factory.h"
|
||||
@@ -1057,7 +1055,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
@@ -1072,7 +1070,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
#if BUILDFLAG(CHROME_ROOT_STORE_CERT_MANAGEMENT_UI)
|
||||
net::ServerCertificateDatabaseServiceFactory::GetInstance();
|
||||
#endif
|
||||
- PreloadingModelKeyedServiceFactory::GetInstance();
|
||||
#if BUILDFLAG(ENABLE_DICE_SUPPORT)
|
||||
HistorySyncOptinServiceFactory::GetInstance();
|
||||
ProfileManagementDisclaimerServiceFactory::GetInstance();
|
||||
#endif
|
||||
@@ -1112,9 +1109,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
@@ -1122,9 +1119,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
OneTimePermissionsTrackerFactory::GetInstance();
|
||||
#endif
|
||||
OpenerHeuristicServiceFactory::GetInstance();
|
||||
@@ -505,23 +514,17 @@
|
||||
OptimizationGuideKeyedServiceFactory::GetInstance();
|
||||
OriginKeyedPermissionActionServiceFactory::GetInstance();
|
||||
OriginTrialsFactory::GetInstance();
|
||||
@@ -1186,13 +1180,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
@@ -1204,7 +1198,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
policy::UserPolicySigninServiceFactory::GetInstance();
|
||||
#endif
|
||||
PolicyBlocklistFactory::GetInstance();
|
||||
- if (base::FeatureList::IsEnabled(
|
||||
- permissions::features::kPermissionOnDeviceNotificationPredictions) ||
|
||||
- base::FeatureList::IsEnabled(
|
||||
- permissions::features::kPermissionOnDeviceGeolocationPredictions) ||
|
||||
- base::FeatureList::IsEnabled(permissions::features::kPermissionsAIv1)) {
|
||||
- PredictionModelHandlerProviderFactory::GetInstance();
|
||||
- }
|
||||
- PredictionModelHandlerProviderFactory::GetInstance();
|
||||
PredictionServiceFactory::GetInstance();
|
||||
predictors::AutocompleteActionPredictorFactory::GetInstance();
|
||||
predictors::LoadingPredictorFactory::GetInstance();
|
||||
@@ -1278,10 +1265,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
#else
|
||||
@@ -1287,10 +1280,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
SafetyHubMenuNotificationServiceFactory::GetInstance();
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
SafetyHubHatsServiceFactory::GetInstance();
|
||||
- if (features::IsMainNodeAnnotationsEnabled()) {
|
||||
- screen_ai::AXMainNodeAnnotatorControllerFactory::GetInstance();
|
||||
@@ -530,7 +533,7 @@
|
||||
#endif
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
if (ash::features::IsScannerEnabled()) {
|
||||
@@ -1401,7 +1384,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
@@ -1414,7 +1403,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
TrackingProtectionSettingsFactory::GetInstance();
|
||||
translate::TranslateRankerFactory::GetInstance();
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
@@ -540,7 +543,7 @@
|
||||
#if !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_ANDROID)
|
||||
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
|
||||
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
|
||||
@@ -225,11 +225,6 @@ void OffTheRecordProfileImpl::Init() {
|
||||
@@ -224,11 +224,6 @@ void OffTheRecordProfileImpl::Init() {
|
||||
// AccessibilityLabelsService has a default prefs behavior in incognito.
|
||||
AccessibilityLabelsService::InitOffTheRecordPrefs(this);
|
||||
|
||||
@@ -554,7 +557,7 @@
|
||||
// System Profile.
|
||||
--- a/chrome/browser/profiles/profile_impl.cc
|
||||
+++ b/chrome/browser/profiles/profile_impl.cc
|
||||
@@ -855,11 +855,6 @@ void ProfileImpl::DoFinalInit(CreateMode
|
||||
@@ -845,11 +845,6 @@ void ProfileImpl::DoFinalInit(CreateMode
|
||||
// The password settings service needs to start listening to settings
|
||||
// changes from Google Mobile Services, as early as possible.
|
||||
PasswordManagerSettingsServiceFactory::GetForProfile(this);
|
||||
@@ -569,14 +572,14 @@
|
||||
--- a/chrome/browser/profiles/profile_manager.cc
|
||||
+++ b/chrome/browser/profiles/profile_manager.cc
|
||||
@@ -51,7 +51,6 @@
|
||||
#include "chrome/browser/extensions/chrome_content_browser_client_extensions_part.h"
|
||||
#include "chrome/browser/buildflags.h"
|
||||
#include "chrome/browser/lifetime/application_lifetime.h"
|
||||
#include "chrome/browser/navigation_predictor/navigation_predictor_keyed_service_factory.h"
|
||||
-#include "chrome/browser/navigation_predictor/preloading_model_keyed_service_factory.h"
|
||||
#include "chrome/browser/prefs/incognito_mode_prefs.h"
|
||||
#include "chrome/browser/profiles/delete_profile_helper.h"
|
||||
#include "chrome/browser/profiles/keep_alive/profile_keep_alive_types.h"
|
||||
@@ -1493,9 +1492,6 @@ void ProfileManager::DoFinalInitForServi
|
||||
@@ -1487,9 +1486,6 @@ void ProfileManager::DoFinalInitForServi
|
||||
// Ensure NavigationPredictorKeyedService is started.
|
||||
NavigationPredictorKeyedServiceFactory::GetForProfile(profile);
|
||||
|
||||
@@ -588,7 +591,7 @@
|
||||
#if BUILDFLAG(IS_ANDROID)
|
||||
--- a/chrome/browser/resources/BUILD.gn
|
||||
+++ b/chrome/browser/resources/BUILD.gn
|
||||
@@ -107,7 +107,6 @@ group("resources") {
|
||||
@@ -110,7 +110,6 @@ group("resources") {
|
||||
if (is_mac) {
|
||||
public_deps += [
|
||||
"//chrome/browser/resources/media/mei_preload:component",
|
||||
@@ -598,7 +601,7 @@
|
||||
|
||||
--- a/chrome/browser/resources/pdf/pdf_viewer.html
|
||||
+++ b/chrome/browser/resources/pdf/pdf_viewer.html
|
||||
@@ -113,10 +113,6 @@ import {AnnotationMode} from './constant
|
||||
@@ -105,10 +105,6 @@ import {AnnotationMode} from './constant
|
||||
</cr-page-selector>
|
||||
` : ''}
|
||||
</if>
|
||||
@@ -611,7 +614,7 @@
|
||||
${this.showErrorDialog ? html`<viewer-error-dialog id="error-dialog">
|
||||
--- a/chrome/browser/ui/BUILD.gn
|
||||
+++ b/chrome/browser/ui/BUILD.gn
|
||||
@@ -1524,8 +1524,6 @@ static_library("ui") {
|
||||
@@ -1469,8 +1469,6 @@ static_library("ui") {
|
||||
"//chrome/browser/regional_capabilities",
|
||||
"//chrome/browser/safe_browsing",
|
||||
"//chrome/browser/safe_browsing:advanced_protection",
|
||||
@@ -620,7 +623,7 @@
|
||||
"//chrome/browser/smart_card",
|
||||
"//chrome/browser/tab_group_sync:utils",
|
||||
"//chrome/browser/themes",
|
||||
@@ -2278,7 +2276,6 @@ static_library("ui") {
|
||||
@@ -2227,7 +2225,6 @@ static_library("ui") {
|
||||
"//chrome/browser/policy:onc",
|
||||
"//chrome/browser/policy:system_features_disable_list",
|
||||
"//chrome/browser/push_notification",
|
||||
@@ -628,8 +631,8 @@
|
||||
"//chrome/browser/ui/ash/accessibility",
|
||||
"//chrome/browser/ui/ash/app_access",
|
||||
"//chrome/browser/ui/ash/arc",
|
||||
@@ -4787,7 +4784,6 @@ static_library("ui") {
|
||||
"//chrome/browser/ui/views/user_education",
|
||||
@@ -4685,7 +4682,6 @@ static_library("ui") {
|
||||
# c/b/ui/passwords/passwords_model_delegate.h, passwords_client_ui_delegate.h.
|
||||
"//chrome/browser/ui/webauthn:impl",
|
||||
"//chrome/browser/ui/webui/app_service_internals",
|
||||
- "//chrome/browser/ui/webui/autofill_ml_internals",
|
||||
@@ -681,7 +684,7 @@
|
||||
--- a/chrome/browser/ui/pdf/chrome_pdf_document_helper_client.h
|
||||
+++ b/chrome/browser/ui/pdf/chrome_pdf_document_helper_client.h
|
||||
@@ -25,7 +25,6 @@ class ChromePDFDocumentHelperClient : pu
|
||||
void OnSaveURL(content::WebContents* contents) override;
|
||||
void OnSaveURL() override;
|
||||
void SetPluginCanSave(content::RenderFrameHost* render_frame_host,
|
||||
bool can_save) override;
|
||||
- void OnSearchifyStarted(content::RenderFrameHost* render_frame_host) override;
|
||||
@@ -690,7 +693,7 @@
|
||||
std::vector<base::CallbackListSubscription> tab_subscriptions_;
|
||||
--- a/chrome/browser/ui/views/user_education/browser_user_education_service.cc
|
||||
+++ b/chrome/browser/ui/views/user_education/browser_user_education_service.cc
|
||||
@@ -764,39 +764,6 @@ void MaybeRegisterChromeFeaturePromos(
|
||||
@@ -752,39 +752,6 @@ void MaybeRegisterChromeFeaturePromos(
|
||||
.SetBubbleIcon(kLightbulbOutlineIcon)
|
||||
.SetBubbleTitleText(IDS_PASSWORD_MANAGER_IPH_CREATE_SHORTCUT_TITLE)));
|
||||
|
||||
@@ -732,7 +735,7 @@
|
||||
registry.RegisterFeature(std::move(
|
||||
--- a/chrome/browser/ui/webui/BUILD.gn
|
||||
+++ b/chrome/browser/ui/webui/BUILD.gn
|
||||
@@ -59,7 +59,6 @@ source_set("configs") {
|
||||
@@ -60,7 +60,6 @@ source_set("configs") {
|
||||
"//chrome/browser/ui/webui/access_code_cast",
|
||||
"//chrome/browser/ui/webui/actor_internals",
|
||||
"//chrome/browser/ui/webui/app_service_internals",
|
||||
@@ -742,7 +745,7 @@
|
||||
"//chrome/browser/ui/webui/new_tab_footer",
|
||||
--- a/chrome/browser/ui/webui/chrome_web_ui_configs.cc
|
||||
+++ b/chrome/browser/ui/webui/chrome_web_ui_configs.cc
|
||||
@@ -295,7 +295,6 @@ void RegisterChromeWebUIConfigs() {
|
||||
@@ -298,7 +298,6 @@ void RegisterChromeWebUIConfigs() {
|
||||
map.AddWebUIConfig(std::make_unique<actor::ui::ActorOverlayUIConfig>());
|
||||
map.AddWebUIConfig(std::make_unique<ActorInternalsUIConfig>());
|
||||
map.AddWebUIConfig(std::make_unique<AppServiceInternalsUIConfig>());
|
||||
@@ -855,7 +858,7 @@
|
||||
#include "chrome/browser/speech/extension_api/tts_engine_extension_api.h"
|
||||
#include "chrome/browser/translate/chrome_translate_client.h"
|
||||
#include "chrome/browser/ui/browser.h"
|
||||
@@ -376,14 +374,6 @@ ReadAnythingUntrustedPageHandler::ReadAn
|
||||
@@ -302,14 +300,6 @@ ReadAnythingUntrustedPageHandler::ReadAn
|
||||
prefs_lang = language::ExtractBaseLanguage(prefs_lang);
|
||||
SetDefaultLanguageCode(prefs_lang);
|
||||
|
||||
@@ -870,9 +873,20 @@
|
||||
|
||||
// Enable accessibility for the top level render frame and all descendants.
|
||||
// This causes AXTreeSerializer to reset and send accessibility events of
|
||||
--- a/chrome/common/features.gni
|
||||
+++ b/chrome/common/features.gni
|
||||
@@ -46,7 +46,7 @@ declare_args() {
|
||||
enable_chrome_notifications = is_mac || is_win || is_linux
|
||||
|
||||
# Enables inclusion of glic in the build.
|
||||
- enable_glic = is_mac || is_win || is_linux
|
||||
+ enable_glic = false
|
||||
|
||||
# Hangout services is an extension that adds extra features to Hangouts.
|
||||
# It is enableable separately to facilitate testing.
|
||||
--- a/chrome/renderer/BUILD.gn
|
||||
+++ b/chrome/renderer/BUILD.gn
|
||||
@@ -334,18 +334,6 @@ static_library("renderer") {
|
||||
@@ -346,18 +346,6 @@ static_library("renderer") {
|
||||
]
|
||||
} else {
|
||||
sources += [
|
||||
@@ -891,7 +905,7 @@
|
||||
"media/chrome_speech_recognition_client.cc",
|
||||
"media/chrome_speech_recognition_client.h",
|
||||
"searchbox/searchbox.cc",
|
||||
@@ -360,7 +348,6 @@ static_library("renderer") {
|
||||
@@ -373,7 +361,6 @@ static_library("renderer") {
|
||||
"//components/crx_file",
|
||||
"//components/trusted_vault",
|
||||
"//services/screen_ai/buildflags",
|
||||
@@ -901,23 +915,22 @@
|
||||
]
|
||||
--- a/chrome/renderer/chrome_render_frame_observer.cc
|
||||
+++ b/chrome/renderer/chrome_render_frame_observer.cc
|
||||
@@ -71,7 +71,6 @@
|
||||
@@ -73,7 +73,6 @@
|
||||
#include "url/gurl.h"
|
||||
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
-#include "chrome/renderer/accessibility/read_anything/read_anything_app_controller.h"
|
||||
#include "chrome/renderer/actor/journal.h"
|
||||
#include "chrome/renderer/actor/page_stability_monitor.h"
|
||||
#include "chrome/renderer/actor/tool_executor.h"
|
||||
#include "chrome/renderer/searchbox/searchbox_extension.h"
|
||||
@@ -324,21 +323,6 @@ void ChromeRenderFrameObserver::DidCommi
|
||||
@@ -325,20 +324,6 @@ void ChromeRenderFrameObserver::DidCommi
|
||||
}
|
||||
|
||||
void ChromeRenderFrameObserver::DidClearWindowObject() {
|
||||
-#if !BUILDFLAG(IS_ANDROID)
|
||||
- const base::CommandLine& command_line =
|
||||
- *base::CommandLine::ForCurrentProcess();
|
||||
- if (command_line.HasSwitch(switches::kInstantProcess))
|
||||
- if (process_state::IsInstantProcess()) {
|
||||
- SearchBoxExtension::Install(render_frame()->GetWebFrame());
|
||||
- }
|
||||
-
|
||||
- // Install ReadAnythingAppController on render frames with the Read Anything
|
||||
- // url, which is chrome-untrusted. ReadAnythingAppController installs v8
|
||||
@@ -933,7 +946,7 @@
|
||||
void ChromeRenderFrameObserver::DidMeaningfulLayout(
|
||||
--- a/chrome/test/BUILD.gn
|
||||
+++ b/chrome/test/BUILD.gn
|
||||
@@ -2375,9 +2375,6 @@ if (!is_android) {
|
||||
@@ -2463,9 +2463,6 @@ if (!is_android) {
|
||||
"//chrome/browser/resource_coordinator:tab_manager_features",
|
||||
"//chrome/browser/safe_browsing:advanced_protection",
|
||||
"//chrome/browser/safe_browsing:verdict_cache_manager_factory",
|
||||
@@ -943,7 +956,7 @@
|
||||
"//chrome/browser/search",
|
||||
"//chrome/browser/search_engines",
|
||||
"//chrome/browser/segmentation_platform:test_utils",
|
||||
@@ -2809,8 +2806,6 @@ if (!is_android) {
|
||||
@@ -2914,8 +2911,6 @@ if (!is_android) {
|
||||
"//services/preferences/public/cpp",
|
||||
"//services/preferences/public/cpp/tracked",
|
||||
"//services/preferences/tracked:features",
|
||||
@@ -952,7 +965,7 @@
|
||||
"//services/service_manager/public/cpp",
|
||||
"//services/strings",
|
||||
"//services/test/echo/public/mojom",
|
||||
@@ -8444,7 +8439,6 @@ test("unit_tests") {
|
||||
@@ -8555,7 +8550,6 @@ test("unit_tests") {
|
||||
#
|
||||
# TODO(crbug.com/417513088): Maybe merge with the non-android `deps` declaration above?
|
||||
deps += [
|
||||
@@ -960,7 +973,7 @@
|
||||
"//chrome:packed_resources_integrity_header",
|
||||
"//chrome/browser/apps:icon_standardizer",
|
||||
"//chrome/browser/apps/app_service",
|
||||
@@ -8477,7 +8471,6 @@ test("unit_tests") {
|
||||
@@ -8591,7 +8585,6 @@ test("unit_tests") {
|
||||
"//chrome/browser/profile_resetter:fake_profile_resetter",
|
||||
"//chrome/browser/resource_coordinator:tab_manager_features",
|
||||
"//chrome/browser/resources/new_tab_page_instant:resources_grit",
|
||||
@@ -1010,7 +1023,7 @@
|
||||
#endif // !BUILDFLAG(IS_ANDROID)
|
||||
|
||||
#if BUILDFLAG(ENABLE_BROWSER_SPEECH_SERVICE)
|
||||
@@ -268,12 +266,6 @@ auto RunSpeechRecognitionService(
|
||||
@@ -266,12 +264,6 @@ auto RunSpeechRecognitionService(
|
||||
}
|
||||
#endif // !BUILDFLAG(ENABLE_BROWSER_SPEECH_SERVICE)
|
||||
|
||||
@@ -1021,9 +1034,9 @@
|
||||
-}
|
||||
-#endif
|
||||
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
auto RunCupsIppParser(
|
||||
@@ -476,7 +468,6 @@ void RegisterMainThreadServices(mojo::Se
|
||||
#if (BUILDFLAG(SAFE_BROWSING_DOWNLOAD_PROTECTION) && \
|
||||
!BUILDFLAG(IS_ANDROID)) || \
|
||||
@@ -467,7 +459,6 @@ void RegisterMainThreadServices(mojo::Se
|
||||
services.Add(RunProfileImporter);
|
||||
services.Add(RunMirroringService);
|
||||
services.Add(RunPassageEmbeddingsService);
|
||||
@@ -1033,8 +1046,8 @@
|
||||
#if BUILDFLAG(ENABLE_BROWSER_SPEECH_SERVICE)
|
||||
--- a/components/BUILD.gn
|
||||
+++ b/components/BUILD.gn
|
||||
@@ -613,7 +613,6 @@ test("components_unittests") {
|
||||
"//components/media_router/common/providers/cast/channel:unit_tests",
|
||||
@@ -622,7 +622,6 @@ test("components_unittests") {
|
||||
"//components/one_time_tokens/core/browser:unit_tests",
|
||||
"//components/page_info:unit_tests",
|
||||
"//components/permissions:unit_tests",
|
||||
- "//components/permissions/prediction_service:unit_tests",
|
||||
@@ -1043,17 +1056,80 @@
|
||||
"//components/security_interstitials/content:unit_tests",
|
||||
--- a/components/autofill/core/browser/autofill_field.cc
|
||||
+++ b/components/autofill/core/browser/autofill_field.cc
|
||||
@@ -24,7 +24,6 @@
|
||||
@@ -25,7 +25,6 @@
|
||||
#include "components/autofill/core/browser/field_type_utils.h"
|
||||
#include "components/autofill/core/browser/field_types.h"
|
||||
#include "components/autofill/core/browser/heuristic_source.h"
|
||||
-#include "components/autofill/core/browser/ml_model/field_classification_model_handler.h"
|
||||
#include "components/autofill/core/browser/proto/api_v1.pb.h"
|
||||
#include "components/autofill/core/browser/proto/server.pb.h"
|
||||
#include "components/autofill/core/common/autofill_constants.h"
|
||||
#include "components/autofill/core/common/autofill_features.h"
|
||||
--- a/components/autofill/core/browser/foundations/autofill_manager.cc
|
||||
+++ b/components/autofill/core/browser/foundations/autofill_manager.cc
|
||||
@@ -137,8 +137,6 @@ struct AutofillManager::AsyncContext {
|
||||
|
||||
std::vector<FormData> forms;
|
||||
std::vector<RegexPredictions> regex_predictions;
|
||||
- std::vector<ModelPredictions> autofill_predictions;
|
||||
- std::vector<ModelPredictions> password_manager_predictions;
|
||||
GeoIpCountryCode country_code;
|
||||
LanguageCode current_page_language;
|
||||
std::unique_ptr<BufferingLogManager> log_manager;
|
||||
@@ -718,13 +716,6 @@ void AutofillManager::ParseFormsAsyncCom
|
||||
}
|
||||
}
|
||||
|
||||
- if (!context.autofill_predictions.empty()) {
|
||||
- context.autofill_predictions[i].ApplyTo(form_structure->fields());
|
||||
- }
|
||||
- if (!context.password_manager_predictions.empty()) {
|
||||
- context.password_manager_predictions[i].ApplyTo(
|
||||
- form_structure->fields());
|
||||
- }
|
||||
if (!context.regex_predictions.empty()) {
|
||||
context.regex_predictions[i].ApplyTo(form_structure->fields());
|
||||
}
|
||||
@@ -843,10 +834,8 @@ void AutofillManager::RunMlModels(
|
||||
}));
|
||||
switch (source) {
|
||||
case HeuristicSource::kAutofillMachineLearning:
|
||||
- context.autofill_predictions = std::move(model_predictions);
|
||||
break;
|
||||
case HeuristicSource::kPasswordManagerMachineLearning:
|
||||
- context.password_manager_predictions = std::move(model_predictions);
|
||||
break;
|
||||
case HeuristicSource::kRegexes:
|
||||
NOTREACHED();
|
||||
@@ -968,26 +957,6 @@ void AutofillManager::LogCurrentFieldTyp
|
||||
|
||||
void AutofillManager::SubscribeToMlModelChanges(
|
||||
FieldClassificationModelHandler& handler) {
|
||||
- switch (handler.optimization_target()) {
|
||||
- case optimization_guide::proto::OptimizationTarget::
|
||||
- OPTIMIZATION_TARGET_AUTOFILL_FIELD_CLASSIFICATION:
|
||||
- if (!autofill_model_change_subscription_) {
|
||||
- autofill_model_change_subscription_ =
|
||||
- handler.RegisterModelChangeCallback(base::BindRepeating(
|
||||
- &AutofillManager::ReparseKnownForms, base::Unretained(this)));
|
||||
- }
|
||||
- break;
|
||||
- case optimization_guide::proto::OptimizationTarget::
|
||||
- OPTIMIZATION_TARGET_PASSWORD_MANAGER_FORM_CLASSIFICATION:
|
||||
- if (!password_manager_model_change_subscription_) {
|
||||
- password_manager_model_change_subscription_ =
|
||||
- handler.RegisterModelChangeCallback(base::BindRepeating(
|
||||
- &AutofillManager::ReparseKnownForms, base::Unretained(this)));
|
||||
- }
|
||||
- break;
|
||||
- default:
|
||||
- NOTREACHED();
|
||||
- }
|
||||
}
|
||||
|
||||
} // namespace autofill
|
||||
--- a/components/omnibox/browser/autocomplete_classifier.cc
|
||||
+++ b/components/omnibox/browser/autocomplete_classifier.cc
|
||||
@@ -131,8 +131,6 @@ void AutocompleteClassifier::Classify(
|
||||
@@ -136,8 +136,6 @@ void AutocompleteClassifier::Classify(
|
||||
metrics::OmniboxEventProto::PageClassification page_classification,
|
||||
AutocompleteMatch* match,
|
||||
GURL* alternate_nav_url) {
|
||||
@@ -1094,7 +1170,7 @@
|
||||
fuzzer_test("update_client_protocol_serializer_fuzzer") {
|
||||
--- a/content/shell/BUILD.gn
|
||||
+++ b/content/shell/BUILD.gn
|
||||
@@ -836,10 +836,6 @@ if (is_apple) {
|
||||
@@ -831,10 +831,6 @@ if (is_apple) {
|
||||
deps = [ "//third_party/icu:icudata" ]
|
||||
}
|
||||
|
||||
@@ -1105,17 +1181,120 @@
|
||||
if (v8_use_external_startup_data) {
|
||||
public_deps += [ "//v8" ]
|
||||
if (use_v8_context_snapshot) {
|
||||
--- a/services/on_device_model/ml/BUILD.gn
|
||||
+++ b/services/on_device_model/ml/BUILD.gn
|
||||
@@ -66,7 +66,6 @@ if (use_blink || (is_ios && build_with_i
|
||||
"//components/optimization_guide/core:features",
|
||||
"//components/translate/core/language_detection",
|
||||
"//services/on_device_model:backend_interfaces",
|
||||
- "//services/on_device_model/safety:safety_util",
|
||||
"//third_party/abseil-cpp:absl",
|
||||
"//third_party/angle:includes",
|
||||
"//third_party/dawn/src/dawn:proc",
|
||||
@@ -79,9 +78,6 @@ if (use_blink || (is_ios && build_with_i
|
||||
if (use_blink) {
|
||||
deps += [ "//gpu/config" ]
|
||||
}
|
||||
- if (!is_fuchsia) {
|
||||
- deps += [ "//services/on_device_model/safety:bert_safety_model" ]
|
||||
- }
|
||||
if (is_win || is_mac || is_linux) {
|
||||
deps += [ "//third_party/xnnpack" ]
|
||||
}
|
||||
--- a/services/on_device_model/ml/ts_model.cc
|
||||
+++ b/services/on_device_model/ml/ts_model.cc
|
||||
@@ -25,9 +25,6 @@
|
||||
#include "services/on_device_model/public/mojom/on_device_model_service.mojom.h"
|
||||
#include "services/on_device_model/safety/safety_util.h"
|
||||
|
||||
-#if !BUILDFLAG(IS_FUCHSIA)
|
||||
-#include "services/on_device_model/safety/bert_safety_model.h"
|
||||
-#endif
|
||||
|
||||
namespace ml {
|
||||
|
||||
@@ -166,13 +163,7 @@ mojom::SafetyInfoPtr TsModel::ClassifyTe
|
||||
|
||||
mojom::LanguageDetectionResultPtr TsModel::DetectLanguage(
|
||||
std::string_view text) {
|
||||
- if (!language_detector_) {
|
||||
return nullptr;
|
||||
- }
|
||||
- language_detection::Prediction prediction = on_device_model::PredictLanguage(
|
||||
- language_detector_->tflite_model(), text);
|
||||
- return mojom::LanguageDetectionResult::New(prediction.language,
|
||||
- prediction.score);
|
||||
}
|
||||
|
||||
TsHolder::TsHolder(raw_ref<const ChromeML> chrome_ml) : chrome_ml_(chrome_ml) {}
|
||||
@@ -196,11 +187,6 @@ void TsHolder::Reset(mojom::TextSafetyMo
|
||||
if (impl) {
|
||||
model_.Add(std::move(impl), std::move(model));
|
||||
}
|
||||
- } else {
|
||||
- auto impl = on_device_model::BertSafetyModel::Create(std::move(params));
|
||||
- if (impl) {
|
||||
- model_.Add(std::move(impl), std::move(model));
|
||||
- }
|
||||
}
|
||||
#else
|
||||
CHECK(!params->safety_assets || params->safety_assets->which() ==
|
||||
--- a/services/on_device_model/on_device_model.gni
|
||||
+++ b/services/on_device_model/on_device_model.gni
|
||||
@@ -15,7 +15,6 @@ declare_args() {
|
||||
# Constraint code is disabled on platforms where the on-device model does not
|
||||
# run due to binary size.
|
||||
enable_constraints = is_win || is_mac || is_linux || is_ios || is_cbx
|
||||
- enable_ml_internal = build_with_internal_optimization_guide &&
|
||||
- (is_win || is_mac || is_linux || is_ios || is_cbx)
|
||||
+ enable_ml_internal = false
|
||||
use_chromeos_model_service = is_chrome_branded && is_cbx
|
||||
@@ -14,7 +14,7 @@ declare_args() {
|
||||
declare_args() {
|
||||
# The on device model service is only enabled on a subset of platforms.
|
||||
# Exclude it on other platforms due to binary size.
|
||||
- use_on_device_model_service = is_win || is_mac || is_linux || is_ios || is_cbx
|
||||
+ use_on_device_model_service = false
|
||||
}
|
||||
|
||||
declare_args() {
|
||||
--- a/services/on_device_model/safety/BUILD.gn
|
||||
+++ b/services/on_device_model/safety/BUILD.gn
|
||||
@@ -4,42 +4,6 @@
|
||||
|
||||
import("//components/optimization_guide/features.gni")
|
||||
|
||||
-if (!is_fuchsia) {
|
||||
- source_set("bert_safety_op_resolver") {
|
||||
- sources = [
|
||||
- "bert_safety_op_resolver.cc",
|
||||
- "bert_safety_op_resolver.h",
|
||||
- ]
|
||||
-
|
||||
- deps = [
|
||||
- "//components/optimization_guide/core/inference:op_resolver",
|
||||
- "//third_party/tensorflow-text:shimed_bert_model_ops",
|
||||
- "//third_party/tflite",
|
||||
- ]
|
||||
- }
|
||||
-
|
||||
- source_set("bert_safety_model") {
|
||||
- sources = [
|
||||
- "bert_safety_model.cc",
|
||||
- "bert_safety_model.h",
|
||||
- ]
|
||||
-
|
||||
- deps = [
|
||||
- ":bert_safety_op_resolver",
|
||||
- ":safety_util",
|
||||
- "//base",
|
||||
- "//components/translate/core/language_detection",
|
||||
- ]
|
||||
-
|
||||
- public_deps = [
|
||||
- "//mojo/public/cpp/bindings",
|
||||
- "//services/on_device_model/public/mojom",
|
||||
- "//third_party/tflite",
|
||||
- "//third_party/tflite_support",
|
||||
- "//third_party/tflite_support:tflite_support_proto",
|
||||
- ]
|
||||
- }
|
||||
-}
|
||||
|
||||
source_set("safety_util") {
|
||||
sources = [
|
||||
--- a/services/passage_embeddings/passage_embeddings_service.cc
|
||||
+++ b/services/passage_embeddings/passage_embeddings_service.cc
|
||||
@@ -23,7 +23,6 @@ PassageEmbeddingsService::~PassageEmbedd
|
||||
@@ -1158,7 +1337,7 @@
|
||||
}
|
||||
--- a/third_party/devtools-frontend/src/front_end/BUILD.gn
|
||||
+++ b/third_party/devtools-frontend/src/front_end/BUILD.gn
|
||||
@@ -209,7 +209,6 @@ group("unittests") {
|
||||
@@ -213,7 +213,6 @@ group("unittests") {
|
||||
"panels/timeline:unittests",
|
||||
"panels/timeline/components:unittests",
|
||||
"panels/timeline/components/insights:unittests",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,44 @@
|
||||
# This was added to the safebrowsing prefs in
|
||||
# https://chromium-review.googlesource.com/c/chromium/src/+/6898756
|
||||
# Move it to content_settings since we remove safebrowsing prefs
|
||||
--- a/chrome/browser/content_settings/generated_javascript_optimizer_pref.cc
|
||||
+++ b/chrome/browser/content_settings/generated_javascript_optimizer_pref.cc
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "chrome/common/extensions/api/settings_private.h"
|
||||
#include "components/content_settings/core/common/features.h"
|
||||
#include "components/prefs/pref_service.h"
|
||||
+#include "components/content_settings/core/common/pref_names.h"
|
||||
|
||||
using extensions::api::settings_private::Enforcement;
|
||||
using extensions::api::settings_private::PrefObject;
|
||||
--- a/chrome/browser/site_protection/site_familiarity_utils.cc
|
||||
+++ b/chrome/browser/site_protection/site_familiarity_utils.cc
|
||||
@@ -5,6 +5,7 @@
|
||||
#include "chrome/browser/site_protection/site_familiarity_utils.h"
|
||||
|
||||
#include "components/content_settings/core/common/features.h"
|
||||
+#include "components/content_settings/core/common/pref_names.h"
|
||||
#include "components/prefs/pref_service.h"
|
||||
#include "content/public/common/content_features.h"
|
||||
|
||||
--- a/components/content_settings/core/browser/content_settings_pref_provider.cc
|
||||
+++ b/components/content_settings/core/browser/content_settings_pref_provider.cc
|
||||
@@ -88,6 +88,7 @@ void PrefProvider::RegisterProfilePrefs(
|
||||
ContentSettingsPattern::kContentSettingsPatternVersion);
|
||||
registry->RegisterBooleanPref(prefs::kInContextCookieControlsOpened, false);
|
||||
registry->RegisterBooleanPref(kGeolocationMigrateExceptionsPref, false);
|
||||
+ registry->RegisterBooleanPref(prefs::kJavascriptOptimizerBlockedForUnfamiliarSites, false);
|
||||
|
||||
WebsiteSettingsRegistry* website_settings =
|
||||
WebsiteSettingsRegistry::GetInstance();
|
||||
--- a/components/content_settings/core/common/pref_names.h
|
||||
+++ b/components/content_settings/core/common/pref_names.h
|
||||
@@ -267,6 +267,8 @@ inline constexpr char kDesktopSiteWindow
|
||||
"desktop_site.window_setting";
|
||||
#endif
|
||||
|
||||
+inline constexpr char kJavascriptOptimizerBlockedForUnfamiliarSites[] =
|
||||
+ "safebrowsing.javascript_optimizer_blocked_for_unfamiliar_sites";
|
||||
} // namespace prefs
|
||||
|
||||
#endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_PREF_NAMES_H_
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/accelerator_table.cc
|
||||
+++ b/chrome/browser/ui/views/accelerator_table.cc
|
||||
@@ -132,7 +132,6 @@ const AcceleratorMapping kAcceleratorMap
|
||||
--- a/chrome/browser/ui/accelerator_table.cc
|
||||
+++ b/chrome/browser/ui/accelerator_table.cc
|
||||
@@ -133,7 +133,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},
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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"
|
||||
@@ -2183,6 +2184,7 @@ void RenderViewContextMenu::AppendPageIt
|
||||
@@ -2240,6 +2241,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
|
||||
@@ -821,8 +821,9 @@ void TranslateManager::FilterIsTranslate
|
||||
@@ -829,8 +829,9 @@ void TranslateManager::FilterIsTranslate
|
||||
TriggerDecision::kDisabledOffline);
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
// settings syncs and we don't want to turn off translate everywhere else.
|
||||
--- a/components/translate/core/browser/translate_ranker_impl.cc
|
||||
+++ b/components/translate/core/browser/translate_ranker_impl.cc
|
||||
@@ -157,12 +157,9 @@ TranslateRankerImpl::TranslateRankerImpl
|
||||
@@ -152,12 +152,9 @@ TranslateRankerImpl::TranslateRankerImpl
|
||||
ukm::UkmRecorder* ukm_recorder)
|
||||
: ukm_recorder_(ukm_recorder),
|
||||
is_uma_logging_enabled_(false),
|
||||
@@ -77,7 +77,7 @@
|
||||
if (is_query_enabled_ || is_enforcement_enabled_) {
|
||||
model_loader_ = std::make_unique<assist_ranker::RankerModelLoaderImpl>(
|
||||
base::BindRepeating(&ValidateModel),
|
||||
@@ -236,6 +233,8 @@ bool TranslateRankerImpl::ShouldOfferTra
|
||||
@@ -231,6 +228,8 @@ bool TranslateRankerImpl::ShouldOfferTra
|
||||
// (or become False).
|
||||
const bool kDefaultResponse = true;
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
translate_event->set_ranker_version(GetModelVersion());
|
||||
--- a/components/translate/core/browser/translate_script.cc
|
||||
+++ b/components/translate/core/browser/translate_script.cc
|
||||
@@ -138,8 +138,13 @@ void TranslateScript::OnScriptFetchCompl
|
||||
@@ -146,8 +146,13 @@ void TranslateScript::OnScriptFetchCompl
|
||||
server_params.c_str());
|
||||
|
||||
GURL security_origin = translate::GetTranslateSecurityOrigin();
|
||||
|
||||
@@ -189,7 +189,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+} // namespace
|
||||
--- /dev/null
|
||||
+++ b/chrome/common/importer/chrome_importer_utils.cc
|
||||
@@ -0,0 +1,241 @@
|
||||
@@ -0,0 +1,243 @@
|
||||
+/* Copyright (c) 2019 The Brave Authors, 2025 imput. All rights reserved.
|
||||
+ * This Source Code Form is subject to the terms of the Mozilla Public
|
||||
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
@@ -235,7 +235,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ base::ReadFileToString(preference_path, &preference_content);
|
||||
+
|
||||
+ std::optional<base::Value::Dict> preference =
|
||||
+ base::JSONReader::ReadDict(preference_content);
|
||||
+ base::JSONReader::ReadDict(preference_content,
|
||||
+ base::JSON_PARSE_CHROMIUM_EXTENSIONS);
|
||||
+ if (!preference) {
|
||||
+ return std::nullopt;
|
||||
+ }
|
||||
@@ -335,7 +336,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ std::string local_state_content;
|
||||
+ base::ReadFileToString(local_state_path, &local_state_content);
|
||||
+ std::optional<base::Value::Dict> local_state_dict =
|
||||
+ base::JSONReader::ReadDict(local_state_content);
|
||||
+ base::JSONReader::ReadDict(local_state_content,
|
||||
+ base::JSON_PARSE_CHROMIUM_EXTENSIONS);
|
||||
+ if (!local_state_dict)
|
||||
+ return profiles;
|
||||
+
|
||||
@@ -2733,7 +2735,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+#endif // BRAVE_UTILITY_IMPORTER_BRAVE_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_
|
||||
--- /dev/null
|
||||
+++ b/chrome/utility/importer/chrome_importer.cc
|
||||
@@ -0,0 +1,435 @@
|
||||
@@ -0,0 +1,437 @@
|
||||
+/* Copyright (c) 2019 The Brave Authors. All rights reserved.
|
||||
+ * This Source Code Form is subject to the terms of the Mozilla Public
|
||||
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
@@ -2822,7 +2824,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ std::string local_state_content;
|
||||
+ base::ReadFileToString(local_state_path, &local_state_content);
|
||||
+ std::optional<base::Value::Dict> local_state =
|
||||
+ base::JSONReader::ReadDict(local_state_content);
|
||||
+ base::JSONReader::ReadDict(local_state_content,
|
||||
+ base::JSON_PARSE_CHROMIUM_EXTENSIONS);
|
||||
+ if (!local_state) {
|
||||
+ return false;
|
||||
+ }
|
||||
@@ -3006,7 +3009,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ base::ReadFileToString(copy_bookmark_file.copied_file_path(),
|
||||
+ &bookmarks_content);
|
||||
+ std::optional<base::Value::Dict> bookmark_dict =
|
||||
+ base::JSONReader::ReadDict(bookmarks_content);
|
||||
+ base::JSONReader::ReadDict(bookmarks_content,
|
||||
+ base::JSON_PARSE_CHROMIUM_EXTENSIONS);
|
||||
+ if (!bookmark_dict)
|
||||
+ return;
|
||||
+
|
||||
|
||||
@@ -177,10 +177,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
} // namespace user_data_importer
|
||||
--- a/tools/metrics/histograms/metadata/sql/histograms.xml
|
||||
+++ b/tools/metrics/histograms/metadata/sql/histograms.xml
|
||||
@@ -39,6 +39,7 @@ chromium-metrics-reviews@google.com.
|
||||
<variant name="DataSharingGroupStorage" summary="DataSharingGroupStorage"/>
|
||||
@@ -40,6 +40,7 @@ chromium-metrics-reviews@google.com.
|
||||
<variant name="DBSCSessions" summary="DBSCSessions"/>
|
||||
<variant name="DIPS" summary="DIPS"/>
|
||||
<variant name="DownloadRecord" summary="DownloadRecord"/>
|
||||
+ <variant name="Favicons" summary="Favicons"/>
|
||||
<variant name="FileIndexService" summary="FileIndexService"/>
|
||||
<variant name="FirefoxImporter" summary="FirefoxImporter"/>
|
||||
@@ -197,7 +197,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
};
|
||||
|
||||
// Information about a profile needed by an importer to do import work.
|
||||
@@ -109,6 +110,7 @@ enum VisitSource {
|
||||
@@ -111,6 +112,7 @@ enum VisitSource {
|
||||
VISIT_SOURCE_FIREFOX_IMPORTED = 1,
|
||||
VISIT_SOURCE_IE_IMPORTED = 2,
|
||||
VISIT_SOURCE_SAFARI_IMPORTED = 3,
|
||||
@@ -244,7 +244,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
}
|
||||
--- a/chrome/common/pref_names.h
|
||||
+++ b/chrome/common/pref_names.h
|
||||
@@ -4273,6 +4273,9 @@ inline constexpr char kServiceWorkerToCo
|
||||
@@ -4266,6 +4266,9 @@ inline constexpr char kServiceWorkerToCo
|
||||
inline constexpr char kSharedWorkerBlobURLFixEnabled[] =
|
||||
"worker.shared_worker_blob_url_fix_enabled";
|
||||
|
||||
@@ -256,7 +256,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
inline constexpr char kClearWindowNameForNewBrowsingContextGroup[] =
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -1157,6 +1157,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -1164,6 +1164,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kImportDialogSearchEngine] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -275,7 +275,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "chrome/browser/ui/webui/settings/metrics_reporting_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/on_startup_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/password_manager_handler.h"
|
||||
@@ -202,6 +203,7 @@ void SettingsUI::RegisterProfilePrefs(
|
||||
@@ -201,6 +202,7 @@ void SettingsUI::RegisterProfilePrefs(
|
||||
registry->RegisterBooleanPref(prefs::kImportDialogHistory, true);
|
||||
registry->RegisterBooleanPref(prefs::kImportDialogSavedPasswords, true);
|
||||
registry->RegisterBooleanPref(prefs::kImportDialogSearchEngine, true);
|
||||
@@ -283,7 +283,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
}
|
||||
|
||||
SettingsUI::SettingsUI(content::WebUI* web_ui)
|
||||
@@ -231,7 +233,7 @@ SettingsUI::SettingsUI(content::WebUI* w
|
||||
@@ -230,7 +232,7 @@ SettingsUI::SettingsUI(content::WebUI* w
|
||||
AddSettingsPageUIHandler(std::make_unique<DownloadsHandler>(profile));
|
||||
AddSettingsPageUIHandler(std::make_unique<ExtensionControlHandler>());
|
||||
AddSettingsPageUIHandler(std::make_unique<FontHandler>(profile));
|
||||
@@ -294,7 +294,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -907,6 +907,8 @@ void AddImportDataStrings(content::WebUI
|
||||
@@ -900,6 +900,8 @@ void AddImportDataStrings(content::WebUI
|
||||
{"importHistory", IDS_SETTINGS_IMPORT_HISTORY_CHECKBOX},
|
||||
{"importFavorites", IDS_SETTINGS_IMPORT_FAVORITES_CHECKBOX},
|
||||
{"importPasswords", IDS_SETTINGS_IMPORT_PASSWORDS_CHECKBOX},
|
||||
@@ -319,7 +319,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
</div>
|
||||
--- a/chrome/browser/ui/BUILD.gn
|
||||
+++ b/chrome/browser/ui/BUILD.gn
|
||||
@@ -1311,6 +1311,10 @@ static_library("ui") {
|
||||
@@ -1237,6 +1237,10 @@ static_library("ui") {
|
||||
"webui/settings/accessibility_main_handler.h",
|
||||
"webui/settings/appearance_handler.cc",
|
||||
"webui/settings/appearance_handler.h",
|
||||
@@ -330,7 +330,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"webui/settings/browser_lifetime_handler.cc",
|
||||
"webui/settings/browser_lifetime_handler.h",
|
||||
"webui/settings/captions_handler.cc",
|
||||
@@ -1463,6 +1467,13 @@ static_library("ui") {
|
||||
@@ -1391,6 +1395,13 @@ static_library("ui") {
|
||||
]
|
||||
}
|
||||
|
||||
@@ -459,7 +459,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "components/mirroring/service/mirroring_service.h"
|
||||
#include "services/passage_embeddings/passage_embeddings_service.h"
|
||||
#include "services/proxy_resolver/proxy_resolver_factory_impl.h" // nogncheck
|
||||
@@ -146,6 +148,13 @@ static_assert(BUILDFLAG(ENABLE_PRINTING)
|
||||
@@ -144,6 +146,13 @@ static_assert(BUILDFLAG(ENABLE_PRINTING)
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -473,7 +473,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
auto RunFilePatcher(mojo::PendingReceiver<patch::mojom::FilePatcher> receiver) {
|
||||
return std::make_unique<patch::FilePatcherImpl>(std::move(receiver));
|
||||
}
|
||||
@@ -465,6 +474,7 @@ void RegisterMainThreadServices(mojo::Se
|
||||
@@ -456,6 +465,7 @@ void RegisterMainThreadServices(mojo::Se
|
||||
services.Add(ContentBookmarkParser);
|
||||
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
@@ -583,7 +583,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
// entire group has been collected and is ready to be written to the profile.
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -11002,6 +11002,15 @@ Check your passwords anytime in <ph name
|
||||
@@ -11171,6 +11171,15 @@ Check your passwords anytime in <ph name
|
||||
Microsoft Edge
|
||||
</message>
|
||||
</if>
|
||||
|
||||
@@ -33,7 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "extensions/browser/blocklist_extension_prefs.h"
|
||||
#include "extensions/browser/delayed_install_manager.h"
|
||||
#include "extensions/browser/disable_reason.h"
|
||||
@@ -534,6 +535,22 @@ void ExtensionRegistrar::AddComponentExt
|
||||
@@ -540,6 +541,22 @@ void ExtensionRegistrar::AddComponentExt
|
||||
}
|
||||
|
||||
AddExtension(extension);
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -2617,6 +2617,7 @@ static_library("browser") {
|
||||
@@ -2609,6 +2609,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
|
||||
@@ -184,6 +184,7 @@
|
||||
@@ -191,6 +191,7 @@
|
||||
#include "components/translate/core/common/translate_util.h"
|
||||
#include "components/trusted_vault/features.h"
|
||||
#include "components/ui_devtools/switches.h"
|
||||
@@ -44,7 +44,7 @@
|
||||
#endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
|
||||
--- a/content/browser/BUILD.gn
|
||||
+++ b/content/browser/BUILD.gn
|
||||
@@ -299,6 +299,7 @@ source_set("browser") {
|
||||
@@ -302,6 +302,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
|
||||
@@ -81,6 +81,7 @@
|
||||
@@ -84,6 +84,7 @@
|
||||
#include "components/services/storage/public/cpp/quota_error_or.h"
|
||||
#include "components/services/storage/public/mojom/cache_storage_control.mojom.h"
|
||||
#include "components/tracing/common/tracing_switches.h"
|
||||
@@ -62,7 +62,7 @@
|
||||
#include "components/viz/common/switches.h"
|
||||
#include "components/viz/host/gpu_client.h"
|
||||
#include "components/viz/host/host_frame_sink_manager.h"
|
||||
@@ -3498,6 +3499,8 @@ void RenderProcessHostImpl::PropagateBro
|
||||
@@ -3591,6 +3592,8 @@ void RenderProcessHostImpl::PropagateBro
|
||||
switches::kEnableWebGLImageChromium,
|
||||
switches::kEnableWebGPUDeveloperFeatures,
|
||||
switches::kFileUrlPathAlias,
|
||||
@@ -91,7 +91,7 @@
|
||||
#include "ui/accessibility/accessibility_features.h"
|
||||
#include "ui/base/ui_base_features.h"
|
||||
#include "ui/events/blink/blink_features.h"
|
||||
@@ -481,6 +482,10 @@ void SetRuntimeFeaturesFromCommandLine(c
|
||||
@@ -483,6 +484,10 @@ void SetRuntimeFeaturesFromCommandLine(c
|
||||
true},
|
||||
{wrf::EnableWebAudioBypassOutputBufferingOptOut,
|
||||
blink::switches::kWebAudioBypassOutputBufferingOptOut, true},
|
||||
@@ -124,7 +124,7 @@
|
||||
#include "base/task/single_thread_task_runner.h"
|
||||
#include "base/time/time.h"
|
||||
#include "base/trace_event/trace_event.h"
|
||||
@@ -1085,6 +1086,11 @@ Document::Document(const DocumentInit& i
|
||||
@@ -1087,6 +1088,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();
|
||||
@@ -1215,6 +1221,14 @@ const Position Document::PositionAdjuste
|
||||
@@ -1224,6 +1230,14 @@ const Position Document::PositionAdjuste
|
||||
return Position::BeforeNode(*shadow_host);
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@
|
||||
selector_query_cache_ = MakeGarbageCollected<SelectorQueryCache>();
|
||||
--- a/third_party/blink/renderer/core/dom/document.h
|
||||
+++ b/third_party/blink/renderer/core/dom/document.h
|
||||
@@ -572,6 +572,10 @@ class CORE_EXPORT Document : public Cont
|
||||
@@ -574,6 +574,10 @@ class CORE_EXPORT Document : public Cont
|
||||
has_xml_declaration_ = has_xml_declaration ? 1 : 0;
|
||||
}
|
||||
|
||||
@@ -164,19 +164,19 @@
|
||||
V8VisibilityState visibilityState() const;
|
||||
String visibilityStateAsString() const;
|
||||
bool IsPageVisible() const;
|
||||
@@ -2770,6 +2774,9 @@ class CORE_EXPORT Document : public Cont
|
||||
@@ -2795,6 +2799,9 @@ class CORE_EXPORT Document : public Cont
|
||||
|
||||
base::ElapsedTimer start_time_;
|
||||
|
||||
+ double noise_factor_x_ = 1;
|
||||
+ double noise_factor_y_ = 1;
|
||||
+
|
||||
Member<ScriptRunner> script_runner_;
|
||||
Member<ScriptRunnerDelayer> script_runner_delayer_;
|
||||
|
||||
// The script runner is used to run scripts of the following scheduling types:
|
||||
// - ScriptSchedulingType::kAsync
|
||||
// - ScriptSchedulingType::kInOrder
|
||||
--- a/third_party/blink/renderer/core/dom/element.cc
|
||||
+++ b/third_party/blink/renderer/core/dom/element.cc
|
||||
@@ -3092,6 +3092,11 @@ DOMRectList* Element::getClientRects() {
|
||||
@@ -3190,6 +3190,11 @@ DOMRectList* Element::getClientRects() {
|
||||
DCHECK(element_layout_object);
|
||||
GetDocument().AdjustQuadsForScrollAndAbsoluteZoom(quads,
|
||||
*element_layout_object);
|
||||
@@ -188,7 +188,7 @@
|
||||
return MakeGarbageCollected<DOMRectList>(quads);
|
||||
}
|
||||
|
||||
@@ -3119,6 +3124,9 @@ gfx::RectF Element::GetBoundingClientRec
|
||||
@@ -3217,6 +3222,9 @@ gfx::RectF Element::GetBoundingClientRec
|
||||
DCHECK(element_layout_object);
|
||||
GetDocument().AdjustRectForScrollAndAbsoluteZoom(result,
|
||||
*element_layout_object);
|
||||
@@ -276,7 +276,7 @@
|
||||
namespace blink {
|
||||
|
||||
class MemoryManagedPaintCanvas;
|
||||
@@ -1248,13 +1251,26 @@ TextMetrics* BaseRenderingContext2D::mea
|
||||
@@ -1252,13 +1255,26 @@ TextMetrics* BaseRenderingContext2D::mea
|
||||
TextDirection direction =
|
||||
ToTextDirection(state.GetDirection(), host, computed_style);
|
||||
|
||||
@@ -308,7 +308,7 @@
|
||||
String BaseRenderingContext2D::lang() const {
|
||||
--- a/third_party/blink/renderer/platform/BUILD.gn
|
||||
+++ b/third_party/blink/renderer/platform/BUILD.gn
|
||||
@@ -1797,6 +1797,7 @@ component("platform") {
|
||||
@@ -1815,6 +1815,7 @@ component("platform") {
|
||||
"//components/paint_preview/common",
|
||||
"//components/search_engines:search_engine_utils",
|
||||
"//components/translate/core/language_detection",
|
||||
@@ -343,7 +343,7 @@
|
||||
#include "third_party/skia/include/core/SkImage.h"
|
||||
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
@@ -2273,6 +2273,12 @@
|
||||
@@ -2344,6 +2344,12 @@
|
||||
status: "stable",
|
||||
},
|
||||
{
|
||||
|
||||
@@ -34,7 +34,7 @@ approach to change color components.
|
||||
#endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
|
||||
--- a/content/browser/renderer_host/render_process_host_impl.cc
|
||||
+++ b/content/browser/renderer_host/render_process_host_impl.cc
|
||||
@@ -3501,6 +3501,7 @@ void RenderProcessHostImpl::PropagateBro
|
||||
@@ -3594,6 +3594,7 @@ void RenderProcessHostImpl::PropagateBro
|
||||
switches::kFileUrlPathAlias,
|
||||
switches::kFingerprintingClientRectsNoise,
|
||||
switches::kFingerprintingCanvasMeasureTextNoise,
|
||||
@@ -44,7 +44,7 @@ approach to change color components.
|
||||
switches::kForceHighContrast,
|
||||
--- a/content/child/runtime_features.cc
|
||||
+++ b/content/child/runtime_features.cc
|
||||
@@ -486,6 +486,8 @@ void SetRuntimeFeaturesFromCommandLine(c
|
||||
@@ -488,6 +488,8 @@ void SetRuntimeFeaturesFromCommandLine(c
|
||||
switches::kFingerprintingClientRectsNoise, true},
|
||||
{wrf::EnableFingerprintingCanvasMeasureTextNoise,
|
||||
switches::kFingerprintingCanvasMeasureTextNoise, true},
|
||||
@@ -65,7 +65,7 @@ approach to change color components.
|
||||
};
|
||||
--- a/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
|
||||
+++ b/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
|
||||
@@ -557,6 +557,9 @@ ImageData* BaseRenderingContext2D::getIm
|
||||
@@ -558,6 +558,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
|
||||
@@ -1741,7 +1741,9 @@ component("platform") {
|
||||
@@ -1757,7 +1757,9 @@ component("platform") {
|
||||
"//third_party/blink/renderer:non_test_config",
|
||||
]
|
||||
|
||||
@@ -281,7 +281,7 @@ approach to change color components.
|
||||
} // namespace blink
|
||||
--- a/third_party/blink/renderer/platform/graphics/static_bitmap_image.h
|
||||
+++ b/third_party/blink/renderer/platform/graphics/static_bitmap_image.h
|
||||
@@ -38,6 +38,8 @@ class PLATFORM_EXPORT StaticBitmapImage
|
||||
@@ -39,6 +39,8 @@ class PLATFORM_EXPORT StaticBitmapImage
|
||||
|
||||
StaticBitmapImage(ImageOrientation orientation) : orientation_(orientation) {}
|
||||
|
||||
@@ -292,7 +292,7 @@ approach to change color components.
|
||||
// Methods overridden by all sub-classes
|
||||
--- a/third_party/blink/renderer/platform/image-encoders/image_encoder.cc
|
||||
+++ b/third_party/blink/renderer/platform/image-encoders/image_encoder.cc
|
||||
@@ -14,6 +14,8 @@
|
||||
@@ -13,6 +13,8 @@
|
||||
#include <stdio.h> // Needed by jpeglib.h
|
||||
|
||||
#include "jpeglib.h" // for JPEG_MAX_DIMENSION
|
||||
@@ -301,7 +301,7 @@ approach to change color components.
|
||||
#include "third_party/libwebp/src/src/webp/encode.h" // for WEBP_MAX_DIMENSION
|
||||
|
||||
namespace blink {
|
||||
@@ -43,6 +45,10 @@ bool ImageEncoder::Encode(Vector<unsigne
|
||||
@@ -44,6 +46,10 @@ bool ImageEncoder::Encode(Vector<unsigne
|
||||
const SkPixmap& src,
|
||||
ImageEncodingMimeType mime_type,
|
||||
double quality) {
|
||||
@@ -314,7 +314,7 @@ approach to change color components.
|
||||
SkJpegEncoder::Options options;
|
||||
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
@@ -2279,6 +2279,9 @@
|
||||
@@ -2350,6 +2350,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
|
||||
@@ -2295,6 +2295,7 @@ static_library("browser") {
|
||||
@@ -2283,6 +2283,7 @@ static_library("browser") {
|
||||
"//components/net_log",
|
||||
"//components/network_hints/common:mojo_bindings",
|
||||
"//components/network_session_configurator/browser",
|
||||
@@ -49,7 +49,7 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
#endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
|
||||
--- a/chrome/browser/browser_process_impl.cc
|
||||
+++ b/chrome/browser/browser_process_impl.cc
|
||||
@@ -26,6 +26,7 @@
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "base/functional/callback.h"
|
||||
#include "base/functional/callback_helpers.h"
|
||||
#include "base/location.h"
|
||||
@@ -57,7 +57,7 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
#include "base/memory/ptr_util.h"
|
||||
#include "base/metrics/histogram_functions.h"
|
||||
#include "base/metrics/histogram_macros.h"
|
||||
@@ -33,6 +34,7 @@
|
||||
@@ -29,6 +30,7 @@
|
||||
#include "base/notreached.h"
|
||||
#include "base/path_service.h"
|
||||
#include "base/run_loop.h"
|
||||
@@ -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"
|
||||
@@ -119,6 +121,7 @@
|
||||
@@ -115,6 +117,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,7 +73,7 @@ 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"
|
||||
@@ -153,6 +156,7 @@
|
||||
@@ -149,6 +152,7 @@
|
||||
#include "extensions/common/constants.h"
|
||||
#include "media/media_buildflags.h"
|
||||
#include "mojo/public/cpp/bindings/pending_receiver.h"
|
||||
@@ -81,7 +81,7 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
#include "printing/buildflags/buildflags.h"
|
||||
#include "services/network/public/cpp/features.h"
|
||||
#include "services/network/public/cpp/network_switches.h"
|
||||
@@ -421,6 +425,18 @@ void BrowserProcessImpl::Init() {
|
||||
@@ -417,6 +421,18 @@ void BrowserProcessImpl::Init() {
|
||||
pref_change_registrar_.Add(metrics::prefs::kMetricsReportingEnabled,
|
||||
base::BindRepeating(&ApplyMetricsReportingPolicy));
|
||||
|
||||
@@ -102,9 +102,9 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
|
||||
--- a/chrome/browser/flag_descriptions.cc
|
||||
+++ b/chrome/browser/flag_descriptions.cc
|
||||
@@ -2661,6 +2661,10 @@ const char kMantisFeatureKeyDescription[
|
||||
"Feature key to use the Mantis feature on ChromeOS.";
|
||||
#endif // BUILDFLAG(IS_CHROMEOS)
|
||||
@@ -2671,6 +2671,10 @@ const char kLogJsConsoleMessagesDescript
|
||||
"Enable logging JS console messages in system logs, please note that they "
|
||||
"may contain PII.";
|
||||
|
||||
+const char kMaxConnectionsPerHostName[] = "Maximum connections per host";
|
||||
+const char kMaxConnectionsPerHostDescription[] =
|
||||
@@ -115,9 +115,9 @@ 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
|
||||
@@ -1551,6 +1551,9 @@ extern const char kMantisFeatureKeyName[
|
||||
extern const char kMantisFeatureKeyDescription[];
|
||||
#endif // IS_CHROMEOS
|
||||
@@ -1567,6 +1567,9 @@ extern const char kLockTopControlsOnLarg
|
||||
extern const char kLogJsConsoleMessagesName[];
|
||||
extern const char kLogJsConsoleMessagesDescription[];
|
||||
|
||||
+extern const char kMaxConnectionsPerHostName[];
|
||||
+extern const char kMaxConnectionsPerHostDescription[];
|
||||
|
||||
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
|
||||
|
||||
--- a/chrome/browser/ui/startup/infobar_utils.cc
|
||||
+++ b/chrome/browser/ui/startup/infobar_utils.cc
|
||||
@@ -175,10 +175,6 @@ void AddInfoBarsIfNecessary(Browser* bro
|
||||
@@ -188,10 +188,6 @@ void AddInfoBarsIfNecessary(BrowserWindo
|
||||
infobars::ContentInfoBarManager* infobar_manager =
|
||||
infobars::ContentInfoBarManager::FromWebContents(web_contents);
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -1418,7 +1418,7 @@ void ChromeContentBrowserClient::Registe
|
||||
@@ -1439,7 +1439,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
|
||||
@@ -620,7 +620,7 @@ void ProfileNetworkContextService::Confi
|
||||
@@ -598,7 +598,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
|
||||
@@ -117,7 +117,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -125,7 +125,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, true);
|
||||
registry->RegisterBooleanPref(prefs::kWebAppCreateInQuickLaunchBar, true);
|
||||
registry->RegisterBooleanPref(
|
||||
@@ -76,7 +76,7 @@
|
||||
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
|
||||
registry->RegisterIntegerPref(
|
||||
kAutofillLastVersionDeduped, 0,
|
||||
@@ -40,7 +40,7 @@ void RegisterProfilePrefs(user_prefs::Pr
|
||||
@@ -43,7 +43,7 @@ void RegisterProfilePrefs(user_prefs::Pr
|
||||
kAutofillHasSeenIban, false,
|
||||
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
|
||||
registry->RegisterBooleanPref(
|
||||
@@ -109,7 +109,7 @@
|
||||
|
||||
--- a/components/password_manager/core/browser/password_manager.cc
|
||||
+++ b/components/password_manager/core/browser/password_manager.cc
|
||||
@@ -504,7 +504,7 @@ void HandleFailedLoginDetectionForPasswo
|
||||
@@ -522,7 +522,7 @@ bool HasManuallyFilledPassword(const Pas
|
||||
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.
|
||||
@@ -512,7 +512,7 @@ void PasswordManager::RegisterProfilePre
|
||||
@@ -530,7 +530,7 @@ void PasswordManager::RegisterProfilePre
|
||||
false);
|
||||
#endif // BUILDFLAG(IS_IOS)
|
||||
registry->RegisterBooleanPref(
|
||||
|
||||
+20
-1
@@ -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
|
||||
@@ -1588,11 +1588,6 @@ int ChromeBrowserMainParts::PreMainMessa
|
||||
@@ -1589,30 +1589,6 @@ int ChromeBrowserMainParts::PreMainMessa
|
||||
// and preferences have been registered since some of the import code depends
|
||||
// on preferences.
|
||||
if (first_run::IsChromeFirstRun()) {
|
||||
@@ -13,6 +13,25 @@ Subject: [PATCH 56/66] browser: disable profile auto-import on first run
|
||||
- // "BrowserSignin" policy is set to "Force". If so, skip the auto import.
|
||||
- if (profile) {
|
||||
- first_run::AutoImport(profile, master_prefs_->import_bookmarks_path);
|
||||
-
|
||||
- if (base::FeatureList::IsEnabled(features::kBookmarksImportOnFirstRun) &&
|
||||
- !master_prefs_->import_bookmarks_dict.empty()) {
|
||||
- first_run::StartBookmarkImportFromDict(
|
||||
- profile, std::move(master_prefs_->import_bookmarks_dict));
|
||||
- }
|
||||
-
|
||||
-#if BUILDFLAG(ENABLE_EXTENSIONS)
|
||||
- if (base::FeatureList::IsEnabled(features::kInitialExternalExtensions)) {
|
||||
- profile->GetPrefs()->SetString(
|
||||
- extensions::pref_names::kInitialInstallProviderName,
|
||||
- std::move(master_prefs_->initial_extensions_provider_name));
|
||||
- // Store the initial extension IDs into the profile's prefs so that
|
||||
- // InitialExternalExtensionLoader can later pick them up.
|
||||
- profile->GetPrefs()->SetList(
|
||||
- extensions::pref_names::kInitialInstallList,
|
||||
- std::move(master_prefs_->initial_extensions));
|
||||
- }
|
||||
-#endif // BUILDFLAG(ENABLE_EXTENSIONS)
|
||||
- }
|
||||
|
||||
// Note: This can pop-up the first run consent dialog on Linux & Mac.
|
||||
|
||||
@@ -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
|
||||
@@ -1076,7 +1076,7 @@ class AppControllerNativeThemeObserver :
|
||||
@@ -1081,7 +1081,7 @@ class AppControllerNativeThemeObserver :
|
||||
CFStringRef checkInterval = CFSTR("checkInterval");
|
||||
CFPropertyListRef plist = CFPreferencesCopyAppValue(checkInterval, app);
|
||||
if (!plist) {
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
+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,
|
||||
@@ -1026,6 +1026,16 @@ def GenerateCredits(file_template_file,
|
||||
entries.append(
|
||||
MetadataToTemplateEntry(chromium_license_metadata, entry_template))
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
entries_by_name = {}
|
||||
for path in third_party_dirs:
|
||||
try:
|
||||
@@ -1059,8 +1069,8 @@ def GenerateCredits(file_template_file,
|
||||
@@ -1062,8 +1072,8 @@ def GenerateCredits(file_template_file,
|
||||
reciprocal_template = codecs.open(reciprocal_template_file,
|
||||
encoding='utf-8').read()
|
||||
reciprocal_contents = EvaluateTemplate(reciprocal_template, {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
|
||||
#include "chrome/browser/browser_features.h"
|
||||
#include "chrome/browser/defaults.h"
|
||||
@@ -132,6 +133,10 @@ void BookmarkBarController::OnSplitTabCh
|
||||
@@ -139,6 +140,10 @@ void BookmarkBarController::OnSplitTabCh
|
||||
}
|
||||
|
||||
bool BookmarkBarController::ShouldShowBookmarkBar() const {
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
--- a/chrome/browser/ui/browser.cc
|
||||
+++ b/chrome/browser/ui/browser.cc
|
||||
@@ -138,6 +138,7 @@
|
||||
@@ -142,6 +142,7 @@
|
||||
#include "chrome/browser/ui/views/frame/browser_view.h"
|
||||
#include "chrome/browser/ui/views/frame/contents_web_view.h"
|
||||
#include "chrome/browser/ui/views/frame/multi_contents_view.h"
|
||||
+#include "chrome/browser/ui/views/message_box_dialog.h"
|
||||
#include "chrome/browser/ui/views/status_bubble_views.h"
|
||||
#include "chrome/browser/ui/web_applications/app_browser_controller.h"
|
||||
#include "chrome/browser/ui/web_applications/web_app_launch_utils.h"
|
||||
@@ -620,6 +621,7 @@ Browser::Browser(const CreateParams& par
|
||||
#include "chrome/browser/ui/webui/new_tab_page/new_tab_page_ui.h"
|
||||
@@ -630,6 +631,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),
|
||||
@@ -994,20 +996,22 @@ Browser::WarnBeforeClosingResult Browser
|
||||
@@ -1015,20 +1017,22 @@ Browser::WarnBeforeClosingResult Browser
|
||||
return WarnBeforeClosingResult::kOkToClose;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
}
|
||||
|
||||
DCHECK(!warn_before_closing_callback_)
|
||||
@@ -1045,6 +1049,7 @@ bool Browser::TryToCloseWindow(
|
||||
@@ -1080,6 +1084,7 @@ bool Browser::TryToCloseWindow(
|
||||
|
||||
void Browser::ResetTryToCloseWindow() {
|
||||
cancel_download_confirmation_state_ = NOT_PROMPTED;
|
||||
@@ -60,7 +60,7 @@
|
||||
unload_controller_.ResetTryToCloseWindow();
|
||||
}
|
||||
|
||||
@@ -3496,6 +3501,58 @@ bool Browser::CanCloseWithInProgressDown
|
||||
@@ -3555,6 +3560,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;
|
||||
@@ -3521,6 +3578,22 @@ void Browser::InProgressDownloadResponse
|
||||
@@ -3580,6 +3637,22 @@ void Browser::InProgressDownloadResponse
|
||||
|
||||
std::move(warn_before_closing_callback_)
|
||||
.Run(WarnBeforeClosingResult::kDoNotClose);
|
||||
@@ -145,14 +145,14 @@
|
||||
--- a/chrome/browser/ui/browser.h
|
||||
+++ b/chrome/browser/ui/browser.h
|
||||
@@ -33,6 +33,7 @@
|
||||
#include "chrome/browser/ui/browser_window/public/browser_window_interface.h"
|
||||
#include "chrome/browser/ui/browser_window/public/desktop_browser_window_capabilities_delegate.h"
|
||||
#include "chrome/browser/ui/browser_window_deleter.h"
|
||||
#include "chrome/browser/ui/chrome_web_modal_dialog_manager_delegate.h"
|
||||
+#include "chrome/browser/ui/simple_message_box.h"
|
||||
#include "chrome/browser/ui/tabs/tab_strip_model.h"
|
||||
#include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
|
||||
#include "chrome/browser/ui/unload_controller.h"
|
||||
@@ -1147,12 +1148,17 @@ class Browser : public TabStripModelObse
|
||||
@@ -1157,12 +1158,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.
|
||||
@@ -1333,6 +1339,8 @@ class Browser : public TabStripModelObse
|
||||
@@ -1343,6 +1349,8 @@ class Browser : public TabStripModelObse
|
||||
// when the browser is closed with in-progress downloads.
|
||||
CancelDownloadConfirmationState cancel_download_confirmation_state_;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/chrome_content_browser_client.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client.cc
|
||||
@@ -821,11 +821,15 @@ bool HandleNewTabPageLocationOverride(
|
||||
@@ -834,11 +834,15 @@ bool HandleNewTabPageLocationOverride(
|
||||
|
||||
// Don't change the URL when incognito mode.
|
||||
if (profile->IsOffTheRecord()) {
|
||||
@@ -29,7 +29,7 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/components/webui/flags/flags_state.cc
|
||||
+++ b/components/webui/flags/flags_state.cc
|
||||
@@ -234,6 +234,7 @@ std::string GetCombinedOriginListValue(c
|
||||
@@ -233,6 +233,7 @@ std::string GetCombinedOriginListValue(c
|
||||
command_line.GetSwitchValueASCII(command_line_switch);
|
||||
const std::string new_value =
|
||||
flags_storage.GetOriginListFlag(internal_entry_name);
|
||||
@@ -37,7 +37,7 @@
|
||||
return CombineAndSanitizeOriginLists(existing_value, new_value);
|
||||
}
|
||||
|
||||
@@ -484,6 +485,7 @@ void FlagsState::SetOriginListFlag(const
|
||||
@@ -483,6 +484,7 @@ void FlagsState::SetOriginListFlag(const
|
||||
const std::string& value,
|
||||
FlagsStorage* flags_storage) {
|
||||
const std::string new_value =
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
#include "third_party/blink/public/common/input/web_menu_source_type.h"
|
||||
#include "third_party/blink/public/platform/web_input_event_result.h"
|
||||
#include "third_party/blink/renderer/core/annotation/annotation_agent_impl.h"
|
||||
@@ -1437,10 +1438,14 @@ FrameSelection& SelectionController::Sel
|
||||
@@ -1441,10 +1442,14 @@ FrameSelection& SelectionController::Sel
|
||||
}
|
||||
|
||||
bool IsSelectionOverLink(const MouseEventWithHitTestResults& event) {
|
||||
@@ -58,15 +58,15 @@
|
||||
Node* inner_node = event.InnerNode();
|
||||
--- a/third_party/blink/renderer/core/input/mouse_event_manager.cc
|
||||
+++ b/third_party/blink/renderer/core/input/mouse_event_manager.cc
|
||||
@@ -5,6 +5,7 @@
|
||||
#include "third_party/blink/renderer/core/input/mouse_event_manager.h"
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include "base/metrics/histogram_functions.h"
|
||||
#include "build/build_config.h"
|
||||
+#include "third_party/blink/public/common/features.h"
|
||||
#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"
|
||||
@@ -623,8 +624,14 @@ WebInputEventResult MouseEventManager::H
|
||||
@@ -622,8 +623,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
|
||||
@@ -74,6 +74,7 @@ class FrameGrabHandle : public views::Vi
|
||||
@@ -84,6 +84,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,16 +1,16 @@
|
||||
--- a/chrome/browser/ui/views/frame/browser_frame.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_frame.cc
|
||||
@@ -707,5 +707,7 @@ bool BrowserFrame::RegenerateFrameOnThem
|
||||
--- a/chrome/browser/ui/views/frame/browser_widget.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_widget.cc
|
||||
@@ -680,5 +680,7 @@ bool BrowserWidget::RegenerateFrameOnThe
|
||||
}
|
||||
|
||||
bool BrowserFrame::IsIncognitoBrowser() const {
|
||||
bool BrowserWidget::IsIncognitoBrowser() const {
|
||||
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("enable-incognito-themes"))
|
||||
+ return false;
|
||||
return browser_view_->browser()->profile()->IsIncognitoProfile();
|
||||
}
|
||||
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
||||
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
||||
@@ -60,6 +60,7 @@
|
||||
@@ -50,6 +50,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"
|
||||
|
||||
@@ -467,7 +468,9 @@ void NTPResourceCache::CreateNewTabIncog
|
||||
@@ -392,7 +393,9 @@ void NTPResourceCache::CreateNewTabIncog
|
||||
profile_->GetPrefs()->GetString(prefs::kCurrentThemeID);
|
||||
|
||||
// Colors.
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
#include "base/feature_list.h"
|
||||
#include "base/format_macros.h"
|
||||
#include "base/functional/bind.h"
|
||||
@@ -570,6 +571,15 @@ AutocompleteController::AutocompleteCont
|
||||
@@ -572,6 +573,15 @@ AutocompleteController::AutocompleteCont
|
||||
steady_state_omnibox_position_(
|
||||
metrics::OmniboxEventProto::UNKNOWN_POSITION) {
|
||||
provider_types &= ~OmniboxFieldTrial::GetDisabledProviderTypes();
|
||||
@@ -79,7 +79,7 @@
|
||||
#include "base/feature_list.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/functional/callback.h"
|
||||
@@ -632,6 +633,9 @@ void SearchProvider::Run(bool query_is_p
|
||||
@@ -637,6 +638,9 @@ void SearchProvider::Run(bool query_is_p
|
||||
}
|
||||
|
||||
void SearchProvider::DoHistoryQuery(bool minimal_changes) {
|
||||
@@ -91,16 +91,16 @@
|
||||
if (minimal_changes)
|
||||
--- a/components/url_formatter/url_fixer.cc
|
||||
+++ b/components/url_formatter/url_fixer.cc
|
||||
@@ -15,6 +15,8 @@
|
||||
@@ -10,6 +10,8 @@
|
||||
#include <string_view>
|
||||
|
||||
#include "base/check_op.h"
|
||||
+#include "base/containers/contains.h"
|
||||
+#include "base/command_line.h"
|
||||
#include "base/compiler_specific.h"
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/files/file_util.h"
|
||||
#include "base/i18n/char_iterator.h"
|
||||
@@ -648,6 +650,8 @@ GURL FixupURLInternal(const std::string&
|
||||
@@ -644,6 +646,8 @@ GURL FixupURLInternal(const std::string&
|
||||
|
||||
FixupHost(trimmed, parts.host, parts.scheme.is_valid(), desired_tld, &url);
|
||||
if (chrome_url && !parts.host.is_valid()) {
|
||||
|
||||
@@ -30,17 +30,20 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/components/sharing_message/features.cc
|
||||
+++ b/components/sharing_message/features.cc
|
||||
@@ -7,3 +7,5 @@
|
||||
@@ -6,6 +6,8 @@
|
||||
|
||||
#include "build/build_config.h"
|
||||
|
||||
BASE_FEATURE(kClickToCall, "ClickToCall", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
+
|
||||
+BASE_FEATURE(kDisableQRGenerator, "DisableQRGenerator", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
+
|
||||
BASE_FEATURE(kClickToCall, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
BASE_FEATURE(kMobilePromoOnDesktop, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
--- a/components/sharing_message/features.h
|
||||
+++ b/components/sharing_message/features.h
|
||||
@@ -10,4 +10,5 @@
|
||||
|
||||
BASE_DECLARE_FEATURE(kClickToCall);
|
||||
@@ -34,4 +34,5 @@ MobilePromoOnDesktopPromoType MobileProm
|
||||
// notification arm, false otherwise.
|
||||
bool IsMobilePromoOnDesktopNotificationsEnabled();
|
||||
|
||||
+BASE_DECLARE_FEATURE(kDisableQRGenerator);
|
||||
#endif // COMPONENTS_SHARING_MESSAGE_FEATURES_H_
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/tab_helpers.cc
|
||||
+++ b/chrome/browser/ui/tab_helpers.cc
|
||||
@@ -544,7 +544,9 @@ void TabHelpers::AttachTabHelpers(WebCon
|
||||
@@ -567,7 +567,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
|
||||
@@ -259,14 +259,16 @@ void ChromeRenderFrameObserver::DidFinis
|
||||
@@ -260,14 +260,16 @@ void ChromeRenderFrameObserver::DidFinis
|
||||
if (frame->Parent() || frame->IsInFencedFrameTree())
|
||||
return;
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
}
|
||||
|
||||
bool TemplateURLService::IsPrepopulatedOrDefaultProviderByPolicy(
|
||||
@@ -2493,6 +2501,8 @@ SyncDataMap TemplateURLService::CreateGU
|
||||
@@ -2489,6 +2497,8 @@ SyncDataMap TemplateURLService::CreateGU
|
||||
}
|
||||
|
||||
void TemplateURLService::Init() {
|
||||
@@ -101,7 +101,7 @@
|
||||
if (client_) {
|
||||
client_->SetOwner(this);
|
||||
}
|
||||
@@ -2658,6 +2668,9 @@ void TemplateURLService::ChangeToLoadedS
|
||||
@@ -2654,6 +2664,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
|
||||
@@ -905,6 +905,8 @@ class TemplateURLService final : public
|
||||
@@ -909,6 +909,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"
|
||||
@@ -761,6 +762,13 @@ void Tab::HideHover(TabStyle::HideHoverS
|
||||
@@ -762,6 +763,13 @@ void Tab::HideHover(TabStyle::HideHoverS
|
||||
DeprecatedLayoutImmediately();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/browser_command_controller.cc
|
||||
+++ b/chrome/browser/ui/browser_command_controller.cc
|
||||
@@ -1585,7 +1585,8 @@ void BrowserCommandController::InitComma
|
||||
@@ -1633,7 +1633,8 @@ void BrowserCommandController::InitComma
|
||||
command_updater_.UpdateCommandEnabled(IDC_WINDOW_CLOSE_OTHER_TABS,
|
||||
normal_window);
|
||||
|
||||
@@ -12,7 +12,15 @@
|
||||
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() {
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "chrome/browser/ui/ui_features.h"
|
||||
|
||||
+#include "base/command_line.h"
|
||||
#include "base/feature_list.h"
|
||||
#include "base/metrics/field_trial_params.h"
|
||||
#include "base/time/time.h"
|
||||
@@ -613,6 +614,10 @@ static std::string GetCountryCode() {
|
||||
}
|
||||
|
||||
bool HasTabSearchToolbarButton() {
|
||||
@@ -25,7 +33,7 @@
|
||||
base::FeatureList::IsEnabled(
|
||||
--- a/chrome/browser/ui/views/frame/browser_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_view.cc
|
||||
@@ -5159,6 +5159,7 @@ void BrowserView::AddedToWidget() {
|
||||
@@ -5088,6 +5088,7 @@ void BrowserView::AddedToWidget() {
|
||||
|
||||
toolbar_->Init();
|
||||
|
||||
@@ -43,7 +51,7 @@
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
#include "base/task/single_thread_task_runner.h"
|
||||
@@ -127,6 +128,7 @@ TabStripRegionView::TabStripRegionView(s
|
||||
@@ -209,6 +210,7 @@ TabStripRegionView::TabStripRegionView(s
|
||||
std::unique_ptr<TabStripActionContainer> tab_strip_action_container;
|
||||
std::unique_ptr<ProductSpecificationsButton> product_specifications_button;
|
||||
if (browser &&
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/components/webui/flags/flags_state.cc
|
||||
+++ b/components/webui/flags/flags_state.cc
|
||||
@@ -235,6 +235,7 @@ std::string GetCombinedOriginListValue(c
|
||||
@@ -234,6 +234,7 @@ std::string GetCombinedOriginListValue(c
|
||||
const std::string new_value =
|
||||
flags_storage.GetOriginListFlag(internal_entry_name);
|
||||
if (command_line_switch == "custom-ntp") return existing_value.empty() ? new_value : existing_value;
|
||||
@@ -19,7 +19,7 @@
|
||||
return CombineAndSanitizeOriginLists(existing_value, new_value);
|
||||
}
|
||||
|
||||
@@ -486,6 +487,7 @@ void FlagsState::SetOriginListFlag(const
|
||||
@@ -485,6 +486,7 @@ void FlagsState::SetOriginListFlag(const
|
||||
FlagsStorage* flags_storage) {
|
||||
const std::string new_value =
|
||||
internal_name == "custom-ntp" ? value :
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
--- a/chrome/browser/browser_features.cc
|
||||
+++ b/chrome/browser/browser_features.cc
|
||||
@@ -368,4 +368,5 @@ BASE_FEATURE(kRemovalOfIWAsFromTabCaptur
|
||||
"RemovalOfIWAsFromTabCapture",
|
||||
base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
@@ -313,4 +313,5 @@ BASE_FEATURE(kReportPakFileIntegrity,
|
||||
// show both in Chrome Tabs and Windows.
|
||||
BASE_FEATURE(kRemovalOfIWAsFromTabCapture, base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
+BASE_FEATURE(kClearDataOnExit, "ClearDataOnExit", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
} // namespace features
|
||||
--- a/chrome/browser/browser_features.h
|
||||
+++ b/chrome/browser/browser_features.h
|
||||
@@ -121,6 +121,7 @@ BASE_DECLARE_FEATURE(kRemovalOfIWAsFromT
|
||||
@@ -126,6 +126,7 @@ BASE_DECLARE_FEATURE(kRemovalOfIWAsFromT
|
||||
// module, e.g.
|
||||
// //chrome/browser/<foo_module>/features.h
|
||||
//
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "base/containers/adapters.h"
|
||||
#include "base/containers/flat_map.h"
|
||||
#include "base/containers/span.h"
|
||||
@@ -1145,6 +1146,10 @@ void TabStripModel::CloseAllTabsInGroup(
|
||||
@@ -1174,6 +1175,10 @@ void TabStripModel::CloseAllTabsInGroup(
|
||||
|
||||
void TabStripModel::CloseWebContentsAt(int index, uint32_t close_types) {
|
||||
CHECK(ContainsIndex(index));
|
||||
@@ -19,7 +19,7 @@
|
||||
CloseTabs({GetWebContentsAt(index)}, close_types);
|
||||
}
|
||||
|
||||
@@ -2928,9 +2933,13 @@ TabStripModel::GetGroupsDestroyedFromRem
|
||||
@@ -3028,9 +3033,13 @@ TabStripModel::GetGroupsDestroyedFromRem
|
||||
void TabStripModel::ExecuteCloseTabsByIndices(
|
||||
base::RepeatingCallback<std::vector<int>()> get_indices_to_close,
|
||||
uint32_t close_types) {
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
// Don't prompt for file types that are marked for opening automatically.
|
||||
--- a/chrome/browser/extensions/extension_management.cc
|
||||
+++ b/chrome/browser/extensions/extension_management.cc
|
||||
@@ -319,6 +319,13 @@ bool ExtensionManagement::IsInstallation
|
||||
@@ -326,6 +326,13 @@ bool ExtensionManagement::IsInstallation
|
||||
bool ExtensionManagement::IsOffstoreInstallAllowed(
|
||||
const GURL& url,
|
||||
const GURL& referrer_url) const {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/content/renderer/render_frame_impl.cc
|
||||
+++ b/content/renderer/render_frame_impl.cc
|
||||
@@ -1198,6 +1198,8 @@ WindowOpenDisposition NavigationPolicyTo
|
||||
@@ -1199,6 +1199,8 @@ WindowOpenDisposition NavigationPolicyTo
|
||||
case blink::kWebNavigationPolicyNewWindow:
|
||||
return WindowOpenDisposition::NEW_WINDOW;
|
||||
case blink::kWebNavigationPolicyNewPopup:
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "base/compiler_specific.h"
|
||||
#include "base/containers/flat_set.h"
|
||||
#include "base/feature_list.h"
|
||||
@@ -1327,7 +1328,8 @@ void HistoryBackend::InitImpl(
|
||||
@@ -1346,7 +1347,8 @@ void HistoryBackend::InitImpl(
|
||||
db_->GetStartDate(&first_recorded_time_);
|
||||
|
||||
// Start expiring old stuff.
|
||||
@@ -31,7 +31,7 @@
|
||||
}
|
||||
|
||||
void HistoryBackend::OnMemoryPressure(
|
||||
@@ -1549,6 +1551,8 @@ void HistoryBackend::AddPagesWithDetails
|
||||
@@ -1583,6 +1585,8 @@ void HistoryBackend::AddPagesWithDetails
|
||||
}
|
||||
|
||||
bool HistoryBackend::IsExpiredVisitTime(const base::Time& time) const {
|
||||
|
||||
@@ -11,7 +11,15 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/net/socket/ssl_client_socket_impl.cc
|
||||
+++ b/net/socket/ssl_client_socket_impl.cc
|
||||
@@ -200,7 +200,8 @@ class SSLClientSocketImpl::SSLContext {
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <string_view>
|
||||
#include <utility>
|
||||
|
||||
+#include "base/command_line.h"
|
||||
#include "base/containers/span.h"
|
||||
#include "base/containers/to_vector.h"
|
||||
#include "base/feature_list.h"
|
||||
@@ -200,7 +201,8 @@ class SSLClientSocketImpl::SSLContext {
|
||||
SSL_CTX_sess_set_new_cb(ssl_ctx_.get(), NewSessionCallback);
|
||||
SSL_CTX_set_timeout(ssl_ctx_.get(), 1 * 60 * 60 /* one hour */);
|
||||
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
|
||||
--- a/chrome/browser/ui/startup/infobar_utils.cc
|
||||
+++ b/chrome/browser/ui/startup/infobar_utils.cc
|
||||
@@ -140,7 +140,8 @@ void AddInfoBarsIfNecessary(Browser* bro
|
||||
@@ -152,7 +152,8 @@ void AddInfoBarsIfNecessary(BrowserWindo
|
||||
}
|
||||
|
||||
// Web apps should not display the session restore bubble (crbug.com/1264121)
|
||||
- if (!is_web_app && HasPendingUncleanExit(browser->profile())) {
|
||||
+ if (!is_web_app && HasPendingUncleanExit(browser->profile()) &&
|
||||
- if (!is_web_app && HasPendingUncleanExit(browser->GetProfile())) {
|
||||
+ if (!is_web_app && HasPendingUncleanExit(browser->GetProfile()) &&
|
||||
+ !startup_command_line.HasSwitch("hide-crashed-bubble")) {
|
||||
SessionCrashedBubble::ShowIfNotOffTheRecordProfile(
|
||||
browser, /*skip_tab_checking=*/false);
|
||||
}
|
||||
browser,
|
||||
/*skip_tab_checking=*/false);
|
||||
--- a/chrome/browser/ungoogled_flag_entries.h
|
||||
+++ b/chrome/browser/ungoogled_flag_entries.h
|
||||
@@ -28,4 +28,8 @@
|
||||
|
||||
@@ -8,15 +8,15 @@
|
||||
#include "base/feature_list.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/functional/callback_helpers.h"
|
||||
@@ -35,6 +36,7 @@
|
||||
@@ -34,6 +35,7 @@
|
||||
#include "chrome/browser/ui/views/frame/toolbar_button_provider.h"
|
||||
#include "chrome/browser/ui/views/side_panel/side_panel_ui.h"
|
||||
#include "chrome/browser/ui/views/toolbar/toolbar_action_hover_card_controller.h"
|
||||
#include "chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.h"
|
||||
+#include "chrome/browser/ui/views/toolbar/toolbar_view.h"
|
||||
#include "chrome/common/pref_names.h"
|
||||
#include "chrome/grit/generated_resources.h"
|
||||
#include "components/feature_engagement/public/event_constants.h"
|
||||
@@ -544,6 +546,17 @@ void ExtensionsToolbarContainer::AnchorA
|
||||
@@ -547,6 +549,17 @@ void ExtensionsToolbarContainer::AnchorA
|
||||
widget->widget_delegate()->AsBubbleDialogDelegate()->SetAnchorView(
|
||||
anchor_view && anchor_view->GetVisible() ? anchor_view
|
||||
: GetExtensionsButton());
|
||||
@@ -34,7 +34,7 @@
|
||||
widget->Show();
|
||||
}
|
||||
|
||||
@@ -958,6 +971,9 @@ void ExtensionsToolbarContainer::UpdateC
|
||||
@@ -949,6 +962,9 @@ void ExtensionsToolbarContainer::UpdateC
|
||||
}
|
||||
|
||||
bool ExtensionsToolbarContainer::ShouldContainerBeVisible() const {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/frame/browser_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_view.cc
|
||||
@@ -2130,6 +2130,10 @@ void BrowserView::ExitFullscreen() {
|
||||
@@ -1969,6 +1969,10 @@ void BrowserView::ExitFullscreen() {
|
||||
void BrowserView::UpdateExclusiveAccessBubble(
|
||||
const ExclusiveAccessBubbleParams& params,
|
||||
ExclusiveAccessBubbleHideCallback first_hide_callback) {
|
||||
@@ -13,7 +13,7 @@
|
||||
platform_util::IsBrowserLockedFullscreen(browser_.get());
|
||||
--- a/chrome/browser/ui/views/fullscreen_control/fullscreen_control_host.cc
|
||||
+++ b/chrome/browser/ui/views/fullscreen_control/fullscreen_control_host.cc
|
||||
@@ -73,6 +73,10 @@ bool IsExitUiEnabled() {
|
||||
@@ -74,6 +74,10 @@ bool IsExitUiEnabled() {
|
||||
// menu and controls reveal when the cursor is moved to the top.
|
||||
return false;
|
||||
#else
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/tabs/tab.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/tab.cc
|
||||
@@ -1170,7 +1170,11 @@ void Tab::UpdateIconVisibility() {
|
||||
@@ -1177,7 +1177,11 @@ void Tab::UpdateIconVisibility() {
|
||||
// Close button is shown on active tabs regardless of the size.
|
||||
showing_close_button_ = true;
|
||||
#endif // BUILDFLAG(IS_CHROMEOS)
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
showing_alert_indicator_ =
|
||||
has_alert_icon && alert_icon_width <= available_width;
|
||||
@@ -1199,6 +1203,8 @@ void Tab::UpdateIconVisibility() {
|
||||
@@ -1206,6 +1210,8 @@ void Tab::UpdateIconVisibility() {
|
||||
!controller_->IsLockedForOnTask() &&
|
||||
#endif
|
||||
large_enough_for_close_button;
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/storage/browser/quota/quota_features.cc
|
||||
+++ b/storage/browser/quota/quota_features.cc
|
||||
@@ -41,5 +41,9 @@ BASE_FEATURE(kStaticStorageQuota,
|
||||
"StaticStorageQuota",
|
||||
base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
@@ -37,5 +37,9 @@ constexpr base::FeatureParam<double> kSh
|
||||
// A kill switch for the new reported quota being a static value.
|
||||
BASE_FEATURE(kStaticStorageQuota, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
+BASE_FEATURE(kIncreaseIncognitoStorageQuota,
|
||||
+ "IncreaseIncognitoStorageQuota",
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/content/browser/client_hints/client_hints.cc
|
||||
+++ b/content/browser/client_hints/client_hints.cc
|
||||
@@ -821,6 +821,8 @@ void UpdateNavigationRequestClientUaHead
|
||||
@@ -824,6 +824,8 @@ void UpdateNavigationRequestClientUaHead
|
||||
net::HttpRequestHeaders* headers,
|
||||
const std::optional<GURL>& request_url) {
|
||||
DCHECK(frame_tree_node);
|
||||
@@ -20,13 +20,13 @@
|
||||
if (!ShouldAddClientHints(origin, frame_tree_node, delegate, request_url)) {
|
||||
return;
|
||||
}
|
||||
@@ -842,6 +844,8 @@ void AddRequestClientHintsHeaders(
|
||||
@@ -855,6 +857,8 @@ void AddRequestClientHintsHeaders(
|
||||
FrameTreeNode* frame_tree_node,
|
||||
const network::ParsedPermissionsPolicy& container_policy,
|
||||
const std::optional<GURL>& request_url) {
|
||||
FrameTreeNode* ftn_for_devtools_override) {
|
||||
+ if (base::FeatureList::IsEnabled(blink::features::kRemoveClientHints))
|
||||
+ return;
|
||||
ClientHintsExtendedData data(origin, frame_tree_node, delegate, request_url);
|
||||
ClientHintsExtendedData data(origin, frame_tree_node, delegate);
|
||||
UpdateIFramePermissionsPolicyWithDelegationSupportForClientHints(
|
||||
data, container_policy);
|
||||
--- a/third_party/blink/common/features.cc
|
||||
@@ -75,10 +75,10 @@
|
||||
#include "third_party/blink/public/common/client_hints/client_hints.h"
|
||||
#include "third_party/blink/public/common/device_memory/approximated_device_memory.h"
|
||||
+#include "third_party/blink/public/common/features.h"
|
||||
#include "third_party/blink/public/common/permissions_policy/document_policy_features.h"
|
||||
#include "third_party/blink/public/common/switches.h"
|
||||
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-blink.h"
|
||||
#include "third_party/blink/public/mojom/loader/request_context_frame_type.mojom-blink.h"
|
||||
@@ -528,6 +529,8 @@ void FrameFetchContext::ModifyRequestFor
|
||||
@@ -611,6 +612,8 @@ void FrameFetchContext::ModifyRequestFor
|
||||
void FrameFetchContext::AddClientHintsIfNecessary(
|
||||
const std::optional<float> resource_width,
|
||||
ResourceRequest& request) {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "base/containers/adapters.h"
|
||||
#include "base/feature_list.h"
|
||||
#include "base/functional/bind.h"
|
||||
@@ -175,6 +176,18 @@ DragOperation GetDropEffect(const ui::Dr
|
||||
@@ -176,6 +177,18 @@ DragOperation GetDropEffect(const ui::Dr
|
||||
return DragOperation::kMove;
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
} // namespace
|
||||
|
||||
BrowserRootView::DropInfo::DropInfo() = default;
|
||||
@@ -187,7 +200,9 @@ BrowserRootView::DropInfo::~DropInfo() {
|
||||
@@ -188,7 +201,9 @@ BrowserRootView::DropInfo::~DropInfo() {
|
||||
|
||||
BrowserRootView::BrowserRootView(BrowserView* browser_view,
|
||||
views::Widget* widget)
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
BrowserRootView::~BrowserRootView() {
|
||||
// It's possible to destroy the browser while a drop is active. In this case,
|
||||
@@ -327,7 +342,7 @@ bool BrowserRootView::OnMouseWheel(const
|
||||
@@ -328,7 +343,7 @@ bool BrowserRootView::OnMouseWheel(const
|
||||
|
||||
// Scroll-event-changes-tab is incompatible with scrolling tabstrip, so
|
||||
// disable it if the latter feature is enabled.
|
||||
@@ -49,7 +49,7 @@
|
||||
// tabstrip, or the empty space beside the tabstrip.
|
||||
--- a/chrome/browser/ui/views/frame/browser_root_view.h
|
||||
+++ b/chrome/browser/ui/views/frame/browser_root_view.h
|
||||
@@ -159,6 +159,8 @@ class BrowserRootView : public views::in
|
||||
@@ -160,6 +160,8 @@ class BrowserRootView : public views::in
|
||||
int scroll_remainder_x_ = 0;
|
||||
int scroll_remainder_y_ = 0;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
@@ -460,6 +460,17 @@ void ToolbarView::Init() {
|
||||
@@ -466,6 +466,17 @@ void ToolbarView::Init() {
|
||||
browser_->profile()->IsGuestSession() ||
|
||||
browser_->profile()->IsRegularProfile();
|
||||
#endif
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
// Feature declarations and associated constants (feature params, et cetera)
|
||||
--- a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
|
||||
+++ b/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
|
||||
@@ -4113,6 +4113,8 @@ ScriptValue WebGLRenderingContextBase::g
|
||||
@@ -4153,6 +4153,8 @@ ScriptValue WebGLRenderingContextBase::g
|
||||
pname, IdentifiabilityBenignStringToken(
|
||||
String(ContextGL()->GetString(GL_RENDERER))));
|
||||
}
|
||||
@@ -95,7 +95,7 @@
|
||||
return WebGLAny(script_state,
|
||||
String(ContextGL()->GetString(GL_RENDERER)));
|
||||
}
|
||||
@@ -4128,6 +4130,8 @@ ScriptValue WebGLRenderingContextBase::g
|
||||
@@ -4168,6 +4170,8 @@ ScriptValue WebGLRenderingContextBase::g
|
||||
pname, IdentifiabilityBenignStringToken(
|
||||
String(ContextGL()->GetString(GL_VENDOR))));
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -4930,10 +4930,12 @@ constexpr char kWebiumFlag[] = "webium";
|
||||
@@ -4993,10 +4993,12 @@ const FeatureEntry::FeatureVariation kSe
|
||||
#include "chrome/browser/ungoogled_flag_choices.h"
|
||||
#include "chrome/browser/bromite_flag_choices.h"
|
||||
#include "chrome/browser/ungoogled_platform_flag_choices.h"
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/content/browser/renderer_host/navigation_request.cc
|
||||
+++ b/content/browser/renderer_host/navigation_request.cc
|
||||
@@ -172,6 +172,7 @@
|
||||
@@ -173,6 +173,7 @@
|
||||
#include "services/network/public/cpp/permissions_policy/fenced_frame_permissions_policies.h"
|
||||
#include "services/network/public/cpp/permissions_policy/permissions_policy_declaration.h"
|
||||
#include "services/network/public/cpp/permissions_policy/permissions_policy_features.h"
|
||||
@@ -27,7 +27,7 @@
|
||||
#include "services/network/public/cpp/resource_request_body.h"
|
||||
#include "services/network/public/cpp/supports_loading_mode/supports_loading_mode_parser.h"
|
||||
#include "services/network/public/cpp/url_loader_completion_status.h"
|
||||
@@ -393,10 +394,10 @@ void AddAdditionalRequestHeaders(
|
||||
@@ -398,10 +399,10 @@ void AddAdditionalRequestHeaders(
|
||||
net::HttpRequestHeaders::kUserAgent,
|
||||
ComputeUserAgentValue(*headers, user_agent_override, browser_context));
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
if (NeedsHTTPOrigin(headers, method)) {
|
||||
--- a/content/renderer/render_frame_impl.cc
|
||||
+++ b/content/renderer/render_frame_impl.cc
|
||||
@@ -133,6 +133,7 @@
|
||||
@@ -136,6 +136,7 @@
|
||||
#include "services/network/public/cpp/content_decoding_interceptor.h"
|
||||
#include "services/network/public/cpp/features.h"
|
||||
#include "services/network/public/cpp/not_implemented_url_loader_factory.h"
|
||||
|
||||
@@ -13,15 +13,15 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/net/base/features.cc
|
||||
+++ b/net/base/features.cc
|
||||
@@ -19,6 +19,8 @@
|
||||
@@ -20,6 +20,8 @@
|
||||
|
||||
namespace net::features {
|
||||
|
||||
+BASE_FEATURE(kSetIpv6ProbeFalse, "SetIpv6ProbeFalse", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
+
|
||||
BASE_FEATURE(kAlpsForHttp2, "AlpsForHttp2", base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
BASE_FEATURE(kAlpsForHttp2, base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
BASE_FEATURE(kAvoidH2Reprioritization,
|
||||
BASE_FEATURE(kAvoidH2Reprioritization, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
--- a/net/base/features.h
|
||||
+++ b/net/base/features.h
|
||||
@@ -21,6 +21,8 @@
|
||||
@@ -35,7 +35,7 @@
|
||||
// https://vasilvv.github.io/httpbis-alps/draft-vvv-httpbis-alps.html.
|
||||
--- a/net/dns/host_resolver_manager.cc
|
||||
+++ b/net/dns/host_resolver_manager.cc
|
||||
@@ -152,11 +152,6 @@ const size_t kMaxHostLength = 4096;
|
||||
@@ -151,11 +151,6 @@ const size_t kMaxHostLength = 4096;
|
||||
// cached.
|
||||
const int kIPv6ProbePeriodMs = 1000;
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
// True if |hostname| ends with either ".local" or ".local.".
|
||||
bool ResemblesMulticastDNSName(std::string_view hostname) {
|
||||
return hostname.ends_with(".local") || hostname.ends_with(".local.");
|
||||
@@ -1497,33 +1492,10 @@ int HostResolverManager::StartIPv6Reacha
|
||||
@@ -1493,33 +1488,10 @@ int HostResolverManager::StartIPv6Reacha
|
||||
return OK;
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
- base::BindOnce(&HostResolverManager::FinishIPv6ReachabilityCheck,
|
||||
- weak_ptr_factory_.GetWeakPtr(), std::move(callback)));
|
||||
- if (rv != ERR_IO_PENDING) {
|
||||
- SetLastIPv6ProbeResult((rv == OK) ? true : false);
|
||||
- SetLastIPv6ProbeResult(rv == OK);
|
||||
- rv = OK;
|
||||
- }
|
||||
- cached = false;
|
||||
|
||||
@@ -196,7 +196,7 @@
|
||||
// already owned by the TemplateURLService.
|
||||
--- a/chrome/browser/ui/search_engines/keyword_editor_controller.cc
|
||||
+++ b/chrome/browser/ui/search_engines/keyword_editor_controller.cc
|
||||
@@ -28,23 +28,27 @@ KeywordEditorController::KeywordEditorCo
|
||||
@@ -27,23 +27,27 @@ KeywordEditorController::KeywordEditorCo
|
||||
|
||||
KeywordEditorController::~KeywordEditorController() = default;
|
||||
|
||||
@@ -232,7 +232,7 @@
|
||||
DCHECK(!url.empty());
|
||||
const std::optional<size_t> index =
|
||||
table_model_->IndexOfTemplateURL(template_url);
|
||||
@@ -56,11 +60,13 @@ void KeywordEditorController::ModifyTemp
|
||||
@@ -55,11 +59,13 @@ void KeywordEditorController::ModifyTemp
|
||||
|
||||
// Don't do anything if the entry didn't change.
|
||||
if ((template_url->short_name() == title) &&
|
||||
@@ -271,7 +271,7 @@
|
||||
bool CanEdit(const TemplateURL* url) const;
|
||||
--- a/chrome/browser/ui/search_engines/template_url_table_model.cc
|
||||
+++ b/chrome/browser/ui/search_engines/template_url_table_model.cc
|
||||
@@ -212,21 +212,25 @@ void TemplateURLTableModel::Remove(size_
|
||||
@@ -211,21 +211,25 @@ void TemplateURLTableModel::Remove(size_
|
||||
void TemplateURLTableModel::Add(size_t index,
|
||||
const std::u16string& short_name,
|
||||
const std::u16string& keyword,
|
||||
@@ -302,7 +302,7 @@
|
||||
DCHECK(index <= RowCount());
|
||||
DCHECK(!url.empty());
|
||||
TemplateURL* template_url = GetTemplateURL(index);
|
||||
@@ -235,7 +239,8 @@ void TemplateURLTableModel::ModifyTempla
|
||||
@@ -234,7 +238,8 @@ void TemplateURLTableModel::ModifyTempla
|
||||
DCHECK(template_url_service_->GetDefaultSearchProvider() != template_url ||
|
||||
template_url->SupportsReplacement(
|
||||
template_url_service_->search_terms_data()));
|
||||
@@ -334,7 +334,7 @@
|
||||
void ReloadIcon(size_t index);
|
||||
--- a/chrome/browser/ui/webui/settings/search_engines_handler.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/search_engines_handler.cc
|
||||
@@ -49,6 +49,7 @@ namespace {
|
||||
@@ -51,6 +51,7 @@ namespace {
|
||||
const char kSearchEngineField[] = "searchEngine";
|
||||
const char kKeywordField[] = "keyword";
|
||||
const char kQueryUrlField[] = "queryUrl";
|
||||
@@ -342,7 +342,7 @@
|
||||
|
||||
// Dummy number used for indicating that a new search engine is added.
|
||||
const int kNewSearchEngineIndex = -1;
|
||||
@@ -255,6 +256,8 @@ base::Value::Dict SearchEnginesHandler::
|
||||
@@ -257,6 +258,8 @@ base::Value::Dict SearchEnginesHandler::
|
||||
Profile* profile = Profile::FromWebUI(web_ui());
|
||||
dict.Set("url",
|
||||
template_url->url_ref().DisplayURL(UIThreadSearchTermsData()));
|
||||
@@ -351,7 +351,7 @@
|
||||
dict.Set("urlLocked", ((template_url->prepopulate_id() > 0) ||
|
||||
(template_url->starter_pack_id() > 0)));
|
||||
GURL icon_url = template_url->favicon_url();
|
||||
@@ -418,12 +421,14 @@ void SearchEnginesHandler::HandleSearchE
|
||||
@@ -423,12 +426,14 @@ void SearchEnginesHandler::HandleSearchE
|
||||
void SearchEnginesHandler::OnEditedKeyword(TemplateURL* template_url,
|
||||
const std::u16string& title,
|
||||
const std::u16string& keyword,
|
||||
@@ -369,7 +369,7 @@
|
||||
}
|
||||
|
||||
edit_controller_.reset();
|
||||
@@ -453,6 +458,8 @@ bool SearchEnginesHandler::CheckFieldVal
|
||||
@@ -458,6 +463,8 @@ bool SearchEnginesHandler::CheckFieldVal
|
||||
is_valid = edit_controller_->IsKeywordValid(base::UTF8ToUTF16(field_value));
|
||||
} else if (field_name.compare(kQueryUrlField) == 0) {
|
||||
is_valid = edit_controller_->IsURLValid(field_value);
|
||||
@@ -378,7 +378,7 @@
|
||||
} else {
|
||||
NOTREACHED();
|
||||
}
|
||||
@@ -475,18 +482,21 @@ void SearchEnginesHandler::HandleSearchE
|
||||
@@ -480,18 +487,21 @@ void SearchEnginesHandler::HandleSearchE
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -448,7 +448,7 @@
|
||||
syncer::kSeparateLocalAndAccountSearchEngines)
|
||||
--- a/components/search_engines/template_url_service.h
|
||||
+++ b/components/search_engines/template_url_service.h
|
||||
@@ -341,7 +341,8 @@ class TemplateURLService final : public
|
||||
@@ -345,7 +345,8 @@ class TemplateURLService final : public
|
||||
void ResetTemplateURL(TemplateURL* url,
|
||||
const std::u16string& title,
|
||||
const std::u16string& keyword,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -4926,7 +4926,13 @@ constexpr char kWebiumFlag[] = "webium";
|
||||
@@ -4989,7 +4989,13 @@ const FeatureEntry::FeatureVariation kSe
|
||||
// calculate and verify checksum.
|
||||
//
|
||||
// When adding a new choice, add it to the end of the list.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/search_engines/template_url_table_model.cc
|
||||
+++ b/chrome/browser/ui/search_engines/template_url_table_model.cc
|
||||
@@ -117,23 +117,10 @@ void TemplateURLTableModel::Reload() {
|
||||
@@ -117,22 +117,10 @@ void TemplateURLTableModel::Reload() {
|
||||
extension_entries;
|
||||
// Keywords that can be made the default first.
|
||||
for (TemplateURL* template_url : urls) {
|
||||
@@ -19,8 +19,7 @@
|
||||
- // Skip @aimode if feature disabled.
|
||||
- if (template_url->starter_pack_id() ==
|
||||
- template_url_starter_pack_data::kAiMode &&
|
||||
- (!omnibox_feature_configs::Toolbelt::Get().enabled ||
|
||||
- !ai_mode_enabled_)) {
|
||||
- !ai_mode_enabled_) {
|
||||
+ // Disable all Google AI starter pack options
|
||||
+ if (template_url->starter_pack_id() == template_url_starter_pack_data::kGemini ||
|
||||
+ template_url->starter_pack_id() == template_url_starter_pack_data::kAiMode ||
|
||||
@@ -30,7 +29,7 @@
|
||||
|
||||
--- a/components/omnibox/browser/featured_search_provider.cc
|
||||
+++ b/components/omnibox/browser/featured_search_provider.cc
|
||||
@@ -290,21 +290,10 @@ void FeaturedSearchProvider::AddFeatured
|
||||
@@ -294,20 +294,10 @@ void FeaturedSearchProvider::AddFeatured
|
||||
for (TemplateURL* turl : turls) {
|
||||
if (turl->starter_pack_id() > 0 &&
|
||||
turl->is_active() == TemplateURLData::ActiveStatus::kTrue) {
|
||||
@@ -46,9 +45,8 @@
|
||||
- }
|
||||
- // Skip @aimode if feature disabled.
|
||||
- if (turl->starter_pack_id() == template_url_starter_pack_data::kAiMode &&
|
||||
- (!omnibox_feature_configs::Toolbelt::Get().enabled ||
|
||||
- !client_->GetAimEligibilityService() ||
|
||||
- !client_->GetAimEligibilityService()->IsAimEligible())) {
|
||||
- !OmniboxFieldTrial::IsAimStarterPackEnabled(
|
||||
- client_->GetAimEligibilityService())) {
|
||||
+ // Disable all Google AI starter pack options
|
||||
+ if (turl->starter_pack_id() == template_url_starter_pack_data::kGemini ||
|
||||
+ turl->starter_pack_id() == template_url_starter_pack_data::kAiMode ||
|
||||
|
||||
@@ -2,15 +2,15 @@
|
||||
|
||||
--- a/components/download/internal/common/base_file.cc
|
||||
+++ b/components/download/internal/common/base_file.cc
|
||||
@@ -29,7 +29,6 @@
|
||||
@@ -26,7 +26,6 @@
|
||||
#include "components/download/public/common/download_interrupt_reasons_utils.h"
|
||||
#include "components/download/public/common/download_item.h"
|
||||
#include "components/download/public/common/download_stats.h"
|
||||
-#include "components/services/quarantine/quarantine.h"
|
||||
#include "crypto/hash.h"
|
||||
#include "crypto/secure_hash.h"
|
||||
|
||||
#if BUILDFLAG(IS_ANDROID)
|
||||
@@ -563,94 +562,10 @@ DownloadInterruptReason BaseFile::Publis
|
||||
@@ -538,94 +537,10 @@ DownloadInterruptReason BaseFile::Publis
|
||||
}
|
||||
#endif // BUILDFLAG(IS_ANDROID)
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
}
|
||||
|
||||
void BaseFile::AnnotateWithSourceInformation(
|
||||
@@ -660,32 +575,8 @@ void BaseFile::AnnotateWithSourceInforma
|
||||
@@ -635,32 +550,8 @@ void BaseFile::AnnotateWithSourceInforma
|
||||
const std::optional<url::Origin>& request_initiator,
|
||||
mojo::PendingRemote<quarantine::mojom::Quarantine> remote_quarantine,
|
||||
OnAnnotationDoneCallback on_annotation_done_callback) {
|
||||
@@ -142,8 +142,8 @@
|
||||
} // namespace download
|
||||
--- a/content/browser/BUILD.gn
|
||||
+++ b/content/browser/BUILD.gn
|
||||
@@ -138,7 +138,6 @@ source_set("browser") {
|
||||
"//components/performance_manager/scenario_api",
|
||||
@@ -140,7 +140,6 @@ source_set("browser") {
|
||||
"//components/persistent_cache",
|
||||
"//components/power_monitor",
|
||||
"//components/services/filesystem:lib",
|
||||
- "//components/services/quarantine",
|
||||
@@ -152,7 +152,7 @@
|
||||
"//components/services/storage/dom_storage:local_storage_proto",
|
||||
--- a/content/browser/file_system_access/file_system_access_safe_move_helper.cc
|
||||
+++ b/content/browser/file_system_access/file_system_access_safe_move_helper.cc
|
||||
@@ -13,7 +13,6 @@
|
||||
@@ -14,7 +14,6 @@
|
||||
#include "base/task/thread_pool.h"
|
||||
#include "base/thread_annotations.h"
|
||||
#include "build/build_config.h"
|
||||
@@ -160,7 +160,7 @@
|
||||
#include "content/browser/file_system_access/features.h"
|
||||
#include "content/browser/file_system_access/file_system_access_error.h"
|
||||
#include "content/public/browser/content_browser_client.h"
|
||||
@@ -229,22 +228,9 @@ void FileSystemAccessSafeMoveHelper::Did
|
||||
@@ -231,22 +230,9 @@ void FileSystemAccessSafeMoveHelper::Did
|
||||
// not exist anymore. In case of error, the source file URL will point to a
|
||||
// valid filesystem location.
|
||||
base::OnceCallback<void(base::File::Error)> result_callback;
|
||||
@@ -183,7 +183,7 @@
|
||||
manager_->DoFileSystemOperation(
|
||||
FROM_HERE, &storage::FileSystemOperationRunner::Move,
|
||||
std::move(result_callback), source_url(), dest_url(), options_,
|
||||
@@ -261,7 +247,6 @@ void FileSystemAccessSafeMoveHelper::Did
|
||||
@@ -263,7 +249,6 @@ void FileSystemAccessSafeMoveHelper::Did
|
||||
void FileSystemAccessSafeMoveHelper::DidFileDoQuarantine(
|
||||
const storage::FileSystemURL& target_url,
|
||||
const GURL& referrer_url,
|
||||
@@ -191,7 +191,7 @@
|
||||
base::File::Error result) {
|
||||
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||
|
||||
@@ -292,40 +277,9 @@ void FileSystemAccessSafeMoveHelper::Did
|
||||
@@ -294,40 +279,9 @@ void FileSystemAccessSafeMoveHelper::Did
|
||||
referrer_url.is_valid() && referrer_url.SchemeIsHTTPOrHTTPS()
|
||||
? referrer_url
|
||||
: GURL();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/components/download/public/common/download_features.cc
|
||||
+++ b/components/download/public/common/download_features.cc
|
||||
@@ -44,7 +44,7 @@ BASE_FEATURE(kRefreshExpirationDate,
|
||||
@@ -38,7 +38,7 @@ BASE_FEATURE(kRefreshExpirationDate, bas
|
||||
|
||||
BASE_FEATURE(kDisplayInitiatorOrigin,
|
||||
"DownloadsDisplayInitiatorOrigin",
|
||||
@@ -8,4 +8,4 @@
|
||||
+ base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
BASE_FEATURE(kDownloadNotificationServiceUnifiedAPI,
|
||||
"DownloadNotificationServiceUnifiedAPI",
|
||||
#if BUILDFLAG(IS_ANDROID)
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
# Disables omission of URL elements in Omnibox and status bubble
|
||||
|
||||
--- a/chrome/browser/ui/status_bubble.h
|
||||
+++ b/chrome/browser/ui/status_bubble.h
|
||||
@@ -17,7 +17,7 @@ class GURL;
|
||||
class StatusBubble {
|
||||
public:
|
||||
// On hover, expand status bubble to fit long URL after this delay.
|
||||
- static const int kExpandHoverDelayMS = 1600;
|
||||
+ static const int kExpandHoverDelayMS = 0;
|
||||
|
||||
virtual ~StatusBubble() = default;
|
||||
|
||||
--- a/chrome/browser/ui/toolbar/chrome_location_bar_model_delegate.cc
|
||||
+++ b/chrome/browser/ui/toolbar/chrome_location_bar_model_delegate.cc
|
||||
@@ -268,5 +268,5 @@ TemplateURLService* ChromeLocationBarMod
|
||||
// static
|
||||
void ChromeLocationBarModelDelegate::RegisterProfilePrefs(
|
||||
user_prefs::PrefRegistrySyncable* registry) {
|
||||
- registry->RegisterBooleanPref(omnibox::kPreventUrlElisionsInOmnibox, false);
|
||||
+ registry->RegisterBooleanPref(omnibox::kPreventUrlElisionsInOmnibox, true);
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
--- a/chrome/browser/browser_features.cc
|
||||
+++ b/chrome/browser/browser_features.cc
|
||||
@@ -54,7 +54,7 @@ BASE_FEATURE(kBookmarkTriggerForPreconne
|
||||
@@ -49,7 +49,7 @@ BASE_FEATURE(kBookmarkTriggerForPrefetch
|
||||
// On builds where CT is enabled, this flag is also used as an emergency kill
|
||||
// switch.
|
||||
BASE_FEATURE(kCertificateTransparencyAskBeforeEnabling,
|
||||
"CertificateTransparencyAskBeforeEnabling",
|
||||
-#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
|
||||
+#if true
|
||||
base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/browser_commands.cc
|
||||
+++ b/chrome/browser/ui/browser_commands.cc
|
||||
@@ -611,11 +611,6 @@ int GetContentRestrictions(const Browser
|
||||
@@ -628,11 +628,6 @@ int GetContentRestrictions(const Browser
|
||||
CoreTabHelper* core_tab_helper =
|
||||
CoreTabHelper::FromWebContents(current_tab);
|
||||
content_restrictions = core_tab_helper->content_restrictions();
|
||||
@@ -14,7 +14,7 @@
|
||||
}
|
||||
return content_restrictions;
|
||||
}
|
||||
@@ -1938,8 +1933,7 @@ bool CanSavePage(const Browser* browser)
|
||||
@@ -2007,8 +2002,7 @@ bool CanSavePage(const Browser* browser)
|
||||
policy::DownloadRestriction::ALL_FILES) {
|
||||
return false;
|
||||
}
|
||||
@@ -23,7 +23,7 @@
|
||||
+ return true;
|
||||
}
|
||||
|
||||
void Print(Browser* browser) {
|
||||
void Print(BrowserWindowInterface* bwi) {
|
||||
--- a/components/offline_pages/core/offline_page_model.cc
|
||||
+++ b/components/offline_pages/core/offline_page_model.cc
|
||||
@@ -21,7 +21,7 @@ OfflinePageModel::SavePageParams::~SaveP
|
||||
@@ -62,7 +62,7 @@
|
||||
// These lists are lazily initialized below and are leaked on shutdown to
|
||||
--- a/content/public/common/url_utils.cc
|
||||
+++ b/content/public/common/url_utils.cc
|
||||
@@ -33,11 +33,7 @@ bool HasWebUIOrigin(const url::Origin& o
|
||||
@@ -41,11 +41,7 @@ bool HasWebUIOrigin(const url::Origin& o
|
||||
}
|
||||
|
||||
bool IsSavableURL(const GURL& url) {
|
||||
|
||||
@@ -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
|
||||
@@ -222,12 +222,10 @@ TabStripRegionView::TabStripRegionView(s
|
||||
@@ -302,12 +302,10 @@ TabStripRegionView::TabStripRegionView(s
|
||||
new_tab_button_->GetViewAccessibility().SetName(
|
||||
l10n_util::GetStringUTF16(IDS_ACCNAME_NEWTAB));
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
reserved_grab_handle_space_ =
|
||||
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
|
||||
@@ -2273,8 +2273,6 @@ void TabStrip::NewTabButtonPressed(const
|
||||
@@ -2274,8 +2274,6 @@ void TabStrip::NewTabButtonPressed(const
|
||||
|
||||
const ui::MouseEvent& mouse = static_cast<const ui::MouseEvent&>(event);
|
||||
if (mouse.IsOnlyMiddleMouseButton()) {
|
||||
@@ -24,7 +24,7 @@
|
||||
ui::Clipboard* clipboard = ui::Clipboard::GetForCurrentThread();
|
||||
CHECK(clipboard)
|
||||
<< "Clipboard instance is not available, cannot proceed with "
|
||||
@@ -2285,7 +2283,6 @@ void TabStrip::NewTabButtonPressed(const
|
||||
@@ -2286,7 +2284,6 @@ void TabStrip::NewTabButtonPressed(const
|
||||
if (!clipboard_text.empty()) {
|
||||
controller_->CreateNewTabWithLocation(clipboard_text);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/components/dom_distiller/core/css/distilledpage.css
|
||||
+++ b/components/dom_distiller/core/css/distilledpage.css
|
||||
@@ -28,6 +28,11 @@
|
||||
--- a/components/dom_distiller/core/css/distilledpage_common.css
|
||||
+++ b/components/dom_distiller/core/css/distilledpage_common.css
|
||||
@@ -26,6 +26,11 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
--- a/components/webui/flags/flags_state.cc
|
||||
+++ b/components/webui/flags/flags_state.cc
|
||||
@@ -31,6 +31,7 @@
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
#include "base/values.h"
|
||||
#include "build/build_config.h"
|
||||
+#include "chrome/browser/unexpire_flags.h"
|
||||
#include "components/variations/field_trial_config/field_trial_util.h"
|
||||
#include "components/variations/variations_associated_data.h"
|
||||
#include "components/variations/variations_switches.h"
|
||||
@@ -686,14 +687,19 @@ void FlagsState::GetFlagFeatureEntries(
|
||||
int current_platform = GetCurrentPlatform();
|
||||
|
||||
for (const FeatureEntry& entry : feature_entries_) {
|
||||
+ std::string desc = entry.visible_description;
|
||||
if (skip_feature_entry.Run(entry)) {
|
||||
+ if (flags::IsFlagExpired(flags_storage, entry.internal_name)) {
|
||||
+ desc.insert(0, "!!! NOTE: THIS FLAG IS EXPIRED AND MAY STOP FUNCTIONING OR BE REMOVED SOON !!! ");
|
||||
+ } else {
|
||||
continue;
|
||||
+ }
|
||||
}
|
||||
|
||||
base::Value::Dict data;
|
||||
data.Set("internal_name", entry.internal_name);
|
||||
data.Set("name", entry.visible_name);
|
||||
- data.Set("description", entry.visible_description);
|
||||
+ data.Set("description", desc);
|
||||
|
||||
base::Value::List supported_platforms;
|
||||
AddOsStrings(entry.supported_platforms, &supported_platforms);
|
||||
@@ -1102,7 +1108,9 @@ bool FlagsState::IsSupportedFeature(cons
|
||||
continue;
|
||||
}
|
||||
if (delegate_ && delegate_->ShouldExcludeFlag(storage, entry)) {
|
||||
+ if (!flags::IsFlagExpired(storage, entry.internal_name)) {
|
||||
continue;
|
||||
+ }
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -2,12 +2,12 @@
|
||||
#
|
||||
--- a/components/omnibox/common/omnibox_features.cc
|
||||
+++ b/components/omnibox/common/omnibox_features.cc
|
||||
@@ -288,7 +288,7 @@ BASE_FEATURE(kOmniboxSiteSearch, "Omnibo
|
||||
@@ -261,7 +261,7 @@ BASE_FEATURE(kOmniboxTouchDownTriggerFor
|
||||
BASE_FEATURE(kOmniboxSiteSearch, DISABLED);
|
||||
|
||||
// Enables additional site search providers for the Site search Starter Pack.
|
||||
BASE_FEATURE(kStarterPackExpansion,
|
||||
"StarterPackExpansion",
|
||||
- enable_if(!IS_ANDROID && !IS_IOS));
|
||||
+ base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
-BASE_FEATURE(kStarterPackExpansion, enable_if(!IS_ANDROID && !IS_IOS));
|
||||
+BASE_FEATURE(kStarterPackExpansion, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
// Enables an informational IPH message at the bottom of the Omnibox directing
|
||||
// users to certain starter pack engines.
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
--- a/chrome/app/settings_chromium_strings.grdp
|
||||
+++ b/chrome/app/settings_chromium_strings.grdp
|
||||
@@ -385,13 +385,13 @@ Chromium understands forms better and ca
|
||||
@@ -359,13 +359,13 @@ Chromium understands forms better and ca
|
||||
|
||||
<!-- Performance Page -->
|
||||
<message name="IDS_SETTINGS_PERFORMANCE_MEMORY_SAVER_MODE_SETTING_DESCRIPTION" desc="Description for the memory saver mode setting">
|
||||
@@ -53,7 +53,7 @@
|
||||
<!-- Languages Page -->
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1058,7 +1058,7 @@
|
||||
@@ -1075,7 +1075,7 @@
|
||||
Active site
|
||||
</message>
|
||||
<message name="IDS_SETTINGS_PERFORMANCE_TAB_DISCARDING_EXCEPTIONS_ADD_DIALOG_HELP" desc="Help text shown on the second tab of the tab discarding exception list add dialog. Explains how to use the filter format to add an exclusion rule to the list.">
|
||||
@@ -62,7 +62,7 @@
|
||||
</message>
|
||||
<message name="IDS_SETTINGS_PERFORMANCE_BATTERY_PAGE_TITLE" desc="Title of the power section in the performance settings page.">
|
||||
Power
|
||||
@@ -1082,7 +1082,7 @@
|
||||
@@ -1099,7 +1099,7 @@
|
||||
Inactive tabs appearance
|
||||
</message>
|
||||
<message name="IDS_SETTINGS_PERFORMANCE_DISCARD_RING_TREATMENT_ENABLED_DESCRIPTION_WITH_LEARN_LINK" desc="Label for a performance settings toggle description that controls whether the inactive tab UI is shown. Also contains a link to the help center article.">
|
||||
@@ -71,7 +71,7 @@
|
||||
</message>
|
||||
<message name="IDS_SETTINGS_PERFORMANCE_TAB_HOVER_PREVIEW_CARD_LINK_TITLE" desc="Title for the link row that points to tab hover preview card apperance settings.">
|
||||
Tab hover preview card appearance
|
||||
@@ -1094,7 +1094,7 @@
|
||||
@@ -1111,7 +1111,7 @@
|
||||
Performance issue alerts
|
||||
</message>
|
||||
<message name="IDS_SETTINGS_PERFORMANCE_INTERVENTION_NOTIFICATION_ENABLED_DESCRIPTION" desc="Label for a performance settings toggle that controls whether performance intervention notifications should be shown and link to learn more about performance issue alerts.">
|
||||
@@ -154,9 +154,9 @@
|
||||
}
|
||||
|
||||
declare global {
|
||||
--- a/chrome/browser/resources/history/side_bar.html
|
||||
+++ b/chrome/browser/resources/history/side_bar.html
|
||||
@@ -11,13 +11,6 @@
|
||||
--- a/chrome/browser/resources/history/side_bar.html.ts
|
||||
+++ b/chrome/browser/resources/history/side_bar.html.ts
|
||||
@@ -22,13 +22,6 @@ export function getHtml(this: HistorySid
|
||||
$i18n{historyMenuItem}
|
||||
<cr-ripple></cr-ripple>
|
||||
</a>
|
||||
@@ -282,7 +282,7 @@
|
||||
<settings-toggle-button id="spellCheckControl"
|
||||
--- a/chrome/browser/resources/settings/privacy_page/personalization_options.ts
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/personalization_options.ts
|
||||
@@ -199,10 +199,6 @@ export class SettingsPersonalizationOpti
|
||||
@@ -205,10 +205,6 @@ export class SettingsPersonalizationOpti
|
||||
'chrome-signin-user-choice-info-change',
|
||||
this.setChromeSigninUserChoiceInfo_.bind(this));
|
||||
// </if>
|
||||
@@ -295,25 +295,25 @@
|
||||
// <if expr="is_chromeos">
|
||||
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.html
|
||||
@@ -52,15 +52,6 @@
|
||||
label="$i18n{clearBrowsingData}"
|
||||
sub-label="$i18n{clearBrowsingDataDescription}"
|
||||
on-click="onClearBrowsingDataClick_"></cr-link-row>
|
||||
- <template is="dom-if" if="[[isPrivacyGuideAvailable]]">
|
||||
- <cr-link-row id="privacyGuideLinkRow" class="hr"
|
||||
- start-icon="privacy20:signpost"
|
||||
- label="$i18n{privacyGuideLabel}"
|
||||
- sub-label="$i18n{privacyGuideSublabel}"
|
||||
- on-click="onPrivacyGuideClick_"
|
||||
- role-description="$i18n{subpageArrowRoleDescription}">
|
||||
- </cr-link-row>
|
||||
- </template>
|
||||
<cr-link-row id="thirdPartyCookiesLinkRow"
|
||||
start-icon="privacy:cookie"
|
||||
class="hr" label="$i18n{thirdPartyCookiesLinkRowLabel}"
|
||||
@@ -23,15 +23,6 @@
|
||||
label="$i18n{clearBrowsingData}"
|
||||
sub-label="$i18n{clearBrowsingDataDescription}"
|
||||
on-click="onClearBrowsingDataClick_"></cr-link-row>
|
||||
- <template is="dom-if" if="[[isPrivacyGuideAvailable]]">
|
||||
- <cr-link-row id="privacyGuideLinkRow" class="hr"
|
||||
- start-icon="privacy20:signpost"
|
||||
- label="$i18n{privacyGuideLabel}"
|
||||
- sub-label="$i18n{privacyGuideSublabel}"
|
||||
- on-click="onPrivacyGuideClick_"
|
||||
- role-description="$i18n{subpageArrowRoleDescription}">
|
||||
- </cr-link-row>
|
||||
- </template>
|
||||
<cr-link-row id="thirdPartyCookiesLinkRow"
|
||||
start-icon="privacy:cookie"
|
||||
class="hr" label="$i18n{thirdPartyCookiesLinkRowLabel}"
|
||||
--- a/chrome/browser/resources/settings/privacy_page/privacy_page_index.ts
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page_index.ts
|
||||
@@ -8,7 +8,6 @@ import '../basic_page/basic_page.js';
|
||||
@@ -7,7 +7,6 @@ import '/shared/settings/prefs/prefs.js'
|
||||
import '../safety_hub/safety_hub_entry_point.js';
|
||||
import '../settings_page/settings_section.js';
|
||||
import '../settings_shared.css.js';
|
||||
@@ -321,9 +321,9 @@
|
||||
import './privacy_page.js';
|
||||
|
||||
import {PrefsMixin} from '/shared/settings/prefs/prefs_mixin.js';
|
||||
@@ -104,13 +103,6 @@ export class SettingsPrivacyPageIndexEle
|
||||
@@ -248,13 +247,6 @@ export class SettingsPrivacyPageIndexEle
|
||||
private getDefaultViews_(): string[] {
|
||||
const defaultViews = ['old'];
|
||||
const defaultViews = ['privacy'];
|
||||
|
||||
- if (this.isPrivacyGuideAvailable) {
|
||||
- defaultViews.push('privacyGuidePromo');
|
||||
@@ -335,17 +335,29 @@
|
||||
|
||||
return defaultViews;
|
||||
}
|
||||
@@ -231,7 +223,6 @@ export class SettingsPrivacyPageIndexEle
|
||||
@@ -386,19 +378,7 @@ export class SettingsPrivacyPageIndexEle
|
||||
}
|
||||
|
||||
private updatePrivacyGuidePromoVisibility_() {
|
||||
- if (!this.isPrivacyGuideAvailable || this.prefs === undefined ||
|
||||
- this.getPref('privacy_guide.viewed').value ||
|
||||
- this.privacyGuideBrowserProxy_.getPromoImpressionCount() >=
|
||||
- MAX_PRIVACY_GUIDE_PROMO_IMPRESSION ||
|
||||
- this.currentRoute !== routes.PRIVACY) {
|
||||
this.showPrivacyGuidePromo_ = false;
|
||||
return;
|
||||
}
|
||||
- return;
|
||||
- }
|
||||
- this.showPrivacyGuidePromo_ = true;
|
||||
if (!this.privacyGuidePromoWasShown_) {
|
||||
this.privacyGuideBrowserProxy_.incrementPromoImpressionCount();
|
||||
this.privacyGuidePromoWasShown_ = true;
|
||||
- if (!this.privacyGuidePromoWasShown_) {
|
||||
- this.privacyGuideBrowserProxy_.incrementPromoImpressionCount();
|
||||
- this.privacyGuidePromoWasShown_ = true;
|
||||
- }
|
||||
}
|
||||
}
|
||||
|
||||
--- a/chrome/browser/resources/settings/privacy_page/security_page.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/security_page.html
|
||||
@@ -113,13 +113,6 @@
|
||||
@@ -115,13 +115,6 @@
|
||||
<div class="cr-row first">
|
||||
<h2 class="cr-title-text">$i18n{advancedPageTitle}</h2>
|
||||
</div>
|
||||
@@ -359,7 +371,7 @@
|
||||
<template is="dom-if" if="[[!enableHttpsFirstModeNewSettings_]]" restamp>
|
||||
<settings-toggle-button id="httpsOnlyModeToggle"
|
||||
pref="{{prefs.generated.https_first_mode_enabled}}"
|
||||
@@ -170,9 +163,3 @@
|
||||
@@ -172,10 +165,4 @@
|
||||
on-click="onManageCertificatesClick_" external>
|
||||
</cr-link-row>
|
||||
|
||||
@@ -369,6 +381,7 @@
|
||||
- on-click="onAdvancedProtectionProgramLinkClick_"
|
||||
- external>
|
||||
- </cr-link-row>
|
||||
</settings-subpage>
|
||||
--- a/chrome/browser/resources/settings/search_page/search_page.html
|
||||
+++ b/chrome/browser/resources/settings/search_page/search_page.html
|
||||
@@ -42,12 +42,6 @@
|
||||
@@ -397,7 +410,7 @@
|
||||
aria-description="$i18n{opensInNewTab}" on-click="onHelpClick_">
|
||||
--- a/chrome/browser/ui/tabs/recent_tabs_sub_menu_model.cc
|
||||
+++ b/chrome/browser/ui/tabs/recent_tabs_sub_menu_model.cc
|
||||
@@ -369,7 +369,6 @@ void RecentTabsSubMenuModel::Build() {
|
||||
@@ -373,7 +373,6 @@ void RecentTabsSubMenuModel::Build() {
|
||||
AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
history_separator_index_ = GetItemCount() - 1;
|
||||
BuildLocalEntries();
|
||||
@@ -407,7 +420,7 @@
|
||||
void RecentTabsSubMenuModel::BuildLocalEntries() {
|
||||
--- a/chrome/browser/ui/toolbar/app_menu_model.cc
|
||||
+++ b/chrome/browser/ui/toolbar/app_menu_model.cc
|
||||
@@ -959,16 +959,6 @@ void ExtensionsMenuModel::Build(Browser*
|
||||
@@ -965,16 +965,6 @@ void ExtensionsMenuModel::Build(Browser*
|
||||
SetElementIdentifierAt(
|
||||
GetIndexOfCommandId(IDC_EXTENSIONS_SUBMENU_MANAGE_EXTENSIONS).value(),
|
||||
kManageExtensionsMenuItem);
|
||||
@@ -461,7 +474,7 @@
|
||||
void CookieControlsContentView::SetCookiesRowVisible(bool visible) {
|
||||
--- a/chrome/browser/ui/views/sad_tab_view.cc
|
||||
+++ b/chrome/browser/ui/views/sad_tab_view.cc
|
||||
@@ -160,9 +160,6 @@ SadTabView::SadTabView(content::WebConte
|
||||
@@ -159,9 +159,6 @@ SadTabView::SadTabView(content::WebConte
|
||||
// There is currently no good way to handle kEnd alignment for a single
|
||||
// element.
|
||||
actions_container->SetLayoutManagerUseConstrainedSpace(false);
|
||||
@@ -471,7 +484,7 @@
|
||||
action_button_ =
|
||||
actions_container->AddChildView(std::make_unique<views::MdTextButton>(
|
||||
base::BindRepeating(&SadTabView::PerformAction,
|
||||
@@ -263,22 +260,6 @@ void SadTabView::AttachToWebView() {
|
||||
@@ -262,22 +259,6 @@ void SadTabView::AttachToWebView() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -496,7 +509,7 @@
|
||||
// Specify the maximum message and title width explicitly.
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -986,40 +986,20 @@ void AddPerformanceStrings(content::WebU
|
||||
@@ -979,40 +979,20 @@ void AddPerformanceStrings(content::WebU
|
||||
IDS_SETTINGS_PERFORMANCE_TAB_HOVER_PREVIEW_CARD_LINK_SUBTITLE},
|
||||
{"performanceInterventionEnabledLabel",
|
||||
IDS_SETTINGS_PERFORMANCE_INTERVENTION_NOTIFICATION_ENABLED_LABEL},
|
||||
@@ -546,7 +559,7 @@
|
||||
|
||||
html_source->AddString(
|
||||
"tabDiscardTimerFiveMinutes",
|
||||
@@ -1065,11 +1045,6 @@ void AddPerformanceStrings(content::WebU
|
||||
@@ -1058,11 +1038,6 @@ void AddPerformanceStrings(content::WebU
|
||||
base::NumberToString16(
|
||||
performance_manager::user_tuning::BatterySaverModeManager::
|
||||
kLowBatteryThresholdPercent)));
|
||||
@@ -558,18 +571,9 @@
|
||||
|
||||
html_source->AddString("discardRingTreatmentLearnMoreUrl",
|
||||
chrome::kDiscardRingTreatmentLearnMoreUrl);
|
||||
@@ -3585,7 +3560,7 @@ void AddSiteSettingsStrings(content::Web
|
||||
base::FeatureList::IsEnabled(blink::features::kWebPrinting));
|
||||
|
||||
html_source->AddBoolean("enableFederatedIdentityApiContentSetting",
|
||||
- base::FeatureList::IsEnabled(features::kFedCm));
|
||||
+ false);
|
||||
|
||||
base::CommandLine& cmd = *base::CommandLine::ForCurrentProcess();
|
||||
html_source->AddBoolean(
|
||||
--- a/chrome/browser/ui/webui/settings/settings_ui.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_ui.cc
|
||||
@@ -598,27 +598,20 @@ SettingsUI::SettingsUI(content::WebUI* w
|
||||
@@ -590,27 +590,20 @@ SettingsUI::SettingsUI(content::WebUI* w
|
||||
->UserIsActivePasswordChangeUser()},
|
||||
};
|
||||
|
||||
@@ -603,12 +607,12 @@
|
||||
html_source->AddBoolean(
|
||||
--- a/media/base/media_switches.cc
|
||||
+++ b/media/base/media_switches.cc
|
||||
@@ -905,7 +905,7 @@ BASE_FEATURE(kOnDeviceWebSpeech,
|
||||
base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
@@ -787,7 +787,7 @@ BASE_FEATURE(kOnDeviceWebSpeech,
|
||||
BASE_FEATURE(kOnDeviceWebSpeechGeminiNano, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
// Enables the Live Caption feature on supported devices.
|
||||
-BASE_FEATURE(kLiveCaption, "LiveCaption", base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
+BASE_FEATURE(kLiveCaption, "LiveCaption", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
-BASE_FEATURE(kLiveCaption, base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
+BASE_FEATURE(kLiveCaption, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
// Logs a DumpWithoutCrashing() call each time the Speech On-Device API (SODA)
|
||||
// fails to load. Used to diagnose issues when rolling out new versions of the
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
namespace errors = extensions::manifest_errors;
|
||||
namespace keys = extensions::manifest_keys;
|
||||
@@ -113,6 +118,19 @@ std::optional<base::Value::Dict> LoadMes
|
||||
@@ -114,6 +119,19 @@ std::optional<base::Value::Dict> LoadMes
|
||||
return dictionary;
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
// Localizes manifest value of string type for a given key.
|
||||
bool LocalizeManifestValue(const std::string& key,
|
||||
const extensions::MessageBundle& messages,
|
||||
@@ -360,13 +378,16 @@ bool LocalizeManifest(const extensions::
|
||||
@@ -361,13 +379,16 @@ bool LocalizeManifest(const extensions::
|
||||
bool LocalizeExtension(const base::FilePath& extension_path,
|
||||
base::Value::Dict* manifest,
|
||||
GzippedMessagesPermission gzip_permission,
|
||||
@@ -90,7 +90,7 @@
|
||||
gzip_permission, error));
|
||||
|
||||
if (!message_bundle && !error->empty())
|
||||
@@ -504,6 +525,42 @@ extensions::MessageBundle* LoadMessageCa
|
||||
@@ -505,6 +526,42 @@ extensions::MessageBundle* LoadMessageCa
|
||||
return extensions::MessageBundle::Create(catalogs, error);
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
+ for (const auto& fallback_locale : all_fallback_locales) {
|
||||
+ base::FilePath this_locale_path =
|
||||
+ locale_path.AppendASCII(fallback_locale)
|
||||
+ .AppendASCII(extensions::kMessagesFilename);
|
||||
+ .Append(extensions::kMessagesFilename);
|
||||
+ int resource_id = 0;
|
||||
+
|
||||
+ if (!manager->IsComponentExtensionResource(
|
||||
|
||||
@@ -0,0 +1,144 @@
|
||||
--- a/chrome/browser/extensions/api/storage/managed_value_store_cache.cc
|
||||
+++ b/chrome/browser/extensions/api/storage/managed_value_store_cache.cc
|
||||
@@ -97,9 +97,11 @@ class ManagedValueStoreCache::ExtensionT
|
||||
|
||||
// Loads the schemas of the |extensions| and passes a ComponentMap to
|
||||
// Register().
|
||||
+ void LoadSchemasOnUIThread(ExtensionSet extensions);
|
||||
static void LoadSchemasOnFileTaskRunner(ExtensionSet extensions,
|
||||
base::WeakPtr<ExtensionTracker> self);
|
||||
- void Register(const policy::ComponentMap* components);
|
||||
+ void Register(const policy::ComponentMap* components,
|
||||
+ ExtensionSet extensions);
|
||||
|
||||
raw_ptr<Profile> profile_;
|
||||
policy::PolicyDomain policy_domain_;
|
||||
@@ -178,6 +180,22 @@ bool ManagedValueStoreCache::ExtensionTr
|
||||
return extension->manifest()->FindPath(manifest_keys::kStorageManagedSchema);
|
||||
}
|
||||
|
||||
+void ManagedValueStoreCache::ExtensionTracker::LoadSchemasOnUIThread(ExtensionSet extensions) {
|
||||
+ auto components = std::make_unique<policy::ComponentMap>();
|
||||
+
|
||||
+ for (const auto& extension : extensions) {
|
||||
+ if (!Manifest::IsComponentLocation(extension->location())) {
|
||||
+ continue;
|
||||
+ }
|
||||
+
|
||||
+ (*components)[extension->id()] =
|
||||
+ StorageSchemaManifestHandler::GetComponentSchema(extension.get())
|
||||
+ .value_or(policy::Schema());
|
||||
+ }
|
||||
+
|
||||
+ schema_registry_->RegisterComponents(policy_domain_, *components);
|
||||
+}
|
||||
+
|
||||
// static
|
||||
void ManagedValueStoreCache::ExtensionTracker::LoadSchemasOnFileTaskRunner(
|
||||
ExtensionSet extensions,
|
||||
@@ -202,14 +220,21 @@ void ManagedValueStoreCache::ExtensionTr
|
||||
|
||||
content::GetUIThreadTaskRunner({})->PostTask(
|
||||
FROM_HERE, base::BindOnce(&ExtensionTracker::Register, self,
|
||||
- base::Owned(components.release())));
|
||||
+ base::Owned(components.release()),
|
||||
+ std::move(extensions)));
|
||||
}
|
||||
|
||||
void ManagedValueStoreCache::ExtensionTracker::Register(
|
||||
- const policy::ComponentMap* components) {
|
||||
+ const policy::ComponentMap* components,
|
||||
+ ExtensionSet extensions) {
|
||||
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
||||
schema_registry_->RegisterComponents(policy_domain_, *components);
|
||||
|
||||
+ // Our uBlock Origin component has a policy schema, but is
|
||||
+ // not anywhere on the actual filesystem - so we need to pull
|
||||
+ // it out on the UI thread from resources.
|
||||
+ LoadSchemasOnUIThread(std::move(extensions));
|
||||
+
|
||||
// The first SetExtensionsDomainsReady() call is performed after the
|
||||
// ExtensionSystem is ready, even if there are no managed extensions. It will
|
||||
// trigger a loading of the initial policy for any managed extensions, and
|
||||
--- a/chrome/common/extensions/api/storage/storage_schema_manifest_handler.cc
|
||||
+++ b/chrome/common/extensions/api/storage/storage_schema_manifest_handler.cc
|
||||
@@ -15,6 +15,8 @@
|
||||
#include "base/types/expected.h"
|
||||
#include "base/types/expected_macros.h"
|
||||
#include "components/policy/core/common/schema.h"
|
||||
+#include "extensions/browser/extensions_browser_client.h"
|
||||
+#include "extensions/browser/component_extension_resource_manager.h"
|
||||
#include "extensions/common/extension.h"
|
||||
#include "extensions/common/install_warning.h"
|
||||
#include "extensions/common/manifest.h"
|
||||
@@ -23,6 +25,7 @@
|
||||
#include "extensions/common/permissions/api_permission.h"
|
||||
#include "extensions/common/permissions/api_permission_set.h"
|
||||
#include "extensions/common/permissions/permissions_info.h"
|
||||
+#include "ui/base/resource/resource_bundle.h"
|
||||
|
||||
using extensions::manifest_keys::kStorageManagedSchema;
|
||||
|
||||
@@ -34,6 +37,33 @@ StorageSchemaManifestHandler::~StorageSc
|
||||
|
||||
// static
|
||||
base::expected<policy::Schema, std::string>
|
||||
+StorageSchemaManifestHandler::GetComponentSchema(const Extension* extension) {
|
||||
+ auto* manager =
|
||||
+ extensions::ExtensionsBrowserClient::Get()->GetComponentExtensionResourceManager();
|
||||
+ const ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
|
||||
+
|
||||
+ int resource_id;
|
||||
+ std::string path;
|
||||
+ if (const std::string* temp =
|
||||
+ extension->manifest()->FindStringPath(kStorageManagedSchema)) {
|
||||
+ path = *temp;
|
||||
+ } else {
|
||||
+ return base::unexpected(base::StringPrintf(
|
||||
+ "%s does not have a schema path", extension->id()));
|
||||
+ }
|
||||
+
|
||||
+ if (!manager->IsComponentExtensionResource(
|
||||
+ extension->path(), base::FilePath::FromUTF8Unsafe(path), &resource_id)) {
|
||||
+ return base::unexpected(base::StringPrintf(
|
||||
+ "%s/%s is not a component extension resource",
|
||||
+ base::UTF16ToUTF8(extension->path().LossyDisplayName()), path));
|
||||
+ }
|
||||
+
|
||||
+ return policy::Schema::Parse(rb.LoadDataResourceString(resource_id));
|
||||
+}
|
||||
+
|
||||
+// static
|
||||
+base::expected<policy::Schema, std::string>
|
||||
StorageSchemaManifestHandler::GetSchema(const Extension* extension) {
|
||||
std::string path;
|
||||
if (const std::string* temp =
|
||||
--- a/chrome/common/extensions/api/storage/storage_schema_manifest_handler.h
|
||||
+++ b/chrome/common/extensions/api/storage/storage_schema_manifest_handler.h
|
||||
@@ -29,6 +29,8 @@ class StorageSchemaManifestHandler : pub
|
||||
// If the schema is invalid then the Schema returned is invalid too, and
|
||||
// the failure reason is stored in |error|.
|
||||
// This function does file I/O and must be called on a thread that allows I/O.
|
||||
+ static base::expected<policy::Schema, std::string> GetComponentSchema(
|
||||
+ const Extension* extension);
|
||||
static base::expected<policy::Schema, std::string> GetSchema(
|
||||
const Extension* extension);
|
||||
|
||||
--- a/chrome/common/extensions/BUILD.gn
|
||||
+++ b/chrome/common/extensions/BUILD.gn
|
||||
@@ -83,6 +83,7 @@ source_set("extensions") {
|
||||
"//components/url_formatter",
|
||||
"//components/version_info",
|
||||
"//extensions:extensions_resources",
|
||||
+ "//extensions/browser",
|
||||
"//extensions/common",
|
||||
"//extensions/common:common_constants",
|
||||
"//extensions/common:core_api_provider",
|
||||
@@ -90,6 +91,7 @@ source_set("extensions") {
|
||||
"//extensions/strings",
|
||||
"//ui/gfx/geometry",
|
||||
"//ui/message_center/public/cpp",
|
||||
+ "//ui/base",
|
||||
"//url",
|
||||
]
|
||||
|
||||
@@ -0,0 +1,132 @@
|
||||
--- a/chrome/common/pref_names.h
|
||||
+++ b/chrome/common/pref_names.h
|
||||
@@ -1407,6 +1407,11 @@ inline constexpr char kExtensionCommands
|
||||
inline constexpr char kPluginsAlwaysOpenPdfExternally[] =
|
||||
"plugins.always_open_pdf_externally";
|
||||
|
||||
+// Boolean indicating that the user has rejected setting
|
||||
+// the browser as default for an indefinite amount of time.
|
||||
+inline constexpr char kHeliumDefaultBrowserRejected[] =
|
||||
+ "helium.browser.default_browser_infobar_rejected";
|
||||
+
|
||||
// Int64 containing the internal value of the time at which the default browser
|
||||
// infobar was last dismissed by the user.
|
||||
inline constexpr char kDefaultBrowserLastDeclined[] =
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -77,6 +77,8 @@ void RegisterBrowserPrefs(PrefRegistrySi
|
||||
registry->RegisterIntegerPref(prefs::kDefaultBrowserDeclinedCount, 0);
|
||||
registry->RegisterTimePref(prefs::kDefaultBrowserFirstShownTime,
|
||||
base::Time());
|
||||
+ registry->RegisterBooleanPref(prefs::kHeliumDefaultBrowserRejected, false);
|
||||
+
|
||||
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC)
|
||||
registry->RegisterTimePref(prefs::kPdfInfoBarLastShown, base::Time());
|
||||
registry->RegisterIntegerPref(prefs::kPdfInfoBarTimesShown, 0);
|
||||
--- a/chrome/browser/ui/startup/infobar_utils.cc
|
||||
+++ b/chrome/browser/ui/startup/infobar_utils.cc
|
||||
@@ -211,6 +211,11 @@ void AddInfoBarsIfNecessary(BrowserWindo
|
||||
return;
|
||||
}
|
||||
|
||||
+ PrefService* local_state = g_browser_process->local_state();
|
||||
+ if (local_state && local_state->GetBoolean(prefs::kHeliumDefaultBrowserRejected)) {
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
base::OnceCallback<void(bool)> default_browser_prompt_shown_callback =
|
||||
base::DoNothing();
|
||||
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
|
||||
--- a/components/infobars/core/confirm_infobar_delegate.h
|
||||
+++ b/components/infobars/core/confirm_infobar_delegate.h
|
||||
@@ -84,6 +84,8 @@ class ConfirmInfoBarDelegate : public in
|
||||
// on the infobar.
|
||||
virtual int GetLinkSpacingWhenPositionedBeforeButton() const;
|
||||
|
||||
+ virtual bool OkButtonShouldAlwaysLead() const;
|
||||
+
|
||||
#if BUILDFLAG(IS_IOS)
|
||||
// Returns whether or not a tint should be applied to the icon background.
|
||||
// Defaults to true.
|
||||
--- a/components/infobars/core/confirm_infobar_delegate.cc
|
||||
+++ b/components/infobars/core/confirm_infobar_delegate.cc
|
||||
@@ -71,6 +71,10 @@ int ConfirmInfoBarDelegate::GetLinkSpaci
|
||||
return 0;
|
||||
}
|
||||
|
||||
+bool ConfirmInfoBarDelegate::OkButtonShouldAlwaysLead() const {
|
||||
+ return false;
|
||||
+}
|
||||
+
|
||||
#if BUILDFLAG(IS_IOS)
|
||||
bool ConfirmInfoBarDelegate::UseIconBackgroundTint() const {
|
||||
return true;
|
||||
--- a/chrome/browser/ui/startup/default_browser_prompt/default_browser_infobar_delegate.cc
|
||||
+++ b/chrome/browser/ui/startup/default_browser_prompt/default_browser_infobar_delegate.cc
|
||||
@@ -112,13 +112,15 @@ std::u16string DefaultBrowserInfoBarDele
|
||||
}
|
||||
|
||||
int DefaultBrowserInfoBarDelegate::GetButtons() const {
|
||||
- return BUTTON_OK;
|
||||
+ return BUTTON_OK | BUTTON_CANCEL;
|
||||
}
|
||||
|
||||
std::u16string DefaultBrowserInfoBarDelegate::GetButtonLabel(
|
||||
InfoBarButton button) const {
|
||||
- DCHECK_EQ(BUTTON_OK, button);
|
||||
- return l10n_util::GetStringUTF16(IDS_DEFAULT_BROWSER_INFOBAR_OK_BUTTON_LABEL);
|
||||
+ DCHECK(button == BUTTON_OK || button == BUTTON_CANCEL);
|
||||
+ return l10n_util::GetStringUTF16(
|
||||
+ button == BUTTON_OK ? IDS_DEFAULT_BROWSER_INFOBAR_OK_BUTTON_LABEL
|
||||
+ : IDS_CARET_BROWSING_DO_NOT_ASK);
|
||||
}
|
||||
|
||||
bool DefaultBrowserInfoBarDelegate::Accept() {
|
||||
@@ -155,6 +157,22 @@ bool DefaultBrowserInfoBarDelegate::Acce
|
||||
return ConfirmInfoBarDelegate::Accept();
|
||||
}
|
||||
|
||||
+bool DefaultBrowserInfoBarDelegate::Cancel() {
|
||||
+ PrefService* local_state = g_browser_process->local_state();
|
||||
+ if (!local_state) {
|
||||
+ return true;
|
||||
+ }
|
||||
+
|
||||
+ local_state->SetBoolean(prefs::kHeliumDefaultBrowserRejected, true);
|
||||
+ ConfirmInfoBarDelegate::InfoBarDismissed();
|
||||
+
|
||||
+ return ConfirmInfoBarDelegate::Cancel();
|
||||
+}
|
||||
+
|
||||
bool DefaultBrowserInfoBarDelegate::ShouldHideInFullscreen() const {
|
||||
return true;
|
||||
}
|
||||
+
|
||||
+bool DefaultBrowserInfoBarDelegate::OkButtonShouldAlwaysLead() const {
|
||||
+ return true;
|
||||
+}
|
||||
--- a/chrome/browser/ui/startup/default_browser_prompt/default_browser_infobar_delegate.h
|
||||
+++ b/chrome/browser/ui/startup/default_browser_prompt/default_browser_infobar_delegate.h
|
||||
@@ -61,7 +61,9 @@ class DefaultBrowserInfoBarDelegate : pu
|
||||
int GetButtons() const override;
|
||||
std::u16string GetButtonLabel(InfoBarButton button) const override;
|
||||
bool Accept() override;
|
||||
+ bool Cancel() override;
|
||||
bool ShouldHideInFullscreen() const override;
|
||||
+ bool OkButtonShouldAlwaysLead() const override;
|
||||
|
||||
// The WebContents's corresponding profile.
|
||||
raw_ptr<Profile> profile_;
|
||||
--- a/chrome/browser/ui/views/infobars/confirm_infobar.cc
|
||||
+++ b/chrome/browser/ui/views/infobars/confirm_infobar.cc
|
||||
@@ -126,7 +126,9 @@ void ConfirmInfoBar::Layout(PassKey) {
|
||||
}
|
||||
|
||||
if constexpr (!views::PlatformStyle::kIsOkButtonLeading) {
|
||||
- std::ranges::reverse(order_of_buttons);
|
||||
+ if (!GetDelegate()->OkButtonShouldAlwaysLead()) {
|
||||
+ std::ranges::reverse(order_of_buttons);
|
||||
+ }
|
||||
}
|
||||
|
||||
for (views::MdTextButton* button : order_of_buttons) {
|
||||
@@ -31,7 +31,7 @@
|
||||
#include "base/containers/to_vector.h"
|
||||
#include "base/feature_list.h"
|
||||
#include "base/functional/bind.h"
|
||||
@@ -249,6 +250,10 @@ network::mojom::SSLConfigPtr SSLConfigSe
|
||||
@@ -263,6 +264,10 @@ network::mojom::SSLConfigPtr SSLConfigSe
|
||||
|
||||
config->ech_enabled = ech_enabled_.GetValue();
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
return PRODUCT_VERSION;
|
||||
--- a/chrome/browser/ui/webui/version/version_ui.cc
|
||||
+++ b/chrome/browser/ui/webui/version/version_ui.cc
|
||||
@@ -221,6 +221,8 @@ void VersionUI::AddVersionDetailStrings(
|
||||
@@ -222,6 +222,8 @@ void VersionUI::AddVersionDetailStrings(
|
||||
VersionProcessorVariation());
|
||||
|
||||
// Data strings.
|
||||
@@ -52,7 +52,7 @@
|
||||
html_source->AddString(version_ui::kVersion,
|
||||
version_info::GetVersionNumber());
|
||||
html_source->AddString(version_ui::kVersionSuffix,
|
||||
@@ -310,12 +312,14 @@ void VersionUI::AddVersionDetailStrings(
|
||||
@@ -309,12 +311,14 @@ void VersionUI::AddVersionDetailStrings(
|
||||
std::u16string VersionUI::GetAnnotatedVersionStringForUi() {
|
||||
return l10n_util::GetStringFUTF16(
|
||||
IDS_SETTINGS_ABOUT_PAGE_BROWSER_VERSION,
|
||||
@@ -160,3 +160,25 @@
|
||||
#copy-to-clipboard,
|
||||
#copy-variations-to-clipboard {
|
||||
background-color: var(--background-color);
|
||||
--- a/chrome/app/chrome_main_delegate.cc
|
||||
+++ b/chrome/app/chrome_main_delegate.cc
|
||||
@@ -367,15 +367,15 @@ bool HandleCreditsSwitch(const base::Com
|
||||
bool HandleVersionSwitches(const base::CommandLine& command_line) {
|
||||
#if !BUILDFLAG(IS_MAC)
|
||||
if (command_line.HasSwitch(switches::kProductVersion)) {
|
||||
- printf("%s\n", version_info::GetVersionNumber().data());
|
||||
+ printf("%s\n", version_info::GetHeliumVersionNumber().data());
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (command_line.HasSwitch(switches::kVersion)) {
|
||||
- printf("%s %s %s\n", version_info::GetProductName().data(),
|
||||
- version_info::GetVersionNumber().data(),
|
||||
- chrome::GetChannelName(chrome::WithExtendedStable(true)).c_str());
|
||||
+ printf("%s %s (Chromium %s)\n", version_info::GetProductName().data(),
|
||||
+ version_info::GetHeliumVersionNumber().data(),
|
||||
+ version_info::GetVersionNumber().data());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user