mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Compare commits
277 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8041351f2b | |||
| 2fd8ab8736 | |||
| bb720ee09f | |||
| 3175ba89bd | |||
| 1d218c894b | |||
| 3e07bd785f | |||
| a3072fedab | |||
| a749a3e3e2 | |||
| d145111dd0 | |||
| 2ce45ab9f2 | |||
| ab9a39c516 | |||
| 7b77584e8c | |||
| bcf3330b42 | |||
| a2d63db83b | |||
| b3f08938ce | |||
| 4a95606bfa | |||
| 76462eb66c | |||
| ec8480c3f5 | |||
| c94c96e62e | |||
| fa41ca5fca | |||
| 9df88459b8 | |||
| 7e1d9dd767 | |||
| ccb227dc03 | |||
| 94fa070851 | |||
| 1a266da9a3 | |||
| 6312142913 | |||
| 64ef95a6eb | |||
| a7e5433e7c | |||
| 4f803de791 | |||
| aebf0a4387 | |||
| be8ba95803 | |||
| c3ba3d8999 | |||
| 403e3fe01d | |||
| 5ee42465ab | |||
| aa487a75cd | |||
| 24b594f89e | |||
| 6a1cd43391 | |||
| 675cf80cde | |||
| 0008cd2cec | |||
| fece071fb4 | |||
| 43dfac4447 | |||
| 5d33305095 | |||
| 52dc69ac18 | |||
| 633d41748b | |||
| c8a824ec85 | |||
| 1fe645253d | |||
| a4f89dfb1c | |||
| 13f49f28cc | |||
| e9a04a2ccf | |||
| 80dfd780db | |||
| c9a0eaf2c0 | |||
| 9f7755dbd7 | |||
| 110cab3432 | |||
| 0f9df28d13 | |||
| 060fa834e5 | |||
| be47d96c1f | |||
| f049404ad5 | |||
| 232f940dbd | |||
| b3d929f6e2 | |||
| 5f296ba37d | |||
| 3668280470 | |||
| 673aaf7698 | |||
| 9113a4cda7 | |||
| e9de843abe | |||
| 367118d103 | |||
| 8da7b370f7 | |||
| 06a3ebf3d3 | |||
| 4991dcc364 | |||
| 7222174274 | |||
| 2315522ef2 | |||
| dc61f5cf4f | |||
| 8486eb8436 | |||
| 537ba368e9 | |||
| 61c7f706eb | |||
| ee6294e217 | |||
| e3bcfa4148 | |||
| 4700d1bc7e | |||
| 617bd4b75e | |||
| 7b31f0b137 | |||
| 7815dd5522 | |||
| 48577b920b | |||
| a264ac047d | |||
| eaf2714853 | |||
| cc1db76e65 | |||
| ae476a674c | |||
| 74779ebab4 | |||
| 70627f67f4 | |||
| c50904a16e | |||
| 2300b0f239 | |||
| 19d1c7fa61 | |||
| 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 | |||
| 1160f1b98d | |||
| ba6dce63e5 | |||
| f4ddea3723 | |||
| 32f0cf8c81 | |||
| 99f65cfbcd | |||
| b0f30bffcf | |||
| c8be580734 | |||
| 34fb66f3cb | |||
| a228d8d3e6 | |||
| 4a2db8bd77 | |||
| d5a8399923 | |||
| 06e5b89b3a | |||
| f1204f7694 | |||
| a0d6aa20e3 | |||
| 6771b17612 | |||
| c9845885f6 | |||
| 16ab1cf6fb | |||
| f8269d2587 | |||
| 5ec769b511 | |||
| aaffd20cda | |||
| 38e39f466b | |||
| e625432f33 | |||
| e19261507e | |||
| 92ebfbe654 | |||
| e68b57dfe6 | |||
| 45bb2e7044 | |||
| 1c903792d3 | |||
| f72d8b763b | |||
| d0c67ff7a3 | |||
| 22c8e702bb | |||
| fe05e0c361 | |||
| 2a3b46b1d8 | |||
| c62576f910 | |||
| 9247351f2a | |||
| 0caf5fe713 | |||
| 66e9d195b2 | |||
| 4acf516bbb | |||
| 18bc8e75e5 | |||
| 7df2e17c45 | |||
| 6888497c4f | |||
| a3b5843cea | |||
| ae906424f7 | |||
| 3cf2a3b65c | |||
| 82e76623df | |||
| 6d832bc549 | |||
| 76a70fa75a | |||
| 1b024c9945 | |||
| 1fc24d56bc | |||
| 3500b75e0f | |||
| 9b37c1dd59 | |||
| 98bdc8bb87 | |||
| 58094866a0 | |||
| d7389c84f0 | |||
| c22923e812 | |||
| 62650c3dba | |||
| 7fc97abd15 | |||
| bd71d2dc10 | |||
| 075a2ad97d | |||
| 0cad541e9e | |||
| 9650ad4adc | |||
| 6128ec6560 | |||
| 7b69063b6e | |||
| 5480886df1 | |||
| 15ecb1cf62 | |||
| 919ea2bc82 | |||
| 3406ac5f76 | |||
| 5118e7ddfb | |||
| 42947bebc1 | |||
| ab2ee8d4e9 | |||
| 3799c9d957 | |||
| 5abb6826a1 | |||
| 1239a6715b | |||
| 6311688cca | |||
| 74da8e5721 | |||
| 6db3e69109 | |||
| 2873e42d24 | |||
| dd31b185bd | |||
| 617f8df878 | |||
| 9f92137d3f | |||
| dc626238a7 | |||
| fc9e935120 | |||
| d0198c25f9 | |||
| 92f6d7d2c8 | |||
| 988e4b4fb4 | |||
| 2ea2284c35 | |||
| e06a3a62f5 | |||
| b843eac0ce |
+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 @@
|
||||
*.patch linguist-language=C++
|
||||
@@ -0,0 +1 @@
|
||||
https://helium.computer/funding.json
|
||||
@@ -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]
|
||||
@@ -0,0 +1,101 @@
|
||||
name: Bump platform revision
|
||||
description: Refreshes patches, updates the platform revision and submodule
|
||||
|
||||
inputs:
|
||||
token:
|
||||
description: 'GitHub access token'
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Prepare
|
||||
shell: bash
|
||||
run: sudo apt install quilt
|
||||
|
||||
- name: Clear disk space
|
||||
shell: bash
|
||||
run: |
|
||||
sudo rm -rf /usr/lib/jvm \
|
||||
/usr/lib/google-cloud-sdk \
|
||||
/usr/lib/dotnet \
|
||||
/usr/share/swift
|
||||
|
||||
- name: Bump revision and make PR
|
||||
shell: bash
|
||||
env:
|
||||
GH_TOKEN: ${{ inputs.token }}
|
||||
run: |
|
||||
set -euxo pipefail
|
||||
|
||||
PLATFORM_DIR="$PWD"
|
||||
HELIUM_DIR="$PLATFORM_DIR/helium-chromium"
|
||||
|
||||
run_upstream() {
|
||||
python3 "$HELIUM_DIR/$1" "${@:2}"
|
||||
}
|
||||
|
||||
get_version() {
|
||||
run_upstream utils/helium_version.py \
|
||||
--tree "$HELIUM_DIR" \
|
||||
--platform-tree "$PLATFORM_DIR" \
|
||||
--print
|
||||
}
|
||||
|
||||
# get versions and compare them after submodule update
|
||||
version_before=$(get_version)
|
||||
|
||||
pushd "$HELIUM_DIR"
|
||||
git fetch origin main
|
||||
git checkout origin/main
|
||||
popd
|
||||
|
||||
git switch update || git switch -c update
|
||||
version_after=$(get_version)
|
||||
|
||||
# reset or bump revision counter depending on version change
|
||||
if [ "$version_before" != "$version_after" ]; then
|
||||
echo "main version changed, resetting platform revision"
|
||||
echo 1 > "$PLATFORM_DIR/revision.txt"
|
||||
else
|
||||
echo "no change in main version, bumping platform revision"
|
||||
revision=$(cat "$PLATFORM_DIR/revision.txt")
|
||||
echo $((revision + 1)) > "$PLATFORM_DIR/revision.txt"
|
||||
fi
|
||||
|
||||
version_after=$(get_version)
|
||||
|
||||
mkdir -p build/{src,download_cache}
|
||||
|
||||
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 \
|
||||
-i "$file" -c build/download_cache
|
||||
|
||||
run_upstream utils/downloads.py unpack \
|
||||
-i "$file" -c build/download_cache build/src
|
||||
done
|
||||
|
||||
run_upstream utils/patches.py apply \
|
||||
--no-fuzz build/src "$HELIUM_DIR/patches"
|
||||
|
||||
# refresh platform patches if necessary
|
||||
source "$HELIUM_DIR/devutils/set_quilt_vars.sh"
|
||||
export QUILT_PATCHES="$PLATFORM_DIR/patches"
|
||||
|
||||
pushd build/src
|
||||
quilt --quiltrc - push -a --refresh
|
||||
popd
|
||||
|
||||
# commit, push, make pr
|
||||
TITLE="update: helium $version_after"
|
||||
|
||||
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"
|
||||
git push origin update
|
||||
gh pr create --title "$TITLE" --body "" || :
|
||||
fi
|
||||
@@ -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
|
||||
@@ -0,0 +1,52 @@
|
||||
name: Create new release on version bump
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
on:
|
||||
push: { branches: ["main"] }
|
||||
|
||||
jobs:
|
||||
check-release:
|
||||
name: Create release if it makes sense
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4
|
||||
with: { fetch-depth: 0 }
|
||||
|
||||
- name: Check if a new release is needed
|
||||
id: info
|
||||
env:
|
||||
COMMIT_BEFORE: ${{ github.event.before }}
|
||||
COMMIT_AFTER: ${{ github.event.after }}
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p dummy && echo 0 > dummy/revision.txt
|
||||
cp utils/helium_version.py .
|
||||
|
||||
git checkout "$COMMIT_BEFORE" \
|
||||
&& OLD_VERSION=$(python3 helium_version.py --tree . --print)
|
||||
|
||||
git checkout "$COMMIT_AFTER" \
|
||||
&& NEW_VERSION=$(python3 helium_version.py --tree . --print)
|
||||
|
||||
if [ "$OLD_VERSION" != "$NEW_VERSION" ]; then
|
||||
echo "version=$NEW_VERSION" >> "$GITHUB_OUTPUT"
|
||||
{
|
||||
printf '### Changelog\n```\n'
|
||||
git log --oneline "$OLD_VERSION.."
|
||||
echo '```'
|
||||
} | tee body.md
|
||||
fi
|
||||
|
||||
- name: Create Release
|
||||
if: steps.info.outputs.version
|
||||
id: create_release
|
||||
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ steps.info.outputs.version }}
|
||||
name: ${{ steps.info.outputs.version }}
|
||||
body_path: body.md
|
||||
@@ -1,24 +0,0 @@
|
||||
name: Create new empty release
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Create Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@latest
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: ${{ github.ref }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
@@ -1,19 +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>
|
||||
|
||||
Very WIP, not meant for public/end user consumption, etc.
|
||||
## 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.
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
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!
|
||||
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)
|
||||
|
||||
## Platform-specific packaging
|
||||
At the moment, we're only working on [Helium for macOS](https://github.com/imputnet/helium-macos).
|
||||
We plan to create packaging for Windows & Linux systems in the future, but that's over the horizon for now.
|
||||
## 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
|
||||
@@ -40,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 @@
|
||||
139.0.7258.138
|
||||
143.0.7499.40
|
||||
|
||||
+26
-4
@@ -16,6 +16,10 @@ def _read_text(path):
|
||||
return filter(str, f.read().splitlines())
|
||||
|
||||
|
||||
def _read_patch(path):
|
||||
return unidiff.PatchSet('\n'.join(_read_text(path)))
|
||||
|
||||
|
||||
def _init(root):
|
||||
global patches_dir
|
||||
global series
|
||||
@@ -59,8 +63,7 @@ def c_all_new_files_have_license_header():
|
||||
if 'helium' not in patch:
|
||||
continue
|
||||
|
||||
patch_set = unidiff.PatchSet('\n'.join(_read_text(patch)))
|
||||
added_files = filter(lambda f: f.is_added_file, patch_set)
|
||||
added_files = filter(lambda f: f.is_added_file, _read_patch(patch))
|
||||
|
||||
for file in added_files:
|
||||
if any(p in file.path.lower() for p in LICENSE_HEADER_IGNORES):
|
||||
@@ -75,8 +78,8 @@ def c_all_new_headers_have_correct_guard():
|
||||
if 'helium' not in patch:
|
||||
continue
|
||||
|
||||
patch_set = unidiff.PatchSet('\n'.join(_read_text(patch)))
|
||||
added_files = filter(lambda f: f.is_added_file and f.path.endswith('.h'), patch_set)
|
||||
added_files = filter(lambda f: f.is_added_file and f.path.endswith('.h'),
|
||||
_read_patch(patch))
|
||||
|
||||
for file in added_files:
|
||||
expected_macro_name = file.path.upper() \
|
||||
@@ -112,3 +115,22 @@ def c_all_new_headers_have_correct_guard():
|
||||
assert value == f"+{expected[macro_type]}\n", \
|
||||
f"Patch {patch} has unexpected {macro_type} in {file.path}:" \
|
||||
f"{value_print}, expecting: {expected[macro_type]}"
|
||||
|
||||
|
||||
def d_no_whitespace_only_changes():
|
||||
for patch in series:
|
||||
if 'helium' not in patch:
|
||||
continue
|
||||
|
||||
for file in _read_patch(patch):
|
||||
for hunk in file:
|
||||
seen_nonws = False
|
||||
for line in hunk:
|
||||
line = str(line)
|
||||
|
||||
if line.startswith('+') or line.startswith('-'):
|
||||
seen_nonws = seen_nonws or len(line.rstrip()) > 1
|
||||
|
||||
assert seen_nonws, \
|
||||
f"Patch {patch} contains hunk consisting of "\
|
||||
f"only whitespace characters in {file.path}: {hunk}"
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
// Copyright 2025 The Helium Authors
|
||||
// You can use, redistribute, and/or modify this source code under
|
||||
// the terms of the GPL-3.0 license that can be found in the LICENSE file.
|
||||
|
||||
// Program for updating the assets.json file in uB0 to disable all
|
||||
// outgoing connections before the user is able to consent to them.
|
||||
|
||||
const fs = require('fs');
|
||||
|
||||
const err = () => {
|
||||
console.error('usage: node clear-ublock-assets <path to uB0 assets.json');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const assets_path = process.argv[2] || err();
|
||||
|
||||
const stripURLs = (c) =>
|
||||
[c].flat().filter(s => !URL.canParse(s));
|
||||
|
||||
const breakKey = (obj, key_) => {
|
||||
const keys = Object.keys(obj);
|
||||
const idx = keys.indexOf(key_);
|
||||
|
||||
if (idx === -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (let key of keys.splice(idx)) {
|
||||
const val = obj[key];
|
||||
delete obj[key];
|
||||
|
||||
if (key === key_) {
|
||||
key = `^${key}`;
|
||||
}
|
||||
|
||||
obj[key] = val;
|
||||
}
|
||||
}
|
||||
|
||||
const clear = obj => {
|
||||
for (const filter of Object.values(obj)) {
|
||||
if (filter.off) {
|
||||
continue;
|
||||
}
|
||||
|
||||
filter.contentURL = stripURLs(filter.contentURL);
|
||||
breakKey(filter, 'cdnURLs');
|
||||
breakKey(filter, 'patchURLs');
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
fs.writeFileSync(
|
||||
assets_path,
|
||||
JSON.stringify(clear(
|
||||
JSON.parse(fs.readFileSync(
|
||||
assets_path
|
||||
))
|
||||
), null, '\t') + '\n'
|
||||
);
|
||||
@@ -11,8 +11,8 @@ set -gx QUILT_PATCHES "$REPO_ROOT/patches"
|
||||
set -gx QUILT_PUSH_ARGS "--color=auto"
|
||||
set -gx QUILT_DIFF_OPTS "--show-c-function"
|
||||
set -gx QUILT_PATCH_OPTS "--unified --reject-format=unified"
|
||||
set -gx QUILT_DIFF_ARGS "-p ab --no-timestamps --no-index --color=auto --sort"
|
||||
set -gx QUILT_REFRESH_ARGS "-p ab --no-timestamps --no-index --sort --strip-trailing-whitespace"
|
||||
set -gx QUILT_DIFF_ARGS "-p ab --no-timestamps --no-index --color=auto"
|
||||
set -gx QUILT_REFRESH_ARGS "-p ab --no-timestamps --no-index --strip-trailing-whitespace"
|
||||
set -gx QUILT_COLORS "diff_hdr=1;32:diff_add=1;34:diff_rem=1;31:diff_hunk=1;33:diff_ctx=35:diff_cctx=33"
|
||||
set -gx QUILT_SERIES_ARGS "--color=auto"
|
||||
set -gx QUILT_PATCHES_ARGS "--color=auto"
|
||||
|
||||
@@ -17,8 +17,8 @@ export QUILT_PATCHES="$REPO_ROOT/patches"
|
||||
export QUILT_PUSH_ARGS="--color=auto"
|
||||
export QUILT_DIFF_OPTS="--show-c-function"
|
||||
export QUILT_PATCH_OPTS="--unified --reject-format=unified"
|
||||
export QUILT_DIFF_ARGS="-p ab --no-timestamps --no-index --color=auto --sort"
|
||||
export QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index --sort --strip-trailing-whitespace"
|
||||
export QUILT_DIFF_ARGS="-p ab --no-timestamps --no-index --color=auto"
|
||||
export QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index --strip-trailing-whitespace"
|
||||
export QUILT_COLORS="diff_hdr=1;32:diff_add=1;34:diff_rem=1;31:diff_hunk=1;33:diff_ctx=35:diff_cctx=33"
|
||||
export QUILT_SERIES_ARGS="--color=auto"
|
||||
export QUILT_PATCHES_ARGS="--color=auto"
|
||||
@@ -26,4 +26,6 @@ export QUILT_PATCHES_ARGS="--color=auto"
|
||||
export LC_ALL=C
|
||||
# When non-default less options are used, add the -R option so that less outputs
|
||||
# ANSI color escape codes "raw".
|
||||
[ -n "$LESS" -a -z "${QUILT_PAGER+x}" ] && export QUILT_PAGER="less -FRX"
|
||||
if [ -n "${LESS-}" -a -z "${QUILT_PAGER+x}" ]; then
|
||||
export QUILT_PAGER="less -FRX"
|
||||
fi
|
||||
|
||||
@@ -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',
|
||||
@@ -83,6 +83,7 @@ PRUNING_EXCLUDE_PATTERNS = [
|
||||
'*.mp3',
|
||||
'*.wav',
|
||||
'*.flac',
|
||||
'*.car',
|
||||
'*.icns',
|
||||
'*.woff',
|
||||
'*.woff2',
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2025 The Helium Authors
|
||||
# You can use, redistribute, and/or modify this source code under
|
||||
# the terms of the GPL-3.0 license that can be found in the LICENSE file.
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
@@ -67,19 +63,19 @@ def _dir_empty(path):
|
||||
return False
|
||||
|
||||
|
||||
def _rename_files_with_dirs(root_dir, sorted_file_iter):
|
||||
def _rename_files_with_dirs(root_dir, source_dir, sorted_file_iter):
|
||||
'''
|
||||
Moves a list of sorted files back to the upstream repo, removing empty directories along the way
|
||||
Moves a list of sorted files back to their original location,
|
||||
removing empty directories along the way
|
||||
'''
|
||||
past_parent = None
|
||||
upstream_path = Path(os.path.dirname(os.path.realpath(__file__))) / '../patches'
|
||||
for partial_path in sorted_file_iter:
|
||||
complete_path = Path(root_dir, partial_path)
|
||||
complete_upstream_path = Path(upstream_path, partial_path)
|
||||
complete_source_path = Path(source_dir, partial_path)
|
||||
try:
|
||||
complete_path.rename(complete_upstream_path)
|
||||
complete_path.rename(complete_source_path)
|
||||
except FileNotFoundError:
|
||||
get_logger().warning('Could not remove prepended patch: %s', complete_path)
|
||||
get_logger().warning('Could not move prepended patch: %s', complete_path)
|
||||
if past_parent != complete_path.parent:
|
||||
while past_parent and _dir_empty(past_parent):
|
||||
past_parent.rmdir()
|
||||
@@ -91,7 +87,7 @@ def _rename_files_with_dirs(root_dir, sorted_file_iter):
|
||||
complete_path = complete_path.parent
|
||||
|
||||
|
||||
def unmerge_platform_patches(platform_patches_dir):
|
||||
def unmerge_platform_patches(platform_patches_dir, prepend_patches_dir):
|
||||
'''
|
||||
Undo merge_platform_patches(), adding any new patches from series.merged as necessary
|
||||
|
||||
@@ -105,8 +101,8 @@ def unmerge_platform_patches(platform_patches_dir):
|
||||
filter(len,
|
||||
(platform_patches_dir / _SERIES_PREPEND).read_text(encoding=ENCODING).splitlines()))
|
||||
|
||||
# Move prepended files to original location, preserving changes, and clean up
|
||||
_rename_files_with_dirs(platform_patches_dir, sorted(prepend_series))
|
||||
# Move prepended files back to original location, preserving changes
|
||||
_rename_files_with_dirs(platform_patches_dir, prepend_patches_dir, sorted(prepend_series))
|
||||
|
||||
# Determine positions of blank spaces in series.orig
|
||||
if not (platform_patches_dir / _SERIES_ORIG).exists():
|
||||
@@ -175,10 +171,11 @@ def main():
|
||||
repo_dir = Path(__file__).resolve().parent.parent
|
||||
|
||||
success = False
|
||||
prepend_patches_dir = repo_dir / 'patches'
|
||||
if args.command == 'merge':
|
||||
success = merge_platform_patches(args.platform_patches, repo_dir / 'patches')
|
||||
success = merge_platform_patches(args.platform_patches, prepend_patches_dir)
|
||||
elif args.command == 'unmerge':
|
||||
success = unmerge_platform_patches(args.platform_patches)
|
||||
success = unmerge_platform_patches(args.platform_patches, prepend_patches_dir)
|
||||
else:
|
||||
raise NotImplementedError(args.command)
|
||||
|
||||
|
||||
+900
-377
File diff suppressed because it is too large
Load Diff
+13
-2
@@ -1,3 +1,5 @@
|
||||
# Everything that's downloaded after cloning Chromium goes here.
|
||||
# It will not work from main downloads.ini
|
||||
[search_engines_data]
|
||||
url = https://gist.githubusercontent.com/wukko/2a591364dda346e10219e4adabd568b1/raw/e75ae3c4a1ce940ef7627916a48bc40882d24d40/nonfree-search-engines-data.tar.gz
|
||||
download_filename = nonfree-search-engines-data.tar.gz
|
||||
@@ -5,8 +7,17 @@ sha256 = 00a87050fa3f941d04d67fb5763991e0b8ea399a88b505ab0e56dd263f06864c
|
||||
output_path = ./third_party/search_engines_data/resources_internal
|
||||
|
||||
[onboarding]
|
||||
version = 202508081112
|
||||
version = 202511061712
|
||||
url = https://github.com/imputnet/helium-onboarding/releases/download/%(version)s/helium-onboarding-%(version)s.tar.gz
|
||||
download_filename = onboarding-page-%(version)s.tar.gz
|
||||
sha256 = 375f719e1ebadbc528ceda2ce88dac23b5e59bca8be581b21d04f75e6b0a054c
|
||||
sha256 = 5728d2c6806f3f918f7fd0b358935fd4daa34c1117703c564917ede1dac8e199
|
||||
output_path = ./components/helium_onboarding
|
||||
|
||||
# If you are bumping this, you *NEED* to re-strip the assets.json
|
||||
# file *every time* by using `devutils/clear-ublock-assets.js`.
|
||||
[ublock_origin]
|
||||
version = 1.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
|
||||
|
||||
+780
-402
File diff suppressed because it is too large
Load Diff
+124
-30
@@ -136,7 +136,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
]
|
||||
}
|
||||
deps = [
|
||||
@@ -113,8 +127,17 @@ source_set("importer") {
|
||||
@@ -113,10 +127,19 @@ source_set("importer") {
|
||||
"//chrome/common:ini_parser",
|
||||
"//components/favicon_base",
|
||||
"//components/user_data_importer/common",
|
||||
@@ -154,9 +154,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ ]
|
||||
+ }
|
||||
}
|
||||
|
||||
if (!is_android) {
|
||||
--- a/components/user_data_importer/common/importer_type.h
|
||||
+++ b/components/user_data_importer/common/importer_type.h
|
||||
@@ -28,6 +28,14 @@ enum ImporterType {
|
||||
@@ -28,6 +28,16 @@ enum ImporterType {
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
TYPE_EDGE = 6,
|
||||
#endif
|
||||
@@ -168,15 +170,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ TYPE_WHALE = 69,
|
||||
+ TYPE_ARC = 70,
|
||||
+ TYPE_BRAVE = 71,
|
||||
+ TYPE_DIA = 72,
|
||||
+ TYPE_PERPLEXITY_COMET = 73,
|
||||
};
|
||||
|
||||
} // namespace 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"/>
|
||||
@@ -42,6 +42,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"/>
|
||||
@@ -193,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,
|
||||
@@ -203,17 +207,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
} // namespace user_data_importer
|
||||
--- a/chrome/common/importer/profile_import_process_param_traits_macros.h
|
||||
+++ b/chrome/common/importer/profile_import_process_param_traits_macros.h
|
||||
@@ -20,11 +20,11 @@
|
||||
@@ -23,11 +23,11 @@
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImporterType,
|
||||
user_data_importer::TYPE_UNKNOWN,
|
||||
- user_data_importer::TYPE_EDGE)
|
||||
+ user_data_importer::TYPE_BRAVE)
|
||||
+ user_data_importer::TYPE_PERPLEXITY_COMET)
|
||||
#else
|
||||
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImporterType,
|
||||
user_data_importer::TYPE_UNKNOWN,
|
||||
- user_data_importer::TYPE_BOOKMARKS_FILE)
|
||||
+ user_data_importer::TYPE_BRAVE)
|
||||
+ user_data_importer::TYPE_PERPLEXITY_COMET)
|
||||
#endif
|
||||
|
||||
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImportItem,
|
||||
@@ -240,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
|
||||
@@ -4254,6 +4254,9 @@ inline constexpr char kServiceWorkerToCo
|
||||
@@ -4281,6 +4281,9 @@ inline constexpr char kServiceWorkerToCo
|
||||
inline constexpr char kSharedWorkerBlobURLFixEnabled[] =
|
||||
"worker.shared_worker_blob_url_fix_enabled";
|
||||
|
||||
@@ -252,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
|
||||
@@ -1151,6 +1151,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -1147,6 +1147,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kImportDialogSearchEngine] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -290,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
|
||||
@@ -897,6 +897,8 @@ void AddImportDataStrings(content::WebUI
|
||||
@@ -999,6 +999,8 @@ void AddImportDataStrings(content::WebUI
|
||||
{"importHistory", IDS_SETTINGS_IMPORT_HISTORY_CHECKBOX},
|
||||
{"importFavorites", IDS_SETTINGS_IMPORT_FAVORITES_CHECKBOX},
|
||||
{"importPasswords", IDS_SETTINGS_IMPORT_PASSWORDS_CHECKBOX},
|
||||
@@ -315,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
|
||||
@@ -1430,6 +1430,10 @@ static_library("ui") {
|
||||
@@ -1252,6 +1252,10 @@ static_library("ui") {
|
||||
"webui/settings/accessibility_main_handler.h",
|
||||
"webui/settings/appearance_handler.cc",
|
||||
"webui/settings/appearance_handler.h",
|
||||
@@ -326,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",
|
||||
@@ -1585,6 +1589,13 @@ static_library("ui") {
|
||||
@@ -1408,6 +1412,13 @@ static_library("ui") {
|
||||
]
|
||||
}
|
||||
|
||||
@@ -339,7 +343,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+
|
||||
# Non-android deps for "ui" target.
|
||||
deps += [
|
||||
"//base",
|
||||
":browser_tab_strip",
|
||||
--- a/chrome/browser/ui/webui/settings/import_data_handler.h
|
||||
+++ b/chrome/browser/ui/webui/settings/import_data_handler.h
|
||||
@@ -36,9 +36,9 @@ class ImportDataHandler : public Setting
|
||||
@@ -380,7 +384,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"firefox_profile_lock.cc",
|
||||
--- a/chrome/browser/importer/external_process_importer_host.h
|
||||
+++ b/chrome/browser/importer/external_process_importer_host.h
|
||||
@@ -79,8 +79,9 @@ class ExternalProcessImporterHost
|
||||
@@ -79,8 +79,13 @@ class ExternalProcessImporterHost
|
||||
void NotifyImportStarted();
|
||||
void NotifyImportItemStarted(user_data_importer::ImportItem item);
|
||||
void NotifyImportItemEnded(user_data_importer::ImportItem item);
|
||||
@@ -388,26 +392,30 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ void virtual NotifyImportEnded();
|
||||
|
||||
+ friend class BraveExternalProcessImporterHost;
|
||||
+ void set_parent_view(gfx::NativeView parent_view) {
|
||||
+ parent_view_ = parent_view;
|
||||
+ }
|
||||
+ gfx::NativeView parent_view_ = gfx::NativeView();
|
||||
private:
|
||||
// ExternalProcessImporterHost deletes itself in OnImportEnded().
|
||||
~ExternalProcessImporterHost() override;
|
||||
--- a/components/history/core/browser/history_types.h
|
||||
+++ b/components/history/core/browser/history_types.h
|
||||
@@ -53,6 +53,8 @@ enum VisitSource {
|
||||
SOURCE_FIREFOX_IMPORTED = 3,
|
||||
SOURCE_IE_IMPORTED = 4,
|
||||
@@ -55,6 +55,8 @@ enum VisitSource {
|
||||
SOURCE_SAFARI_IMPORTED = 5,
|
||||
+ SOURCE_CHROME_IMPORTED = 6,
|
||||
+ SOURCE_BRAVE_IMPORTED = 7,
|
||||
SOURCE_ACTOR = 6,
|
||||
SOURCE_OS_MIGRATION_IMPORTED = 7,
|
||||
+ SOURCE_CHROME_IMPORTED = 8,
|
||||
+ SOURCE_BRAVE_IMPORTED = 9,
|
||||
};
|
||||
|
||||
// Corresponds to the "id" column of the "visits" SQL table.
|
||||
--- a/components/history/core/browser/visit_database.cc
|
||||
+++ b/components/history/core/browser/visit_database.cc
|
||||
@@ -117,6 +117,8 @@ VisitSource VisitSourceFromInt(int value
|
||||
case SOURCE_FIREFOX_IMPORTED:
|
||||
case SOURCE_IE_IMPORTED:
|
||||
@@ -120,6 +120,8 @@ VisitSource VisitSourceFromInt(int value
|
||||
case SOURCE_SAFARI_IMPORTED:
|
||||
case SOURCE_ACTOR:
|
||||
case SOURCE_OS_MIGRATION_IMPORTED:
|
||||
+ case SOURCE_CHROME_IMPORTED:
|
||||
+ case SOURCE_BRAVE_IMPORTED:
|
||||
return converted;
|
||||
@@ -426,8 +434,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
}
|
||||
--- a/chrome/utility/BUILD.gn
|
||||
+++ b/chrome/utility/BUILD.gn
|
||||
@@ -92,6 +92,12 @@ static_library("utility") {
|
||||
"importer/bookmark_html_reader.h",
|
||||
@@ -90,6 +90,12 @@ static_library("utility") {
|
||||
sources += [
|
||||
"importer/bookmarks_file_importer.cc",
|
||||
"importer/bookmarks_file_importer.h",
|
||||
+ "importer/brave_external_process_importer_bridge.cc",
|
||||
@@ -438,10 +446,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ "importer/chrome_importer.h",
|
||||
"importer/external_process_importer_bridge.cc",
|
||||
"importer/external_process_importer_bridge.h",
|
||||
"importer/favicon_reencode.cc",
|
||||
"importer/importer.cc",
|
||||
--- a/chrome/utility/services.cc
|
||||
+++ b/chrome/utility/services.cc
|
||||
@@ -54,7 +54,9 @@
|
||||
@@ -56,7 +56,9 @@
|
||||
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
#include "chrome/common/importer/profile_import.mojom.h"
|
||||
@@ -451,7 +459,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "components/mirroring/service/mirroring_service.h"
|
||||
#include "services/passage_embeddings/passage_embeddings_service.h"
|
||||
#include "services/proxy_resolver/proxy_resolver_factory_impl.h" // nogncheck
|
||||
@@ -144,6 +146,13 @@ static_assert(BUILDFLAG(ENABLE_PRINTING)
|
||||
@@ -138,6 +140,13 @@ static_assert(BUILDFLAG(ENABLE_PRINTING)
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -465,8 +473,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
auto RunFilePatcher(mojo::PendingReceiver<patch::mojom::FilePatcher> receiver) {
|
||||
return std::make_unique<patch::FilePatcherImpl>(std::move(receiver));
|
||||
}
|
||||
@@ -454,6 +463,7 @@ void RegisterMainThreadServices(mojo::Se
|
||||
services.Add(RunCSVPasswordParser);
|
||||
@@ -434,6 +443,7 @@ void RegisterMainThreadServices(mojo::Se
|
||||
services.Add(ContentBookmarkParser);
|
||||
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
+ services.Add(RunBraveProfileImporter);
|
||||
@@ -573,3 +581,89 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// These variables store data being collected from the importer until the
|
||||
// entire group has been collected and is ready to be written to the profile.
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -11279,6 +11279,15 @@ Check your passwords anytime in <ph name
|
||||
Microsoft Edge
|
||||
</message>
|
||||
</if>
|
||||
+ <message name="IDS_IMPORTED_FROM_BOOKMARK_FOLDER" desc="Name for bookmark panel folder imported from another browser">
|
||||
+ Imported from <ph name="BROWSER_NAME">$1<ex>Chrome</ex></ph>
|
||||
+ </message>
|
||||
+ <message name="IDS_EXTENSIONS_IMPORTER_LOCK_TITLE" desc="Dialog title for importer lock dialog">
|
||||
+ Import profile still in use
|
||||
+ </message>
|
||||
+ <message name="IDS_EXTENSIONS_IMPORTER_LOCK_TEXT" desc="The message to be displayed in the importer-lock dialog">
|
||||
+ To continue importing data, first close the browser you're importing from.
|
||||
+ </message>
|
||||
<message name="IDS_IMPORT_FROM_FIREFOX" desc="browser combo box: Mozilla Firefox">
|
||||
Mozilla Firefox
|
||||
</message>
|
||||
--- a/chrome/browser/importer/importer_lock_dialog.h
|
||||
+++ b/chrome/browser/importer/importer_lock_dialog.h
|
||||
@@ -21,6 +21,11 @@ void ShowImportLockDialog(gfx::NativeWin
|
||||
base::OnceCallback<void(bool)> callback,
|
||||
int importer_lock_title_id = IDS_IMPORTER_LOCK_TITLE,
|
||||
int importer_lock_text_id = IDS_IMPORTER_LOCK_TEXT);
|
||||
+void ShowImportLockDialog(gfx::NativeView parent_view,
|
||||
+ gfx::NativeWindow parent,
|
||||
+ base::OnceCallback<void(bool)> callback,
|
||||
+ int importer_lock_title_id = IDS_IMPORTER_LOCK_TITLE,
|
||||
+ int importer_lock_text_id = IDS_IMPORTER_LOCK_TEXT);
|
||||
|
||||
} // namespace importer
|
||||
|
||||
--- a/chrome/browser/ui/views/importer/import_lock_dialog_view.cc
|
||||
+++ b/chrome/browser/ui/views/importer/import_lock_dialog_view.cc
|
||||
@@ -27,8 +27,36 @@ void ShowImportLockDialog(gfx::NativeWin
|
||||
importer_lock_title_id, importer_lock_text_id);
|
||||
}
|
||||
|
||||
+void ShowImportLockDialog(gfx::NativeView parent_view,
|
||||
+ gfx::NativeWindow parent,
|
||||
+ base::OnceCallback<void(bool)> callback,
|
||||
+ int importer_lock_title_id,
|
||||
+ int importer_lock_text_id) {
|
||||
+ ImportLockDialogView::Show(parent_view, parent, std::move(callback),
|
||||
+ importer_lock_title_id, importer_lock_text_id);
|
||||
+}
|
||||
+
|
||||
} // namespace importer
|
||||
|
||||
+
|
||||
+// static
|
||||
+void ImportLockDialogView::Show(gfx::NativeView parent_view,
|
||||
+ gfx::NativeWindow parent,
|
||||
+ base::OnceCallback<void(bool)> callback,
|
||||
+ int importer_lock_title_id,
|
||||
+ int importer_lock_text_id) {
|
||||
+ views::DialogDelegate::CreateDialogWidget(
|
||||
+ new ImportLockDialogView(std::move(callback), importer_lock_title_id,
|
||||
+ importer_lock_text_id),
|
||||
+ parent, parent_view)
|
||||
+ ->Show();
|
||||
+ base::RecordAction(UserMetricsAction("ImportLockDialogView_Shown"));
|
||||
+}
|
||||
+
|
||||
+ui::mojom::ModalType ImportLockDialogView::GetModalType() const {
|
||||
+ return ui::mojom::ModalType::kChild;
|
||||
+}
|
||||
+
|
||||
// static
|
||||
void ImportLockDialogView::Show(gfx::NativeWindow parent,
|
||||
base::OnceCallback<void(bool)> callback,
|
||||
--- a/chrome/browser/ui/views/importer/import_lock_dialog_view.h
|
||||
+++ b/chrome/browser/ui/views/importer/import_lock_dialog_view.h
|
||||
@@ -23,6 +23,12 @@ class ImportLockDialogView : public view
|
||||
base::OnceCallback<void(bool)> callback,
|
||||
int importer_lock_title_id = IDS_IMPORTER_LOCK_TITLE,
|
||||
int importer_lock_text_id = IDS_IMPORTER_LOCK_TEXT);
|
||||
+ static void Show(gfx::NativeView parent_view,
|
||||
+ gfx::NativeWindow parent,
|
||||
+ base::OnceCallback<void(bool)> callback,
|
||||
+ int importer_lock_title_id = IDS_IMPORTER_LOCK_TITLE,
|
||||
+ int importer_lock_text_id = IDS_IMPORTER_LOCK_TEXT);
|
||||
+ ui::mojom::ModalType GetModalType() const override;
|
||||
|
||||
private:
|
||||
ImportLockDialogView(base::OnceCallback<void(bool)> callback,
|
||||
@@ -0,0 +1,58 @@
|
||||
This Source Code Form is subject to the terms of the Mozilla Public
|
||||
License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
|
||||
Copyright (c) 2025, The Brave Authors
|
||||
Copyright (c) 2025, The Helium Authors
|
||||
|
||||
Alternatively, the contents of this file may be used under the terms
|
||||
of the GNU General Public License Version 3, as described below:
|
||||
|
||||
Copyright (C) 2025 The Helium Authors
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
--- a/extensions/browser/extension_registrar.cc
|
||||
+++ b/extensions/browser/extension_registrar.cc
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "content/public/browser/browser_context.h"
|
||||
#include "content/public/browser/browser_thread.h"
|
||||
#include "content/public/browser/devtools_agent_host.h"
|
||||
+#include "extensions/browser/api/content_settings/content_settings_service.h"
|
||||
#include "extensions/browser/blocklist_extension_prefs.h"
|
||||
#include "extensions/browser/delayed_install_manager.h"
|
||||
#include "extensions/browser/disable_reason.h"
|
||||
@@ -540,6 +541,22 @@ void ExtensionRegistrar::AddComponentExt
|
||||
}
|
||||
|
||||
AddExtension(extension);
|
||||
+
|
||||
+ if (!IsExtensionEnabled(extension->id()))
|
||||
+ return;
|
||||
+
|
||||
+ // ContentSettingsStore::RegisterExtension is only called for default
|
||||
+ // components on the first run with a fresh profile. All restarts of the
|
||||
+ // browser after that do not call it. This causes ContentSettingsStore's
|
||||
+ // `entries_` to never insert the component ID and then
|
||||
+ // ContentSettingsStore::GetValueMap always returns nullptr. I don't think
|
||||
+ // Chromium is affected by this simply because they don't use content settings
|
||||
+ // from default component extensions.
|
||||
+ extension_prefs_->OnExtensionInstalled(
|
||||
+ extension, /*disable_reasons=*/{}, syncer::StringOrdinal(),
|
||||
+ extensions::kInstallFlagNone, std::string(), {} /* ruleset_checksums */);
|
||||
+ extensions::ContentSettingsService::Get(browser_context_)
|
||||
+ ->OnExtensionPrefsLoaded(extension->id(), extension_prefs_);
|
||||
}
|
||||
|
||||
void ExtensionRegistrar::RemoveComponentExtension(
|
||||
@@ -0,0 +1,260 @@
|
||||
Based on Brave's MRU tab cycling implementation, adapted for Helium.
|
||||
|
||||
This Source Code Form is subject to the terms of the Mozilla Public
|
||||
License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
|
||||
Copyright (c) 2025, The Brave Authors
|
||||
Copyright (c) 2025, The Helium Authors
|
||||
|
||||
Alternatively, the contents of this file may be used under the terms
|
||||
of the GNU General Public License Version 3, as described below:
|
||||
|
||||
Copyright (C) 2025 The Helium Authors
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
--- a/chrome/browser/ui/tabs/tab_strip_model.cc
|
||||
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc
|
||||
@@ -54,6 +54,7 @@
|
||||
#include "chrome/browser/ui/browser_commands.h"
|
||||
#include "chrome/browser/ui/browser_finder.h"
|
||||
#include "chrome/browser/ui/browser_window.h"
|
||||
+#include "chrome/browser/ui/views/frame/browser_view.h"
|
||||
#include "chrome/browser/ui/commerce/ui_utils.h"
|
||||
#include "chrome/browser/ui/send_tab_to_self/send_tab_to_self_bubble.h"
|
||||
#include "chrome/browser/ui/tabs/features.h"
|
||||
@@ -3703,6 +3704,44 @@ TabStripSelectionChange TabStripModel::S
|
||||
return selection;
|
||||
}
|
||||
|
||||
+void TabStripModel::SelectMRUTab(TabRelativeDirection direction,
|
||||
+ TabStripUserGestureDetails detail) {
|
||||
+ if (mru_cycle_list_.empty()) {
|
||||
+ Browser* browser = chrome::FindBrowserWithTab(GetWebContentsAt(0));
|
||||
+ if (!browser) {
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ for (int i = 0; i < count(); ++i) {
|
||||
+ mru_cycle_list_.push_back(i);
|
||||
+ }
|
||||
+
|
||||
+ std::sort(mru_cycle_list_.begin(), mru_cycle_list_.end(),
|
||||
+ [this](int a, int b) {
|
||||
+ return GetWebContentsAt(a)->GetLastActiveTimeTicks() >
|
||||
+ GetWebContentsAt(b)->GetLastActiveTimeTicks();
|
||||
+ });
|
||||
+
|
||||
+ if (BrowserView* browser_view = browser->window()->AsBrowserView()) {
|
||||
+ browser_view->StartTabCycling();
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ if (direction == TabRelativeDirection::kNext) {
|
||||
+ std::rotate(mru_cycle_list_.begin(), mru_cycle_list_.begin() + 1,
|
||||
+ mru_cycle_list_.end());
|
||||
+ } else {
|
||||
+ std::rotate(mru_cycle_list_.rbegin(), mru_cycle_list_.rbegin() + 1,
|
||||
+ mru_cycle_list_.rend());
|
||||
+ }
|
||||
+
|
||||
+ ActivateTabAt(mru_cycle_list_[0], detail);
|
||||
+}
|
||||
+
|
||||
+void TabStripModel::StopMRUCycling() {
|
||||
+ mru_cycle_list_.clear();
|
||||
+}
|
||||
+
|
||||
void TabStripModel::SelectRelativeTab(TabRelativeDirection direction,
|
||||
TabStripUserGestureDetails detail) {
|
||||
// This may happen during automated testing or if a user somehow buffers
|
||||
--- a/chrome/browser/ui/tabs/tab_strip_model.h
|
||||
+++ b/chrome/browser/ui/tabs/tab_strip_model.h
|
||||
@@ -611,6 +611,10 @@ class TabStripModel {
|
||||
TabStripUserGestureDetails detail = TabStripUserGestureDetails(
|
||||
TabStripUserGestureDetails::GestureType::kOther));
|
||||
|
||||
+ // Stops cycling through tabs in MRU order when Ctrl is released.
|
||||
+ // Used in BrowserView::StopTabCycling().
|
||||
+ void StopMRUCycling();
|
||||
+
|
||||
// Moves the active in the specified direction. Respects group boundaries.
|
||||
void MoveTabNext();
|
||||
void MoveTabPrevious();
|
||||
@@ -1139,6 +1143,11 @@ class TabStripModel {
|
||||
kPrevious,
|
||||
};
|
||||
|
||||
+ // Selects either the most recently used tab
|
||||
+ // or the least recently used tab.
|
||||
+ void SelectMRUTab(TabRelativeDirection direction,
|
||||
+ TabStripUserGestureDetails detail);
|
||||
+
|
||||
// Selects either the next tab (kNext), or the previous tab (kPrevious).
|
||||
void SelectRelativeTab(TabRelativeDirection direction,
|
||||
TabStripUserGestureDetails detail);
|
||||
@@ -1393,6 +1402,9 @@ class TabStripModel {
|
||||
// Tracks whether a modal UI is showing.
|
||||
bool showing_modal_ui_ = false;
|
||||
|
||||
+ // List of tabs for MRU cycling
|
||||
+ std::vector<int> mru_cycle_list_;
|
||||
+
|
||||
base::WeakPtrFactory<TabStripModel> weak_factory_{this};
|
||||
};
|
||||
|
||||
--- a/chrome/browser/ui/views/frame/browser_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_view.cc
|
||||
@@ -291,7 +291,10 @@
|
||||
#include "ui/compositor/paint_recorder.h"
|
||||
#include "ui/content_accelerators/accelerator_util.h"
|
||||
#include "ui/display/screen.h"
|
||||
+#include "ui/events/event.h"
|
||||
+#include "ui/events/event_handler.h"
|
||||
#include "ui/events/event_utils.h"
|
||||
+#include "ui/events/keycodes/keyboard_codes.h"
|
||||
#include "ui/gfx/animation/animation_runner.h"
|
||||
#include "ui/gfx/canvas.h"
|
||||
#include "ui/gfx/color_utils.h"
|
||||
@@ -309,6 +312,7 @@
|
||||
#include "ui/views/controls/button/menu_button.h"
|
||||
#include "ui/views/controls/textfield/textfield.h"
|
||||
#include "ui/views/controls/webview/webview.h"
|
||||
+#include "ui/views/event_monitor.h"
|
||||
#include "ui/views/interaction/element_tracker_views.h"
|
||||
#include "ui/views/layout/fill_layout.h"
|
||||
#include "ui/views/view.h"
|
||||
@@ -809,6 +813,83 @@ class BrowserView::ExclusiveAccessContex
|
||||
base::WeakPtrFactory<ExclusiveAccessContextImpl> weak_ptr_factory_{this};
|
||||
};
|
||||
|
||||
+// Handles events during MRU tab cycling to start/stop tab cycling.
|
||||
+class TabCyclingEventHandler : public ui::EventObserver,
|
||||
+ public views::WidgetObserver {
|
||||
+ public:
|
||||
+ explicit TabCyclingEventHandler(BrowserView* browser_view)
|
||||
+ : browser_view_(browser_view) {
|
||||
+ Start();
|
||||
+ }
|
||||
+
|
||||
+ ~TabCyclingEventHandler() override { Stop(); }
|
||||
+
|
||||
+ TabCyclingEventHandler(const TabCyclingEventHandler&) = delete;
|
||||
+ TabCyclingEventHandler& operator=(const TabCyclingEventHandler&) = delete;
|
||||
+
|
||||
+ private:
|
||||
+ // ui::EventObserver overrides:
|
||||
+ void OnEvent(const ui::Event& event) override {
|
||||
+ if (event.type() == ui::EventType::kKeyReleased &&
|
||||
+ event.AsKeyEvent()->key_code() == ui::VKEY_CONTROL) {
|
||||
+ // Ctrl key was released, stop the tab cycling.
|
||||
+ Stop();
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ if (event.type() == ui::EventType::kMousePressed) {
|
||||
+ Stop();
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ // views::WidgetObserver overrides:
|
||||
+ void OnWidgetActivationChanged(views::Widget* widget, bool active) override {
|
||||
+ // We should stop cycling if other application gets active state.
|
||||
+ if (!active) {
|
||||
+ Stop();
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ // Handle browser widget closing while tab cycling is in-progress.
|
||||
+ void OnWidgetClosing(views::Widget* widget) override { Stop(); }
|
||||
+
|
||||
+ void Start() {
|
||||
+ // Add the event handler.
|
||||
+ auto* widget = browser_view_->GetWidget();
|
||||
+ if (widget->GetNativeWindow()) {
|
||||
+ monitor_ = views::EventMonitor::CreateWindowMonitor(
|
||||
+ this, widget->GetNativeWindow(),
|
||||
+ {ui::EventType::kMousePressed, ui::EventType::kKeyReleased});
|
||||
+ }
|
||||
+ widget->AddObserver(this);
|
||||
+ }
|
||||
+
|
||||
+ void Stop() {
|
||||
+ if (!monitor_) {
|
||||
+ // Already stopped.
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ // Remove event handler.
|
||||
+ auto* widget = browser_view_->GetWidget();
|
||||
+ monitor_.reset();
|
||||
+ widget->RemoveObserver(this);
|
||||
+ browser_view_->StopTabCycling();
|
||||
+ }
|
||||
+
|
||||
+ raw_ptr<BrowserView> browser_view_;
|
||||
+ std::unique_ptr<views::EventMonitor> monitor_;
|
||||
+};
|
||||
+
|
||||
+void BrowserView::StartTabCycling() {
|
||||
+ tab_cycling_event_handler_ = std::make_unique<TabCyclingEventHandler>(this);
|
||||
+}
|
||||
+
|
||||
+void BrowserView::StopTabCycling() {
|
||||
+ tab_cycling_event_handler_.reset();
|
||||
+ browser()->tab_strip_model()->StopMRUCycling();
|
||||
+}
|
||||
+
|
||||
class BrowserView::AccessibilityModeObserver : public ui::AXModeObserver {
|
||||
public:
|
||||
explicit AccessibilityModeObserver(BrowserView* browser_view)
|
||||
--- a/chrome/browser/ui/views/frame/browser_view.h
|
||||
+++ b/chrome/browser/ui/views/frame/browser_view.h
|
||||
@@ -80,6 +80,7 @@ class LocationBarView;
|
||||
class MultiContentsView;
|
||||
class ScrimView;
|
||||
class SidePanel;
|
||||
+class TabCyclingEventHandler;
|
||||
class TabDragDelegate;
|
||||
class TabSearchBubbleHost;
|
||||
class TabStrip;
|
||||
@@ -555,6 +556,10 @@ class BrowserView : public BrowserWindow
|
||||
bool IsBorderlessModeEnabled() const override;
|
||||
void ShowChromeLabs() override;
|
||||
BrowserView* AsBrowserView() override;
|
||||
+
|
||||
+ void StartTabCycling();
|
||||
+ void StopTabCycling();
|
||||
+
|
||||
SharingDialog* ShowSharingDialog(content::WebContents* contents,
|
||||
SharingDialogData data) override;
|
||||
void ShowUpdateChromeDialog() override;
|
||||
@@ -860,6 +865,7 @@ class BrowserView : public BrowserWindow
|
||||
friend class BrowserViewLayoutDelegateImpl;
|
||||
friend class BrowserViewLayoutDelegateImplOld;
|
||||
friend class BrowserViewLayoutDelegateImplBrowsertest;
|
||||
+ friend class TabCyclingEventHandler;
|
||||
friend class TopControlsSlideControllerTest;
|
||||
FRIEND_TEST_ALL_PREFIXES(BrowserViewTest, BrowserView);
|
||||
FRIEND_TEST_ALL_PREFIXES(BrowserViewTest, AccessibleWindowTitle);
|
||||
@@ -1387,6 +1393,8 @@ class BrowserView : public BrowserWindow
|
||||
|
||||
base::CallbackListSubscription vertical_tab_subscription_;
|
||||
|
||||
+ std::unique_ptr<TabCyclingEventHandler> tab_cycling_event_handler_;
|
||||
+
|
||||
mutable base::WeakPtrFactory<BrowserView> weak_ptr_factory_{this};
|
||||
};
|
||||
|
||||
+4
-4
@@ -10,7 +10,7 @@ Subject: Disable fetching of all field trials
|
||||
|
||||
--- a/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java
|
||||
+++ b/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java
|
||||
@@ -60,7 +60,7 @@ public abstract class ChromeFeatureList
|
||||
@@ -61,7 +61,7 @@ public abstract class ChromeFeatureList
|
||||
* |kFeaturesExposedToJava| in chrome/browser/flags/android/chrome_feature_list.cc
|
||||
*/
|
||||
public static String getFieldTrialParamByFeature(String featureName, String paramName) {
|
||||
@@ -19,7 +19,7 @@ Subject: Disable fetching of all field trials
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -72,8 +72,7 @@ public abstract class ChromeFeatureList
|
||||
@@ -73,8 +73,7 @@ public abstract class ChromeFeatureList
|
||||
*/
|
||||
public static boolean getFieldTrialParamByFeatureAsBoolean(
|
||||
String featureName, String paramName, boolean defaultValue) {
|
||||
@@ -29,7 +29,7 @@ Subject: Disable fetching of all field trials
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -85,8 +84,7 @@ public abstract class ChromeFeatureList
|
||||
@@ -86,8 +85,7 @@ public abstract class ChromeFeatureList
|
||||
*/
|
||||
public static int getFieldTrialParamByFeatureAsInt(
|
||||
String featureName, String paramName, int defaultValue) {
|
||||
@@ -39,7 +39,7 @@ Subject: Disable fetching of all field trials
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -98,8 +96,7 @@ public abstract class ChromeFeatureList
|
||||
@@ -99,8 +97,7 @@ public abstract class ChromeFeatureList
|
||||
*/
|
||||
public static double getFieldTrialParamByFeatureAsDouble(
|
||||
String featureName, String paramName, double defaultValue) {
|
||||
+43
-51
@@ -9,7 +9,7 @@
|
||||
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -2602,6 +2602,7 @@ static_library("browser") {
|
||||
@@ -2596,6 +2596,7 @@ static_library("browser") {
|
||||
"//third_party/libyuv",
|
||||
"//third_party/metrics_proto",
|
||||
"//third_party/re2",
|
||||
@@ -19,7 +19,7 @@
|
||||
"//third_party/widevine/cdm:headers",
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -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
|
||||
@@ -295,6 +295,7 @@ source_set("browser") {
|
||||
@@ -299,6 +299,7 @@ source_set("browser") {
|
||||
"//third_party/re2",
|
||||
"//third_party/snappy",
|
||||
"//third_party/sqlite",
|
||||
@@ -54,7 +54,7 @@
|
||||
"//tools/v8_context_snapshot:buildflags",
|
||||
--- a/content/browser/renderer_host/render_process_host_impl.cc
|
||||
+++ b/content/browser/renderer_host/render_process_host_impl.cc
|
||||
@@ -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"
|
||||
@@ -3517,6 +3518,8 @@ void RenderProcessHostImpl::PropagateBro
|
||||
@@ -3698,6 +3699,8 @@ void RenderProcessHostImpl::PropagateBro
|
||||
switches::kEnableWebGLImageChromium,
|
||||
switches::kEnableWebGPUDeveloperFeatures,
|
||||
switches::kFileUrlPathAlias,
|
||||
@@ -73,7 +73,7 @@
|
||||
switches::kForceHighContrast,
|
||||
--- a/content/child/BUILD.gn
|
||||
+++ b/content/child/BUILD.gn
|
||||
@@ -110,6 +110,7 @@ target(link_target_type, "child") {
|
||||
@@ -109,6 +109,7 @@ target(link_target_type, "child") {
|
||||
"//third_party/blink/public/common:buildflags",
|
||||
"//third_party/blink/public/strings",
|
||||
"//third_party/ced",
|
||||
@@ -83,7 +83,7 @@
|
||||
"//ui/events/blink",
|
||||
--- a/content/child/runtime_features.cc
|
||||
+++ b/content/child/runtime_features.cc
|
||||
@@ -41,6 +41,7 @@
|
||||
@@ -42,6 +42,7 @@
|
||||
#include "third_party/blink/public/common/loader/referrer_utils.h"
|
||||
#include "third_party/blink/public/common/switches.h"
|
||||
#include "third_party/blink/public/platform/web_runtime_features.h"
|
||||
@@ -91,7 +91,7 @@
|
||||
#include "ui/accessibility/accessibility_features.h"
|
||||
#include "ui/base/ui_base_features.h"
|
||||
#include "ui/events/blink/blink_features.h"
|
||||
@@ -487,6 +488,10 @@ void SetRuntimeFeaturesFromCommandLine(c
|
||||
@@ -485,6 +486,10 @@ void SetRuntimeFeaturesFromCommandLine(c
|
||||
true},
|
||||
{wrf::EnableWebAudioBypassOutputBufferingOptOut,
|
||||
blink::switches::kWebAudioBypassOutputBufferingOptOut, true},
|
||||
@@ -104,9 +104,9 @@
|
||||
for (const auto& mapping : switchToFeatureMapping) {
|
||||
--- a/third_party/blink/public/platform/web_runtime_features.h
|
||||
+++ b/third_party/blink/public/platform/web_runtime_features.h
|
||||
@@ -69,6 +69,9 @@ class BLINK_PLATFORM_EXPORT WebRuntimeFe
|
||||
static void EnableFluentScrollbars(bool);
|
||||
static void EnableFluentOverlayScrollbars(bool);
|
||||
@@ -71,6 +71,9 @@ class BLINK_PLATFORM_EXPORT WebRuntimeFe
|
||||
|
||||
static void EnableLocalNetworkAccessWebRTC(bool);
|
||||
|
||||
+ static void EnableFingerprintingClientRectsNoise(bool);
|
||||
+ static void EnableFingerprintingCanvasMeasureTextNoise(bool);
|
||||
@@ -124,7 +124,7 @@
|
||||
#include "base/task/single_thread_task_runner.h"
|
||||
#include "base/time/time.h"
|
||||
#include "base/trace_event/trace_event.h"
|
||||
@@ -984,6 +985,11 @@ Document::Document(const DocumentInit& i
|
||||
@@ -1089,6 +1090,11 @@ Document::Document(const DocumentInit& i
|
||||
TRACE_EVENT_WITH_FLOW0("blink", "Document::Document", TRACE_ID_LOCAL(this),
|
||||
TRACE_EVENT_FLAG_FLOW_OUT);
|
||||
DCHECK(agent_);
|
||||
@@ -136,7 +136,7 @@
|
||||
if (base::FeatureList::IsEnabled(features::kDelayAsyncScriptExecution) &&
|
||||
features::kDelayAsyncScriptExecutionDelayByDefaultParam.Get()) {
|
||||
script_runner_delayer_->Activate();
|
||||
@@ -1114,6 +1120,14 @@ const Position Document::PositionAdjuste
|
||||
@@ -1226,6 +1232,14 @@ const Position Document::PositionAdjuste
|
||||
return Position::BeforeNode(*shadow_host);
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@
|
||||
selector_query_cache_ = MakeGarbageCollected<SelectorQueryCache>();
|
||||
--- a/third_party/blink/renderer/core/dom/document.h
|
||||
+++ b/third_party/blink/renderer/core/dom/document.h
|
||||
@@ -582,6 +582,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,31 +164,29 @@
|
||||
V8VisibilityState visibilityState() const;
|
||||
String visibilityStateAsString() const;
|
||||
bool IsPageVisible() const;
|
||||
@@ -2780,6 +2784,9 @@ class CORE_EXPORT Document : public Cont
|
||||
@@ -2810,6 +2814,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
|
||||
@@ -3016,6 +3016,11 @@ DOMRectList* Element::getClientRects() {
|
||||
DCHECK(element_layout_object);
|
||||
GetDocument().AdjustQuadsForScrollAndAbsoluteZoom(quads,
|
||||
*element_layout_object);
|
||||
+ if (RuntimeEnabledFeatures::FingerprintingClientRectsNoiseEnabled()) {
|
||||
+ for (gfx::QuadF& quad : quads) {
|
||||
@@ -3195,6 +3195,9 @@ Vector<gfx::RectF> Element::GetClientRec
|
||||
}
|
||||
Vector<gfx::RectF> result;
|
||||
for (auto& quad : quads) {
|
||||
+ if (RuntimeEnabledFeatures::FingerprintingClientRectsNoiseEnabled()) {
|
||||
+ quad.Scale(GetDocument().GetNoiseFactorX(), GetDocument().GetNoiseFactorY());
|
||||
+ }
|
||||
+ }
|
||||
return MakeGarbageCollected<DOMRectList>(quads);
|
||||
}
|
||||
|
||||
@@ -3043,6 +3048,9 @@ gfx::RectF Element::GetBoundingClientRec
|
||||
result.emplace_back(quad.BoundingBox());
|
||||
}
|
||||
return result;
|
||||
@@ -3224,6 +3227,9 @@ gfx::RectF Element::GetBoundingClientRec
|
||||
DCHECK(element_layout_object);
|
||||
GetDocument().AdjustRectForScrollAndAbsoluteZoom(result,
|
||||
*element_layout_object);
|
||||
@@ -200,7 +198,7 @@
|
||||
|
||||
--- a/third_party/blink/renderer/core/dom/range.cc
|
||||
+++ b/third_party/blink/renderer/core/dom/range.cc
|
||||
@@ -1646,6 +1646,12 @@ DOMRectList* Range::getClientRects() con
|
||||
@@ -1655,6 +1655,12 @@ DOMRectList* Range::getClientRects() con
|
||||
Vector<gfx::QuadF> quads;
|
||||
GetBorderAndTextQuads(quads);
|
||||
|
||||
@@ -213,7 +211,7 @@
|
||||
return MakeGarbageCollected<DOMRectList>(quads);
|
||||
}
|
||||
|
||||
@@ -1653,7 +1659,11 @@ DOMRect* Range::getBoundingClientRect()
|
||||
@@ -1662,7 +1668,11 @@ DOMRect* Range::getBoundingClientRect()
|
||||
// TODO(crbug.com/1499981): This should be removed once synchronized scrolling
|
||||
// impact is understood.
|
||||
SyncScrollAttemptHeuristic::DidAccessScrollOffset();
|
||||
@@ -228,9 +226,9 @@
|
||||
// TODO(editing-dev): We should make
|
||||
--- a/third_party/blink/renderer/core/html/canvas/text_metrics.cc
|
||||
+++ b/third_party/blink/renderer/core/html/canvas/text_metrics.cc
|
||||
@@ -106,6 +106,24 @@ const ShapeResult* ShapeWord(const TextR
|
||||
@@ -89,6 +89,24 @@ TextMetrics::TextMetrics(const Font* fon
|
||||
Update(font, direction, baseline, align, text, text_painter);
|
||||
}
|
||||
} // namespace
|
||||
|
||||
+void TextMetrics::Shuffle(const double factor) {
|
||||
+ // x-direction
|
||||
@@ -255,7 +253,7 @@
|
||||
const V8CanvasTextBaseline::Enum baseline,
|
||||
--- a/third_party/blink/renderer/core/html/canvas/text_metrics.h
|
||||
+++ b/third_party/blink/renderer/core/html/canvas/text_metrics.h
|
||||
@@ -111,6 +111,8 @@ class CORE_EXPORT TextMetrics final : pu
|
||||
@@ -109,6 +109,8 @@ class CORE_EXPORT TextMetrics final : pu
|
||||
float x_position_;
|
||||
};
|
||||
|
||||
@@ -266,7 +264,7 @@
|
||||
const TextDirection& direction,
|
||||
--- a/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
|
||||
+++ b/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
|
||||
@@ -109,6 +109,9 @@
|
||||
@@ -107,6 +107,9 @@
|
||||
// https://github.com/include-what-you-use/include-what-you-use/issues/1122
|
||||
// IWYU pragma: no_include "base/numerics/clamped_math.h"
|
||||
|
||||
@@ -274,22 +272,16 @@
|
||||
+#include "third_party/blink/renderer/core/frame/local_dom_window.h"
|
||||
+
|
||||
namespace blink {
|
||||
namespace {
|
||||
|
||||
@@ -1246,13 +1249,26 @@ TextMetrics* BaseRenderingContext2D::mea
|
||||
class MemoryManagedPaintCanvas;
|
||||
@@ -1233,9 +1236,22 @@ TextMetrics* BaseRenderingContext2D::mea
|
||||
TextDirection direction =
|
||||
ToTextDirection(state.GetDirection(), host, computed_style);
|
||||
|
||||
- return MakeGarbageCollected<TextMetrics>(
|
||||
- font, direction, state.GetTextBaseline().AsEnum(),
|
||||
- state.GetTextAlign().AsEnum(), text,
|
||||
+ TextMetrics* text_metrics = MakeGarbageCollected<TextMetrics>(
|
||||
+ font, direction, GetState().GetTextBaseline().AsEnum(),
|
||||
+ GetState().GetTextAlign().AsEnum(), text,
|
||||
RuntimeEnabledFeatures::CanvasTextNgEnabled(
|
||||
host->GetTopExecutionContext())
|
||||
? &host->GetPlainTextPainter()
|
||||
: nullptr);
|
||||
font, direction, state.GetTextBaseline().AsEnum(),
|
||||
state.GetTextAlign().AsEnum(), text, host->GetPlainTextPainter());
|
||||
+
|
||||
+ // Scale text metrics if enabled
|
||||
+ if (RuntimeEnabledFeatures::FingerprintingCanvasMeasureTextNoiseEnabled()) {
|
||||
@@ -308,20 +300,20 @@
|
||||
String BaseRenderingContext2D::lang() const {
|
||||
--- a/third_party/blink/renderer/platform/BUILD.gn
|
||||
+++ b/third_party/blink/renderer/platform/BUILD.gn
|
||||
@@ -1792,6 +1792,7 @@ component("platform") {
|
||||
@@ -1811,6 +1811,7 @@ component("platform") {
|
||||
"//components/paint_preview/common",
|
||||
"//components/search_engines:search_engine_utils",
|
||||
"//components/translate/core/language_detection:language_detection",
|
||||
"//components/translate/core/language_detection",
|
||||
+ "//components/ungoogled:ungoogled_switches",
|
||||
"//components/viz/client",
|
||||
"//components/viz/common",
|
||||
"//components/webrtc:net_address_utils",
|
||||
--- a/third_party/blink/renderer/platform/exported/web_runtime_features.cc
|
||||
+++ b/third_party/blink/renderer/platform/exported/web_runtime_features.cc
|
||||
@@ -68,4 +68,12 @@ void WebRuntimeFeatures::EnableFluentScr
|
||||
void WebRuntimeFeatures::EnableFluentOverlayScrollbars(bool enable) {
|
||||
RuntimeEnabledFeatures::SetFluentOverlayScrollbarsEnabled(enable);
|
||||
@@ -73,4 +73,12 @@ void WebRuntimeFeatures::EnableLocalNetw
|
||||
RuntimeEnabledFeatures::SetLocalNetworkAccessWebRTCEnabled(enable);
|
||||
}
|
||||
|
||||
+void WebRuntimeFeatures::EnableFingerprintingClientRectsNoise(bool enable) {
|
||||
+ RuntimeEnabledFeatures::SetFingerprintingClientRectsNoiseEnabled(enable);
|
||||
+}
|
||||
@@ -343,7 +335,7 @@
|
||||
#include "third_party/skia/include/core/SkImage.h"
|
||||
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
@@ -2310,6 +2310,12 @@
|
||||
@@ -2441,6 +2441,12 @@
|
||||
status: "stable",
|
||||
},
|
||||
{
|
||||
+9
-9
@@ -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
|
||||
@@ -3520,6 +3520,7 @@ void RenderProcessHostImpl::PropagateBro
|
||||
@@ -3701,6 +3701,7 @@ void RenderProcessHostImpl::PropagateBro
|
||||
switches::kFileUrlPathAlias,
|
||||
switches::kFingerprintingClientRectsNoise,
|
||||
switches::kFingerprintingCanvasMeasureTextNoise,
|
||||
@@ -44,7 +44,7 @@ approach to change color components.
|
||||
switches::kForceHighContrast,
|
||||
--- a/content/child/runtime_features.cc
|
||||
+++ b/content/child/runtime_features.cc
|
||||
@@ -492,6 +492,8 @@ void SetRuntimeFeaturesFromCommandLine(c
|
||||
@@ -490,6 +490,8 @@ void SetRuntimeFeaturesFromCommandLine(c
|
||||
switches::kFingerprintingClientRectsNoise, true},
|
||||
{wrf::EnableFingerprintingCanvasMeasureTextNoise,
|
||||
switches::kFingerprintingCanvasMeasureTextNoise, true},
|
||||
@@ -55,7 +55,7 @@ approach to change color components.
|
||||
for (const auto& mapping : switchToFeatureMapping) {
|
||||
--- a/third_party/blink/public/platform/web_runtime_features.h
|
||||
+++ b/third_party/blink/public/platform/web_runtime_features.h
|
||||
@@ -71,6 +71,7 @@ class BLINK_PLATFORM_EXPORT WebRuntimeFe
|
||||
@@ -73,6 +73,7 @@ class BLINK_PLATFORM_EXPORT WebRuntimeFe
|
||||
|
||||
static void EnableFingerprintingClientRectsNoise(bool);
|
||||
static void EnableFingerprintingCanvasMeasureTextNoise(bool);
|
||||
@@ -65,7 +65,7 @@ approach to change color components.
|
||||
};
|
||||
--- a/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
|
||||
+++ b/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
|
||||
@@ -555,6 +555,9 @@ ImageData* BaseRenderingContext2D::getIm
|
||||
@@ -557,6 +557,9 @@ ImageData* BaseRenderingContext2D::getIm
|
||||
snapshot->PaintImageForCurrentFrame().GetSkImageInfo().bounds();
|
||||
DCHECK(!bounds.intersect(SkIRect::MakeXYWH(sx, sy, sw, sh)));
|
||||
}
|
||||
@@ -77,7 +77,7 @@ approach to change color components.
|
||||
return image_data;
|
||||
--- a/third_party/blink/renderer/platform/BUILD.gn
|
||||
+++ b/third_party/blink/renderer/platform/BUILD.gn
|
||||
@@ -1736,7 +1736,9 @@ component("platform") {
|
||||
@@ -1753,7 +1753,9 @@ component("platform") {
|
||||
"//third_party/blink/renderer:non_test_config",
|
||||
]
|
||||
|
||||
@@ -90,7 +90,7 @@ approach to change color components.
|
||||
"//third_party/blink/renderer/platform/blob",
|
||||
--- a/third_party/blink/renderer/platform/exported/web_runtime_features.cc
|
||||
+++ b/third_party/blink/renderer/platform/exported/web_runtime_features.cc
|
||||
@@ -76,4 +76,8 @@ void WebRuntimeFeatures::EnableFingerpri
|
||||
@@ -81,4 +81,8 @@ void WebRuntimeFeatures::EnableFingerpri
|
||||
RuntimeEnabledFeatures::SetFingerprintingCanvasMeasureTextNoiseEnabled(enable);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
@@ -2316,6 +2316,9 @@
|
||||
@@ -2447,6 +2447,9 @@
|
||||
name: "FingerprintingCanvasMeasureTextNoise",
|
||||
},
|
||||
{
|
||||
+16
-28
@@ -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
|
||||
@@ -2279,6 +2279,7 @@ static_library("browser") {
|
||||
@@ -2269,6 +2269,7 @@ static_library("browser") {
|
||||
"//components/net_log",
|
||||
"//components/network_hints/common:mojo_bindings",
|
||||
"//components/network_session_configurator/browser",
|
||||
@@ -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,15 +73,15 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
#include "components/network_time/network_time_tracker.h"
|
||||
#include "components/os_crypt/async/browser/os_crypt_async.h"
|
||||
#include "components/permissions/permissions_client.h"
|
||||
@@ -152,6 +155,7 @@
|
||||
@@ -149,6 +152,7 @@
|
||||
#include "extensions/common/constants.h"
|
||||
#include "media/media_buildflags.h"
|
||||
#include "mojo/public/cpp/bindings/pending_receiver.h"
|
||||
+#include "net/socket/client_socket_pool_manager.h"
|
||||
#include "ppapi/buildflags/buildflags.h"
|
||||
#include "printing/buildflags/buildflags.h"
|
||||
#include "services/network/public/cpp/features.h"
|
||||
@@ -419,6 +423,18 @@ void BrowserProcessImpl::Init() {
|
||||
#include "services/network/public/cpp/network_switches.h"
|
||||
@@ -432,6 +436,18 @@ void BrowserProcessImpl::Init() {
|
||||
pref_change_registrar_.Add(metrics::prefs::kMetricsReportingEnabled,
|
||||
base::BindRepeating(&ApplyMetricsReportingPolicy));
|
||||
|
||||
@@ -100,31 +100,19 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
DCHECK(!webrtc_event_log_manager_);
|
||||
webrtc_event_log_manager_ = WebRtcEventLogManager::CreateSingletonInstance();
|
||||
|
||||
--- a/chrome/browser/flag_descriptions.cc
|
||||
+++ b/chrome/browser/flag_descriptions.cc
|
||||
@@ -2774,6 +2774,10 @@ const char kMantisFeatureKeyDescription[
|
||||
"Feature key to use the Mantis feature on ChromeOS.";
|
||||
#endif // BUILDFLAG(IS_CHROMEOS)
|
||||
|
||||
+const char kMaxConnectionsPerHostName[] = "Maximum connections per host";
|
||||
+const char kMaxConnectionsPerHostDescription[] =
|
||||
+ "Customize maximum allowed connections per host. ungoogled-chromium flag, Bromite feature.";
|
||||
+
|
||||
const char kMediaRouterCastAllowAllIPsName[] =
|
||||
"Connect to Cast devices on all IP addresses";
|
||||
const char kMediaRouterCastAllowAllIPsDescription[] =
|
||||
--- a/chrome/browser/flag_descriptions.h
|
||||
+++ b/chrome/browser/flag_descriptions.h
|
||||
@@ -1608,6 +1608,9 @@ extern const char kMantisFeatureKeyName[
|
||||
extern const char kMantisFeatureKeyDescription[];
|
||||
#endif // IS_CHROMEOS
|
||||
@@ -2753,6 +2753,10 @@ inline constexpr char kLogJsConsoleMessa
|
||||
"Enable logging JS console messages in system logs, please note that they "
|
||||
"may contain PII.";
|
||||
|
||||
+extern const char kMaxConnectionsPerHostName[];
|
||||
+extern const char kMaxConnectionsPerHostDescription[];
|
||||
+inline constexpr char kMaxConnectionsPerHostName[] = "Maximum connections per host";
|
||||
+inline constexpr char kMaxConnectionsPerHostDescription[] =
|
||||
+ "Customize maximum allowed connections per host. ungoogled-chromium flag, Bromite feature.";
|
||||
+
|
||||
extern const char kMediaRouterCastAllowAllIPsName[];
|
||||
extern const char kMediaRouterCastAllowAllIPsDescription[];
|
||||
|
||||
inline constexpr char kMediaRouterCastAllowAllIPsName[] =
|
||||
"Connect to Cast devices on all IP addresses";
|
||||
inline constexpr char kMediaRouterCastAllowAllIPsDescription[] =
|
||||
--- a/components/network_session_configurator/common/network_features.cc
|
||||
+++ b/components/network_session_configurator/common/network_features.cc
|
||||
@@ -8,4 +8,7 @@
|
||||
+1
-1
@@ -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
|
||||
@@ -171,10 +171,6 @@ void AddInfoBarsIfNecessary(Browser* bro
|
||||
@@ -188,10 +188,6 @@ void AddInfoBarsIfNecessary(BrowserWindo
|
||||
infobars::ContentInfoBarManager* infobar_manager =
|
||||
infobars::ContentInfoBarManager::FromWebContents(web_contents);
|
||||
|
||||
+5
-4
@@ -1,6 +1,6 @@
|
||||
--- a/components/autofill/core/browser/crowdsourcing/autofill_crowdsourcing_manager.cc
|
||||
+++ b/components/autofill/core/browser/crowdsourcing/autofill_crowdsourcing_manager.cc
|
||||
@@ -938,93 +938,6 @@ std::tuple<GURL, std::string> AutofillCr
|
||||
@@ -925,94 +925,6 @@ std::tuple<GURL, std::string> AutofillCr
|
||||
}
|
||||
|
||||
bool AutofillCrowdsourcingManager::StartRequest(FormRequestData request_data) {
|
||||
@@ -13,15 +13,16 @@
|
||||
-#if BUILDFLAG(IS_IOS)
|
||||
- DCHECK(!request_data.isolation_info);
|
||||
-#else
|
||||
- DCHECK((request_data.request_type == RequestType::kRequestUpload) ==
|
||||
- !request_data.isolation_info);
|
||||
- DCHECK(
|
||||
- (request_data.request_type == CrowdsourcingRequestType::kRequestUpload) ==
|
||||
- !request_data.isolation_info);
|
||||
-#endif
|
||||
- // Get the URL and method to use for this request.
|
||||
- auto [request_url, method] = GetRequestURLAndMethod(request_data);
|
||||
-
|
||||
- // Track the URL length for GET queries because the URL length can be in the
|
||||
- // thousands when rich metadata is enabled.
|
||||
- if (request_data.request_type == RequestType::kRequestQuery &&
|
||||
- if (request_data.request_type == CrowdsourcingRequestType::kRequestQuery &&
|
||||
- method == "GET") {
|
||||
- base::UmaHistogramCounts100000(kUmaGetUrlLength,
|
||||
- request_url.spec().length());
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/BUILD.gn
|
||||
+++ b/BUILD.gn
|
||||
@@ -476,14 +476,6 @@ group("gn_all") {
|
||||
@@ -459,14 +459,6 @@ group("gn_all") {
|
||||
]
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/updater/configurator.cc
|
||||
+++ b/chrome/updater/configurator.cc
|
||||
@@ -147,7 +147,7 @@ base::TimeDelta Configurator::UpdateDela
|
||||
@@ -132,7 +132,7 @@ base::TimeDelta Configurator::UpdateDela
|
||||
|
||||
std::vector<GURL> Configurator::UpdateUrl() const {
|
||||
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||
+44
-38
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -3797,8 +3797,6 @@ static_library("browser") {
|
||||
@@ -3800,8 +3800,6 @@ static_library("browser") {
|
||||
"download/download_auto_open_policy_handler.cc",
|
||||
"download/download_auto_open_policy_handler.h",
|
||||
"download/download_commands.cc",
|
||||
@@ -11,9 +11,9 @@
|
||||
"download/download_dir_util.cc",
|
||||
--- a/chrome/browser/chrome_content_browser_client_navigation_throttles.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client_navigation_throttles.cc
|
||||
@@ -388,10 +388,6 @@ void CreateAndAddChromeThrottlesForNavig
|
||||
registry.AddThrottle(std::make_unique<PolicyBlocklistNavigationThrottle>(
|
||||
registry, handle.GetWebContents()->GetBrowserContext()));
|
||||
@@ -405,10 +405,6 @@ void CreateAndAddChromeThrottlesForNavig
|
||||
Profile::FromBrowserContext(context)),
|
||||
SafeSearchFactory::GetForBrowserContext(context)));
|
||||
|
||||
- // Before setting up SSL error detection, configure SSLErrorHandler to invoke
|
||||
- // the relevant extension API whenever an SSL interstitial is shown.
|
||||
@@ -57,7 +57,7 @@
|
||||
|
||||
// Whether the download is currently being revived.
|
||||
bool is_being_revived_ = false;
|
||||
@@ -513,13 +513,13 @@ void DownloadItemModel::SetShouldPreferO
|
||||
@@ -464,13 +464,13 @@ void DownloadItemModel::SetShouldPreferO
|
||||
data->should_prefer_opening_in_browser_ = preference;
|
||||
}
|
||||
|
||||
@@ -76,15 +76,15 @@
|
||||
}
|
||||
--- a/chrome/browser/extensions/api/downloads/downloads_api.cc
|
||||
+++ b/chrome/browser/extensions/api/downloads/downloads_api.cc
|
||||
@@ -38,7 +38,6 @@
|
||||
#include "chrome/browser/download/bubble/download_bubble_ui_controller.h"
|
||||
#include "chrome/browser/download/download_core_service.h"
|
||||
#include "chrome/browser/download/download_core_service_factory.h"
|
||||
@@ -86,7 +86,6 @@
|
||||
#endif
|
||||
|
||||
#if BUILDFLAG(ENABLE_EXTENSIONS)
|
||||
-#include "chrome/browser/download/download_danger_prompt.h"
|
||||
#include "chrome/browser/download/download_file_icon_extractor.h"
|
||||
#include "chrome/browser/download/download_open_prompt.h"
|
||||
#include "chrome/browser/download/download_prefs.h"
|
||||
@@ -1378,9 +1377,6 @@ DownloadsAcceptDangerFunction::Downloads
|
||||
#include "chrome/browser/ui/browser.h"
|
||||
#include "chrome/browser/ui/browser_window.h"
|
||||
@@ -1359,9 +1358,6 @@ DownloadsAcceptDangerFunction::Downloads
|
||||
|
||||
DownloadsAcceptDangerFunction::~DownloadsAcceptDangerFunction() = default;
|
||||
|
||||
@@ -94,10 +94,10 @@
|
||||
ExtensionFunction::ResponseAction DownloadsAcceptDangerFunction::Run() {
|
||||
std::optional<downloads::AcceptDanger::Params> params =
|
||||
downloads::AcceptDanger::Params::Create(args());
|
||||
@@ -1430,44 +1426,7 @@ void DownloadsAcceptDangerFunction::Prom
|
||||
return;
|
||||
@@ -1412,50 +1408,13 @@ void DownloadsAcceptDangerFunction::Prom
|
||||
}
|
||||
RecordApiFunctions(DownloadsFunctionName::kDownloadsFunctionAcceptDanger);
|
||||
#if BUILDFLAG(ENABLE_EXTENSIONS)
|
||||
- // DownloadDangerPrompt displays a modal dialog using native widgets that the
|
||||
- // user must either accept or cancel. It cannot be scripted.
|
||||
- DownloadDangerPrompt* prompt = DownloadDangerPrompt::Create(
|
||||
@@ -110,8 +110,13 @@
|
||||
- on_prompt_created_ = nullptr;
|
||||
- }
|
||||
- // Function finishes in DangerPromptCallback().
|
||||
-}
|
||||
-
|
||||
+ download_item->ValidateDangerousDownload();
|
||||
#else
|
||||
NOTIMPLEMENTED();
|
||||
Respond(Error("DownloadDangerPrompt not implemented"));
|
||||
#endif // BUILDFLAG(ENABLE_EXTENSIONS)
|
||||
}
|
||||
|
||||
-void DownloadsAcceptDangerFunction::DangerPromptCallback(
|
||||
- int download_id,
|
||||
- DownloadDangerPrompt::Action action) {
|
||||
@@ -136,10 +141,11 @@
|
||||
- break;
|
||||
- }
|
||||
- Respond(NoArguments());
|
||||
+ download_item->ValidateDangerousDownload();
|
||||
}
|
||||
|
||||
-}
|
||||
-
|
||||
DownloadsShowFunction::DownloadsShowFunction() = default;
|
||||
|
||||
DownloadsShowFunction::~DownloadsShowFunction() = default;
|
||||
--- a/chrome/browser/extensions/api/downloads/downloads_api.h
|
||||
+++ b/chrome/browser/extensions/api/downloads/downloads_api.h
|
||||
@@ -13,7 +13,6 @@
|
||||
@@ -150,7 +156,7 @@
|
||||
#include "chrome/common/extensions/api/downloads.h"
|
||||
#include "components/download/content/public/all_download_item_notifier.h"
|
||||
#include "components/download/public/common/download_path_reservation_tracker.h"
|
||||
@@ -201,13 +200,6 @@ class DownloadsRemoveFileFunction : publ
|
||||
@@ -170,13 +169,6 @@ class DownloadsRemoveFileFunction : publ
|
||||
|
||||
class DownloadsAcceptDangerFunction : public ExtensionFunction {
|
||||
public:
|
||||
@@ -164,7 +170,7 @@
|
||||
DECLARE_EXTENSION_FUNCTION("downloads.acceptDanger", DOWNLOADS_ACCEPTDANGER)
|
||||
DownloadsAcceptDangerFunction();
|
||||
|
||||
@@ -219,13 +211,10 @@ class DownloadsAcceptDangerFunction : pu
|
||||
@@ -188,13 +180,10 @@ class DownloadsAcceptDangerFunction : pu
|
||||
|
||||
protected:
|
||||
~DownloadsAcceptDangerFunction() override;
|
||||
@@ -180,7 +186,7 @@
|
||||
class DownloadsShowFunction : public ExtensionFunction {
|
||||
--- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
|
||||
+++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
|
||||
@@ -703,18 +703,6 @@ void WebstorePrivateBeginInstallWithMani
|
||||
@@ -706,18 +706,6 @@ void WebstorePrivateBeginInstallWithMani
|
||||
|
||||
void WebstorePrivateBeginInstallWithManifest3Function::
|
||||
ReportFrictionAcceptedEvent() {
|
||||
@@ -201,7 +207,7 @@
|
||||
void WebstorePrivateBeginInstallWithManifest3Function::OnInstallPromptDone(
|
||||
--- a/chrome/browser/extensions/blocklist_state_fetcher.cc
|
||||
+++ b/chrome/browser/extensions/blocklist_state_fetcher.cc
|
||||
@@ -75,8 +75,7 @@ void BlocklistStateFetcher::SendRequest(
|
||||
@@ -78,8 +78,7 @@ void BlocklistStateFetcher::SendRequest(
|
||||
std::string request_str;
|
||||
request.SerializeToString(&request_str);
|
||||
|
||||
@@ -211,7 +217,7 @@
|
||||
net::NetworkTrafficAnnotationTag traffic_annotation =
|
||||
net::DefineNetworkTrafficAnnotation("extension_blacklist", R"(
|
||||
semantics {
|
||||
@@ -131,12 +130,6 @@ void BlocklistStateFetcher::SendRequest(
|
||||
@@ -134,12 +133,6 @@ void BlocklistStateFetcher::SendRequest(
|
||||
base::Unretained(this), fetcher));
|
||||
}
|
||||
|
||||
@@ -245,15 +251,15 @@
|
||||
sources = [
|
||||
"chrome_controller_client.cc",
|
||||
"chrome_controller_client.h",
|
||||
@@ -73,6 +74,7 @@ static_library("safe_browsing") {
|
||||
"//mojo/public/cpp/system",
|
||||
@@ -81,6 +82,7 @@ static_library("safe_browsing") {
|
||||
"//services/metrics/public/cpp:ukm_builders",
|
||||
"//services/preferences/public/cpp",
|
||||
]
|
||||
+ }
|
||||
|
||||
if (enable_extensions) {
|
||||
deps += [ "//chrome/browser/ui/web_applications" ]
|
||||
@@ -598,6 +600,7 @@ static_library("advanced_protection") {
|
||||
@@ -616,6 +618,7 @@ static_library("advanced_protection") {
|
||||
}
|
||||
|
||||
source_set("metrics_collector") {
|
||||
@@ -261,7 +267,7 @@
|
||||
sources = [
|
||||
"safe_browsing_metrics_collector_factory.cc",
|
||||
"safe_browsing_metrics_collector_factory.h",
|
||||
@@ -617,6 +620,7 @@ source_set("metrics_collector") {
|
||||
@@ -635,6 +638,7 @@ source_set("metrics_collector") {
|
||||
"//components/safe_browsing/core/common:safe_browsing_prefs",
|
||||
"//content/public/browser",
|
||||
]
|
||||
@@ -271,25 +277,25 @@
|
||||
source_set("unit_tests") {
|
||||
--- a/chrome/browser/ui/views/download/BUILD.gn
|
||||
+++ b/chrome/browser/ui/views/download/BUILD.gn
|
||||
@@ -27,7 +27,6 @@ source_set("download") {
|
||||
"bubble/download_dialog_view.h",
|
||||
"bubble/download_toolbar_ui_controller.cc",
|
||||
"bubble/download_toolbar_ui_controller.h",
|
||||
@@ -6,7 +6,6 @@ assert(is_win || is_mac || is_linux || i
|
||||
|
||||
source_set("download") {
|
||||
sources = [
|
||||
- "download_danger_prompt_views.cc",
|
||||
"download_in_progress_dialog_view.cc",
|
||||
"download_in_progress_dialog_view.h",
|
||||
"download_item_view.cc",
|
||||
]
|
||||
--- a/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc
|
||||
+++ b/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc
|
||||
@@ -25,7 +25,6 @@
|
||||
@@ -24,7 +24,6 @@
|
||||
#include "base/threading/thread.h"
|
||||
#include "base/values.h"
|
||||
#include "chrome/browser/browser_process.h"
|
||||
#include "chrome/browser/download/bubble/download_bubble_ui_controller.h"
|
||||
-#include "chrome/browser/download/download_danger_prompt.h"
|
||||
#include "chrome/browser/download/download_history.h"
|
||||
#include "chrome/browser/download/download_item_model.h"
|
||||
#include "chrome/browser/download/download_item_warning_data.h"
|
||||
@@ -541,12 +540,6 @@ void DownloadsDOMHandler::RemoveDownload
|
||||
@@ -550,12 +549,6 @@ void DownloadsDOMHandler::RemoveDownload
|
||||
IdSet ids;
|
||||
|
||||
for (download::DownloadItem* download : to_remove) {
|
||||
@@ -300,7 +306,7 @@
|
||||
- }
|
||||
-
|
||||
DownloadItemModel item_model(download);
|
||||
if (!item_model.ShouldShowInShelf() ||
|
||||
if (!item_model.ShouldShowInUi() ||
|
||||
download->GetState() == download::DownloadItem::IN_PROGRESS) {
|
||||
--- a/chrome/browser/ui/webui/downloads/downloads_dom_handler.h
|
||||
+++ b/chrome/browser/ui/webui/downloads/downloads_dom_handler.h
|
||||
@@ -314,7 +320,7 @@
|
||||
#include "chrome/browser/ui/webui/downloads/downloads_list_tracker.h"
|
||||
--- a/chrome/renderer/chrome_content_renderer_client.cc
|
||||
+++ b/chrome/renderer/chrome_content_renderer_client.cc
|
||||
@@ -112,7 +112,6 @@
|
||||
@@ -114,7 +114,6 @@
|
||||
#include "components/pdf/common/pdf_util.h"
|
||||
#include "components/permissions/features.h"
|
||||
#include "components/safe_browsing/buildflags.h"
|
||||
+7
-13
@@ -1,7 +1,6 @@
|
||||
|
||||
--- a/chrome/browser/background/extensions/background_mode_manager.cc
|
||||
+++ b/chrome/browser/background/extensions/background_mode_manager.cc
|
||||
@@ -350,7 +350,7 @@ BackgroundModeManager::~BackgroundModeMa
|
||||
@@ -349,7 +349,7 @@ BackgroundModeManager::~BackgroundModeMa
|
||||
|
||||
// static
|
||||
void BackgroundModeManager::RegisterPrefs(PrefRegistrySimple* registry) {
|
||||
@@ -12,7 +11,7 @@
|
||||
void BackgroundModeManager::RegisterProfile(Profile* profile) {
|
||||
--- a/chrome/browser/chrome_content_browser_client.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client.cc
|
||||
@@ -1418,7 +1418,7 @@ void ChromeContentBrowserClient::Registe
|
||||
@@ -1419,7 +1419,7 @@ void ChromeContentBrowserClient::Registe
|
||||
void ChromeContentBrowserClient::RegisterProfilePrefs(
|
||||
user_prefs::PrefRegistrySyncable* registry) {
|
||||
registry->RegisterBooleanPref(prefs::kDisable3DAPIs, false);
|
||||
@@ -23,7 +22,7 @@
|
||||
// used for mapping the command-line flags).
|
||||
--- a/chrome/browser/net/profile_network_context_service.cc
|
||||
+++ b/chrome/browser/net/profile_network_context_service.cc
|
||||
@@ -535,7 +535,7 @@ void ProfileNetworkContextService::Confi
|
||||
@@ -618,7 +618,7 @@ void ProfileNetworkContextService::Confi
|
||||
void ProfileNetworkContextService::RegisterProfilePrefs(
|
||||
user_prefs::PrefRegistrySyncable* registry) {
|
||||
registry->RegisterBooleanPref(embedder_support::kAlternateErrorPagesEnabled,
|
||||
@@ -56,7 +55,7 @@
|
||||
</cr-dialog>
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -113,7 +113,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -128,7 +128,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, true);
|
||||
registry->RegisterBooleanPref(prefs::kWebAppCreateInQuickLaunchBar, true);
|
||||
registry->RegisterBooleanPref(
|
||||
@@ -67,7 +66,7 @@
|
||||
registry->RegisterBooleanPref(prefs::kCloudPrintProxyEnabled, true);
|
||||
--- a/components/autofill/core/common/autofill_prefs.cc
|
||||
+++ b/components/autofill/core/common/autofill_prefs.cc
|
||||
@@ -29,7 +29,7 @@ constexpr char kAutofillRanQuasiDuplicat
|
||||
@@ -31,7 +31,7 @@ constexpr char kAutofillRanQuasiDuplicat
|
||||
void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
|
||||
// Synced prefs. Used for cross-device choices, e.g., credit card Autofill.
|
||||
registry->RegisterBooleanPref(
|
||||
@@ -76,7 +75,7 @@
|
||||
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
|
||||
registry->RegisterIntegerPref(
|
||||
kAutofillLastVersionDeduped, 0,
|
||||
@@ -38,7 +38,7 @@ void RegisterProfilePrefs(user_prefs::Pr
|
||||
@@ -49,7 +49,7 @@ void RegisterProfilePrefs(user_prefs::Pr
|
||||
kAutofillHasSeenIban, false,
|
||||
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
|
||||
registry->RegisterBooleanPref(
|
||||
@@ -109,18 +108,13 @@
|
||||
|
||||
--- a/components/password_manager/core/browser/password_manager.cc
|
||||
+++ b/components/password_manager/core/browser/password_manager.cc
|
||||
@@ -411,7 +411,7 @@ void RecordProvisionalSaveFailure(
|
||||
@@ -544,10 +544,10 @@ PasswordForm CreateFormForLeakCheck(cons
|
||||
void PasswordManager::RegisterProfilePrefs(
|
||||
user_prefs::PrefRegistrySyncable* registry) {
|
||||
registry->RegisterBooleanPref(
|
||||
- prefs::kCredentialsEnableService, true,
|
||||
+ prefs::kCredentialsEnableService, false,
|
||||
user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF);
|
||||
#if BUILDFLAG(IS_IOS)
|
||||
// Deprecated pref in profile prefs.
|
||||
@@ -419,7 +419,7 @@ void PasswordManager::RegisterProfilePre
|
||||
false);
|
||||
#endif // BUILDFLAG(IS_IOS)
|
||||
registry->RegisterBooleanPref(
|
||||
- prefs::kCredentialsEnableAutosignin, true,
|
||||
+ prefs::kCredentialsEnableAutosignin, false,
|
||||
+50
-60
@@ -88,20 +88,9 @@ by default.
|
||||
|
||||
// Return true if the customization was applied. Customization is applied only
|
||||
// once per machine.
|
||||
--- a/chrome/browser/extensions/install_signer.cc
|
||||
+++ b/chrome/browser/extensions/install_signer.cc
|
||||
@@ -63,7 +63,7 @@ const int kSignatureFormatVersion = 2;
|
||||
const size_t kSaltBytes = 32;
|
||||
|
||||
const char kBackendUrl[] =
|
||||
- "https://www.googleapis.com/chromewebstore/v1.1/items/verify";
|
||||
+ "trk:222:https://www.googleapis.com/chromewebstore/v1.1/items/verify";
|
||||
|
||||
const char kPublicKeyPEM[] =
|
||||
"-----BEGIN PUBLIC KEY-----"
|
||||
--- a/chrome/browser/media/webrtc/webrtc_event_log_uploader.cc
|
||||
+++ b/chrome/browser/media/webrtc/webrtc_event_log_uploader.cc
|
||||
@@ -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 +101,7 @@ by default.
|
||||
scoped_refptr<base::SequencedTaskRunner> task_runner)
|
||||
--- a/chrome/browser/media/webrtc/webrtc_log_uploader.cc
|
||||
+++ b/chrome/browser/media/webrtc/webrtc_log_uploader.cc
|
||||
@@ -531,7 +531,7 @@ void WebRtcLogUploader::UploadCompressed
|
||||
@@ -530,7 +530,7 @@ void WebRtcLogUploader::UploadCompressed
|
||||
}
|
||||
})");
|
||||
|
||||
@@ -121,17 +110,6 @@ by default.
|
||||
auto resource_request = std::make_unique<network::ResourceRequest>();
|
||||
resource_request->url = !upload_url_for_testing_.is_empty()
|
||||
? upload_url_for_testing_
|
||||
--- a/chrome/browser/nacl_host/nacl_infobar_delegate.cc
|
||||
+++ b/chrome/browser/nacl_host/nacl_infobar_delegate.cc
|
||||
@@ -33,7 +33,7 @@ std::u16string NaClInfoBarDelegate::GetL
|
||||
}
|
||||
|
||||
GURL NaClInfoBarDelegate::GetLinkURL() const {
|
||||
- return GURL("https://support.google.com/chrome/?p=ib_nacl");
|
||||
+ return GURL("trk:143:https://support.google.com/chrome/?p=ib_nacl");
|
||||
}
|
||||
|
||||
std::u16string NaClInfoBarDelegate::GetMessageText() const {
|
||||
--- a/chrome/browser/profiles/profile_avatar_downloader.cc
|
||||
+++ b/chrome/browser/profiles/profile_avatar_downloader.cc
|
||||
@@ -20,7 +20,7 @@
|
||||
@@ -167,7 +145,7 @@ by default.
|
||||
DownloadFeedbackFactory* DownloadFeedback::factory_ = nullptr;
|
||||
--- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
|
||||
+++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
|
||||
@@ -274,7 +274,7 @@ GURL SpellcheckHunspellDictionary::GetDi
|
||||
@@ -277,7 +277,7 @@ GURL SpellcheckHunspellDictionary::GetDi
|
||||
DCHECK(!bdict_file.empty());
|
||||
|
||||
static const char kDownloadServerUrl[] =
|
||||
@@ -178,7 +156,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.
|
||||
@@ -189,7 +167,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)
|
||||
@@ -213,7 +191,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[] =
|
||||
@@ -247,23 +225,9 @@ by default.
|
||||
|
||||
// This class is a singleton.
|
||||
explicit SimpleGeolocationProvider(
|
||||
--- a/components/drive/service/drive_api_service.cc
|
||||
+++ b/components/drive/service/drive_api_service.cc
|
||||
@@ -79,9 +79,9 @@ namespace drive {
|
||||
namespace {
|
||||
|
||||
// OAuth2 scopes for Drive API.
|
||||
-const char kDriveScope[] = "https://www.googleapis.com/auth/drive";
|
||||
+const char kDriveScope[] = "trk:217:https://www.googleapis.com/auth/drive";
|
||||
const char kDriveAppsReadonlyScope[] =
|
||||
- "https://www.googleapis.com/auth/drive.apps.readonly";
|
||||
+ "trk:218:https://www.googleapis.com/auth/drive.apps.readonly";
|
||||
const char kDriveAppsScope[] = "https://www.googleapis.com/auth/drive.apps";
|
||||
|
||||
// Mime type to create a directory.
|
||||
--- a/components/feedback/feedback_uploader.cc
|
||||
+++ b/components/feedback/feedback_uploader.cc
|
||||
@@ -39,7 +39,7 @@ constexpr base::FilePath::CharType kFeed
|
||||
@@ -40,7 +40,7 @@ constexpr base::FilePath::CharType kFeed
|
||||
FILE_PATH_LITERAL("Feedback Reports");
|
||||
|
||||
constexpr char kFeedbackPostUrl[] =
|
||||
@@ -274,7 +238,7 @@ by default.
|
||||
|
||||
--- a/components/google/core/common/google_util.cc
|
||||
+++ b/components/google/core/common/google_util.cc
|
||||
@@ -147,7 +147,7 @@ bool IsGoogleSearchSubdomainUrl(const GU
|
||||
@@ -150,7 +150,7 @@ BASE_FEATURE(kIsViewerGoogleSearchUrl, b
|
||||
|
||||
// Global functions -----------------------------------------------------------
|
||||
|
||||
@@ -285,13 +249,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";
|
||||
@@ -300,11 +260,15 @@ 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
|
||||
@@ -70,7 +70,7 @@ const int ClientSideDetectionService::kN
|
||||
@@ -68,7 +68,7 @@ const int ClientSideDetectionService::kN
|
||||
const int ClientSideDetectionService::kPositiveCacheIntervalMinutes = 30;
|
||||
|
||||
const char ClientSideDetectionService::kClientReportPhishingUrl[] =
|
||||
@@ -337,9 +301,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_ =
|
||||
@@ -354,8 +318,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 {
|
||||
@@ -380,7 +344,7 @@ by default.
|
||||
|
||||
--- a/content/browser/webauth/webauth_request_security_checker.h
|
||||
+++ b/content/browser/webauth/webauth_request_security_checker.h
|
||||
@@ -90,9 +90,9 @@ class CONTENT_EXPORT WebAuthRequestSecur
|
||||
@@ -85,9 +85,9 @@ class CONTENT_EXPORT WebAuthRequestSecur
|
||||
// Legacy App IDs, which google.com origins are allowed to assert for
|
||||
// compatibility reasons.
|
||||
static constexpr char kGstaticAppId[] =
|
||||
@@ -403,6 +367,17 @@ by default.
|
||||
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
GURL url(base::WideToUTF16(args[0]));
|
||||
--- a/extensions/browser/install_signer.cc
|
||||
+++ b/extensions/browser/install_signer.cc
|
||||
@@ -66,7 +66,7 @@ const int kSignatureFormatVersion = 2;
|
||||
const size_t kSaltBytes = 32;
|
||||
|
||||
const char kBackendUrl[] =
|
||||
- "https://www.googleapis.com/chromewebstore/v1.1/items/verify";
|
||||
+ "trk:222:https://www.googleapis.com/chromewebstore/v1.1/items/verify";
|
||||
|
||||
const char kPublicKeyPEM[] =
|
||||
"-----BEGIN PUBLIC KEY-----"
|
||||
--- a/extensions/common/extension_urls.cc
|
||||
+++ b/extensions/common/extension_urls.cc
|
||||
@@ -38,13 +38,13 @@ const GURL* g_item_snippet_url_for_test_
|
||||
@@ -426,7 +401,7 @@ by default.
|
||||
const char kExtensionsMenuUtmSource[] = "ext_extensions_menu";
|
||||
--- a/google_apis/gaia/gaia_constants.cc
|
||||
+++ b/google_apis/gaia/gaia_constants.cc
|
||||
@@ -14,173 +14,173 @@ const char kChromeSource[] = "ChromiumBr
|
||||
@@ -14,185 +14,185 @@ const char kChromeSource[] = "ChromiumBr
|
||||
const char kUnexpectedServiceResponse[] = "UnexpectedServiceResponse";
|
||||
|
||||
// OAuth scopes.
|
||||
@@ -532,6 +507,11 @@ by default.
|
||||
-const char kTachyonOAuthScope[] = "https://www.googleapis.com/auth/tachyon";
|
||||
+const char kTachyonOAuthScope[] = "trk:087:https://www.googleapis.com/auth/tachyon";
|
||||
|
||||
// OAuth2 scope for School Tools API.
|
||||
const char kSchoolToolsAuthScope[] =
|
||||
- "https://www.googleapis.com/auth/chromeosschooltools";
|
||||
+ "trk:068:https://www.googleapis.com/auth/chromeosschooltools";
|
||||
|
||||
// OAuth2 scope for access to the Photos API.
|
||||
-const char kPhotosOAuth2Scope[] = "https://www.googleapis.com/auth/photos";
|
||||
+const char kPhotosOAuth2Scope[] = "trk:088:https://www.googleapis.com/auth/photos";
|
||||
@@ -577,6 +557,11 @@ by default.
|
||||
-const char kDriveOAuth2Scope[] = "https://www.googleapis.com/auth/drive";
|
||||
+const char kDriveOAuth2Scope[] = "trk:097:https://www.googleapis.com/auth/drive";
|
||||
|
||||
// OAuth2 scope for access to Drive Apps.
|
||||
const char kDriveAppsOAuth2Scope[] =
|
||||
- "https://www.googleapis.com/auth/drive.apps";
|
||||
+ "trk:067:https://www.googleapis.com/auth/drive.apps";
|
||||
|
||||
// OAuth2 scope for access for DriveFS to access flags.
|
||||
const char kExperimentsAndConfigsOAuth2Scope[] =
|
||||
- "https://www.googleapis.com/auth/experimentsandconfigs";
|
||||
@@ -602,6 +587,11 @@ by default.
|
||||
- "https://www.googleapis.com/auth/nearbydevices-pa";
|
||||
+ "trk:100:https://www.googleapis.com/auth/nearbydevices-pa";
|
||||
|
||||
// OAuth2 scope for access to readonly Drive Apps.
|
||||
const char kDriveAppsReadonlyOAuth2Scope[] =
|
||||
- "https://www.googleapis.com/auth/drive.apps.readonly";
|
||||
+ "trk:066:https://www.googleapis.com/auth/drive.apps.readonly";
|
||||
|
||||
// OAuth2 scope for access to nearby sharing.
|
||||
const char kNearbyShareOAuth2Scope[] =
|
||||
- "https://www.googleapis.com/auth/nearbysharing-pa";
|
||||
@@ -648,7 +638,7 @@ by default.
|
||||
const char kFeedOAuth2Scope[] = "https://www.googleapis.com/auth/googlenow";
|
||||
--- a/google_apis/gaia/gaia_urls.cc
|
||||
+++ b/google_apis/gaia/gaia_urls.cc
|
||||
@@ -24,6 +24,7 @@
|
||||
@@ -25,6 +25,7 @@
|
||||
namespace {
|
||||
|
||||
// Gaia service constants
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
From 7134d5fd762237ad2d80093b68ccbd1582476640 Mon Sep 17 00:00:00 2001
|
||||
From: Joachim Bauch <jojo@struktur.de>
|
||||
Date: Thu, 25 Jun 2015 15:51:59 +0200
|
||||
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
|
||||
@@ -1793,30 +1793,6 @@ int ChromeBrowserMainParts::PreMainMessa
|
||||
// and preferences have been registered since some of the import code depends
|
||||
// on preferences.
|
||||
if (first_run::IsChromeFirstRun()) {
|
||||
- // `profile` may be nullptr even on first run, for example when the
|
||||
- // "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.
|
||||
first_run::DoPostImportTasks(master_prefs_->make_chrome_default_for_user);
|
||||
+34
-8
@@ -1,3 +1,14 @@
|
||||
From c89ce946e5328ca8a7df923d421e904bb6bfe9b6 Mon Sep 17 00:00:00 2001
|
||||
From: Jan Engelhardt <jengelh@inai.de>
|
||||
Date: Tue, 7 Jul 2015 18:28:46 +0200
|
||||
Subject: [PATCH 63/76] safe_browsing: disable reporting of safebrowsing
|
||||
override
|
||||
|
||||
Disables reporting of the safebrowsing override, i.e. the report sent
|
||||
if a user decides to visit a page that was flagged as "insecure".
|
||||
This prevents trk:148 (phishing) and trk:149 (malware).
|
||||
---
|
||||
|
||||
From 4dfa8ed0814040317cb82d8545502186daa0a204 Mon Sep 17 00:00:00 2001
|
||||
From: Jan Engelhardt <jengelh@inai.de>
|
||||
Date: Tue, 7 Jul 2015 17:02:09 +0200
|
||||
@@ -7,16 +18,31 @@ Disables the safebrowsing incident reporting where you could upload
|
||||
information about a blocked URL to Google (also added a trk prefix to
|
||||
the URL so we get notified if this happens again in the future).
|
||||
---
|
||||
.../incident_reporting/incident_report_uploader_impl.cc | 2 +-
|
||||
.../incident_reporting/incident_reporting_service.cc | 3 +++
|
||||
chrome/browser/safe_browsing/safe_browsing_blocking_page.cc | 3 +--
|
||||
chrome/browser/safe_browsing/safe_browsing_service.cc | 2 +-
|
||||
.../security_interstitials/core/safe_browsing_loud_error_ui.cc | 1 +
|
||||
5 files changed, 7 insertions(+), 4 deletions(-)
|
||||
|
||||
--- a/components/safe_browsing/content/browser/client_side_detection_service.cc
|
||||
+++ b/components/safe_browsing/content/browser/client_side_detection_service.cc
|
||||
@@ -281,6 +281,10 @@ void ClientSideDetectionService::StartCl
|
||||
return;
|
||||
}
|
||||
|
||||
+#if 1
|
||||
+ if (!callback.is_null())
|
||||
+ std::move(callback).Run(GURL(request->url()), false, std::nullopt, std::nullopt);
|
||||
+#else
|
||||
std::string request_data;
|
||||
request->SerializeToString(&request_data);
|
||||
|
||||
@@ -363,6 +367,7 @@ void ClientSideDetectionService::StartCl
|
||||
&WebUIContentInfoSingleton::AddToClientPhishingRequestsSent,
|
||||
base::Unretained(WebUIContentInfoSingleton::GetInstance()),
|
||||
std::move(request), access_token));
|
||||
+#endif
|
||||
}
|
||||
|
||||
void ClientSideDetectionService::HandlePhishingVerdict(
|
||||
--- a/chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc
|
||||
+++ b/chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc
|
||||
@@ -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 +65,7 @@ the URL so we get notified if this happens again in the future).
|
||||
kSafeBrowsingIncidentTrafficAnnotation =
|
||||
--- a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
|
||||
+++ b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
|
||||
@@ -303,11 +303,14 @@ IncidentReportingService::UploadContext:
|
||||
@@ -302,11 +302,14 @@ IncidentReportingService::UploadContext:
|
||||
|
||||
// static
|
||||
bool IncidentReportingService::IsEnabledForProfile(Profile* profile) {
|
||||
+1
-1
@@ -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
|
||||
@@ -1075,7 +1075,7 @@ class AppControllerNativeThemeObserver :
|
||||
@@ -1098,7 +1098,7 @@ class AppControllerNativeThemeObserver :
|
||||
CFStringRef checkInterval = CFSTR("checkInterval");
|
||||
CFPropertyListRef plist = CFPreferencesCopyAppValue(checkInterval, app);
|
||||
if (!plist) {
|
||||
+25
-18
@@ -41,26 +41,33 @@
|
||||
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
--- a/tools/licenses/licenses.py
|
||||
+++ b/tools/licenses/licenses.py
|
||||
@@ -1015,6 +1015,16 @@ def GenerateCredits(file_template_file,
|
||||
entries.append(
|
||||
MetadataToTemplateEntry(chromium_license_metadata, entry_template))
|
||||
@@ -52,6 +52,14 @@ _CHROMIUM_LICENSE_METADATA = {
|
||||
'dir': '', # Relative to _REPOSITORY_ROOT
|
||||
}
|
||||
|
||||
+ ugc_license_metadata = {
|
||||
+ 'Name': 'ungoogled-chromium',
|
||||
+ 'URL': 'https://github.com/ungoogled-software/ungoogled-chromium',
|
||||
+ 'Shipped': 'yes',
|
||||
+ 'License File': [os.path.join(_REPOSITORY_ROOT, 'third_party', 'ungoogled-chromium', 'LICENSE')],
|
||||
+ }
|
||||
+_UGC_LICENSE_METADATA = {
|
||||
+ 'Name': 'ungoogled-chromium',
|
||||
+ 'URL': 'https://github.com/ungoogled-software/ungoogled-chromium',
|
||||
+ 'License': 'BSD-3-Clause',
|
||||
+ 'Shipped': 'yes',
|
||||
+ 'License File': [os.path.join(_REPOSITORY_ROOT, 'third_party', 'ungoogled-chromium', 'LICENSE')],
|
||||
+}
|
||||
+
|
||||
+ entries.append(
|
||||
+ MetadataToTemplateEntry(ugc_license_metadata, entry_template))
|
||||
+
|
||||
entries_by_name = {}
|
||||
for path in third_party_dirs:
|
||||
try:
|
||||
@@ -1059,8 +1069,8 @@ def GenerateCredits(file_template_file,
|
||||
reciprocal_template = codecs.open(reciprocal_template_file,
|
||||
encoding='utf-8').read()
|
||||
# Paths from the root of the tree to directories to skip.
|
||||
PRUNE_PATHS = set([
|
||||
# Placeholder directory only, not third-party code.
|
||||
@@ -1008,7 +1016,7 @@ def _DiscoverMetadatas(args):
|
||||
LogParseDirErrors(errors)
|
||||
|
||||
metadatas.sort(key=lambda m: (m['Name'].lower(), m['dir']))
|
||||
- metadatas = [_CHROMIUM_LICENSE_METADATA] + metadatas
|
||||
+ metadatas = [_CHROMIUM_LICENSE_METADATA] + [_UGC_LICENSE_METADATA] + metadatas
|
||||
return metadatas, had_errors
|
||||
|
||||
|
||||
@@ -1085,8 +1093,8 @@ def GenerateCredits(args, metadatas):
|
||||
entries_contents = '\n'.join([entry['content'] for entry in entries])
|
||||
|
||||
reciprocal_contents = EvaluateTemplate(reciprocal_template, {
|
||||
- 'opensource_project': 'Chromium',
|
||||
- 'opensource_link': 'https://source.chromium.org/chromium'
|
||||
+14
-6
@@ -1,16 +1,24 @@
|
||||
--- a/chrome/browser/ui/browser.cc
|
||||
+++ b/chrome/browser/ui/browser.cc
|
||||
@@ -3825,6 +3825,10 @@ void Browser::UpdateBookmarkBarState(Boo
|
||||
--- a/chrome/browser/ui/bookmarks/bookmark_bar_controller.cc
|
||||
+++ b/chrome/browser/ui/bookmarks/bookmark_bar_controller.cc
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "chrome/browser/ui/bookmarks/bookmark_bar_controller.h"
|
||||
|
||||
+#include "base/command_line.h"
|
||||
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
|
||||
#include "chrome/browser/browser_features.h"
|
||||
#include "chrome/browser/defaults.h"
|
||||
@@ -139,6 +140,10 @@ void BookmarkBarController::OnSplitTabCh
|
||||
}
|
||||
|
||||
bool Browser::ShouldShowBookmarkBar() const {
|
||||
bool BookmarkBarController::ShouldShowBookmarkBar() const {
|
||||
+ if (base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("bookmark-bar-ntp") == "never") {
|
||||
+ return false;
|
||||
+ }
|
||||
+
|
||||
if (profile_->IsGuestSession()) {
|
||||
Profile* profile = browser_->GetProfile();
|
||||
if (profile->IsGuestSession()) {
|
||||
return false;
|
||||
}
|
||||
--- a/chrome/browser/ungoogled_flag_choices.h
|
||||
+++ b/chrome/browser/ungoogled_flag_choices.h
|
||||
@@ -34,4 +34,10 @@ const FeatureEntry::Choice kScrollEventC
|
||||
+25
-25
@@ -1,22 +1,22 @@
|
||||
--- a/chrome/browser/ui/browser.cc
|
||||
+++ b/chrome/browser/ui/browser.cc
|
||||
@@ -140,6 +140,7 @@
|
||||
#include "chrome/browser/ui/unload_controller.h"
|
||||
@@ -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"
|
||||
@@ -658,6 +659,7 @@ Browser::Browser(const CreateParams& par
|
||||
omit_from_session_restore_(params.omit_from_session_restore),
|
||||
#include "chrome/browser/ui/webui/signin/login_ui_service.h"
|
||||
@@ -588,6 +589,7 @@ Browser::Browser(const CreateParams& par
|
||||
should_trigger_session_restore_(params.should_trigger_session_restore),
|
||||
cancel_download_confirmation_state_(NOT_PROMPTED),
|
||||
+ close_multitab_confirmation_state_(NOT_PROMPTED),
|
||||
cancel_download_confirmation_state_(
|
||||
CancelDownloadConfirmationState::kNotPrompted),
|
||||
+ close_multitab_confirmation_state_(CancelDownloadConfirmationState::kNotPrompted),
|
||||
override_bounds_(params.initial_bounds),
|
||||
initial_show_state_(params.initial_show_state),
|
||||
initial_workspace_(params.initial_workspace),
|
||||
@@ -1073,20 +1075,22 @@ Browser::WarnBeforeClosingResult Browser
|
||||
@@ -973,20 +975,22 @@ Browser::WarnBeforeClosingResult Browser
|
||||
return WarnBeforeClosingResult::kOkToClose;
|
||||
}
|
||||
|
||||
@@ -52,15 +52,15 @@
|
||||
}
|
||||
|
||||
DCHECK(!warn_before_closing_callback_)
|
||||
@@ -1124,6 +1128,7 @@ bool Browser::TryToCloseWindow(
|
||||
|
||||
@@ -1040,6 +1044,7 @@ bool Browser::TryToCloseWindow(
|
||||
void Browser::ResetTryToCloseWindow() {
|
||||
cancel_download_confirmation_state_ = NOT_PROMPTED;
|
||||
+ close_multitab_confirmation_state_ = NOT_PROMPTED;
|
||||
cancel_download_confirmation_state_ =
|
||||
CancelDownloadConfirmationState::kNotPrompted;
|
||||
+ close_multitab_confirmation_state_ = CancelDownloadConfirmationState::kNotPrompted;
|
||||
unload_controller_.ResetTryToCloseWindow();
|
||||
}
|
||||
|
||||
@@ -3543,6 +3548,58 @@ bool Browser::CanCloseWithInProgressDown
|
||||
@@ -3498,6 +3503,58 @@ bool Browser::CanCloseWithInProgressDown
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -70,8 +70,8 @@
|
||||
+
|
||||
+ // If we've prompted, we need to hear from the user before we
|
||||
+ // can close.
|
||||
+ if (close_multitab_confirmation_state_ != NOT_PROMPTED)
|
||||
+ return close_multitab_confirmation_state_ != WAITING_FOR_RESPONSE;
|
||||
+ if (close_multitab_confirmation_state_ != CancelDownloadConfirmationState::kNotPrompted)
|
||||
+ return close_multitab_confirmation_state_ != CancelDownloadConfirmationState::kWaitingForResponse;
|
||||
+
|
||||
+ // If we're not running a full browser process with a profile manager
|
||||
+ // (testing), it's ok to close the browser.
|
||||
@@ -102,7 +102,7 @@
|
||||
+ tab_strip_model_delegate_->AddTabAt(GURL(), -1, true);
|
||||
+ }
|
||||
+
|
||||
+ close_multitab_confirmation_state_ = WAITING_FOR_RESPONSE;
|
||||
+ close_multitab_confirmation_state_ = CancelDownloadConfirmationState::kWaitingForResponse;
|
||||
+
|
||||
+ auto callback = base::BindOnce(&Browser::MultitabResponse,
|
||||
+ weak_factory_.GetWeakPtr());
|
||||
@@ -118,8 +118,8 @@
|
||||
+
|
||||
void Browser::InProgressDownloadResponse(bool cancel_downloads) {
|
||||
if (cancel_downloads) {
|
||||
cancel_download_confirmation_state_ = RESPONSE_RECEIVED;
|
||||
@@ -3568,6 +3625,22 @@ void Browser::InProgressDownloadResponse
|
||||
cancel_download_confirmation_state_ =
|
||||
@@ -3526,6 +3583,22 @@ void Browser::InProgressDownloadResponse
|
||||
|
||||
std::move(warn_before_closing_callback_)
|
||||
.Run(WarnBeforeClosingResult::kDoNotClose);
|
||||
@@ -127,15 +127,15 @@
|
||||
+
|
||||
+void Browser::MultitabResponse(chrome::MessageBoxResult result) {
|
||||
+ if (result == chrome::MESSAGE_BOX_RESULT_YES) {
|
||||
+ close_multitab_confirmation_state_ = RESPONSE_RECEIVED;
|
||||
+ close_multitab_confirmation_state_ = CancelDownloadConfirmationState::kResponseReceived;
|
||||
+ std::move(warn_before_closing_callback_)
|
||||
+ .Run(WarnBeforeClosingResult::kOkToClose);
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ // Sets the confirmation state to NOT_PROMPTED so that if the user tries to
|
||||
+ // Sets the confirmation state to kNotPrompted so that if the user tries to
|
||||
+ // close again we'll show the warning again.
|
||||
+ close_multitab_confirmation_state_ = NOT_PROMPTED;
|
||||
+ close_multitab_confirmation_state_ = CancelDownloadConfirmationState::kNotPrompted;
|
||||
+
|
||||
+ std::move(warn_before_closing_callback_)
|
||||
+ .Run(WarnBeforeClosingResult::kDoNotClose);
|
||||
@@ -144,15 +144,15 @@
|
||||
void Browser::CookieMigrationNoticeResponse(bool proceed_closing) {
|
||||
--- a/chrome/browser/ui/browser.h
|
||||
+++ b/chrome/browser/ui/browser.h
|
||||
@@ -32,6 +32,7 @@
|
||||
#include "chrome/browser/ui/browser_window/public/browser_window_interface.h"
|
||||
@@ -33,6 +33,7 @@
|
||||
#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"
|
||||
@@ -1204,12 +1205,17 @@ class Browser : public TabStripModelObse
|
||||
@@ -1136,12 +1137,17 @@ class Browser : public TabStripModelObse
|
||||
// Returns true if the window can close, false otherwise.
|
||||
bool CanCloseWithInProgressDownloads();
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
// Called when the user has decided whether to proceed or not with the browser
|
||||
// closure, in case the cookie migration notice was shown. |proceed_closing|
|
||||
// is true if the browser can be closed.
|
||||
@@ -1389,6 +1395,8 @@ class Browser : public TabStripModelObse
|
||||
@@ -1317,6 +1323,8 @@ class Browser : public TabStripModelObse
|
||||
// when the browser is closed with in-progress downloads.
|
||||
CancelDownloadConfirmationState cancel_download_confirmation_state_;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/chrome_content_browser_client.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client.cc
|
||||
@@ -833,11 +833,15 @@ bool HandleNewTabPageLocationOverride(
|
||||
@@ -800,11 +800,15 @@ bool HandleNewTabPageLocationOverride(
|
||||
|
||||
// Don't change the URL when incognito mode.
|
||||
if (profile->IsOffTheRecord()) {
|
||||
@@ -29,7 +29,7 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/components/webui/flags/flags_state.cc
|
||||
+++ b/components/webui/flags/flags_state.cc
|
||||
@@ -234,6 +234,7 @@ std::string GetCombinedOriginListValue(c
|
||||
@@ -233,6 +233,7 @@ std::string GetCombinedOriginListValue(c
|
||||
command_line.GetSwitchValueASCII(command_line_switch);
|
||||
const std::string new_value =
|
||||
flags_storage.GetOriginListFlag(internal_entry_name);
|
||||
@@ -37,7 +37,7 @@
|
||||
return CombineAndSanitizeOriginLists(existing_value, new_value);
|
||||
}
|
||||
|
||||
@@ -484,6 +485,7 @@ void FlagsState::SetOriginListFlag(const
|
||||
@@ -483,6 +484,7 @@ void FlagsState::SetOriginListFlag(const
|
||||
const std::string& value,
|
||||
FlagsStorage* flags_storage) {
|
||||
const std::string new_value =
|
||||
+5
-5
@@ -11,7 +11,7 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/third_party/blink/common/features.cc
|
||||
+++ b/third_party/blink/common/features.cc
|
||||
@@ -19,6 +19,8 @@
|
||||
@@ -20,6 +20,8 @@
|
||||
|
||||
namespace blink::features {
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
#include "third_party/blink/public/common/input/web_menu_source_type.h"
|
||||
#include "third_party/blink/public/platform/web_input_event_result.h"
|
||||
#include "third_party/blink/renderer/core/annotation/annotation_agent_impl.h"
|
||||
@@ -1437,10 +1438,14 @@ FrameSelection& SelectionController::Sel
|
||||
@@ -1441,10 +1442,14 @@ FrameSelection& SelectionController::Sel
|
||||
}
|
||||
|
||||
bool IsSelectionOverLink(const MouseEventWithHitTestResults& event) {
|
||||
@@ -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"
|
||||
@@ -632,8 +633,14 @@ WebInputEventResult MouseEventManager::H
|
||||
@@ -622,8 +623,14 @@ WebInputEventResult MouseEventManager::H
|
||||
|
||||
bool single_click = event.Event().click_count <= 1;
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/frame/tab_strip_region_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/tab_strip_region_view.cc
|
||||
@@ -75,6 +75,7 @@ class FrameGrabHandle : public views::Vi
|
||||
@@ -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.
|
||||
+6
-6
@@ -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
|
||||
@@ -605,5 +605,7 @@ bool BrowserWidget::RegenerateFrameOnThe
|
||||
}
|
||||
|
||||
bool BrowserFrame::IsIncognitoBrowser() const {
|
||||
bool BrowserWidget::IsIncognitoBrowser() const {
|
||||
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("enable-incognito-themes"))
|
||||
+ return false;
|
||||
return browser_view_->browser()->profile()->IsIncognitoProfile();
|
||||
}
|
||||
--- 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"
|
||||
|
||||
@@ -468,7 +469,9 @@ void NTPResourceCache::CreateNewTabIncog
|
||||
@@ -392,7 +393,9 @@ void NTPResourceCache::CreateNewTabIncog
|
||||
profile_->GetPrefs()->GetString(prefs::kCurrentThemeID);
|
||||
|
||||
// Colors.
|
||||
+12
-12
@@ -33,7 +33,7 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/components/omnibox/browser/autocomplete_controller.cc
|
||||
+++ b/components/omnibox/browser/autocomplete_controller.cc
|
||||
@@ -22,6 +22,7 @@
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#include "base/check_op.h"
|
||||
#include "base/containers/contains.h"
|
||||
@@ -41,18 +41,18 @@
|
||||
#include "base/feature_list.h"
|
||||
#include "base/format_macros.h"
|
||||
#include "base/functional/bind.h"
|
||||
@@ -569,6 +570,15 @@ AutocompleteController::AutocompleteCont
|
||||
steady_state_omnibox_position_(
|
||||
metrics::OmniboxEventProto::UNKNOWN_POSITION) {
|
||||
provider_types &= ~OmniboxFieldTrial::GetDisabledProviderTypes();
|
||||
@@ -558,6 +559,15 @@ AutocompleteController::AutocompleteCont
|
||||
metrics::OmniboxEventProto::UNKNOWN_POSITION),
|
||||
config_(config) {
|
||||
config_.provider_types &= ~OmniboxFieldTrial::GetDisabledProviderTypes();
|
||||
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("omnibox-autocomplete-filtering")) {
|
||||
+ const std::string flag_value = base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("omnibox-autocomplete-filtering");
|
||||
+ provider_types &= AutocompleteProvider::TYPE_KEYWORD | AutocompleteProvider::TYPE_SEARCH |
|
||||
+ config_.provider_types &= AutocompleteProvider::TYPE_KEYWORD | AutocompleteProvider::TYPE_SEARCH |
|
||||
+ AutocompleteProvider::TYPE_HISTORY_URL | AutocompleteProvider::TYPE_BOOKMARK | AutocompleteProvider::TYPE_BUILTIN;
|
||||
+ if (!base::Contains(flag_value, "bookmarks"))
|
||||
+ provider_types &= ~AutocompleteProvider::TYPE_BOOKMARK;
|
||||
+ config_.provider_types &= ~AutocompleteProvider::TYPE_BOOKMARK;
|
||||
+ if (!base::Contains(flag_value, "chrome"))
|
||||
+ provider_types &= ~AutocompleteProvider::TYPE_BUILTIN;
|
||||
+ config_.provider_types &= ~AutocompleteProvider::TYPE_BUILTIN;
|
||||
+ }
|
||||
|
||||
// Providers run in the order they're added. Async providers should run first
|
||||
@@ -79,7 +79,7 @@
|
||||
#include "base/feature_list.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/functional/callback.h"
|
||||
@@ -631,6 +632,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()) {
|
||||
+12
-9
@@ -1,14 +1,14 @@
|
||||
--- a/chrome/browser/ui/qrcode_generator/qrcode_generator_bubble_controller.cc
|
||||
+++ b/chrome/browser/ui/qrcode_generator/qrcode_generator_bubble_controller.cc
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "chrome/browser/ui/sharing_hub/sharing_hub_bubble_controller.h"
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "chrome/common/pref_names.h"
|
||||
#include "components/prefs/pref_change_registrar.h"
|
||||
#include "components/prefs/pref_service.h"
|
||||
+#include "components/sharing_message/features.h"
|
||||
#include "content/public/browser/web_contents.h"
|
||||
#include "url/gurl.h"
|
||||
|
||||
@@ -37,7 +38,7 @@ QRCodeGeneratorBubbleController::~QRCode
|
||||
@@ -38,7 +39,7 @@ QRCodeGeneratorBubbleController::~QRCode
|
||||
|
||||
// static
|
||||
bool QRCodeGeneratorBubbleController::IsGeneratorAvailable(const GURL& url) {
|
||||
@@ -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 @@
|
||||
@@ -7,6 +7,8 @@
|
||||
#include "build/build_config.h"
|
||||
#include "components/sync_preferences/features.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_
|
||||
+13
-13
@@ -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
|
||||
@@ -573,7 +573,9 @@ void TabHelpers::AttachTabHelpers(WebCon
|
||||
profile, web_contents);
|
||||
#endif // BUILDFLAG(SAFE_BROWSING_AVAILABLE)
|
||||
SafetyTipWebContentsObserver::CreateForWebContents(web_contents);
|
||||
@@ -25,7 +25,7 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/chrome/renderer/chrome_render_frame_observer.cc
|
||||
+++ b/chrome/renderer/chrome_render_frame_observer.cc
|
||||
@@ -258,14 +258,16 @@ void ChromeRenderFrameObserver::DidFinis
|
||||
@@ -273,14 +273,16 @@ void ChromeRenderFrameObserver::DidFinis
|
||||
if (frame->Parent() || frame->IsInFencedFrameTree())
|
||||
return;
|
||||
|
||||
@@ -60,8 +60,8 @@
|
||||
#include "base/containers/contains.h"
|
||||
#include "base/containers/fixed_flat_map.h"
|
||||
#include "base/containers/flat_map.h"
|
||||
@@ -370,6 +371,12 @@ bool ShouldCommitUpdateToAccount(
|
||||
return account_data_changed;
|
||||
@@ -402,6 +403,12 @@ bool IsGoogleAiModeUrl(GURL url) {
|
||||
google_util::DISALLOW_NON_STANDARD_PORTS);
|
||||
}
|
||||
|
||||
+bool ShouldAutocollect() {
|
||||
@@ -73,7 +73,7 @@
|
||||
} // namespace
|
||||
|
||||
// TemplateURLService::LessWithPrefix -----------------------------------------
|
||||
@@ -550,6 +557,7 @@ TemplateURLService::TemplateURLService(
|
||||
@@ -581,6 +588,7 @@ TemplateURLService::TemplateURLService(
|
||||
std::unique_ptr<TemplateURLServiceClient> client,
|
||||
const base::RepeatingClosure& dsp_change_callback)
|
||||
: prefs_(prefs),
|
||||
@@ -81,18 +81,18 @@
|
||||
search_engine_choice_service_(search_engine_choice_service),
|
||||
prepopulate_data_resolver_(prepopulate_data_resolver),
|
||||
search_terms_data_(std::move(search_terms_data)),
|
||||
@@ -655,8 +663,8 @@ bool TemplateURLService::CanAddAutogener
|
||||
@@ -664,8 +672,8 @@ bool TemplateURLService::CanAddAutogener
|
||||
// that may interfere with search queries). An easy heuristic for this is
|
||||
// whether the user has a TemplateURL that has been manually modified (e.g.,
|
||||
// renamed) connected to the same host.
|
||||
- return !url.is_valid() || url.host().empty() ||
|
||||
- CanAddAutogeneratedKeywordForHost(url.host());
|
||||
+ return should_autocollect_ && (!url.is_valid() || url.host().empty() ||
|
||||
+ CanAddAutogeneratedKeywordForHost(url.host()));
|
||||
- return !url.is_valid() || url.GetHost().empty() ||
|
||||
- CanAddAutogeneratedKeywordForHost(url.GetHost());
|
||||
+ return should_autocollect_ && (!url.is_valid() || url.GetHost().empty() ||
|
||||
+ CanAddAutogeneratedKeywordForHost(url.GetHost()));
|
||||
}
|
||||
|
||||
bool TemplateURLService::IsPrepopulatedOrDefaultProviderByPolicy(
|
||||
@@ -2480,6 +2488,8 @@ SyncDataMap TemplateURLService::CreateGU
|
||||
@@ -2492,6 +2500,8 @@ SyncDataMap TemplateURLService::CreateGU
|
||||
}
|
||||
|
||||
void TemplateURLService::Init() {
|
||||
@@ -101,7 +101,7 @@
|
||||
if (client_) {
|
||||
client_->SetOwner(this);
|
||||
}
|
||||
@@ -2662,6 +2672,9 @@ void TemplateURLService::ChangeToLoadedS
|
||||
@@ -2657,6 +2667,9 @@ void TemplateURLService::ChangeToLoadedS
|
||||
|
||||
bool TemplateURLService::CanAddAutogeneratedKeywordForHost(
|
||||
const std::string& host) const {
|
||||
@@ -113,7 +113,7 @@
|
||||
return true;
|
||||
--- a/components/search_engines/template_url_service.h
|
||||
+++ b/components/search_engines/template_url_service.h
|
||||
@@ -908,6 +908,8 @@ class TemplateURLService final : public
|
||||
@@ -912,6 +912,8 @@ class TemplateURLService final : public
|
||||
|
||||
raw_ref<TemplateURLPrepopulateData::Resolver> prepopulate_data_resolver_;
|
||||
|
||||
+3
-3
@@ -8,7 +8,7 @@
|
||||
#include "base/debug/alias.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/i18n/rtl.h"
|
||||
@@ -741,6 +742,13 @@ void Tab::HideHover(TabStyle::HideHoverS
|
||||
@@ -763,6 +764,13 @@ void Tab::HideHover(TabStyle::HideHoverS
|
||||
DeprecatedLayoutImmediately();
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// BrowserView::GetAccessibleTabLabel to get the updated accessible name.
|
||||
--- a/chrome/browser/ui/views/tabs/tab.h
|
||||
+++ b/chrome/browser/ui/views/tabs/tab.h
|
||||
@@ -98,6 +98,7 @@ class Tab : public gfx::AnimationDelegat
|
||||
@@ -100,6 +100,7 @@ class Tab : public gfx::AnimationDelegat
|
||||
void OnMouseEntered(const ui::MouseEvent& event) override;
|
||||
void OnMouseExited(const ui::MouseEvent& event) override;
|
||||
void OnGestureEvent(ui::GestureEvent* event) override;
|
||||
@@ -42,7 +42,7 @@
|
||||
#include "base/check.h"
|
||||
#include "base/compiler_specific.h"
|
||||
#include "base/containers/adapters.h"
|
||||
@@ -1960,6 +1961,8 @@ void TabStrip::OnMouseEventInTab(views::
|
||||
@@ -1995,6 +1996,8 @@ void TabStrip::OnMouseEventInTab(views::
|
||||
}
|
||||
|
||||
void TabStrip::UpdateHoverCard(Tab* tab, HoverCardUpdateType update_type) {
|
||||
+24
-14
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/browser_command_controller.cc
|
||||
+++ b/chrome/browser/ui/browser_command_controller.cc
|
||||
@@ -1558,7 +1558,8 @@ void BrowserCommandController::InitComma
|
||||
@@ -1644,7 +1644,8 @@ void BrowserCommandController::InitComma
|
||||
command_updater_.UpdateCommandEnabled(IDC_WINDOW_CLOSE_OTHER_TABS,
|
||||
normal_window);
|
||||
|
||||
@@ -12,10 +12,18 @@
|
||||
command_updater_.UpdateCommandEnabled(IDC_TAB_SEARCH_CLOSE,
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -388,6 +388,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"
|
||||
@@ -656,6 +657,10 @@ static std::string GetCountryCode() {
|
||||
}
|
||||
|
||||
bool IsTabSearchMoving() {
|
||||
bool HasTabSearchToolbarButton() {
|
||||
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button")) {
|
||||
+ return false;
|
||||
+ }
|
||||
@@ -25,14 +33,16 @@
|
||||
base::FeatureList::IsEnabled(
|
||||
--- a/chrome/browser/ui/views/frame/browser_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_view.cc
|
||||
@@ -5272,6 +5272,7 @@ void BrowserView::AddedToWidget() {
|
||||
@@ -4475,6 +4475,9 @@ BookmarkBar::State BrowserView::bookmark
|
||||
}
|
||||
|
||||
toolbar_->Init();
|
||||
|
||||
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button"))
|
||||
if (GetIsNormalType()) {
|
||||
if (features::HasTabSearchToolbarButton()) {
|
||||
tab_search_bubble_host_ = std::make_unique<TabSearchBubbleHost>(
|
||||
void BrowserView::UpdateTabSearchBubbleHost() {
|
||||
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button")) {
|
||||
+ return;
|
||||
+ }
|
||||
if (!GetIsNormalType()) {
|
||||
return;
|
||||
}
|
||||
--- a/chrome/browser/ui/views/frame/tab_strip_region_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/tab_strip_region_view.cc
|
||||
@@ -4,6 +4,7 @@
|
||||
@@ -43,14 +53,14 @@
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
#include "base/task/single_thread_task_runner.h"
|
||||
@@ -119,6 +120,7 @@ TabStripRegionView::TabStripRegionView(s
|
||||
std::unique_ptr<TabStripComboButton> tab_strip_combo_button;
|
||||
@@ -209,6 +210,7 @@ TabStripRegionView::TabStripRegionView(s
|
||||
std::unique_ptr<TabStripActionContainer> tab_strip_action_container;
|
||||
std::unique_ptr<ProductSpecificationsButton> product_specifications_button;
|
||||
if (browser &&
|
||||
+ !base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button") &&
|
||||
(browser->GetType() == BrowserWindowInterface::Type::TYPE_NORMAL)) {
|
||||
if (features::IsTabSearchMoving() &&
|
||||
!features::HasTabSearchToolbarButton() &&
|
||||
if (features::HasTabSearchToolbarButton()) {
|
||||
tab_strip_action_container = std::make_unique<TabStripActionContainer>(
|
||||
--- a/chrome/browser/ungoogled_flag_entries.h
|
||||
+++ b/chrome/browser/ungoogled_flag_entries.h
|
||||
@@ -60,4 +60,8 @@
|
||||
+2
-2
@@ -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 :
|
||||
+4
-4
@@ -1,14 +1,14 @@
|
||||
--- a/chrome/browser/browser_features.cc
|
||||
+++ b/chrome/browser/browser_features.cc
|
||||
@@ -359,4 +359,5 @@ BASE_FEATURE(kRemovalOfIWAsFromTabCaptur
|
||||
"RemovalOfIWAsFromTabCapture",
|
||||
base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
@@ -302,4 +302,5 @@ BASE_FEATURE(kReportPakFileIntegrity,
|
||||
// show both in Chrome Tabs and Windows.
|
||||
BASE_FEATURE(kRemovalOfIWAsFromTabCapture, base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
+BASE_FEATURE(kClearDataOnExit, "ClearDataOnExit", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
} // namespace features
|
||||
--- a/chrome/browser/browser_features.h
|
||||
+++ b/chrome/browser/browser_features.h
|
||||
@@ -135,6 +135,7 @@ BASE_DECLARE_FEATURE(kRemovalOfIWAsFromT
|
||||
@@ -122,6 +122,7 @@ BASE_DECLARE_FEATURE(kRemovalOfIWAsFromT
|
||||
// module, e.g.
|
||||
// //chrome/browser/<foo_module>/features.h
|
||||
//
|
||||
+2
-2
@@ -8,7 +8,7 @@
|
||||
#include "base/containers/adapters.h"
|
||||
#include "base/containers/flat_map.h"
|
||||
#include "base/containers/span.h"
|
||||
@@ -1165,6 +1166,10 @@ void TabStripModel::CloseAllTabsInGroup(
|
||||
@@ -1230,6 +1231,10 @@ void TabStripModel::CloseAllTabsInGroup(
|
||||
|
||||
void TabStripModel::CloseWebContentsAt(int index, uint32_t close_types) {
|
||||
CHECK(ContainsIndex(index));
|
||||
@@ -19,7 +19,7 @@
|
||||
CloseTabs({GetWebContentsAt(index)}, close_types);
|
||||
}
|
||||
|
||||
@@ -2827,9 +2832,13 @@ TabStripModel::GetGroupsDestroyedFromRem
|
||||
@@ -3088,9 +3093,13 @@ TabStripModel::GetGroupsDestroyedFromRem
|
||||
void TabStripModel::ExecuteCloseTabsByIndices(
|
||||
base::RepeatingCallback<std::vector<int>()> get_indices_to_close,
|
||||
uint32_t close_types) {
|
||||
+4
-4
@@ -50,11 +50,11 @@
|
||||
bool IsExtensionDownload(const download::DownloadItem& download_item);
|
||||
--- a/chrome/browser/download/download_target_determiner.cc
|
||||
+++ b/chrome/browser/download/download_target_determiner.cc
|
||||
@@ -1236,10 +1236,12 @@ DownloadConfirmationReason DownloadTarge
|
||||
@@ -1243,10 +1243,12 @@ DownloadConfirmationReason DownloadTarge
|
||||
return DownloadConfirmationReason::SAVE_AS;
|
||||
|
||||
#if BUILDFLAG(ENABLE_EXTENSIONS)
|
||||
- // Don't prompt for extension downloads if the installation site is white
|
||||
#if BUILDFLAG(ENABLE_EXTENSIONS_CORE)
|
||||
- // Don't prompt for extension downloads if the installation site is allow
|
||||
- // listed.
|
||||
- if (download_crx_util::IsTrustedExtensionDownload(GetProfile(), *download_))
|
||||
- return DownloadConfirmationReason::NONE;
|
||||
@@ -69,7 +69,7 @@
|
||||
// Don't prompt for file types that are marked for opening automatically.
|
||||
--- a/chrome/browser/extensions/extension_management.cc
|
||||
+++ b/chrome/browser/extensions/extension_management.cc
|
||||
@@ -319,6 +319,13 @@ bool ExtensionManagement::IsInstallation
|
||||
@@ -331,6 +331,13 @@ bool ExtensionManagement::IsInstallation
|
||||
bool ExtensionManagement::IsOffstoreInstallAllowed(
|
||||
const GURL& url,
|
||||
const GURL& referrer_url) const {
|
||||
+1
-1
@@ -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
|
||||
@@ -1208,6 +1208,8 @@ WindowOpenDisposition NavigationPolicyTo
|
||||
@@ -1199,6 +1199,8 @@ WindowOpenDisposition NavigationPolicyTo
|
||||
case blink::kWebNavigationPolicyNewWindow:
|
||||
return WindowOpenDisposition::NEW_WINDOW;
|
||||
case blink::kWebNavigationPolicyNewPopup:
|
||||
+2
-2
@@ -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(
|
||||
@@ -1344,7 +1345,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
|
||||
@@ -1580,6 +1582,8 @@ void HistoryBackend::AddPagesWithDetails
|
||||
}
|
||||
|
||||
bool HistoryBackend::IsExpiredVisitTime(const base::Time& time) const {
|
||||
+9
-1
@@ -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
|
||||
@@ -199,7 +199,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
-3
@@ -13,15 +13,15 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/components/url_formatter/url_formatter.cc
|
||||
+++ b/components/url_formatter/url_formatter.cc
|
||||
@@ -15,6 +15,7 @@
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
+#include "base/command_line.h"
|
||||
#include "base/lazy_instance.h"
|
||||
#include "base/memory/raw_ptr.h"
|
||||
#include "base/no_destructor.h"
|
||||
#include "base/numerics/safe_conversions.h"
|
||||
@@ -319,6 +320,13 @@ IDNConversionResult IDNToUnicodeWithAdju
|
||||
@@ -317,6 +318,13 @@ IDNConversionResult IDNToUnicodeWithAdju
|
||||
host16.reserve(host.length());
|
||||
host16.insert(host16.end(), host.begin(), host.end());
|
||||
|
||||
+5
-5
@@ -3,16 +3,16 @@
|
||||
|
||||
--- a/chrome/browser/ui/startup/infobar_utils.cc
|
||||
+++ b/chrome/browser/ui/startup/infobar_utils.cc
|
||||
@@ -136,7 +136,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 @@
|
||||
+4
-4
@@ -8,15 +8,15 @@
|
||||
#include "base/feature_list.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/functional/callback_helpers.h"
|
||||
@@ -35,6 +36,7 @@
|
||||
@@ -36,6 +37,7 @@
|
||||
#include "chrome/browser/ui/views/side_panel/extensions/extension_side_panel_coordinator.h"
|
||||
#include "chrome/browser/ui/views/side_panel/side_panel_ui.h"
|
||||
#include "chrome/browser/ui/views/toolbar/toolbar_action_hover_card_controller.h"
|
||||
#include "chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.h"
|
||||
+#include "chrome/browser/ui/views/toolbar/toolbar_view.h"
|
||||
#include "chrome/common/pref_names.h"
|
||||
#include "chrome/grit/generated_resources.h"
|
||||
#include "components/feature_engagement/public/event_constants.h"
|
||||
@@ -544,6 +546,17 @@ void ExtensionsToolbarContainer::AnchorA
|
||||
@@ -549,6 +551,17 @@ void ExtensionsToolbarContainer::AnchorA
|
||||
widget->widget_delegate()->AsBubbleDialogDelegate()->SetAnchorView(
|
||||
anchor_view && anchor_view->GetVisible() ? anchor_view
|
||||
: GetExtensionsButton());
|
||||
@@ -34,7 +34,7 @@
|
||||
widget->Show();
|
||||
}
|
||||
|
||||
@@ -958,6 +971,9 @@ void ExtensionsToolbarContainer::UpdateC
|
||||
@@ -953,6 +966,9 @@ void ExtensionsToolbarContainer::UpdateC
|
||||
}
|
||||
|
||||
bool ExtensionsToolbarContainer::ShouldContainerBeVisible() const {
|
||||
+11
-12
@@ -1,19 +1,18 @@
|
||||
--- a/chrome/browser/ui/views/frame/browser_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_view.cc
|
||||
@@ -2238,6 +2238,10 @@ void BrowserView::ExitFullscreen() {
|
||||
void BrowserView::UpdateExclusiveAccessBubble(
|
||||
const ExclusiveAccessBubbleParams& params,
|
||||
ExclusiveAccessBubbleHideCallback first_hide_callback) {
|
||||
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
||||
+ "hide-fullscreen-exit-ui"))
|
||||
+ return;
|
||||
+
|
||||
// Trusted pinned mode does not allow to escape. So do not show the bubble.
|
||||
bool is_trusted_pinned =
|
||||
platform_util::IsBrowserLockedFullscreen(browser_.get());
|
||||
@@ -715,6 +715,9 @@ class BrowserView::ExclusiveAccessContex
|
||||
void UpdateExclusiveAccessBubble(
|
||||
const ExclusiveAccessBubbleParams& params,
|
||||
ExclusiveAccessBubbleHideCallback first_hide_callback) override {
|
||||
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("hide-fullscreen-exit-ui")) {
|
||||
+ return;
|
||||
+ }
|
||||
// Trusted pinned mode does not allow to escape. So do not show the bubble.
|
||||
bool is_trusted_pinned =
|
||||
platform_util::IsBrowserLockedFullscreen(browser_view_->browser_.get());
|
||||
--- a/chrome/browser/ui/views/fullscreen_control/fullscreen_control_host.cc
|
||||
+++ b/chrome/browser/ui/views/fullscreen_control/fullscreen_control_host.cc
|
||||
@@ -73,6 +73,10 @@ bool IsExitUiEnabled() {
|
||||
@@ -75,6 +75,10 @@ bool IsExitUiEnabled() {
|
||||
// menu and controls reveal when the cursor is moved to the top.
|
||||
return false;
|
||||
#else
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/tabs/tab.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/tab.cc
|
||||
@@ -1139,7 +1139,11 @@ void Tab::UpdateIconVisibility() {
|
||||
@@ -1178,7 +1178,11 @@ void Tab::UpdateIconVisibility() {
|
||||
// Close button is shown on active tabs regardless of the size.
|
||||
showing_close_button_ = true;
|
||||
#endif // BUILDFLAG(IS_CHROMEOS)
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
showing_alert_indicator_ =
|
||||
has_alert_icon && alert_icon_width <= available_width;
|
||||
@@ -1168,6 +1172,8 @@ void Tab::UpdateIconVisibility() {
|
||||
@@ -1207,6 +1211,8 @@ void Tab::UpdateIconVisibility() {
|
||||
!controller_->IsLockedForOnTask() &&
|
||||
#endif
|
||||
large_enough_for_close_button;
|
||||
+3
-3
@@ -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",
|
||||
+6
-6
@@ -11,7 +11,7 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/components/embedder_support/user_agent_utils.cc
|
||||
+++ b/components/embedder_support/user_agent_utils.cc
|
||||
@@ -164,6 +164,8 @@ const std::string& GetWindowsPlatformVer
|
||||
@@ -159,6 +159,8 @@ const std::string& GetWindowsPlatformVer
|
||||
// TODO(crbug.com/1330890): Remove this method along with policy.
|
||||
bool ShouldReduceUserAgentMinorVersion(
|
||||
UserAgentReductionEnterprisePolicyState user_agent_reduction) {
|
||||
@@ -20,7 +20,7 @@
|
||||
return ((user_agent_reduction !=
|
||||
UserAgentReductionEnterprisePolicyState::kForceDisabled &&
|
||||
base::FeatureList::IsEnabled(
|
||||
@@ -187,6 +189,8 @@ bool ShouldReduceUserAgentMinorVersion(
|
||||
@@ -182,6 +184,8 @@ bool ShouldReduceUserAgentMinorVersion(
|
||||
// sending unified platform for the user agent string.
|
||||
bool ShouldSendUserAgentUnifiedPlatform(
|
||||
UserAgentReductionEnterprisePolicyState user_agent_reduction) {
|
||||
@@ -29,10 +29,10 @@
|
||||
#if BUILDFLAG(IS_ANDROID)
|
||||
return ShouldReduceUserAgentMinorVersion(user_agent_reduction) &&
|
||||
base::FeatureList::IsEnabled(
|
||||
@@ -616,6 +620,8 @@ blink::UserAgentMetadata GetUserAgentMet
|
||||
@@ -667,6 +671,8 @@ std::string GetPlatformForUAMetadata() {
|
||||
}
|
||||
|
||||
blink::UserAgentMetadata GetUserAgentMetadata(const PrefService* pref_service,
|
||||
bool only_low_entropy_ch) {
|
||||
blink::UserAgentMetadata GetUserAgentMetadata(bool only_low_entropy_ch) {
|
||||
+ if (base::FeatureList::IsEnabled(blink::features::kReducedSystemInfo))
|
||||
+ only_low_entropy_ch = true;
|
||||
blink::UserAgentMetadata metadata;
|
||||
@@ -40,7 +40,7 @@
|
||||
// Low entropy client hints.
|
||||
--- a/third_party/blink/common/features.cc
|
||||
+++ b/third_party/blink/common/features.cc
|
||||
@@ -20,6 +20,7 @@
|
||||
@@ -21,6 +21,7 @@
|
||||
namespace blink::features {
|
||||
|
||||
BASE_FEATURE(kDisableLinkDrag, "DisableLinkDrag", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
+7
-7
@@ -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,18 +20,18 @@
|
||||
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
|
||||
+++ b/third_party/blink/common/features.cc
|
||||
@@ -21,6 +21,7 @@ namespace blink::features {
|
||||
@@ -22,6 +22,7 @@ namespace blink::features {
|
||||
|
||||
BASE_FEATURE(kDisableLinkDrag, "DisableLinkDrag", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
BASE_FEATURE(kReducedSystemInfo, "ReducedSystemInfo", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
@@ -75,10 +75,10 @@
|
||||
#include "third_party/blink/public/common/client_hints/client_hints.h"
|
||||
#include "third_party/blink/public/common/device_memory/approximated_device_memory.h"
|
||||
+#include "third_party/blink/public/common/features.h"
|
||||
#include "third_party/blink/public/common/permissions_policy/document_policy_features.h"
|
||||
#include "third_party/blink/public/common/switches.h"
|
||||
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-blink.h"
|
||||
#include "third_party/blink/public/mojom/loader/request_context_frame_type.mojom-blink.h"
|
||||
@@ -528,6 +529,8 @@ void FrameFetchContext::ModifyRequestFor
|
||||
@@ -613,6 +614,8 @@ void FrameFetchContext::ModifyRequestFor
|
||||
void FrameFetchContext::AddClientHintsIfNecessary(
|
||||
const std::optional<float> resource_width,
|
||||
ResourceRequest& request) {
|
||||
+4
-4
@@ -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
-1
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
@@ -471,6 +471,17 @@ void ToolbarView::Init() {
|
||||
@@ -475,6 +475,17 @@ void ToolbarView::Init() {
|
||||
browser_->profile()->IsGuestSession() ||
|
||||
browser_->profile()->IsRegularProfile();
|
||||
#endif
|
||||
+3
-3
@@ -58,7 +58,7 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/third_party/blink/common/features.cc
|
||||
+++ b/third_party/blink/common/features.cc
|
||||
@@ -22,6 +22,11 @@ namespace blink::features {
|
||||
@@ -23,6 +23,11 @@ namespace blink::features {
|
||||
BASE_FEATURE(kDisableLinkDrag, "DisableLinkDrag", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
BASE_FEATURE(kReducedSystemInfo, "ReducedSystemInfo", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
BASE_FEATURE(kRemoveClientHints, "RemoveClientHints", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
@@ -86,7 +86,7 @@
|
||||
// Feature declarations and associated constants (feature params, et cetera)
|
||||
--- a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
|
||||
+++ b/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
|
||||
@@ -4052,6 +4052,8 @@ ScriptValue WebGLRenderingContextBase::g
|
||||
@@ -4107,6 +4107,8 @@ ScriptValue WebGLRenderingContextBase::g
|
||||
pname, IdentifiabilityBenignStringToken(
|
||||
String(ContextGL()->GetString(GL_RENDERER))));
|
||||
}
|
||||
@@ -95,7 +95,7 @@
|
||||
return WebGLAny(script_state,
|
||||
String(ContextGL()->GetString(GL_RENDERER)));
|
||||
}
|
||||
@@ -4067,6 +4069,8 @@ ScriptValue WebGLRenderingContextBase::g
|
||||
@@ -4122,6 +4124,8 @@ ScriptValue WebGLRenderingContextBase::g
|
||||
pname, IdentifiabilityBenignStringToken(
|
||||
String(ContextGL()->GetString(GL_VENDOR))));
|
||||
}
|
||||
+7
-5
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -4862,10 +4862,12 @@ const FeatureEntry::Choice kDataSharingV
|
||||
@@ -5203,10 +5203,12 @@ const FeatureEntry::FeatureVariation kPr
|
||||
#include "chrome/browser/ungoogled_flag_choices.h"
|
||||
#include "chrome/browser/bromite_flag_choices.h"
|
||||
#include "chrome/browser/ungoogled_platform_flag_choices.h"
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "build/chromeos_buildflags.h"
|
||||
--- /dev/null
|
||||
+++ b/chrome/browser/existing_switch_flag_choices.h
|
||||
@@ -0,0 +1,19 @@
|
||||
@@ -0,0 +1,21 @@
|
||||
+// Copyright (c) 2023 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
@@ -23,16 +23,18 @@
|
||||
+#ifndef CHROME_BROWSER_EXISTING_SWITCH_FLAG_CHOICES_H_
|
||||
+#define CHROME_BROWSER_EXISTING_SWITCH_FLAG_CHOICES_H_
|
||||
+const FeatureEntry::Choice kWebRTCIPPolicy[] = {
|
||||
+ {"Disable non proxied udp", "", ""},
|
||||
+ {"Default public interface only",
|
||||
+ "",
|
||||
+ ""},
|
||||
+ {"Default",
|
||||
+ "webrtc-ip-handling-policy",
|
||||
+ "default"},
|
||||
+ {"Default public and private interfaces",
|
||||
+ "webrtc-ip-handling-policy",
|
||||
+ "default_public_and_private_interfaces"},
|
||||
+ {"Default public interface only",
|
||||
+ {"Disable non proxied udp",
|
||||
+ "webrtc-ip-handling-policy",
|
||||
+ "default_public_interface_only"},
|
||||
+ "disable_non_proxied_udp"},
|
||||
+};
|
||||
+#endif // CHROME_BROWSER_EXISTING_SWITCH_FLAG_CHOICES_H_
|
||||
--- /dev/null
|
||||
+5
-5
@@ -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
|
||||
@@ -170,6 +170,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"
|
||||
@@ -390,10 +391,10 @@ void AddAdditionalRequestHeaders(
|
||||
@@ -398,10 +399,10 @@ void AddAdditionalRequestHeaders(
|
||||
net::HttpRequestHeaders::kUserAgent,
|
||||
ComputeUserAgentValue(*headers, user_agent_override, browser_context));
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
if (NeedsHTTPOrigin(headers, method)) {
|
||||
--- a/content/renderer/render_frame_impl.cc
|
||||
+++ b/content/renderer/render_frame_impl.cc
|
||||
@@ -135,6 +135,7 @@
|
||||
@@ -137,6 +137,7 @@
|
||||
#include "services/network/public/cpp/content_decoding_interceptor.h"
|
||||
#include "services/network/public/cpp/features.h"
|
||||
#include "services/network/public/cpp/not_implemented_url_loader_factory.h"
|
||||
@@ -52,7 +52,7 @@
|
||||
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
|
||||
#include "services/network/public/mojom/fetch_api.mojom.h"
|
||||
#include "services/network/public/mojom/restricted_cookie_manager.mojom.h"
|
||||
@@ -4702,10 +4703,13 @@ void RenderFrameImpl::FinalizeRequestInt
|
||||
@@ -4450,10 +4451,13 @@ void RenderFrameImpl::FinalizeRequestInt
|
||||
|
||||
request.SetHasUserGesture(frame_->HasTransientUserActivation());
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
|
||||
--- a/services/network/public/cpp/BUILD.gn
|
||||
+++ b/services/network/public/cpp/BUILD.gn
|
||||
@@ -119,6 +119,8 @@ component("cpp") {
|
||||
@@ -124,6 +124,8 @@ component("cpp") {
|
||||
"private_network_access_check_result.cc",
|
||||
"private_network_access_check_result.h",
|
||||
"record_ontransfersizeupdate_utils.h",
|
||||
+7
-7
@@ -13,18 +13,18 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/net/base/features.cc
|
||||
+++ b/net/base/features.cc
|
||||
@@ -18,6 +18,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
|
||||
@@ -20,6 +20,8 @@
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
namespace net::features {
|
||||
|
||||
@@ -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;
|
||||
+25
-25
@@ -1,9 +1,9 @@
|
||||
# Add suggestions URL text field to the search engine editing dialog
|
||||
# (chrome://settings/searchEngines).
|
||||
|
||||
--- a/chrome/browser/resources/settings/search_engines_page/search_engine_edit_dialog.html
|
||||
+++ b/chrome/browser/resources/settings/search_engines_page/search_engine_edit_dialog.html
|
||||
@@ -37,6 +37,13 @@
|
||||
--- a/chrome/browser/resources/settings/search_page/search_engine_edit_dialog.html
|
||||
+++ b/chrome/browser/resources/settings/search_page/search_engine_edit_dialog.html
|
||||
@@ -35,6 +35,13 @@
|
||||
error-message="$i18n{notValid}"
|
||||
value="{{queryUrl_}}" on-focus="validate_" on-input="validate_">
|
||||
</cr-input>
|
||||
@@ -17,8 +17,8 @@
|
||||
</div>
|
||||
<div slot="button-container">
|
||||
<cr-button class="cancel-button" on-click="cancel_" id="cancel"
|
||||
--- a/chrome/browser/resources/settings/search_engines_page/search_engine_edit_dialog.ts
|
||||
+++ b/chrome/browser/resources/settings/search_engines_page/search_engine_edit_dialog.ts
|
||||
--- a/chrome/browser/resources/settings/search_page/search_engine_edit_dialog.ts
|
||||
+++ b/chrome/browser/resources/settings/search_page/search_engine_edit_dialog.ts
|
||||
@@ -37,6 +37,7 @@ export interface SettingsSearchEngineEdi
|
||||
dialog: CrDialogElement,
|
||||
keyword: CrInputElement,
|
||||
@@ -43,7 +43,7 @@
|
||||
declare private dialogTitle_: string;
|
||||
declare private actionButtonText_: string;
|
||||
declare private showPolicySubtitle_: boolean;
|
||||
@@ -110,6 +113,7 @@ export class SettingsSearchEngineEditDia
|
||||
@@ -111,6 +114,7 @@ export class SettingsSearchEngineEditDia
|
||||
this.searchEngine_ = this.model.name;
|
||||
this.keyword_ = this.model.keyword;
|
||||
this.queryUrl_ = this.model.url;
|
||||
@@ -51,7 +51,7 @@
|
||||
} else {
|
||||
this.dialogTitle_ = loadTimeData.getString('searchEnginesAddSiteSearch');
|
||||
this.actionButtonText_ = loadTimeData.getString('add');
|
||||
@@ -146,8 +150,12 @@ export class SettingsSearchEngineEditDia
|
||||
@@ -147,8 +151,12 @@ export class SettingsSearchEngineEditDia
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
}
|
||||
|
||||
private cancel_() {
|
||||
@@ -156,7 +164,8 @@ export class SettingsSearchEngineEditDia
|
||||
@@ -157,7 +165,8 @@ export class SettingsSearchEngineEditDia
|
||||
|
||||
private onActionButtonClick_() {
|
||||
this.browserProxy_.searchEngineEditCompleted(
|
||||
@@ -76,7 +76,7 @@
|
||||
this.$.dialog.close();
|
||||
}
|
||||
|
||||
@@ -194,8 +203,10 @@ export class SettingsSearchEngineEditDia
|
||||
@@ -195,8 +204,10 @@ export class SettingsSearchEngineEditDia
|
||||
this.$.searchEngine,
|
||||
this.$.keyword,
|
||||
this.$.queryUrl,
|
||||
@@ -88,8 +88,8 @@
|
||||
});
|
||||
this.$.actionButton.disabled = !allValid;
|
||||
}
|
||||
--- a/chrome/browser/resources/settings/search_engines_page/search_engines_browser_proxy.ts
|
||||
+++ b/chrome/browser/resources/settings/search_engines_page/search_engines_browser_proxy.ts
|
||||
--- a/chrome/browser/resources/settings/search_page/search_engines_browser_proxy.ts
|
||||
+++ b/chrome/browser/resources/settings/search_page/search_engines_browser_proxy.ts
|
||||
@@ -35,6 +35,7 @@ export interface SearchEngine {
|
||||
name: string;
|
||||
shouldConfirmDeletion: boolean;
|
||||
@@ -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
|
||||
@@ -23,23 +23,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);
|
||||
@@ -51,11 +55,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
|
||||
@@ -202,21 +202,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);
|
||||
@@ -225,7 +229,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()));
|
||||
@@ -314,7 +314,7 @@
|
||||
TemplateURL* TemplateURLTableModel::GetTemplateURL(size_t index) {
|
||||
--- a/chrome/browser/ui/search_engines/template_url_table_model.h
|
||||
+++ b/chrome/browser/ui/search_engines/template_url_table_model.h
|
||||
@@ -58,13 +58,15 @@ class TemplateURLTableModel : public ui:
|
||||
@@ -85,13 +85,15 @@ class TemplateURLTableModel : public ui:
|
||||
void Add(size_t index,
|
||||
const std::u16string& short_name,
|
||||
const std::u16string& keyword,
|
||||
@@ -334,7 +334,7 @@
|
||||
void ReloadIcon(size_t index);
|
||||
--- a/chrome/browser/ui/webui/settings/search_engines_handler.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/search_engines_handler.cc
|
||||
@@ -49,6 +49,7 @@ namespace {
|
||||
@@ -51,6 +51,7 @@ namespace {
|
||||
const char kSearchEngineField[] = "searchEngine";
|
||||
const char kKeywordField[] = "keyword";
|
||||
const char kQueryUrlField[] = "queryUrl";
|
||||
@@ -342,7 +342,7 @@
|
||||
|
||||
// Dummy number used for indicating that a new search engine is added.
|
||||
const int kNewSearchEngineIndex = -1;
|
||||
@@ -255,6 +256,8 @@ base::Value::Dict SearchEnginesHandler::
|
||||
@@ -257,6 +258,8 @@ base::Value::Dict SearchEnginesHandler::
|
||||
Profile* profile = Profile::FromWebUI(web_ui());
|
||||
dict.Set("url",
|
||||
template_url->url_ref().DisplayURL(UIThreadSearchTermsData()));
|
||||
@@ -351,7 +351,7 @@
|
||||
dict.Set("urlLocked", ((template_url->prepopulate_id() > 0) ||
|
||||
(template_url->starter_pack_id() > 0)));
|
||||
GURL icon_url = template_url->favicon_url();
|
||||
@@ -418,12 +421,14 @@ void SearchEnginesHandler::HandleSearchE
|
||||
@@ -423,12 +426,14 @@ void SearchEnginesHandler::HandleSearchE
|
||||
void SearchEnginesHandler::OnEditedKeyword(TemplateURL* template_url,
|
||||
const std::u16string& title,
|
||||
const std::u16string& keyword,
|
||||
@@ -369,7 +369,7 @@
|
||||
}
|
||||
|
||||
edit_controller_.reset();
|
||||
@@ -453,6 +458,8 @@ bool SearchEnginesHandler::CheckFieldVal
|
||||
@@ -458,6 +463,8 @@ bool SearchEnginesHandler::CheckFieldVal
|
||||
is_valid = edit_controller_->IsKeywordValid(base::UTF8ToUTF16(field_value));
|
||||
} else if (field_name.compare(kQueryUrlField) == 0) {
|
||||
is_valid = edit_controller_->IsURLValid(field_value);
|
||||
@@ -378,7 +378,7 @@
|
||||
} else {
|
||||
NOTREACHED();
|
||||
}
|
||||
@@ -475,18 +482,21 @@ void SearchEnginesHandler::HandleSearchE
|
||||
@@ -480,18 +487,21 @@ void SearchEnginesHandler::HandleSearchE
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -428,17 +428,17 @@
|
||||
|
||||
--- a/components/search_engines/template_url_service.cc
|
||||
+++ b/components/search_engines/template_url_service.cc
|
||||
@@ -1028,7 +1028,8 @@ void TemplateURLService::IncrementUsageC
|
||||
@@ -1037,7 +1037,8 @@ void TemplateURLService::IncrementUsageC
|
||||
void TemplateURLService::ResetTemplateURL(TemplateURL* url,
|
||||
const std::u16string& title,
|
||||
const std::u16string& keyword,
|
||||
- const std::string& search_url) {
|
||||
+ const std::string& search_url,
|
||||
+ const std::string& suggestions_url) {
|
||||
DCHECK(!IsCreatedByExtension(url));
|
||||
DCHECK(!IsCreatedByExtension(*url));
|
||||
DCHECK(!keyword.empty());
|
||||
DCHECK(!search_url.empty());
|
||||
@@ -1052,6 +1053,7 @@ void TemplateURLService::ResetTemplateUR
|
||||
@@ -1061,6 +1062,7 @@ void TemplateURLService::ResetTemplateUR
|
||||
data.last_modified = clock_->Now();
|
||||
data.is_active = TemplateURLData::ActiveStatus::kTrue;
|
||||
data.policy_origin = TemplateURLData::PolicyOrigin::kNoPolicy;
|
||||
@@ -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
-1
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -4858,7 +4858,13 @@ const FeatureEntry::Choice kDataSharingV
|
||||
@@ -5199,7 +5199,13 @@ const FeatureEntry::FeatureVariation kPr
|
||||
// calculate and verify checksum.
|
||||
//
|
||||
// When adding a new choice, add it to the end of the list.
|
||||
+24
-4
@@ -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) {
|
||||
@@ -18,7 +18,7 @@
|
||||
// Note: If there is an ongoing request, abandon it. It's possible that
|
||||
--- a/chrome/browser/new_tab_page/promos/promo_service.cc
|
||||
+++ b/chrome/browser/new_tab_page/promos/promo_service.cc
|
||||
@@ -176,6 +176,7 @@ PromoService::PromoService(
|
||||
@@ -171,6 +171,7 @@ PromoService::PromoService(
|
||||
PromoService::~PromoService() = default;
|
||||
|
||||
void PromoService::Refresh() {
|
||||
@@ -26,9 +26,29 @@
|
||||
std::string command_id;
|
||||
// Replace the promo URL with "command:<id>" if such a command ID is set
|
||||
// via the feature params.
|
||||
--- a/chrome/browser/profile_resetter/profile_resetter.cc
|
||||
+++ b/chrome/browser/profile_resetter/profile_resetter.cc
|
||||
@@ -101,17 +101,6 @@ ProfileResetter::ProfileResetter(Profile
|
||||
cookies_remover_(nullptr) {
|
||||
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||
DCHECK(profile_);
|
||||
-
|
||||
- google_brand::GetBrand(&brandcode_);
|
||||
- if (brandcode_.empty()) {
|
||||
- return;
|
||||
- }
|
||||
- config_fetcher_ = std::make_unique<BrandcodeConfigFetcher>(
|
||||
- g_browser_process->system_network_context_manager()
|
||||
- ->GetURLLoaderFactory(),
|
||||
- base::BindOnce(&ProfileResetter::OnDefaultSettingsFetched,
|
||||
- base::Unretained(this)),
|
||||
- GURL("https://tools.google.com/service/update2"), brandcode_);
|
||||
}
|
||||
|
||||
void ProfileResetter::OnDefaultSettingsFetched() {
|
||||
--- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
|
||||
+++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
|
||||
@@ -281,6 +281,7 @@ GURL SpellcheckHunspellDictionary::GetDi
|
||||
@@ -284,6 +284,7 @@ GURL SpellcheckHunspellDictionary::GetDi
|
||||
}
|
||||
|
||||
void SpellcheckHunspellDictionary::DownloadDictionary(GURL url) {
|
||||
@@ -38,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(
|
||||
+10
-10
@@ -23,7 +23,7 @@
|
||||
url.SchemeIs(dom_distiller::kDomDistillerScheme))
|
||||
--- a/chrome/browser/ui/singleton_tabs.cc
|
||||
+++ b/chrome/browser/ui/singleton_tabs.cc
|
||||
@@ -132,7 +132,8 @@ int GetIndexOfExistingTab(Browser* brows
|
||||
@@ -140,7 +140,8 @@ int GetIndexOfExistingTab(BrowserWindowI
|
||||
// RewriteURLIfNecessary removes the "view-source:" scheme which could lead
|
||||
// to incorrect matching, so ensure that the target and the candidate are
|
||||
// either both view-source:, or neither is.
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
--- a/components/omnibox/browser/autocomplete_input.cc
|
||||
+++ b/components/omnibox/browser/autocomplete_input.cc
|
||||
@@ -578,7 +578,8 @@ void AutocompleteInput::ParseForEmphasiz
|
||||
@@ -580,7 +580,8 @@ void AutocompleteInput::ParseForEmphasiz
|
||||
// For the view-source and blob schemes, we should emphasize the host of the
|
||||
// URL qualified by the view-source or blob prefix.
|
||||
if ((base::EqualsCaseInsensitiveASCII(scheme_str, kViewSourceScheme) ||
|
||||
@@ -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
|
||||
@@ -938,6 +938,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
|
||||
@@ -1108,6 +1108,8 @@ component("net") {
|
||||
@@ -1133,6 +1133,8 @@ component("net") {
|
||||
"url_request/static_http_user_agent_settings.cc",
|
||||
"url_request/static_http_user_agent_settings.h",
|
||||
"url_request/storage_access_status_cache.h",
|
||||
@@ -158,7 +158,7 @@
|
||||
|
||||
namespace net {
|
||||
|
||||
@@ -653,6 +655,12 @@ URLRequest::URLRequest(base::PassKey<URL
|
||||
@@ -650,6 +652,12 @@ URLRequest::URLRequest(base::PassKey<URL
|
||||
// Sanity check out environment.
|
||||
DCHECK(base::SingleThreadTaskRunner::HasCurrentDefault());
|
||||
|
||||
@@ -169,11 +169,11 @@
|
||||
+ }
|
||||
+
|
||||
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
|
||||
@@ -53,6 +53,7 @@
|
||||
@@ -55,6 +55,7 @@
|
||||
#include "net/socket/network_binding_client_socket_factory.h"
|
||||
#include "net/ssl/ssl_config_service_defaults.h"
|
||||
#include "net/url_request/static_http_user_agent_settings.h"
|
||||
@@ -181,7 +181,7 @@
|
||||
#include "net/url_request/url_request_context.h"
|
||||
#include "net/url_request/url_request_job_factory.h"
|
||||
#include "url/url_constants.h"
|
||||
@@ -612,6 +613,9 @@ std::unique_ptr<URLRequestContext> URLRe
|
||||
@@ -621,6 +622,9 @@ std::unique_ptr<URLRequestContext> URLRe
|
||||
}
|
||||
protocol_handlers_.clear();
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
--- a/chrome/browser/ui/search_engines/template_url_table_model.cc
|
||||
+++ b/chrome/browser/ui/search_engines/template_url_table_model.cc
|
||||
@@ -117,22 +117,10 @@ void TemplateURLTableModel::Reload() {
|
||||
extension_entries;
|
||||
// Keywords that can be made the default first.
|
||||
for (TemplateURL* template_url : urls) {
|
||||
- // Skip @gemini if feature disabled.
|
||||
- if (template_url->starter_pack_id() ==
|
||||
- template_url_starter_pack_data::kGemini &&
|
||||
- !OmniboxFieldTrial::IsStarterPackExpansionEnabled()) {
|
||||
- continue;
|
||||
- }
|
||||
- // Skip @page if feature disabled.
|
||||
- if (template_url->starter_pack_id() ==
|
||||
- template_url_starter_pack_data::kPage &&
|
||||
- !omnibox_feature_configs::ContextualSearch::Get().starter_pack_page) {
|
||||
- continue;
|
||||
- }
|
||||
- // Skip @aimode if feature disabled.
|
||||
- if (template_url->starter_pack_id() ==
|
||||
- template_url_starter_pack_data::kAiMode &&
|
||||
- !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 ||
|
||||
+ template_url->starter_pack_id() == template_url_starter_pack_data::kPage) {
|
||||
continue;
|
||||
}
|
||||
|
||||
--- a/components/omnibox/browser/featured_search_provider.cc
|
||||
+++ b/components/omnibox/browser/featured_search_provider.cc
|
||||
@@ -295,20 +295,10 @@ void FeaturedSearchProvider::AddFeatured
|
||||
for (TemplateURL* turl : turls) {
|
||||
if (turl->starter_pack_id() > 0 &&
|
||||
turl->is_active() == TemplateURLData::ActiveStatus::kTrue) {
|
||||
- // Skip @gemini if feature disabled.
|
||||
- if (turl->starter_pack_id() == template_url_starter_pack_data::kGemini &&
|
||||
- !OmniboxFieldTrial::IsStarterPackExpansionEnabled()) {
|
||||
- continue;
|
||||
- }
|
||||
- // Skip @page if feature disabled.
|
||||
- if (turl->starter_pack_id() == template_url_starter_pack_data::kPage &&
|
||||
- !omnibox_feature_configs::ContextualSearch::Get().starter_pack_page) {
|
||||
- continue;
|
||||
- }
|
||||
- // Skip @aimode if feature disabled.
|
||||
- if (turl->starter_pack_id() == template_url_starter_pack_data::kAiMode &&
|
||||
- !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 ||
|
||||
+ turl->starter_pack_id() == template_url_starter_pack_data::kPage) {
|
||||
continue;
|
||||
}
|
||||
// The history starter pack engine is disabled in incognito mode.
|
||||
+3
-3
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/chrome/browser/chrome_content_browser_client.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client.cc
|
||||
@@ -2693,24 +2693,6 @@ void ChromeContentBrowserClient::AppendE
|
||||
@@ -2683,24 +2683,6 @@ void ChromeContentBrowserClient::AppendE
|
||||
command_line->AppendSwitchASCII(switches::kMetricsClientID,
|
||||
client_info->client_id);
|
||||
}
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
bool InitializeCrashpadImpl(bool initial_client,
|
||||
+ const std::string& a, const std::string& b, const base::FilePath& c,
|
||||
+ const std::vector<std::string>& d, bool e) {
|
||||
+ const std::vector<std::string>& d, bool e, const std::vector<base::FilePath>& f) {
|
||||
+ return false;
|
||||
+}
|
||||
+[[maybe_unused]]
|
||||
@@ -44,7 +44,7 @@
|
||||
const base::FilePath& exe_path,
|
||||
--- a/components/gwp_asan/client/gwp_asan.cc
|
||||
+++ b/components/gwp_asan/client/gwp_asan.cc
|
||||
@@ -345,6 +345,11 @@ GWP_ASAN_EXPORT std::optional<AllocatorS
|
||||
@@ -344,6 +344,11 @@ GWP_ASAN_EXPORT std::optional<AllocatorS
|
||||
|
||||
// Exported for testing.
|
||||
GWP_ASAN_EXPORT std::optional<AllocatorSettings> GetAllocatorSettings(
|
||||
+11
-54
@@ -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)
|
||||
@@ -535,94 +534,10 @@ DownloadInterruptReason BaseFile::Publis
|
||||
@@ -538,94 +537,10 @@ DownloadInterruptReason BaseFile::Publis
|
||||
}
|
||||
#endif // BUILDFLAG(IS_ANDROID)
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
}
|
||||
|
||||
void BaseFile::AnnotateWithSourceInformation(
|
||||
@@ -632,32 +547,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,17 +142,17 @@
|
||||
} // namespace download
|
||||
--- a/content/browser/BUILD.gn
|
||||
+++ b/content/browser/BUILD.gn
|
||||
@@ -132,7 +132,6 @@ source_set("browser") {
|
||||
"//components/performance_manager/scenario_api",
|
||||
@@ -139,7 +139,6 @@ source_set("browser") {
|
||||
"//components/persistent_cache",
|
||||
"//components/power_monitor",
|
||||
"//components/services/filesystem:lib",
|
||||
- "//components/services/quarantine:quarantine",
|
||||
- "//components/services/quarantine",
|
||||
"//components/services/storage",
|
||||
"//components/services/storage:filesystem_proxy_factory",
|
||||
"//components/services/storage/dom_storage:local_storage_proto",
|
||||
--- a/content/browser/file_system_access/file_system_access_safe_move_helper.cc
|
||||
+++ b/content/browser/file_system_access/file_system_access_safe_move_helper.cc
|
||||
@@ -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();
|
||||
@@ -245,46 +245,3 @@
|
||||
quarantine::mojom::QuarantineFileResult result);
|
||||
|
||||
void ComputeHashForSourceFile(HashCallback callback);
|
||||
--- a/content/browser/renderer_host/pepper/pepper_file_io_host.cc
|
||||
+++ b/content/browser/renderer_host/pepper/pepper_file_io_host.cc
|
||||
@@ -462,7 +462,7 @@ void PepperFileIOHost::OnLocalFileOpened
|
||||
ppapi::host::ReplyMessageContext reply_context,
|
||||
const base::FilePath& path,
|
||||
base::File::Error error_code) {
|
||||
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
||||
+#if 0
|
||||
// Quarantining a file before its contents are available is only supported on
|
||||
// Windows and Linux.
|
||||
if (!FileOpenForWrite(open_flags_) || error_code != base::File::FILE_OK) {
|
||||
@@ -496,7 +496,7 @@ void PepperFileIOHost::OnLocalFileOpened
|
||||
#endif
|
||||
}
|
||||
|
||||
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
|
||||
+#if 0
|
||||
void PepperFileIOHost::OnLocalFileQuarantined(
|
||||
ppapi::host::ReplyMessageContext reply_context,
|
||||
const base::FilePath& path,
|
||||
--- a/content/browser/renderer_host/pepper/pepper_file_io_host.h
|
||||
+++ b/content/browser/renderer_host/pepper/pepper_file_io_host.h
|
||||
@@ -14,7 +14,6 @@
|
||||
#include "base/memory/raw_ptr.h"
|
||||
#include "base/memory/ref_counted.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
-#include "components/services/quarantine/public/mojom/quarantine.mojom.h"
|
||||
#include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h"
|
||||
#include "ipc/ipc_listener.h"
|
||||
#include "ipc/ipc_platform_file.h"
|
||||
@@ -92,12 +91,6 @@ class PepperFileIOHost final : public pp
|
||||
const base::FilePath& path,
|
||||
base::File::Error error_code);
|
||||
|
||||
- void OnLocalFileQuarantined(
|
||||
- ppapi::host::ReplyMessageContext reply_context,
|
||||
- const base::FilePath& path,
|
||||
- mojo::Remote<quarantine::mojom::Quarantine> quarantine_remote,
|
||||
- quarantine::mojom::QuarantineFileResult quarantine_result);
|
||||
-
|
||||
void SendFileOpenReply(ppapi::host::ReplyMessageContext reply_context,
|
||||
base::File::Error error_code);
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/components/download/public/common/download_features.cc
|
||||
+++ b/components/download/public/common/download_features.cc
|
||||
@@ -38,7 +38,7 @@ BASE_FEATURE(kRefreshExpirationDate, bas
|
||||
|
||||
BASE_FEATURE(kDisplayInitiatorOrigin,
|
||||
"DownloadsDisplayInitiatorOrigin",
|
||||
- base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
+ base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
BASE_FEATURE(kDownloadNotificationServiceUnifiedAPI,
|
||||
#if BUILDFLAG(IS_ANDROID)
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
|
||||
+++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
|
||||
@@ -295,7 +295,7 @@ bool DomDistillerViewerSource::ShouldSer
|
||||
@@ -308,7 +308,7 @@ bool DomDistillerViewerSource::ShouldSer
|
||||
std::string DomDistillerViewerSource::GetContentSecurityPolicy(
|
||||
network::mojom::CSPDirectiveName directive) {
|
||||
if (directive == network::mojom::CSPDirectiveName::StyleSrc) {
|
||||
@@ -24,7 +24,7 @@
|
||||
.english :lang(zh) {display: none}
|
||||
--- a/components/dom_distiller/core/javascript/dom_distiller_viewer.js
|
||||
+++ b/components/dom_distiller/core/javascript/dom_distiller_viewer.js
|
||||
@@ -109,7 +109,7 @@ function maybeSetWebFont() {
|
||||
@@ -465,7 +465,7 @@ function maybeSetWebFont() {
|
||||
}
|
||||
|
||||
const e = document.createElement('link');
|
||||
+3
-4
@@ -3,7 +3,7 @@
|
||||
|
||||
--- a/google_apis/gaia/gaia_auth_fetcher.cc
|
||||
+++ b/google_apis/gaia/gaia_auth_fetcher.cc
|
||||
@@ -250,62 +250,6 @@ void GaiaAuthFetcher::CreateAndStartGaia
|
||||
@@ -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!";
|
||||
@@ -29,8 +29,7 @@
|
||||
- if (!body.empty())
|
||||
- resource_request->method = "POST";
|
||||
-
|
||||
- if (!headers.empty())
|
||||
- resource_request->headers.AddHeadersFromString(headers);
|
||||
- resource_request->headers = request_headers;
|
||||
-
|
||||
- resource_request->credentials_mode = credentials_mode;
|
||||
-
|
||||
@@ -44,7 +43,7 @@
|
||||
- url_loader_->SetAllowHttpErrorResults(true);
|
||||
-
|
||||
- VLOG(2) << "Gaia fetcher URL: " << gaia_gurl.spec();
|
||||
- VLOG(2) << "Gaia fetcher headers: " << headers;
|
||||
- VLOG(2) << "Gaia fetcher headers: " << request_headers.ToString();
|
||||
- VLOG(2) << "Gaia fetcher body: " << body;
|
||||
-
|
||||
- // Fetchers are sometimes cancelled because a network change was detected,
|
||||
+39
-31
@@ -25,7 +25,7 @@
|
||||
#if BUILDFLAG(ENABLE_BOUND_SESSION_CREDENTIALS)
|
||||
#include "chrome/common/bound_session_request_throttled_handler.h"
|
||||
#include "net/cookies/cookie_util.h"
|
||||
@@ -171,71 +167,6 @@ void GoogleURLLoaderThrottle::DetachFrom
|
||||
@@ -172,71 +168,6 @@ void GoogleURLLoaderThrottle::DetachFrom
|
||||
void GoogleURLLoaderThrottle::WillStartRequest(
|
||||
network::ResourceRequest* request,
|
||||
bool* defer) {
|
||||
@@ -97,7 +97,7 @@
|
||||
}
|
||||
|
||||
void GoogleURLLoaderThrottle::WillRedirectRequest(
|
||||
@@ -245,97 +176,12 @@ void GoogleURLLoaderThrottle::WillRedire
|
||||
@@ -246,97 +177,12 @@ void GoogleURLLoaderThrottle::WillRedire
|
||||
std::vector<std::string>* to_be_removed_headers,
|
||||
net::HttpRequestHeaders* modified_headers,
|
||||
net::HttpRequestHeaders* modified_cors_exempt_headers) {
|
||||
@@ -197,7 +197,7 @@
|
||||
#if BUILDFLAG(ENABLE_BOUND_SESSION_CREDENTIALS)
|
||||
--- a/components/google/core/common/google_util.cc
|
||||
+++ b/components/google/core/common/google_util.cc
|
||||
@@ -32,117 +32,6 @@ namespace google_util {
|
||||
@@ -33,117 +33,6 @@ namespace google_util {
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -268,14 +268,14 @@
|
||||
- base::CommandLine::ForCurrentProcess()->HasSwitch(
|
||||
- switches::kIgnoreGooglePortNumbers);
|
||||
- return url.is_valid() && url.SchemeIsHTTPOrHTTPS() &&
|
||||
- (url.port().empty() || g_ignore_port_numbers ||
|
||||
- (!url.has_port() || g_ignore_port_numbers ||
|
||||
- (port_permission == ALLOW_NON_STANDARD_PORTS));
|
||||
-}
|
||||
-
|
||||
-bool IsCanonicalHostGoogleHostname(std::string_view canonical_host,
|
||||
- SubdomainPermission subdomain_permission) {
|
||||
- const GURL& base_url(CommandLineGoogleBaseURL());
|
||||
- if (base_url.is_valid() && (canonical_host == base_url.host_piece())) {
|
||||
- if (base_url.is_valid() && (canonical_host == base_url.host())) {
|
||||
- return true;
|
||||
- }
|
||||
-
|
||||
@@ -302,7 +302,7 @@
|
||||
- return false;
|
||||
- }
|
||||
-
|
||||
- std::string_view host(url.host_piece());
|
||||
- std::string_view host(url.host());
|
||||
- StripTrailingDot(&host);
|
||||
-
|
||||
- static constexpr auto google_subdomains =
|
||||
@@ -314,8 +314,8 @@
|
||||
-
|
||||
} // namespace
|
||||
|
||||
// Global functions -----------------------------------------------------------
|
||||
@@ -150,13 +39,6 @@ bool IsGoogleSearchSubdomainUrl(const GU
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -167,170 +49,53 @@ std::string GetGoogleLocale(const std::s
|
||||
@@ -170,175 +52,53 @@ std::string GetGoogleLocale(const std::s
|
||||
|
||||
GURL AppendGoogleLocaleParam(const GURL& url,
|
||||
const std::string& application_locale) {
|
||||
@@ -339,7 +339,7 @@
|
||||
}
|
||||
|
||||
std::string GetGoogleCountryCode(const GURL& google_homepage_url) {
|
||||
- std::string_view google_hostname = google_homepage_url.host_piece();
|
||||
- std::string_view google_hostname = google_homepage_url.host();
|
||||
- // TODO(igorcov): This needs a fix for case when the host has a trailing dot,
|
||||
- // like "google.com./". https://crbug.com/720295.
|
||||
- const size_t last_dot = google_hostname.find_last_of('.');
|
||||
@@ -407,7 +407,7 @@
|
||||
SubdomainPermission subdomain_permission,
|
||||
PortPermission port_permission) {
|
||||
- return IsValidURL(url, port_permission) &&
|
||||
- IsCanonicalHostGoogleHostname(url.host_piece(), subdomain_permission);
|
||||
- IsCanonicalHostGoogleHostname(url.host(), subdomain_permission);
|
||||
+ return false;
|
||||
}
|
||||
|
||||
@@ -428,7 +428,7 @@
|
||||
- }
|
||||
-
|
||||
- // Make sure the path is a known home page path.
|
||||
- std::string_view path(url.path_piece());
|
||||
- std::string_view path(url.path());
|
||||
- return IsPathHomePageBase(path) ||
|
||||
- base::StartsWith(path, "/ig", base::CompareCase::INSENSITIVE_ASCII);
|
||||
+ return false;
|
||||
@@ -443,16 +443,21 @@
|
||||
- }
|
||||
-
|
||||
- // Make sure the path is a known search path.
|
||||
- std::string_view path(url.path_piece());
|
||||
- std::string_view path(url.path());
|
||||
- bool is_home_page_base = IsPathHomePageBase(path);
|
||||
- if (!is_home_page_base && path != "/search" && path != "/imgres") {
|
||||
- bool is_search_url =
|
||||
- is_home_page_base || path == "/search" || path == "/imgres";
|
||||
- if (base::FeatureList::IsEnabled(kIsViewerGoogleSearchUrl)) {
|
||||
- is_search_url |= path == "/viewer" || base::StartsWith(path, "/viewer/");
|
||||
- }
|
||||
- if (!is_search_url) {
|
||||
- return false;
|
||||
- }
|
||||
-
|
||||
- // Check for query parameter in URL parameter and hash fragment, depending on
|
||||
- // the path type.
|
||||
- return HasGoogleSearchQueryParam(url.ref_piece()) ||
|
||||
- (!is_home_page_base && HasGoogleSearchQueryParam(url.query_piece()));
|
||||
- return HasGoogleSearchQueryParam(url.ref()) ||
|
||||
- (!is_home_page_base && HasGoogleSearchQueryParam(url.query()));
|
||||
+ return false;
|
||||
}
|
||||
|
||||
@@ -460,7 +465,7 @@
|
||||
SubdomainPermission subdomain_permission,
|
||||
PortPermission port_permission) {
|
||||
- return IsValidURL(url, port_permission) &&
|
||||
- IsCanonicalHostYoutubeHostname(url.host_piece(), subdomain_permission);
|
||||
- IsCanonicalHostYoutubeHostname(url.host(), subdomain_permission);
|
||||
+ return false;
|
||||
}
|
||||
|
||||
@@ -490,7 +495,7 @@
|
||||
- ".youtubekids.com",
|
||||
- ".ytimg.com",
|
||||
- });
|
||||
- const std::string host = url.host();
|
||||
- const std::string_view host(url.host());
|
||||
- for (auto* i : kSuffixesToSetHeadersFor) {
|
||||
- if (base::EndsWith(host, i, base::CompareCase::INSENSITIVE_ASCII)) {
|
||||
- return true;
|
||||
@@ -528,7 +533,7 @@
|
||||
- // want to match URLs like www.google.appspot.com.
|
||||
- net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES);
|
||||
-
|
||||
- const std::string_view hostname = url.host_piece();
|
||||
- const std::string_view hostname = url.host();
|
||||
- if (registry_length == 0 || registry_length == std::string::npos ||
|
||||
- registry_length >= hostname.length()) {
|
||||
- return std::nullopt;
|
||||
@@ -565,7 +570,7 @@
|
||||
bool IsProbablyGoogleSearchUrl(const GURL& url) {
|
||||
--- a/components/search_engines/template_url.cc
|
||||
+++ b/components/search_engines/template_url.cc
|
||||
@@ -615,10 +615,7 @@ std::u16string TemplateURLRef::SearchTer
|
||||
@@ -611,10 +611,7 @@ std::u16string TemplateURLRef::SearchTer
|
||||
bool TemplateURLRef::HasGoogleBaseURLs(
|
||||
const SearchTermsData& search_terms_data) const {
|
||||
ParseIfNecessary(search_terms_data);
|
||||
@@ -579,7 +584,7 @@
|
||||
bool TemplateURLRef::ExtractSearchTermsFromURL(
|
||||
--- a/components/variations/net/variations_http_headers.cc
|
||||
+++ b/components/variations/net/variations_http_headers.cc
|
||||
@@ -31,10 +31,6 @@
|
||||
@@ -30,10 +30,6 @@
|
||||
|
||||
namespace variations {
|
||||
|
||||
@@ -590,7 +595,7 @@
|
||||
namespace {
|
||||
|
||||
// The result of checking whether a request to a URL should have variations
|
||||
@@ -112,16 +108,6 @@ URLValidationResult GetUrlValidationResu
|
||||
@@ -115,16 +111,6 @@ URLValidationResult GetUrlValidationResu
|
||||
return URLValidationResult::kShouldAppend;
|
||||
}
|
||||
|
||||
@@ -607,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 {
|
||||
@@ -251,30 +237,7 @@ class VariationsHeaderHelper {
|
||||
VariationsHeaderHelper& operator=(const VariationsHeaderHelper&) = delete;
|
||||
|
||||
bool AppendHeaderIfNeeded(const GURL& url, InIncognito incognito) {
|
||||
@@ -621,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
|
||||
@@ -637,16 +644,17 @@
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -334,8 +299,6 @@ void RemoveVariationsHeaderIfNeeded(
|
||||
@@ -340,9 +303,6 @@ void RemoveVariationsHeaderIfNeeded(
|
||||
const net::RedirectInfo& redirect_info,
|
||||
const network::mojom::URLResponseHead& response_head,
|
||||
std::vector<std::string>* to_be_removed_headers) {
|
||||
- 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
|
||||
@@ -378,29 +338,22 @@ CreateSimpleURLLoaderWithVariationsHeade
|
||||
}
|
||||
|
||||
bool HasVariationsHeader(const network::ResourceRequest& request) {
|
||||
@@ -681,9 +689,9 @@
|
||||
} // namespace variations
|
||||
--- a/content/browser/preloading/prefetch/prefetch_container.cc
|
||||
+++ b/content/browser/preloading/prefetch/prefetch_container.cc
|
||||
@@ -988,7 +988,7 @@ void PrefetchContainer::AddRedirectHop(c
|
||||
// some which are added by throttles). These aren't yet supported for
|
||||
@@ -727,7 +727,7 @@ void PrefetchContainer::AddRedirectHop(c
|
||||
// prefetch, including browsing topics and client hints.
|
||||
// TODO(crbug.com/441612842): Support User-Agent overrides.
|
||||
net::HttpRequestHeaders updated_headers;
|
||||
- std::vector<std::string> headers_to_remove = {variations::kClientDataHeader};
|
||||
+ std::vector<std::string> headers_to_remove;
|
||||
@@ -692,7 +700,7 @@
|
||||
|
||||
--- a/net/base/url_util.cc
|
||||
+++ b/net/base/url_util.cc
|
||||
@@ -536,28 +536,6 @@ bool HasGoogleHost(const GURL& url) {
|
||||
@@ -552,28 +552,6 @@ bool HasGoogleHost(const GURL& url) {
|
||||
}
|
||||
|
||||
bool IsGoogleHost(std::string_view host) {
|
||||
+4
-4
@@ -15,7 +15,7 @@
|
||||
"//components/webapps/isolated_web_apps/preload:component",
|
||||
"//third_party/widevine/cdm",
|
||||
]
|
||||
@@ -1177,7 +1176,6 @@ if (is_win) {
|
||||
@@ -1180,7 +1179,6 @@ if (is_win) {
|
||||
":optimization_guide_library",
|
||||
":swiftshader_binaries",
|
||||
":widevine_cdm_library",
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
--- a/chrome/browser/resources/BUILD.gn
|
||||
+++ b/chrome/browser/resources/BUILD.gn
|
||||
@@ -98,11 +98,6 @@ group("resources") {
|
||||
@@ -108,11 +108,6 @@ group("resources") {
|
||||
]
|
||||
}
|
||||
|
||||
@@ -35,5 +35,5 @@
|
||||
- ]
|
||||
- }
|
||||
|
||||
if (is_win || is_mac || is_linux || is_chromeos) {
|
||||
public_deps += [ "connectors_internals:resources" ]
|
||||
if (is_win || is_mac || is_linux || is_chromeos || is_desktop_android) {
|
||||
public_deps += [ "discards:resources" ]
|
||||
+1
-1
@@ -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 {
|
||||
+12
-15
@@ -1,9 +1,9 @@
|
||||
--- a/components/browsing_data/content/browsing_data_model.cc
|
||||
+++ b/components/browsing_data/content/browsing_data_model.cc
|
||||
@@ -991,12 +991,6 @@ void BrowsingDataModel::PopulateFromDisk
|
||||
@@ -992,12 +992,6 @@ void BrowsingDataModel::PopulateFromDisk
|
||||
base::FeatureList::IsEnabled(network::features::kSharedStorageAPI);
|
||||
bool is_shared_dictionary_enabled = base::FeatureList::IsEnabled(
|
||||
network::features::kCompressionDictionaryTransportBackend);
|
||||
network::features::kCompressionDictionaryTransport);
|
||||
- bool is_interest_group_enabled =
|
||||
- base::FeatureList::IsEnabled(network::features::kInterestGroupStorage);
|
||||
- bool is_attribution_reporting_enabled = base::FeatureList::IsEnabled(
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
base::RepeatingClosure completion =
|
||||
base::BindRepeating([](const base::OnceClosure&) {},
|
||||
@@ -1033,27 +1027,7 @@ void BrowsingDataModel::PopulateFromDisk
|
||||
@@ -1034,27 +1028,7 @@ void BrowsingDataModel::PopulateFromDisk
|
||||
base::BindOnce(&OnSharedDictionaryUsageLoaded, this, completion));
|
||||
}
|
||||
|
||||
@@ -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
|
||||
@@ -1485,38 +1485,7 @@ void StoragePartitionImpl::Initialize(
|
||||
@@ -1506,38 +1506,7 @@ void StoragePartitionImpl::Initialize(
|
||||
|
||||
bucket_manager_ = std::make_unique<BucketManager>(this);
|
||||
|
||||
@@ -217,7 +214,7 @@
|
||||
|
||||
GeneratedCodeCacheSettings settings =
|
||||
GetContentClient()->browser()->GetGeneratedCodeCacheSettings(
|
||||
@@ -1545,8 +1514,6 @@ void StoragePartitionImpl::Initialize(
|
||||
@@ -1566,8 +1535,6 @@ void StoragePartitionImpl::Initialize(
|
||||
|
||||
font_access_manager_ = FontAccessManager::Create();
|
||||
|
||||
@@ -226,7 +223,7 @@
|
||||
|
||||
#if BUILDFLAG(ENABLE_LIBRARY_CDMS)
|
||||
if (is_in_memory()) {
|
||||
@@ -1570,11 +1537,6 @@ void StoragePartitionImpl::Initialize(
|
||||
@@ -1591,11 +1558,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
|
||||
@@ -4127,12 +4127,6 @@ void WebContentsImpl::Init(const WebCont
|
||||
@@ -4267,12 +4267,6 @@ void WebContentsImpl::Init(const WebCont
|
||||
DateTimeChooser::CreateDateTimeChooser(this);
|
||||
#endif
|
||||
|
||||
@@ -255,7 +252,7 @@
|
||||
BtmWebContentsObserver::MaybeCreateForWebContents(this);
|
||||
--- a/content/services/auction_worklet/private_aggregation_bindings.cc
|
||||
+++ b/content/services/auction_worklet/private_aggregation_bindings.cc
|
||||
@@ -406,53 +406,6 @@ PrivateAggregationBindings::~PrivateAggr
|
||||
@@ -407,53 +407,6 @@ PrivateAggregationBindings::~PrivateAggr
|
||||
|
||||
void PrivateAggregationBindings::AttachToContext(
|
||||
v8::Local<v8::Context> context) {
|
||||
@@ -265,8 +262,8 @@
|
||||
- return;
|
||||
- }
|
||||
-
|
||||
- v8::Local<v8::External> v8_this =
|
||||
- v8::External::New(v8_helper_->isolate(), this);
|
||||
- v8::Local<v8::External> v8_this = v8::External::New(
|
||||
- v8_helper_->isolate(), this, gin::kPrivateAggregationBindingsTag);
|
||||
-
|
||||
- v8::Local<v8::Object> private_aggregation =
|
||||
- v8::Object::New(v8_helper_->isolate());
|
||||
+1
-1
@@ -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 =
|
||||
+4
-4
@@ -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
|
||||
@@ -130,7 +130,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -146,7 +146,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterStringPref(prefs::kWebRTCUDPPortRange, std::string());
|
||||
registry->RegisterBooleanPref(prefs::kWebRtcEventLogCollectionAllowed, false);
|
||||
registry->RegisterListPref(prefs::kWebRtcLocalIpsAllowedUrls);
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user