mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Compare commits
81 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4d6fdeb156 | |||
| 28823a634b | |||
| dad7e19df0 | |||
| 9a900f1e48 | |||
| 672c986f28 | |||
| 6305ef215f | |||
| 58f6aa1135 | |||
| 483d84e481 | |||
| dbe7963624 | |||
| 47bc6ecca7 | |||
| ebb0cb88e4 | |||
| 71cd486eaf | |||
| bf26fa3e96 | |||
| e1f2182e90 | |||
| 058dbdb229 | |||
| c9a7f5b1b3 | |||
| 1d5f225b08 | |||
| d9213991cc | |||
| a6484f3d3f | |||
| 6271d50506 | |||
| 6e13b31f0e | |||
| dbb383d84e | |||
| 025564d6d7 | |||
| 4010387eab | |||
| 3a977845f0 | |||
| a126f65782 | |||
| 28393b6386 | |||
| 76f98dc4eb | |||
| 70eb9a635d | |||
| 7413c75494 | |||
| b5f74116b5 | |||
| 825f4133fb | |||
| aa47b1c96b | |||
| 89b1d39616 | |||
| 0796d78ce2 | |||
| 0e489582aa | |||
| bb49e1680e | |||
| c242d6f7f6 | |||
| 6f9cf25b95 | |||
| 52271f9841 | |||
| 9873ccd1d9 | |||
| 364ce99eaf | |||
| aef6a463d5 | |||
| 5fee4a7145 | |||
| 55efa2111f | |||
| 49373d155b | |||
| bb5af0c7b1 | |||
| af5539abf7 | |||
| a3db74b428 | |||
| 14d7bbb71b | |||
| 5607b15249 | |||
| 64ec07beb7 | |||
| 38a114d48d | |||
| 08f481a314 | |||
| cde40a97f0 | |||
| 0dae50b2f0 | |||
| 327c2eccfc | |||
| a256e3a4e5 | |||
| f753602e4e | |||
| f45035b8c9 | |||
| 7310a65592 | |||
| 03b64f23a4 | |||
| 29cf8f0ad3 | |||
| bf61a1a5c0 | |||
| 60f45b2ba5 | |||
| 159473844a | |||
| 1e4188bbca | |||
| 1a4952eb9e | |||
| 2ce4603ecf | |||
| 6cce6332c7 | |||
| 8f89dcfa97 | |||
| 830b7bcc4b | |||
| 06da4cfcdc | |||
| f34f4e8bd2 | |||
| 27d17fa340 | |||
| fc37b27f9a | |||
| a290073661 | |||
| 0814b98d6b | |||
| b6eaed2233 | |||
| d13d58652f | |||
| fde4fe86b6 |
@@ -1,101 +0,0 @@
|
||||
name: Bug Report
|
||||
description: Report a bug building or running ungoogled-chromium
|
||||
labels: ["bug"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Before submitting this issue, please confirm if you should submit it to a [platform-specific issue tracker instead](https://github.com/ungoogled-software/ungoogled-chromium/blob/master/SUPPORT.md#platform-specific-support)
|
||||
|
||||
Otherwise, your issue may not be noticed. In addition, please read through the [SUPPORT.md](https://github.com/ungoogled-software/ungoogled-chromium/blob/master/SUPPORT.md) first
|
||||
- type: dropdown
|
||||
id: os
|
||||
attributes:
|
||||
label: OS/Platform
|
||||
description: OS/Platform you are running ungoogled-chromium on
|
||||
options:
|
||||
- Android
|
||||
- Arch Linux
|
||||
- Debian, Ubuntu, and derivatives
|
||||
- Fedora and CentOS
|
||||
- Gentoo
|
||||
- GNU Guix
|
||||
- macOS
|
||||
- NixOS
|
||||
- Other Linux (please specify)
|
||||
- Portable Linux
|
||||
- Slackware
|
||||
- Windows
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: install
|
||||
attributes:
|
||||
label: Installed
|
||||
description: How was ungoogled-chromium installed on your OS/Platform
|
||||
options:
|
||||
- Compiled from source
|
||||
- OS/Platform's package manager
|
||||
- Flatpak
|
||||
- https://ungoogled-software.github.io/ungoogled-chromium-binaries/
|
||||
- Other (please use 'Additional context' field below to mention how exactly)
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: version
|
||||
attributes:
|
||||
label: Version
|
||||
description: ungoogled-chromium version. Could be copied from chrome://settings/help
|
||||
validations:
|
||||
required: true
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Have you tested that this is not an upstream issue or an issue with your configuration?
|
||||
options:
|
||||
- label: I have tried reproducing this issue in Chrome and it could not be reproduced there
|
||||
- label: I have tried reproducing this issue in vanilla Chromium and it could not be reproduced there
|
||||
- label: I have tried reproducing this issue in ungoogled-chromium with a new and empty profile using `--user-data-dir` command line argument and it could not be reproduced there
|
||||
- type: input
|
||||
id: description
|
||||
attributes:
|
||||
label: Description
|
||||
description: A clear and concise description (in one line) of what the bug is
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: repro
|
||||
attributes:
|
||||
label: How to Reproduce?
|
||||
description: Steps to reproduce the behaviour
|
||||
placeholder: |
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
4. See error
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: actual
|
||||
attributes:
|
||||
label: Actual behaviour
|
||||
description: A clear and concise description of what happens
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: expected
|
||||
attributes:
|
||||
label: Expected behaviour
|
||||
description: A clear and concise description of what you expected to happen
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: logs
|
||||
attributes:
|
||||
label: Relevant log output
|
||||
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
|
||||
render: sh
|
||||
- type: textarea
|
||||
id: additional
|
||||
attributes:
|
||||
label: Additional context
|
||||
description: Add any other context about the problem here. If applicable, add screenshots to help explain your problem.
|
||||
@@ -1,18 +0,0 @@
|
||||
---
|
||||
name: Create an "Updating to Chromium x.x.x.x"
|
||||
about: For letting the community track progress to a new stable Chromium
|
||||
title: Updating to Chromium {{ env.VERSION }} on {{ env.PLATFORM }}
|
||||
labels: update
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
Chromium stable channel for {{ env.PLATFORM }} has been updated to a newer version: {{ env.VERSION }}.
|
||||
|
||||
If you are willing to work on updating the patches and lists, please leave a comment in this issue in order to facilitate better coordination and avoid wasted/duplicated efforts.
|
||||
|
||||
If you'd like to increase visibility of your progress or get early feedback/advice, consider creating a [Draft Pull Request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests#draft-pull-requests). Finally, make sure to reference this issue in your PR. Please make sure to read [/docs/developing.md](https://github.com/ungoogled-software/ungoogled-chromium/blob/master/docs/developing.md#updating-patches) for guidance.
|
||||
|
||||
Feel free to raise issues or questions throughout the process here. However, please refrain from asking for ETAs unless no visible progress has been made here or in the developer's PR for a while (e.g. 2 weeks).
|
||||
|
||||
{{ env.NOTIFY_MAINTAINERS }}
|
||||
@@ -1,47 +0,0 @@
|
||||
name: Feature request
|
||||
description: Suggest an idea
|
||||
labels: ["enhancement", "help wanted"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Before submitting this feature request, please confirm if you should submit it to a [platform-specific issue tracker instead](https://github.com/ungoogled-software/ungoogled-chromium/blob/master/SUPPORT.md#platform-specific-support)
|
||||
|
||||
Otherwise, your issue may not be noticed. In addition, please read through the [SUPPORT.md](https://github.com/ungoogled-software/ungoogled-chromium/blob/master/SUPPORT.md) first
|
||||
- type: input
|
||||
id: description
|
||||
attributes:
|
||||
label: Description
|
||||
description: A clear and concise description (in one line) of what your suggestion is
|
||||
validations:
|
||||
required: true
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Who's implementing?
|
||||
options:
|
||||
- label: I'm willing to implement this feature myself
|
||||
- type: textarea
|
||||
id: prob
|
||||
attributes:
|
||||
label: The problem
|
||||
description: Please describe the problem you are solving or new feature you're suggesting
|
||||
placeholder: I'm always frustrated when [...] happens
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: sol
|
||||
attributes:
|
||||
label: Possible solutions
|
||||
description: Please describe possible solution(-s) to The Problem
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: alt
|
||||
attributes:
|
||||
label: Alternatives
|
||||
description: Please describe alternatives you've considered, if any
|
||||
- type: textarea
|
||||
id: additional
|
||||
attributes:
|
||||
label: Additional context
|
||||
description: Add any other context about the feature request here
|
||||
@@ -1 +0,0 @@
|
||||
*(Please ensure you have read SUPPORT.md and docs/contributing.md before submitting the Pull Request)*
|
||||
@@ -1 +0,0 @@
|
||||
* @ungoogled-software/core
|
||||
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2015-2023, The ungoogled-chromium Authors
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -1,189 +1,42 @@
|
||||
# ungoogled-chromium
|
||||
# Helium
|
||||
Bullshit-free web browser, based on Chromium. Follows [imput](https://github.com/imputnet)'s ethics and norms.
|
||||
|
||||
*A lightweight approach to removing Google web service dependency*
|
||||
Very WIP, not meant for public/end user consumption, etc.
|
||||
|
||||
**Help is welcome!** See the [docs/contributing.md](docs/contributing.md) document for more information.
|
||||
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.
|
||||
|
||||
## Objectives
|
||||
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!
|
||||
|
||||
In descending order of significance (i.e. most important objective first):
|
||||
|
||||
1. **ungoogled-chromium is Google Chromium, sans dependency on Google web services**.
|
||||
2. **ungoogled-chromium retains the default Chromium experience as closely as possible**. Unlike other Chromium forks that have their own visions of a web browser, ungoogled-chromium is essentially a drop-in replacement for Chromium.
|
||||
3. **ungoogled-chromium features tweaks to enhance privacy, control, and transparency**. However, almost all of these features must be manually activated or enabled. For more details, see [Feature Overview](#feature-overview).
|
||||
|
||||
In scenarios where the objectives conflict, the objective of higher significance should take precedence.
|
||||
|
||||
## Content Overview
|
||||
|
||||
* [Objectives](#objectives)
|
||||
* [Motivation and Philosophy](#motivation-and-philosophy)
|
||||
* [Feature Overview](#feature-overview)
|
||||
* [**Downloads**](#downloads)
|
||||
* [Source Code](#source-code)
|
||||
* [**FAQ**](#faq)
|
||||
* [Building Instructions](#building-instructions)
|
||||
* [Design Documentation](#design-documentation)
|
||||
* [**Contributing, Reporting, Contacting**](#contributing-reporting-contacting)
|
||||
* [Credits](#credits)
|
||||
* [Related Projects](#related-projects)
|
||||
* [License](#license)
|
||||
|
||||
## Motivation and Philosophy
|
||||
|
||||
Without signing in to a Google Account, Chromium does pretty well in terms of security and privacy. However, Chromium still has some dependency on Google web services and binaries. In addition, Google designed Chromium to be easy and intuitive for users, which means they compromise on transparency and control of internal operations.
|
||||
|
||||
ungoogled-chromium addresses these issues in the following ways:
|
||||
|
||||
1. Remove all remaining background requests to any web services while building and running the browser
|
||||
2. Remove all code specific to Google web services
|
||||
3. Remove all uses of pre-made binaries from the source code, and replace them with user-provided alternatives when possible.
|
||||
4. Disable features that inhibit control and transparency, and add or modify features that promote them (these changes will almost always require manual activation or enabling).
|
||||
|
||||
These features are implemented as configuration flags, patches, and custom scripts. For more details, consult the [Design Documentation](docs/design.md).
|
||||
|
||||
## Feature Overview
|
||||
|
||||
*This section overviews the features of ungoogled-chromium. For more detailed information, it is best to consult the source code.*
|
||||
|
||||
Contents of this section:
|
||||
|
||||
* [Key Features](#key-features)
|
||||
* [Enhancing Features](#enhancing-features)
|
||||
* [Borrowed Features](#borrowed-features)
|
||||
* [Supported Platforms and Distributions](#supported-platforms-and-distributions)
|
||||
|
||||
### Key Features
|
||||
|
||||
*These are the core features introduced by ungoogled-chromium.*
|
||||
|
||||
* Disable functionality specific to Google domains (e.g. Google Host Detector, Google URL Tracker, Google Cloud Messaging, Google Hotwording, etc.)
|
||||
* This includes disabling [Safe Browsing](https://en.wikipedia.org/wiki/Google_Safe_Browsing). Consult [the FAQ for the rationale](https://ungoogled-software.github.io/ungoogled-chromium-wiki/faq#why-is-safe-browsing-disabled).
|
||||
* Block internal requests to Google at runtime. This feature is a fail-safe measure for the above, in case Google changes or introduces new components that our patches do not disable. This feature is implemented by replacing many Google web domains in the source code with non-existent alternatives ending in `qjz9zk` (known as domain substitution; [see docs/design.md](docs/design.md#source-file-processors) for details), then [modifying Chromium to block its own requests with such domains](patches/core/ungoogled-chromium/block-trk-and-subdomains.patch). In other words, no connections are attempted to the `qjz9zk` domain.
|
||||
* Strip binaries from the source code (known as binary pruning; [see docs/design.md](docs/design.md#source-file-processors) for details)
|
||||
|
||||
### Enhancing Features
|
||||
|
||||
*These are the non-essential features introduced by ungoogled-chromium.*
|
||||
|
||||
* Add many new command-line switches and `chrome://flags` entries to configure new features (which are disabled by default). See [docs/flags.md](docs/flags.md) for the exhaustive list.
|
||||
* Add *Suggestions URL* text field in the search engine editor (`chrome://settings/searchEngines`) for customizing search engine suggestions.
|
||||
* Add more URL schemes allowed to save page schemes.
|
||||
* Add Omnibox search provider "No Search" to allow disabling of searching
|
||||
* Add a custom cross-platform build configuration and packaging wrapper for Chromium. It currently supports many Linux distributions, macOS, and Windows. (See [docs/design.md](docs/design.md) for details on the system.)
|
||||
* Force all pop-ups into tabs
|
||||
* Disable automatic formatting of URLs in Omnibox (e.g. stripping `http://`, hiding certain parameters)
|
||||
* Disable intranet redirect detector (extraneous DNS requests)
|
||||
* This breaks captive portal detection, but captive portals still work.
|
||||
* (Iridium Browser feature change) Prevent URLs with the `trk:` scheme from connecting to the Internet
|
||||
* Also prevents any URLs with the top-level domain `qjz9zk` (as used in domain substitution) from attempting a connection.
|
||||
* (Windows-specific) Do not set the Zone Identifier on downloaded files
|
||||
|
||||
### Borrowed Features
|
||||
|
||||
In addition to the features introduced by ungoogled-chromium, ungoogled-chromium selectively borrows many features from the following projects (in approximate order of significance):
|
||||
|
||||
* [Inox patchset](https://github.com/gcarq/inox-patchset)
|
||||
* [Bromite](https://github.com/bromite/bromite)
|
||||
* [Debian](https://tracker.debian.org/pkg/chromium)
|
||||
* [Iridium Browser](https://iridiumbrowser.de/)
|
||||
|
||||
### Supported Platforms and Distributions
|
||||
|
||||
[See docs/platforms.md for a list of supported platforms](docs/platforms.md).
|
||||
|
||||
Other platforms are discussed and tracked in this repository's Issue Tracker. Learn more about using the Issue Tracker under the section [Contributing, Reporting, Contacting](#contributing-reporting-contacting).
|
||||
|
||||
## Downloads
|
||||
|
||||
### Automated or maintained builds
|
||||
|
||||
ungoogled-chromium is available in the following **software repositories**:
|
||||
|
||||
* Arch: Available in the AUR, [see instructions in ungoogled-chromium-archlinux](https://github.com/ungoogled-software/ungoogled-chromium-archlinux)
|
||||
* Debian & Ubuntu: Available in OBS, find your [distribution specific instructions](https://github.com/ungoogled-software/ungoogled-chromium-debian) in the Installing section
|
||||
* Fedora: Available in [COPR](https://copr.fedorainfracloud.org/coprs/) as [`wojnilowicz/ungoogled-chromium`](https://copr.fedorainfracloud.org/coprs/wojnilowicz/ungoogled-chromium/). Also available in [RPM Fusion](https://rpmfusion.org/Configuration) as `chromium-browser-privacy` (outdated).
|
||||
* Gentoo: Available in [`::pf4public`](https://github.com/PF4Public/gentoo-overlay) overlay as [`ungoogled-chromium`](https://github.com/PF4Public/gentoo-overlay/tree/master/www-client/ungoogled-chromium) and [`ungoogled-chromium-bin`](https://github.com/PF4Public/gentoo-overlay/tree/master/www-client/ungoogled-chromium-bin) ebuilds
|
||||
* [OpenMandriva](https://openmandriva.org/) includes ungoogled-chromium as its main browser. The `chromium` package includes all ungoogling patches.
|
||||
* macOS: Available in [Homebrew](https://brew.sh/) as [`eloston-chromium`](https://formulae.brew.sh/cask/eloston-chromium). Just run `brew install --cask eloston-chromium`. Chromium will appear in your `/Applications` directory.
|
||||
* FreeBSD: Available in pkg as [`www/ungoogled-chromium`](https://www.freshports.org/www/ungoogled-chromium/).
|
||||
|
||||
If your GNU/Linux distribution is not listed, there are distro-independent builds available via the following **package managers**:
|
||||
|
||||
* Flatpak: Available [in the Flathub repo](https://flathub.org/apps/details/io.github.ungoogled_software.ungoogled_chromium) as `io.github.ungoogled_software.ungoogled_chromium`
|
||||
* GNU Guix: Available as `ungoogled-chromium`
|
||||
* NixOS/nixpkgs: Available as `ungoogled-chromium`
|
||||
|
||||
### Third-party binaries
|
||||
|
||||
If your operating system is not listed above, you can also try to [**Download binaries from here**](https://ungoogled-software.github.io/ungoogled-chromium-binaries/)
|
||||
|
||||
*NOTE: These binaries are provided by anyone who are willing to build and submit them. Because these binaries are not necessarily [reproducible](https://reproducible-builds.org/), authenticity cannot be guaranteed; In other words, there is always a non-zero probability that these binaries may have been tampered with. In the unlikely event that this has happened to you, please [report it in a new issue](#contributing-reporting-contacting).*
|
||||
|
||||
These binaries are known as **contributor binaries**.
|
||||
|
||||
## Source Code
|
||||
|
||||
This repository only contains the common code for all platforms; it does not contain all the configuration and scripts necessary to build ungoogled-chromium. Most users will want to use platform-specific repos, where all the remaining configuration and scripts are provided for specific platforms:
|
||||
|
||||
[**Find the repo for a specific platform here**](docs/platforms.md).
|
||||
|
||||
If you wish to include ungoogled-chromium code in your own build process, consider using [the tags in this repo](https://github.com/ungoogled-software/ungoogled-chromium/tags). These tags follow the format `{chromium_version}-{revision}` where
|
||||
|
||||
* `chromium_version` is the version of Chromium used in `x.x.x.x` format, and
|
||||
* `revision` is a number indicating the version of ungoogled-chromium for the corresponding Chromium version.
|
||||
|
||||
Additionally, most platform-specific repos extend their tag scheme upon this one.
|
||||
|
||||
**Building the source code**: [See docs/building.md](docs/building.md)
|
||||
|
||||
### Mirrors
|
||||
|
||||
List of mirrors:
|
||||
|
||||
* [Codeberg](https://codeberg.org): [main repo](https://codeberg.org/ungoogled-software/ungoogled-chromium) and [ungoogled-software](https://codeberg.org/ungoogled-software)
|
||||
|
||||
## FAQ
|
||||
|
||||
[See the frequently-asked questions (FAQ) on the Wiki](https://ungoogled-software.github.io/ungoogled-chromium-wiki/faq)
|
||||
|
||||
## Building Instructions
|
||||
|
||||
[See docs/building.md](docs/building.md)
|
||||
|
||||
## Design Documentation
|
||||
|
||||
[See docs/design.md](docs/design.md)
|
||||
|
||||
## Contributing, Reporting, Contacting
|
||||
|
||||
* For reporting and contacting, see [SUPPORT.md](SUPPORT.md)
|
||||
* If you're willing to help, check out the [Issue Tracker](https://github.com/ungoogled-software/ungoogled-chromium/issues) and especially issues, which [need help](https://github.com/ungoogled-software/ungoogled-chromium/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22)
|
||||
* For contributing (e.g. how to help, submitting changes, criteria for new features), see [docs/contributing.md](docs/contributing.md)
|
||||
* If you have some small contributions that don't fit our criteria, consider adding them to [ungoogled-software/contrib](https://github.com/ungoogled-software/contrib) or [our Wiki](https://github.com/ungoogled-software/ungoogled-chromium-wiki) instead.
|
||||
## 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.
|
||||
|
||||
## Credits
|
||||
### ungoogled-chromium
|
||||
Helium is proudly based on [ungoogled-chromium](https://github.com/ungoogled-software/ungoogled-chromium).
|
||||
It wouldn't be possible for us to get rid of Google's bloat and get a development+building pipeline this fast without it.
|
||||
Huge shout-out to everyone behind this amazing project!
|
||||
(and we intend to contribute even more stuff upstream in the future)
|
||||
|
||||
* [The Chromium Project](https://www.chromium.org/)
|
||||
* [Inox patchset](https://github.com/gcarq/inox-patchset)
|
||||
* [Debian](https://tracker.debian.org/pkg/chromium-browser)
|
||||
* [Bromite](https://github.com/bromite/bromite)
|
||||
* [Iridium Browser](https://iridiumbrowser.de/)
|
||||
* The users for testing and debugging, [contributing code](https://github.com/ungoogled-software/ungoogled-chromium/graphs/contributors), providing feedback, or simply using ungoogled-chromium in some capacity.
|
||||
### The Chromium project
|
||||
[The Chromium Project](https://www.chromium.org/) is obviously at the core of Helium,
|
||||
making it possible to exist in the first place.
|
||||
|
||||
## Related Projects
|
||||
|
||||
List of known projects that fork or use changes from ungoogled-chromium:
|
||||
|
||||
* [Bromite](https://github.com/bromite/bromite) (Borrows some patches. Features builds for Android)
|
||||
* [ppc64le fork](https://github.com/leo-lb/ungoogled-chromium) (Fork with changes to build for ppc64le CPUs)
|
||||
### ungoogled-chromium's dependencies
|
||||
- [Inox patchset](https://github.com/gcarq/inox-patchset)
|
||||
- [Debian](https://tracker.debian.org/pkg/chromium-browser)
|
||||
- [Bromite](https://github.com/bromite/bromite)
|
||||
- [Iridium Browser](https://iridiumbrowser.de/)
|
||||
|
||||
## License
|
||||
|
||||
All code, patches, modified portions of imported code or patches, and
|
||||
any other content that is unique to Helium and not imported from other
|
||||
repositories is licensed under GPL-3.0. See [LICENSE](LICENSE).
|
||||
|
||||
Any content imported from other projects retains its original license (for
|
||||
example, any original unmodified code imported from ungoogled-chromium remains
|
||||
licensed under their [BSD 3-Clause license](https://github.com/ungoogled-software/ungoogled-chromium/blob/464e163fb067ad1134ffb7da5b6d2da478d8939e/LICENSE)).
|
||||
licensed under their [BSD 3-Clause license](LICENSE.ungoogled_chromium)).
|
||||
|
||||
-30
@@ -1,30 +0,0 @@
|
||||
# Support
|
||||
|
||||
**Before you submit feedback, please ensure you have tried the following**:
|
||||
|
||||
* Read the [FAQ](https://ungoogled-software.github.io/ungoogled-chromium-wiki/faq)
|
||||
* If you are using a build for an officially-supported platform ([see the list here](docs/platforms.md)), then please refer to the [Platform-specific Support](#platform-specific-support) section first.
|
||||
* Check if your feedback already exists in the [Issue Tracker](https://github.com/ungoogled-software/ungoogled-chromium/issues) (make sure to search closed issues and use search filters, as applicable)
|
||||
* If this is a problem, ensure it does *not* occur with regular Chromium or Google Chrome. If it does, then this is *not* a problem with ungoogled-chromium. Instead, please submit your feedback to the [Chromium bug tracker](https://bugs.chromium.org/p/chromium/issues/list) or Google.
|
||||
* Read the documentation under [docs/](docs/)
|
||||
|
||||
There are a few channels for support:
|
||||
|
||||
* An issue tracker. Issue trackers are the main hubs for discussions and development activity, and thus the primary means of support. They includes problems, suggestions, and questions. If you are using a build for an officially-supported platform ([see the list here](docs/platforms.md)), then please refer to the [Platform-specific Support](#platform-specific-support) section to find its issue tracker. Otherwise, please use [the main issue tracker](https://github.com/ungoogled-software/ungoogled-chromium/issues).
|
||||
* A chat room. There are two options available:
|
||||
* [Gitter](https://gitter.im/ungoogled-software/Lobby). It can use your GitHub account as an identity.
|
||||
* Matrix.org under name `ungoogled-software/lobby`. It has a bidirectional connection with Gitter.
|
||||
|
||||
## Platform-specific Support
|
||||
|
||||
For officially-supported platforms, **please visit their issue trackers before using the issue tracker in this repository**:
|
||||
|
||||
* Android: [Issue tracker](https://github.com/ungoogled-software/ungoogled-chromium-android/issues)
|
||||
* Arch Linux and derivatives (e.g. Manjaro): [Issue tracker](https://github.com/ungoogled-software/ungoogled-chromium-archlinux/issues)
|
||||
* Debian & Ubuntu: [Issue tracker](https://github.com/ungoogled-software/ungoogled-chromium-debian/issues)
|
||||
* Fedora & CentOS: [Issue tracker](https://github.com/ungoogled-software/ungoogled-chromium-fedora/issues)
|
||||
* Flatpak: [Issue tracker](https://github.com/ungoogled-software/ungoogled-chromium-flatpak/issues)
|
||||
* Gentoo ([@PF4Public](https://github.com/PF4Public)'s overlay): [Issue tracker](https://github.com/PF4Public/gentoo-overlay/issues?q=is%3Aissue++ungoogled-chromium+)
|
||||
* macOS: [Issue tracker](https://github.com/ungoogled-software/ungoogled-chromium-macos/issues)
|
||||
* Portable Linux: [Issue tracker](https://github.com/ungoogled-software/ungoogled-chromium-portablelinux/issues)
|
||||
* Windows: [Issue tracker](https://github.com/ungoogled-software/ungoogled-chromium-windows/issues)
|
||||
@@ -1 +1 @@
|
||||
136.0.7103.92
|
||||
138.0.7204.49
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Run sanity checking algorithms over downloads.ini files
|
||||
|
||||
It checks the following:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""
|
||||
Checks if files in a list exist.
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Run sanity checking algorithms over GN flags
|
||||
|
||||
It checks the following:
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Run sanity checking algorithms over ungoogled-chromium's patch files
|
||||
|
||||
It checks the following:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Run Pylint over devutils"""
|
||||
|
||||
import argparse
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Run Pylint over any module"""
|
||||
|
||||
import argparse
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Run Pylint over utils"""
|
||||
|
||||
import argparse
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Test check_patch_files.py"""
|
||||
|
||||
import logging
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Test validate_patches.py"""
|
||||
|
||||
import logging
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
|
||||
"""
|
||||
Update binary pruning and domain substitution lists automatically.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
|
||||
"""
|
||||
Utility to ease the updating of platform patches against ungoogled-chromium's patches
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""Run sanity checking algorithms over ungoogled-chromium's config files
|
||||
|
||||
NOTE: This script is hardcoded to run over ungoogled-chromium's config files only.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
# Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
# found in the LICENSE.ungoogled_chromium file.
|
||||
"""
|
||||
Validates that all patches apply cleanly against the source tree.
|
||||
|
||||
|
||||
@@ -1,76 +0,0 @@
|
||||
# Building ungoogled-chromium
|
||||
|
||||
The recommended way to build ungoogled-chromium is by consulting [the repository for your supported platform (links here)](platforms.md).
|
||||
|
||||
* *Linux users*: If your distribution is not listed, you will need to use Portable Linux.
|
||||
|
||||
If you want to add ungoogled-chromium to your existing Chromium build process, see the next section. Additionally, you may reference the repositories for supported platforms for inspiration.
|
||||
|
||||
## Integrating ungoogled-chromium into your Chromium build process
|
||||
|
||||
Typically, ungoogled-chromium is built from [code in platform-specific repositories](platforms.md). However, ungoogled-chromium can also be included in part or in whole into any custom Chromium build. In this section, **we will assume you already have a process to make your own Chromium builds**.
|
||||
|
||||
**NOTE**: You may need additional patches and/or build configuration for [your supported platform](platforms.md) because this repository does not contain all the code necessary for all platforms.
|
||||
|
||||
Before continuing, you may find it helpful to have a look through [the design documentation](design.md).
|
||||
|
||||
The following procedure outline the essential steps to build Chromium will all of ungoogled-chromium's features. **They are not sufficient to build ungoogled-chromium on their own**.
|
||||
|
||||
1. Ensure Chromium is downloaded, such as by `depot_tools`. In most of our supported platforms, we instead use a custom tool to do this.
|
||||
|
||||
```sh
|
||||
mkdir -p build/download_cache
|
||||
./utils/downloads.py retrieve -c build/download_cache -i downloads.ini
|
||||
./utils/downloads.py retrieve -c build/download_cache -i extras.ini
|
||||
./utils/downloads.py unpack -c build/download_cache -i downloads.ini -- build/src
|
||||
./utils/downloads.py unpack -c build/download_cache -i extras.ini -- build/src
|
||||
```
|
||||
|
||||
2. Prune binaries
|
||||
|
||||
```sh
|
||||
./utils/prune_binaries.py build/src pruning.list
|
||||
```
|
||||
|
||||
3. Apply patches
|
||||
|
||||
```sh
|
||||
./utils/patches.py apply build/src patches
|
||||
```
|
||||
|
||||
4. Substitute domains and names
|
||||
|
||||
```sh
|
||||
./utils/domain_substitution.py apply -r domain_regex.list -f domain_substitution.list -c build/domsubcache.tar.gz build/src
|
||||
|
||||
./utils/name_substitution.sh" sub build/src
|
||||
```
|
||||
|
||||
5. Build GN. If you are using `depot_tools` to checkout Chromium or you already have a GN binary, you should skip this step.
|
||||
|
||||
```sh
|
||||
mkdir -p build/src/out/Default
|
||||
cd build/src
|
||||
./tools/gn/bootstrap/bootstrap.py --skip-generate-buildfiles -j4 -o out/Default/
|
||||
```
|
||||
|
||||
6. Invoke the build:
|
||||
|
||||
```
|
||||
mkdir -p build/src/out/Default
|
||||
# NOTE: flags.gn contains only a subset of what is needed to run the build.
|
||||
cp flags.gn build/src/out/Default/args.gn
|
||||
cd build/src
|
||||
# If you have additional GN flags to add, make sure to add them now.
|
||||
./out/Default/gn gen out/Default --fail-on-unused-args
|
||||
ninja -C out/Default chrome chromedriver chrome_sandbox
|
||||
```
|
||||
|
||||
## Building FAQ
|
||||
|
||||
### My build keeps crashing because I run out of RAM! How can I fix it?
|
||||
|
||||
Here are several ways to address this, in decreasing order of preference:
|
||||
|
||||
1. Decrease the number of parallel threads to Ninja (the `-j` flag)
|
||||
2. Add swap space
|
||||
@@ -1,52 +0,0 @@
|
||||
# Contributing
|
||||
|
||||
This document contains our criteria and guidelines for contributing to ungoogled-chromium.
|
||||
|
||||
If you have **small contributions that don't fit our criteria**, consider adding them to [ungoogled-software/contrib](https://github.com/ungoogled-software/contrib) or [our Wiki](https://github.com/ungoogled-software/ungoogled-chromium-wiki) instead.
|
||||
|
||||
If you are a developer of an **officially-supported platform**, be sure to check out the [Platform Repository Standards and Guidelines](repo_management.md).
|
||||
|
||||
List of contents:
|
||||
|
||||
* [How to help](#how-to-help)
|
||||
* [Submitting changes](#submitting-changes)
|
||||
* [Criteria for new features](#criteria-for-new-features)
|
||||
|
||||
### How to help
|
||||
|
||||
Generally, ungoogled-chromium needs contributors to help:
|
||||
|
||||
* Keep up-to-date with the latest stable Chromium, and any problematic changes in the new version that needs modification.
|
||||
* Help with issues marked with the `help wanted` tag (usually either questions for other users, or request for help from other developers)
|
||||
* Review Pull Requests from other contributors
|
||||
* Implement feature requests ("enhancements" in the Issue Tracker), large or small.
|
||||
* Implement issues marked with the `backlog` tag (that are closed).
|
||||
* If it requires new code, please read through the [Submitting changes](#submitting-changes) section below.
|
||||
|
||||
In addition, anyone is free to help others in need of support in the Issue Tracker.
|
||||
|
||||
If there are fixes, tweaks, or additions you want to make, continue onto the following section.
|
||||
|
||||
### Submitting changes
|
||||
|
||||
Please submit all changes via Pull Requests.
|
||||
|
||||
Guidelines:
|
||||
|
||||
* You are welcome to submit minor changes, such as bug fixes, documentation fixes, and tweaks.
|
||||
* If your change has an associated issue, please let others know that you are working on it.
|
||||
* If you want to submit a new feature, please read through the [Criteria for new features](#criteria-for-new-features) below.
|
||||
* When in doubt about the acceptance of a change, you are welcome to ask via an issue first.
|
||||
|
||||
### Criteria for new features
|
||||
|
||||
1. New features should not detract from the default Chromium experience, unless it falls under the project's main objectives (i.e. removing Google integration and enhancing privacy).
|
||||
|
||||
* For larger features, please propose them via an issue first.
|
||||
|
||||
2. New features should live behind a setting that is **off by default**.
|
||||
|
||||
* Settings are usually added via a command-line flag and `chrome://flags` entries. See [the relevant section in docs/developing.md](developing.md#adding-command-line-flags-and-chromeflags-options) for more information.
|
||||
* Unless there are significant benefits, adding the setting to `chrome://settings` is *not recommended* due to the additional maintenance required (caused by the infrastructure that backs preferences).
|
||||
|
||||
**NOTE**: In the event that the codebase changes significantly for a non-essential patch (i.e. a patch that does not contribute to the main objectives of ungoogled-chromium), it will be removed until someone updates it.
|
||||
@@ -1,20 +0,0 @@
|
||||
# Default Settings
|
||||
|
||||
Vanilla Chromium settings are not often changed by ungoogled-chromium, however there are some exceptions.
|
||||
Below is a list of the documented changes to the default Chromium settings.
|
||||
|
||||
Setting | New State | Location
|
||||
-- | -- | --
|
||||
Allow sites to check if you have payment methods saved | Disabled | chrome://settings/payments
|
||||
Ask where to save each file before downloading | Enabled | chrome://settings/downloads
|
||||
Auto sign-in | Disabled | chrome://settings/passwords
|
||||
Block third-party cookies | Enabled | chrome://settings/cookies
|
||||
Continue running background apps when Chromium is closed | Disabled | chrome://settings/system
|
||||
Hyperlink auditing (\<a ping>) | Disabled | NA
|
||||
Link Doctor | Disabled | NA
|
||||
Offer to save passwords | Disabled | chrome://settings/passwords
|
||||
Payment autofill | Disabled | chrome://settings/payments
|
||||
Preload pages | Disabled | chrome://settings/cookies
|
||||
Search suggestions | Disabled | chrome://settings/syncSetup
|
||||
Show bookmark bar | Enabled | chrome://settings/appearance
|
||||
WebRTC IP handling policy | Disable Non-Proxied UDP | `--webrtc-ip-handling-policy`
|
||||
-118
@@ -1,118 +0,0 @@
|
||||
# Design
|
||||
|
||||
This document contains a high-level technical description of ungoogled-chromium and its components.
|
||||
|
||||
## Overview
|
||||
|
||||
ungoogled-chromium consists of the following major components:
|
||||
|
||||
* [Configuration](#configuration)
|
||||
* [Configuration files](#configuration-files)
|
||||
* [Source file processors](#source-file-processors)
|
||||
* [Patches](#patches)
|
||||
* [Packaging](#packaging)
|
||||
|
||||
The following sections describe each component.
|
||||
|
||||
## Configuration
|
||||
|
||||
Configuration is a broad term that refers to patches, build flags, and metadata about Chromium source code. It consists of the following components:
|
||||
|
||||
* [Configuration files](#configuration-files)
|
||||
* [Source file processors](#source-file-processors)
|
||||
* [Patches](#patches)
|
||||
|
||||
The following sections describe each component in more depth.
|
||||
|
||||
### Configuration Files
|
||||
|
||||
Configuration files (or config files) are files that store build configuration and source code changes for a build.
|
||||
|
||||
**IMPORTANT**: For consistency, all config files must be encoded in UTF-8.
|
||||
|
||||
List of configuration files:
|
||||
|
||||
* `chromium_version.txt` - The Chromium version used by ungoogled-chromium
|
||||
* `revision.txt` - The revision of the changes on top of the given Chromium version.
|
||||
* `pruning.list` - [See the Source File Processors section](#source-file-processors)
|
||||
* `domain_regex.list` - [See the Source File Processors section](#source-file-processors)
|
||||
* `domain_substitution.list` - [See the Source File Processors section](#source-file-processors)
|
||||
* `downloads.ini` - Archives to download and unpack into the buildspace tree. This includes code not bundled in the Chromium source code archive that is specific to a non-Linux platform. On platforms such as macOS, this also includes a pre-built LLVM toolchain for convenience (which can be removed and built from source if desired).
|
||||
* `flags.gn` - GN arguments to set before building.
|
||||
|
||||
### Source File Processors
|
||||
|
||||
Source file processors are utilities that directly manipulate the Chromium source tree before building. Currently, there are two such utilities: binary pruning, and domain substitution.
|
||||
|
||||
**Binary Pruning**: Strips binaries from the source code. This includes pre-built executables, shared libraries, and other forms of machine code. Most are substituted with system or user-provided equivalents, or are built from source; those binaries that cannot be removed do not contain machine code.
|
||||
|
||||
The list of files to remove are determined by the config file `pruning.list`. This config file is generated by `devutils/update_lists.py`.
|
||||
|
||||
**Domain Substitution**: Replaces Google and several other web domain names in the Chromium source code with non-existent alternatives ending in `qjz9zk`. These changes are mainly used as a backup measure to detect potentially unpatched requests to Google. Note that domain substitution is a crude process, and *may not be easily undone*.
|
||||
|
||||
With a few patches from ungoogled-chromium, any requests with these domain names sent via `net::URLRequest` in the Chromium code are blocked and notify the user via a info bar.
|
||||
|
||||
Similar to binary pruning, the list of files to modify are listed in `domain_substitution.list`; it is also updated with `devutils/update_lists.py`.
|
||||
|
||||
The regular expressions to use are listed in `domain_regex.list`; the search and replacement expressions are delimited with a pound (`#`) symbol. The restrictions for the entries are as follows:
|
||||
* All replacement expressions must end in the TLD `qjz9zk`.
|
||||
* The search and replacement expressions must have a one-to-one correspondence: no two search expressions can match the same string, and no two replacement expressions can result in the same string.
|
||||
|
||||
### Patches
|
||||
|
||||
All of ungoogled-chromium's patches for the Chromium source code are located in `patches/`. This directory conforms to the default GNU Quilt format. That is:
|
||||
|
||||
* All patches must reside inside `patches/`
|
||||
* There is a `patches/series` text file that defines the order to apply all the patches. These patches are listed as a relative path from the `patches` directory.
|
||||
* Lines starting with the pound symbol (`#`) are ignored
|
||||
* For lines with patch paths: If there is a space followed by a pound symbol, the text after the patch path will be ignored.
|
||||
|
||||
All patch files in ungoogled-chromium must satisfy these formatting requirements:
|
||||
|
||||
* Patch filenames must end with the extension `.patch`
|
||||
* The content must be in [unified format](https://en.wikipedia.org/wiki/Diff_utility#Unified_format).
|
||||
* All paths in the hunk headers must begin after the first slash (which corresponds to the argument `-p1` for GNU patch).
|
||||
* All patches must apply cleanly (i.e. no fuzz).
|
||||
* It is recommended that hunk paths have the `a/` and `b/` prefixes, and a context of 3 (like the git default).
|
||||
* All patches must be encoded in UTF-8 (i.e. same encoding as config files).
|
||||
|
||||
Patches are categorized into two directories directly under `patches/`:
|
||||
|
||||
1. **core**: Changes regarding background requests, code specific to Google web services, or code using pre-made binaries. They must be kept up-to-date with all of the changes in Chromium.
|
||||
2. **extra**: Changes to features regarding control and transparency. They are not guaranteed to persist across updates to Chromium.
|
||||
|
||||
Within each category, patches are grouped by the following:
|
||||
|
||||
* `debian/` - Patches from Debian's Chromium
|
||||
* Patches are not modified unless they conflict with Inox's patches
|
||||
* These patches are not Debian-specific. For those, see the `debian/patches` directory
|
||||
* `inox-patchset/` - Contains a modified subset of patches from Inox patchset.
|
||||
* Some patches such as those that change branding are omitted
|
||||
* Patches are not modified unless they do not apply cleanly onto the version of Chromium being built
|
||||
* Patches are from [inox-patchset's GitHub](https://github.com/gcarq/inox-patchset)
|
||||
* [Inox patchset's license](https://github.com/gcarq/inox-patchset/blob/master/LICENSE)
|
||||
* `bromite/` - Patches from [Bromite](https://github.com/bromite/bromite)
|
||||
* `iridium-browser/` - Contains a modified subset of patches from Iridium Browser.
|
||||
* Some patches such as those that change branding or URLs to point to Iridium's own servers are omitted
|
||||
* Patches are not modified unless they conflict with Debian's or Inox's patches
|
||||
* Patches are from the `patchview` branch of Iridium's Git repository. [Git webview of the patchview branch](https://git.iridiumbrowser.de/cgit.cgi/iridium-browser/?h=patchview)
|
||||
* `opensuse/` - Patches from openSUSE's Chromium
|
||||
* `ubuntu/` - Patches from Ubuntu's Chromium
|
||||
* `ungoogled-chromium/` - Patches by ungoogled-chromium developers
|
||||
|
||||
## Packaging
|
||||
|
||||
Packaging is the process of downloading, building, and producing a distributable package of ungoogled-chromium.
|
||||
|
||||
Packaging files use the code from this repository to build ungoogled-chromium. Each platform and configuration has an associated packaging repository under the [ungoogled-software](https://github.com/ungoogled-software) organization. For more information about each packaging repository, see the [building documentation](building.md).
|
||||
|
||||
Packaging generally consists of the major steps:
|
||||
|
||||
1. Download and unpack the source tree
|
||||
2. Prune binaries
|
||||
3. Apply patches
|
||||
4. Substitute domains
|
||||
5. Build GN via `tools/gn/bootstrap/bootstrap.py`
|
||||
6. Run `gn gen` with the GN flags
|
||||
7. Build Chromium via `ninja`
|
||||
8. Create package(s) of build output (usually in `out/Default`)
|
||||
@@ -1,90 +0,0 @@
|
||||
# Development notes and procedures
|
||||
|
||||
This document contains an assortment of information for those who want to develop ungoogled-chromium.
|
||||
|
||||
Information targeted towards developers *and* other users live in [the Wiki](https://ungoogled-software.github.io/ungoogled-chromium-wiki/).
|
||||
|
||||
Contents:
|
||||
|
||||
* [Branches](#branches)
|
||||
* [Adding command-line flags and chrome://flags options](#adding-command-line-flags-and-chromeflags-options)
|
||||
* [Workflow of updating to a new Chromium version](#workflow-of-updating-to-a-new-chromium-version)
|
||||
|
||||
## Branches
|
||||
|
||||
Development is focused on `master`, and any changes in there should not break anything unless platforms break during a Chromium version rebase.
|
||||
|
||||
Larger feature changes or hotfixes must be done in a separate branch. Once they are ready, then a Pull Request can be made onto `master` (for contributors with write access, merging directly via a git client is fine). After the branch is merged, it should be removed.
|
||||
|
||||
## Adding command-line flags and `chrome://flags` options
|
||||
|
||||
See `docs/how_to_add_your_feature_flag.md` in the Chromium source tree for the steps needed. Note that updating `tools/metrics/histograms/enums.xml` is not required.
|
||||
|
||||
For new flags, first add a constant to `third_party/ungoogled/ungoogled_switches.cc` (by modifying patch `resources/patches/ungoogled-chromium/add-third-party-ungoogled.patch`). Then, use this constant in the steps outlined above.
|
||||
|
||||
## Workflow of updating to a new Chromium version
|
||||
|
||||
Tested on Debian 10 (buster). Exact instructions should work on any other Linux or macOS system with the proper dependencies.
|
||||
|
||||
To gain a deeper understanding of this updating process, have a read through [docs/design.md](design.md).
|
||||
|
||||
### Dependencies
|
||||
|
||||
* [`quilt`](http://savannah.nongnu.org/projects/quilt)
|
||||
* This is available in most (if not all) Linux distributions, and also Homebrew on macOS.
|
||||
* This utility facilitates most of the updating process, so it is important to learn how to use this. The manpage for quilt (as of early 2017) lacks an example of a workflow. There are multiple guides online, but [this guide from Debian](https://wiki.debian.org/UsingQuilt) and [the referenced guide on that page](https://raphaelhertzog.com/2012/08/08/how-to-use-quilt-to-manage-patches-in-debian-packages/) are the ones referenced in developing the current workflow.
|
||||
* Python 3.9 or newer
|
||||
* `httplib2` and `six` are also required if you wish to utilize a source clone instead of the source tarball.
|
||||
|
||||
### Downloading the source code
|
||||
```sh
|
||||
./utils/clone.py -o build/src
|
||||
```
|
||||
|
||||
### Updating lists
|
||||
|
||||
The utility `devutils/update_lists.py` automates this process. By default, it will update the files in the local repo. Pass in `-h` or `--help` for available options.
|
||||
|
||||
```sh
|
||||
./devutils/update_lists.py -t build/src
|
||||
```
|
||||
|
||||
The resulting source tree in `build/src` *will not* have binaries pruned or domains substituted.
|
||||
|
||||
### Updating patches
|
||||
|
||||
**IMPORTANT**: Make sure domain substitution has not been applied before updating patches.
|
||||
|
||||
1. Run `source devutils/set_quilt_vars.sh` (or `source devutils/set_quilt_vars.fish` if you are using the fish shell)
|
||||
* This will setup quilt to modify patches directly in `patches/`
|
||||
2. Go into the source tree: `cd build/src`
|
||||
3. Use `quilt` to refresh all patches: `quilt push -a --refresh`
|
||||
* If an error occurs, go to the next step. Otherwise, skip to Step 5.
|
||||
4. Use `quilt` to fix the broken patch:
|
||||
1. Run `quilt push -f`
|
||||
2. Edit the broken files as necessary by adding (`quilt edit ...` or `quilt add ...`) or removing (`quilt remove ...`) files as necessary
|
||||
* When removing large chunks of code, remove each line instead of using language features to hide or remove the code. This makes the patches less susceptible to breakages when using quilt's refresh command (e.g. quilt refresh updates the line numbers based on the patch context, so it's possible for new but desirable code in the middle of the block comment to be excluded.). It also helps with readability when someone wants to see the changes made based on the patch alone.
|
||||
3. Refresh the patch: `quilt refresh`
|
||||
4. Go back to Step 3.
|
||||
5. Run `quilt pop -a`
|
||||
6. Go back to ungoogled-chromium repo: `cd ../..`
|
||||
7. Run `devutils/validate_config.py`. If any warnings are printed, address them; otherwise, continue to Step 8.
|
||||
8. Run `devutils/validate_patches.py -l build/src`. If errors occur, go back to Step 3.
|
||||
|
||||
This should leave unstaged changes in the git repository to be reviewed, added, and committed.
|
||||
|
||||
### Steps for fixing patches after a failed build attempt
|
||||
|
||||
If domain substitution is not applied, then the steps from the previous section will work for revising patches.
|
||||
|
||||
If domain substitution is applied, then the steps for the initial update will not apply since that would create patches which depend on domain substitution. Here is a method of dealing with this:
|
||||
|
||||
1. Revert domain substitution: `./utils/domain_substitution.py revert -c CACHE_PATH_HERE build/src`
|
||||
2. Follow the patch updating section above
|
||||
3. Reapply domain substitution: `./utils/domain_substitution.py apply -r domain_regex.list -f domain_substitution.list -c CACHE_PATH_HERE build/src`
|
||||
4. Reattempt build. Repeat steps as necessary.
|
||||
|
||||
### Next steps
|
||||
|
||||
* Submit a Pull Request of these changes to the ungoogled-chromium repo.
|
||||
* Once the PR is merged, update the repositories of each platform repository that you are maintaining under the `ungoogled-software` organization.
|
||||
-100
@@ -1,100 +0,0 @@
|
||||
# List of flags and switches
|
||||
|
||||
This is an exhaustive list of command-line switches and flags introduced by ungoogled-chromium.
|
||||
Each switch has a corresponding entry on the `chrome://flags` page which can be filtered by searching for `ungoogled-chromium`.
|
||||
|
||||
If a switch requires a value, you must specify it with an `=` sign; e.g. flag `--foo` with value `bar` should be written as `--foo=bar`.
|
||||
|
||||
> **NOTE**: If you add a command-line argument that is also in `chrome://flags`, the flag's state will not be indicated in `chrome://flags`. There is no universal way to ensure command-line flags are taking effect, but you can find if they're being seen by checking `chrome://version`.
|
||||
|
||||
- ### Available on all platforms
|
||||
|
||||
<code>Switch </code> | Description
|
||||
-- | --
|
||||
`--disable-beforeunload` | Disables JavaScript dialog boxes triggered by `beforeunload`
|
||||
`--disable-grease-tls` | Disables GREASE for TLS. Combined with `--http-accept-header` allows browser to look more like a tor-browser. See https://github.com/ungoogled-software/ungoogled-chromium/issues/783 for more details.
|
||||
`--disable-search-engine-collection` | Disable automatic search engine scraping from webpages.
|
||||
`--extension-mime-request-handling` | Change how extension MIME types (CRX and user scripts) are handled. Acceptable values are `download-as-regular-file` or `always-prompt-for-install`. Leave unset to use normal behavior.
|
||||
`--fingerprinting-canvas-image-data-noise` | (Added flag to Bromite feature) Implements fingerprinting deception for Canvas image data retrieved via JS APIs. In the data, at most 10 pixels are slightly modified.
|
||||
`--fingerprinting-canvas-measuretext-noise` | (Added flag to Bromite feature) Scale the output values of Canvas::measureText() with a randomly selected factor in the range -0.0003% to 0.0003%, which are recomputed on every document initialization.
|
||||
`--fingerprinting-client-rects-noise` | (Added flag to Bromite feature) Implements fingerprinting deception of JS APIs `getClientRects()` and `getBoundingClientRect()` by scaling their output values with a random factor in the range -0.0003% to 0.0003%, which are recomputed for every document instantiation.
|
||||
`--force-punycode-hostnames` | Convert all Internationalized Domain Names to punycode (ASCII representation of Unicode). See https://github.com/ungoogled-software/ungoogled-chromium/issues/370 for more details.
|
||||
`--hide-crashed-bubble` | Hides the bubble box with the message "Restore Pages? Chromium didn't shut down correctly." that shows on startup after the browser did not exit cleanly.
|
||||
`--http-accept-header` | Changes the default value of the `Accept` HTTP header sent with HTTP requests. Combined with `--disable-grease-tls` allows browser to look more like a tor-browser. See https://github.com/ungoogled-software/ungoogled-chromium/issues/783 for more details.
|
||||
`--keep-old-history` | Disables deletion of local browser history after 90 days
|
||||
`--max-connections-per-host` | (from Bromite) Configure the maximum allowed connections per host. Valid values are `6` and `15`
|
||||
`--omnibox-autocomplete-filtering` | Restrict omnibox autocomplete results to a combination of search suggestions (if enabled), bookmarks, and internal chrome pages. Accepts `search`, `search-bookmarks`, `search-chrome`, and `search-bookmarks-chrome`.
|
||||
`--popups-to-tabs` | Makes popups open in new tabs.
|
||||
|
||||
- ### Available only on desktop
|
||||
|
||||
<code>Switch </code> | Description
|
||||
-- | --
|
||||
`--bookmark-bar-ntp` | Sets the visibility of the bookmark bar on the New Tab Page. Only takes the value `never`.
|
||||
`--close-confirmation` | Show a warning prompt when closing the browser window. Accepts `last` (prompt when closing the last window with several tabs) and `multiple` (prompt only if more than one window is open).
|
||||
`--close-window-with-last-tab` | Determines whether a window should close once the last tab is closed. Only takes the value `never`.
|
||||
`--custom-ntp` | Allows setting a custom URL for the new tab page. Value can be internal (e.g. `about:blank` or `chrome://new-tab-page`), external (e.g. `example.com`), or local (e.g. `file:///tmp/startpage.html`). This applies for incognito windows as well when not set to a `chrome://` internal page.
|
||||
`--disable-sharing-hub` | Disables the sharing hub button.
|
||||
`--enable-incognito-themes` | Allows themes to change the appearance of Incognito windows.
|
||||
`--hide-extensions-menu` | Hides the extensions container. This includes the puzzle piece icon as well as any pinned extensions.
|
||||
`--hide-fullscreen-exit-ui` | Hides the "X" that appears when the mouse cursor is moved towards the top of the window in fullscreen mode. Additionally, this hides the "Press F11 to exit full screen" popup.
|
||||
`--hide-tab-close-buttons` | Hides the close buttons on tabs.
|
||||
`--remove-grab-handle` | Removes the reserved empty space in the tabstrip for moving the window.
|
||||
`--remove-tabsearch-button` | Removes the tabsearch button from the tabstrip.
|
||||
`--scroll-tabs` | Determines if scrolling will cause a switch to a neighboring tab if the cursor hovers over the tabs, or the empty space beside the tabs. The flag requires one the values: `always`, `never`, `incognito-and-guest`. When omitted, the default is to use platform-specific behavior, which is currently enabled only on desktop Linux.
|
||||
`--show-avatar-button` | Sets visibility of the avatar button. The flag requires one of the values: `always`, `incognito-and-guest` (only show Incognito or Guest modes), or `never`.
|
||||
`--tab-hover-cards` | Allows removing the tab hover cards or using a tooltip as a replacement. This can be set with the values `none` or `tooltip`.
|
||||
|
||||
- #### Available only on Windows
|
||||
|
||||
<code>Switch </code> | Description
|
||||
-- | --
|
||||
`--disable-encryption` | Disable encryption of cookies, passwords, and settings which uses a generated machine-specific encryption key. This is used to enable portable user data directories.
|
||||
`--disable-machine-id` | Disables use of a generated machine-specific ID to lock the user data directory to that machine. This is used to enable portable user data directories.
|
||||
|
||||
|
||||
## Feature flags
|
||||
|
||||
Feature flags are similar to switches with the difference being that they are passed as values for the `--enable-features` switch. Multiple features can be passed at the same time by separating them with a comma, e.g. `--enable-features=flag1,flag2,flag3`.
|
||||
These are also available on the `chrome://flags` page.
|
||||
|
||||
- ### Available on all platforms
|
||||
|
||||
Feature | Description
|
||||
-- | --
|
||||
`MinimalReferrers` | Removes all cross-origin referrers and strips same-origin referrers down to the origin. Has lower precedence than `NoCrossOriginReferrers`.
|
||||
`NoCrossOriginReferrers` | Removes all cross-origin referrers. Has lower precedence than `NoReferrers`.
|
||||
`NoReferrers` | Removes all referrers.
|
||||
`ReducedSystemInfo` | Reduces the amount of system information obatainable through headers and javascript, also causes hardwareConcurrency to respond with two cores.
|
||||
`RemoveClientHints` | Removes client hints (information sent to servers about your system, similar to a user agent).
|
||||
`SetIpv6ProbeFalse` | Forces the result of the browser's IPv6 probing (i.e. IPv6 connectivity test) to be unsuccessful. This causes IPv4 addresses to be prioritized over IPv6 addresses. Without this flag, the probing result is set to be successful, which causes IPv6 to be used over IPv4 when possible.
|
||||
`SpoofWebGLInfo` | Return generic values for WebGLDebugRendererInfo to remove a potential data leak while preventing potential website breakage.
|
||||
|
||||
- ### Available only on desktop
|
||||
|
||||
Feature | Description
|
||||
-- | --
|
||||
`ClearDataOnExit` | Clears all browsing data on exit.
|
||||
`DisableLinkDrag` | Prevents dragging of links and selected text. Allows selecting text from a middle of a link. Also allows starting selection without first clearing the existing one. This behaviour is similar to the one from older Opera. See https://github.com/ungoogled-software/ungoogled-chromium/pull/2080 and https://github.com/ungoogled-software/ungoogled-chromium/discussions/2055 for more information.
|
||||
`DisableQRGenerator` | Disables the QR generator for sharing page links.
|
||||
|
||||
|
||||
## Flags for existing switches
|
||||
|
||||
Chromium contains switches that do no have corresponding entries in `chrome://flags`. For convenience, ungoogled-chromium has created entries for some of the commonly-used switches.
|
||||
|
||||
- ### Available on all platforms
|
||||
<code>Switch </code> | Description
|
||||
-- | --
|
||||
`--disable-top-sites` | Disables the top sites and most visited entries on the new tab page.
|
||||
`--disable-webgl` | Disable all versions of WebGL.
|
||||
`--enable-low-end-device-mode` | Force low-end device mode when set.
|
||||
`--force-dark-mode` | Forces dark mode in UI for platforms that support it.
|
||||
`--no-default-browser-check` | Disables the default browser check.
|
||||
`--no-pings` | Don't send hyperlink auditing pings.
|
||||
`--webrtc-ip-handling-policy` | Restrict which IP addresses and interfaces WebRTC uses.
|
||||
- ### Available only on desktop
|
||||
<code>Switch </code> | Description
|
||||
-- | --
|
||||
`--incognito` | Start in Incognito.
|
||||
`--start-maximized` | Starts the browser maximized, regardless of any previous settings.
|
||||
@@ -1,11 +0,0 @@
|
||||
# Supported Platforms
|
||||
|
||||
This page lists platforms officially supported by ungoogled-chromium, and their associated repositories.
|
||||
|
||||
* Android: [ungoogled-chromium-android](https://github.com/ungoogled-software/ungoogled-chromium-android)
|
||||
* Arch Linux: [ungoogled-chromium-archlinux](https://github.com/ungoogled-software/ungoogled-chromium-archlinux)
|
||||
* Debian, Ubuntu, and derivatives: [ungoogled-chromium-debian](https://github.com/ungoogled-software/ungoogled-chromium-debian)
|
||||
* Fedora and CentOS: [ungoogled-chromium-fedora](https://github.com/ungoogled-software/ungoogled-chromium-fedora)
|
||||
* Portable Linux (for any Linux distro): [ungoogled-chromium-portablelinux](https://github.com/ungoogled-software/ungoogled-chromium-portablelinux)
|
||||
* Windows: [ungoogled-chromium-windows](https://github.com/ungoogled-software/ungoogled-chromium-windows)
|
||||
* macOS: [ungoogled-chromium-macos](https://github.com/ungoogled-software/ungoogled-chromium-macos)
|
||||
@@ -1,56 +0,0 @@
|
||||
# Platform Repository Standards and Guidelines
|
||||
|
||||
*This document is new, and its structure and content may change. If you have suggestions, please create an issue!*
|
||||
|
||||
ungoogled-chromium is comprised of anonymous developers who volunteer their efforts. Some of these developers may choose to provide long-term support for [an officially-supported platform](platforms.md), or bring support to a new platform. For such developers, this document consists of standards and management guidelines for platform repos.
|
||||
|
||||
We will refer to this git repository as "the main repo", and refer to repositories that add platform-specific code to build ungoogled-chromium as "platform repos". An "officially-supported platform" is a platform with a platform repo in [the ungoogled-software organization](https://github.com/ungoogled-software) and noted in [docs/platforms.md](platforms.md).
|
||||
|
||||
## Standards
|
||||
|
||||
An officially-supported platform repo:
|
||||
|
||||
* Must not modify or remove existing patches, GN flags, domain substitution, or binary pruning in the main repo. Instead, you can add new patches or add more files/rules to domain substitution or binary pruning. (If you think a change is needed in the main repo, please make an issue!)
|
||||
* Must have a tagging/versioning scheme that includes the ungoogled-chromium version.
|
||||
* Must not require an Internet connection during compilation (before compilation is OK).
|
||||
* Should allow the user to download all build requirements before building.
|
||||
* Must not require external services to build, aside from repos in the ungoogled-software organization and repos provided by or used by Chromium.
|
||||
* Should have a reproducible build for all versions (currently, there is no formal process to enforce/verify reproducibility of binaries)
|
||||
|
||||
Each deviation must be clearly noted in the platform repo's documentation (such as the repo's README), and have an associated issue in the platform repo.
|
||||
|
||||
## Teams in the ungoogled-software organization
|
||||
|
||||
Each officially-supported platform has one or more teams in the ungoogled-software organization. These teams provide additional means for collaborating with other developers, such as issue triaging and private discussions (see section "How to communicate" below).
|
||||
|
||||
If you are a regular contributor and would like to provide long-term support for a platform, you can request to be included in the ungoogled-software organization team for your platform. Since the number of developers is low, there is no formal process to do this; just ask in an issue.
|
||||
|
||||
## How to communicate
|
||||
|
||||
In the interest of transparency, it is recommended to discuss work in public spaces like issues or PRs. If a discussion should not involve outsiders, you can lock the issue or PR to collaborators only.
|
||||
|
||||
You must use team discussions if you are discussing or sharing information that can affect the security of the repository. Otherwise, you may use team discussions at your discretion.
|
||||
|
||||
## Issues
|
||||
|
||||
Each platform repo should have a team in ungoogled-software with the Triage permission level. All members should feel free to manage issues.
|
||||
|
||||
TODO: More details?
|
||||
|
||||
## Pull Requests
|
||||
|
||||
TODO
|
||||
|
||||
## Repository Settings and Shared Resources
|
||||
|
||||
Shared resources includes:
|
||||
|
||||
* CI services like CirrusCI, GitHub Actions, etc.
|
||||
* Build services like OpenSUSE Build Service (OBS)
|
||||
|
||||
These need to be handled with care, as they can cause a wide variety of issues from security and privacy leaks all the way to data loss.
|
||||
|
||||
There are several ways to handle shared resources:
|
||||
|
||||
* Assign one person to manage a certain set of settings (i.e. grant them "ownership" of those settings). If you want to change a setting, you should request a change in a team discussion.
|
||||
* TODO: More ways to manage settings?
|
||||
+309
-202
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -5,8 +5,8 @@ sha256 = cd954c7257f126be871f79ecf8fff143425708d5d33501d0ba870fa466dafbe7
|
||||
output_path = ./components/resources/default_100_percent/search_engine_choice
|
||||
|
||||
[onboarding]
|
||||
version = 202505031903
|
||||
version = 202505202136
|
||||
url = https://github.com/imputnet/helium-onboarding/releases/download/%(version)s/helium-onboarding-%(version)s.tar.gz
|
||||
download_filename = onboarding-page-%(version)s.tar.gz
|
||||
sha256 = a8f2ba7665b98191ef343f0134fadea4d73c5954bbc4d2413d10c8fb5e9f8f4c
|
||||
sha256 = 7719da3c819a1f52c5688d223ba190b268312de78934959c5a909c0018ebe384
|
||||
output_path = ./components/helium_onboarding
|
||||
|
||||
@@ -5,7 +5,6 @@ disable_fieldtrial_testing_config=true
|
||||
enable_hangout_services_extension=false
|
||||
enable_mdns=false
|
||||
enable_nacl=false
|
||||
enable_reading_list=false
|
||||
enable_remoting=false
|
||||
enable_reporting=false
|
||||
enable_service_discovery=false
|
||||
|
||||
@@ -10,7 +10,7 @@ Subject: Disable fetching of all field trials
|
||||
|
||||
--- a/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java
|
||||
+++ b/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java
|
||||
@@ -59,7 +59,7 @@ public abstract class ChromeFeatureList
|
||||
@@ -60,7 +60,7 @@ public abstract class ChromeFeatureList
|
||||
* |kFeaturesExposedToJava| in chrome/browser/flags/android/chrome_feature_list.cc
|
||||
*/
|
||||
public static String getFieldTrialParamByFeature(String featureName, String paramName) {
|
||||
@@ -19,7 +19,7 @@ Subject: Disable fetching of all field trials
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -71,8 +71,7 @@ public abstract class ChromeFeatureList
|
||||
@@ -72,8 +72,7 @@ public abstract class ChromeFeatureList
|
||||
*/
|
||||
public static boolean getFieldTrialParamByFeatureAsBoolean(
|
||||
String featureName, String paramName, boolean defaultValue) {
|
||||
@@ -29,7 +29,7 @@ Subject: Disable fetching of all field trials
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -84,8 +83,7 @@ public abstract class ChromeFeatureList
|
||||
@@ -85,8 +84,7 @@ public abstract class ChromeFeatureList
|
||||
*/
|
||||
public static int getFieldTrialParamByFeatureAsInt(
|
||||
String featureName, String paramName, int defaultValue) {
|
||||
@@ -39,7 +39,7 @@ Subject: Disable fetching of all field trials
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -97,8 +95,7 @@ public abstract class ChromeFeatureList
|
||||
@@ -98,8 +96,7 @@ public abstract class ChromeFeatureList
|
||||
*/
|
||||
public static double getFieldTrialParamByFeatureAsDouble(
|
||||
String featureName, String paramName, double defaultValue) {
|
||||
|
||||
@@ -1,27 +1,27 @@
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -3685,8 +3685,6 @@ static_library("browser") {
|
||||
@@ -3752,8 +3752,6 @@ static_library("browser") {
|
||||
"download/download_auto_open_policy_handler.cc",
|
||||
"download/download_auto_open_policy_handler.h",
|
||||
"download/download_commands.cc",
|
||||
"download/download_crx_util.cc",
|
||||
"download/download_crx_util.h",
|
||||
- "download/download_danger_prompt.cc",
|
||||
- "download/download_danger_prompt.h",
|
||||
"download/download_dir_policy_handler.cc",
|
||||
"download/download_dir_policy_handler.h",
|
||||
"download/download_dir_util.cc",
|
||||
--- a/chrome/browser/chrome_content_browser_client.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client.cc
|
||||
@@ -5467,10 +5467,6 @@ ChromeContentBrowserClient::CreateThrott
|
||||
throttles.push_back(std::make_unique<PolicyBlocklistNavigationThrottle>(
|
||||
handle, handle->GetWebContents()->GetBrowserContext()));
|
||||
--- a/chrome/browser/chrome_content_browser_client_navigation_throttles.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client_navigation_throttles.cc
|
||||
@@ -391,10 +391,6 @@ void CreateAndAddChromeThrottlesForNavig
|
||||
registry.AddThrottle(std::make_unique<PolicyBlocklistNavigationThrottle>(
|
||||
registry, handle.GetWebContents()->GetBrowserContext()));
|
||||
|
||||
- // Before setting up SSL error detection, configure SSLErrorHandler to invoke
|
||||
- // the relevant extension API whenever an SSL interstitial is shown.
|
||||
- SSLErrorHandler::SetClientCallbackOnInterstitialsShown(
|
||||
- base::BindRepeating(&MaybeTriggerSecurityInterstitialShownEvent));
|
||||
throttles.push_back(std::make_unique<SSLErrorNavigationThrottle>(
|
||||
handle,
|
||||
base::BindOnce(&HandleSSLErrorWrapper), base::BindOnce(&IsInHostedApp),
|
||||
registry.AddThrottle(std::make_unique<SSLErrorNavigationThrottle>(
|
||||
registry, base::BindOnce(&HandleSSLErrorWrapper),
|
||||
base::BindOnce(&IsInHostedApp),
|
||||
--- a/chrome/browser/component_updater/file_type_policies_component_installer.cc
|
||||
+++ b/chrome/browser/component_updater/file_type_policies_component_installer.cc
|
||||
@@ -38,21 +38,6 @@ const uint8_t kFileTypePoliciesPublicKey
|
||||
@@ -180,7 +180,7 @@
|
||||
class DownloadsShowFunction : public ExtensionFunction {
|
||||
--- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
|
||||
+++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
|
||||
@@ -711,18 +711,6 @@ void WebstorePrivateBeginInstallWithMani
|
||||
@@ -702,18 +702,6 @@ void WebstorePrivateBeginInstallWithMani
|
||||
|
||||
void WebstorePrivateBeginInstallWithManifest3Function::
|
||||
ReportFrictionAcceptedEvent() {
|
||||
@@ -226,7 +226,7 @@
|
||||
std::unique_ptr<std::string> response_body) {
|
||||
--- a/chrome/browser/extensions/blocklist_state_fetcher.h
|
||||
+++ b/chrome/browser/extensions/blocklist_state_fetcher.h
|
||||
@@ -36,8 +36,6 @@ class BlocklistStateFetcher {
|
||||
@@ -39,8 +39,6 @@ class BlocklistStateFetcher {
|
||||
|
||||
virtual void Request(const std::string& id, RequestCallback callback);
|
||||
|
||||
@@ -253,7 +253,7 @@
|
||||
|
||||
# Note: is_android is not equivalent to safe_browsing_mode == 2.
|
||||
# Sources and dependencies added to this block must not depend on anything
|
||||
@@ -564,6 +566,7 @@ static_library("advanced_protection") {
|
||||
@@ -579,6 +581,7 @@ static_library("advanced_protection") {
|
||||
}
|
||||
|
||||
source_set("metrics_collector") {
|
||||
@@ -261,14 +261,14 @@
|
||||
sources = [
|
||||
"safe_browsing_metrics_collector_factory.cc",
|
||||
"safe_browsing_metrics_collector_factory.h",
|
||||
@@ -583,6 +586,7 @@ source_set("metrics_collector") {
|
||||
@@ -598,6 +601,7 @@ source_set("metrics_collector") {
|
||||
"//components/safe_browsing/core/common:safe_browsing_prefs",
|
||||
"//content/public/browser",
|
||||
]
|
||||
+ }
|
||||
}
|
||||
|
||||
source_set("test_support") {
|
||||
source_set("unit_tests") {
|
||||
--- a/chrome/browser/ui/views/download/BUILD.gn
|
||||
+++ b/chrome/browser/ui/views/download/BUILD.gn
|
||||
@@ -27,7 +27,6 @@ source_set("download") {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/components/autofill/core/browser/crowdsourcing/autofill_crowdsourcing_manager.cc
|
||||
+++ b/components/autofill/core/browser/crowdsourcing/autofill_crowdsourcing_manager.cc
|
||||
@@ -890,93 +890,6 @@ std::tuple<GURL, std::string> AutofillCr
|
||||
@@ -924,93 +924,6 @@ std::tuple<GURL, std::string> AutofillCr
|
||||
}
|
||||
|
||||
bool AutofillCrowdsourcingManager::StartRequest(FormRequestData request_data) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/updater/configurator.cc
|
||||
+++ b/chrome/updater/configurator.cc
|
||||
@@ -115,7 +115,7 @@ base::TimeDelta Configurator::UpdateDela
|
||||
@@ -133,7 +133,7 @@ base::TimeDelta Configurator::UpdateDela
|
||||
|
||||
std::vector<GURL> Configurator::UpdateUrl() const {
|
||||
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/BUILD.gn
|
||||
+++ b/BUILD.gn
|
||||
@@ -477,14 +477,6 @@ group("gn_all") {
|
||||
@@ -476,14 +476,6 @@ group("gn_all") {
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
+14
-6
@@ -112,7 +112,7 @@ by default.
|
||||
scoped_refptr<base::SequencedTaskRunner> task_runner)
|
||||
--- a/chrome/browser/media/webrtc/webrtc_log_uploader.cc
|
||||
+++ b/chrome/browser/media/webrtc/webrtc_log_uploader.cc
|
||||
@@ -535,7 +535,7 @@ void WebRtcLogUploader::UploadCompressed
|
||||
@@ -531,7 +531,7 @@ void WebRtcLogUploader::UploadCompressed
|
||||
}
|
||||
})");
|
||||
|
||||
@@ -178,7 +178,7 @@ by default.
|
||||
base::ToLowerASCII(bdict_file));
|
||||
--- a/chrome/browser/ui/dialogs/outdated_upgrade_bubble.cc
|
||||
+++ b/chrome/browser/ui/dialogs/outdated_upgrade_bubble.cc
|
||||
@@ -33,7 +33,7 @@
|
||||
@@ -32,7 +32,7 @@
|
||||
namespace {
|
||||
|
||||
// The URL to be used to re-install Chrome when auto-update failed for too long.
|
||||
@@ -189,7 +189,7 @@ by default.
|
||||
|
||||
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
||||
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
||||
@@ -73,17 +73,17 @@ namespace {
|
||||
@@ -75,17 +75,17 @@ namespace {
|
||||
// The URL for the the Learn More page shown on incognito new tab.
|
||||
const char kLearnMoreIncognitoUrl[] =
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
@@ -227,7 +227,7 @@ by default.
|
||||
|
||||
--- a/chrome/installer/setup/google_chrome_behaviors.cc
|
||||
+++ b/chrome/installer/setup/google_chrome_behaviors.cc
|
||||
@@ -36,7 +36,7 @@ namespace installer {
|
||||
@@ -37,7 +37,7 @@ namespace installer {
|
||||
namespace {
|
||||
|
||||
constexpr std::wstring_view kUninstallSurveyUrl(
|
||||
@@ -405,7 +405,7 @@ by default.
|
||||
GURL url(base::WideToUTF16(args[0]));
|
||||
--- a/extensions/common/extension_urls.cc
|
||||
+++ b/extensions/common/extension_urls.cc
|
||||
@@ -38,11 +38,11 @@ const GURL* g_item_snippet_url_for_test_
|
||||
@@ -38,13 +38,13 @@ const GURL* g_item_snippet_url_for_test_
|
||||
|
||||
} // namespace
|
||||
|
||||
@@ -413,6 +413,9 @@ by default.
|
||||
-const char kNewChromeWebstoreBaseURL[] = "https://chromewebstore.google.com/";
|
||||
+const char kChromeWebstoreBaseURL[] = "trk:09:https://chrome.google.com/webstore";
|
||||
+const char kNewChromeWebstoreBaseURL[] = "trk:08:https://chromewebstore.google.com/";
|
||||
const char kExtensionsDocsWhatsNewURL[] =
|
||||
- "https://developer.chrome.com/docs/extensions/whats-new";
|
||||
+ "trk:06:https://developer.chrome.com/docs/extensions/whats-new";
|
||||
const char kChromeWebstoreUpdateURL[] =
|
||||
- "https://clients2.google.com/service/update2/crx";
|
||||
-const char kChromeWebstoreApiURL[] = "https://chromewebstore.googleapis.com/";
|
||||
@@ -423,7 +426,7 @@ by default.
|
||||
const char kExtensionsMenuUtmSource[] = "ext_extensions_menu";
|
||||
--- a/google_apis/gaia/gaia_constants.cc
|
||||
+++ b/google_apis/gaia/gaia_constants.cc
|
||||
@@ -14,169 +14,169 @@ const char kChromeSource[] = "ChromiumBr
|
||||
@@ -14,173 +14,173 @@ const char kChromeSource[] = "ChromiumBr
|
||||
const char kUnexpectedServiceResponse[] = "UnexpectedServiceResponse";
|
||||
|
||||
// OAuth scopes.
|
||||
@@ -579,6 +582,11 @@ by default.
|
||||
- "https://www.googleapis.com/auth/experimentsandconfigs";
|
||||
+ "trk:209:https://www.googleapis.com/auth/experimentsandconfigs";
|
||||
|
||||
// OAuth2 scope for access for DriveFS to use client-side notifications.
|
||||
const char kClientChannelOAuth2Scope[] =
|
||||
- "https://www.googleapis.com/auth/client_channel";
|
||||
+ "trk:210:https://www.googleapis.com/auth/client_channel";
|
||||
|
||||
// The scope required for an access token in order to query ItemSuggest.
|
||||
const char kDriveReadOnlyOAuth2Scope[] =
|
||||
- "https://www.googleapis.com/auth/drive.readonly";
|
||||
|
||||
@@ -39,7 +39,7 @@ the URL so we get notified if this happens again in the future).
|
||||
kSafeBrowsingIncidentTrafficAnnotation =
|
||||
--- a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
|
||||
+++ b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
|
||||
@@ -304,11 +304,14 @@ IncidentReportingService::UploadContext:
|
||||
@@ -303,11 +303,14 @@ IncidentReportingService::UploadContext:
|
||||
|
||||
// static
|
||||
bool IncidentReportingService::IsEnabledForProfile(Profile* profile) {
|
||||
|
||||
+2
-2
@@ -13,7 +13,7 @@ This prevents trk:148 (phishing) and trk:149 (malware).
|
||||
|
||||
--- a/components/safe_browsing/content/browser/client_side_detection_service.cc
|
||||
+++ b/components/safe_browsing/content/browser/client_side_detection_service.cc
|
||||
@@ -324,6 +324,10 @@ void ClientSideDetectionService::StartCl
|
||||
@@ -342,6 +342,10 @@ void ClientSideDetectionService::StartCl
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ This prevents trk:148 (phishing) and trk:149 (malware).
|
||||
std::string request_data;
|
||||
request->SerializeToString(&request_data);
|
||||
|
||||
@@ -406,6 +410,7 @@ void ClientSideDetectionService::StartCl
|
||||
@@ -424,6 +428,7 @@ void ClientSideDetectionService::StartCl
|
||||
base::BindOnce(&WebUIInfoSingleton::AddToClientPhishingRequestsSent,
|
||||
base::Unretained(WebUIInfoSingleton::GetInstance()),
|
||||
std::move(request), access_token));
|
||||
|
||||
@@ -26,16 +26,6 @@
|
||||
std::string command_id;
|
||||
// Replace the promo URL with "command:<id>" if such a command ID is set
|
||||
// via the feature params.
|
||||
--- a/chrome/browser/search/background/ntp_background_service.cc
|
||||
+++ b/chrome/browser/search/background/ntp_background_service.cc
|
||||
@@ -96,6 +96,7 @@ void NtpBackgroundService::Shutdown() {
|
||||
}
|
||||
|
||||
void NtpBackgroundService::FetchCollectionInfo() {
|
||||
+ return;
|
||||
if (collections_loader_ != nullptr)
|
||||
return;
|
||||
collection_error_info_.ClearError();
|
||||
--- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
|
||||
+++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
|
||||
@@ -280,6 +280,7 @@ GURL SpellcheckHunspellDictionary::GetDi
|
||||
@@ -48,7 +38,7 @@
|
||||
|
||||
--- a/components/affiliations/core/browser/hash_affiliation_fetcher.cc
|
||||
+++ b/components/affiliations/core/browser/hash_affiliation_fetcher.cc
|
||||
@@ -137,6 +137,10 @@ AffiliationFetcherDelegate* HashAffiliat
|
||||
@@ -128,6 +128,10 @@ HashAffiliationFetcher::~HashAffiliation
|
||||
}
|
||||
|
||||
void HashAffiliationFetcher::StartRequest(
|
||||
@@ -61,7 +51,7 @@
|
||||
base::OnceCallback<void(FetchResult)> result_callback) {
|
||||
--- a/components/affiliations/core/browser/hash_affiliation_fetcher.h
|
||||
+++ b/components/affiliations/core/browser/hash_affiliation_fetcher.h
|
||||
@@ -40,6 +40,8 @@ class HashAffiliationFetcher : public Af
|
||||
@@ -39,6 +39,8 @@ class HashAffiliationFetcher : public Af
|
||||
const std::vector<FacetURI>& facet_uris,
|
||||
RequestInfo request_info,
|
||||
base::OnceCallback<void(FetchResult)> result_callback) override;
|
||||
@@ -80,6 +70,16 @@
|
||||
// This function is not supposed to be called if the previous operation is not
|
||||
// finished.
|
||||
if (state_ == REQUESTING) {
|
||||
--- a/components/themes/ntp_background_service.cc
|
||||
+++ b/components/themes/ntp_background_service.cc
|
||||
@@ -88,6 +88,7 @@ void NtpBackgroundService::Shutdown() {
|
||||
}
|
||||
|
||||
void NtpBackgroundService::FetchCollectionInfo() {
|
||||
+ return;
|
||||
// If a request is currently in progress, drop the new request.
|
||||
if (collections_loader_ != nullptr) {
|
||||
return;
|
||||
--- a/components/update_client/update_checker.cc
|
||||
+++ b/components/update_client/update_checker.cc
|
||||
@@ -104,6 +104,7 @@ void UpdateCheckerImpl::CheckForUpdates(
|
||||
@@ -92,12 +92,24 @@
|
||||
update_check_callback_ = std::move(update_check_callback);
|
||||
--- a/third_party/devtools-frontend/src/front_end/panels/elements/WebCustomData.ts
|
||||
+++ b/third_party/devtools-frontend/src/front_end/panels/elements/WebCustomData.ts
|
||||
@@ -19,18 +19,7 @@ export class WebCustomData {
|
||||
readonly fetchPromiseForTest: Promise<unknown>;
|
||||
@@ -2,7 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
constructor(remoteBase: string) {
|
||||
-import * as Root from '../../core/root/root.js';
|
||||
|
||||
/**
|
||||
* Lazily loads the vscode.web-custom-data/browser.css-data.json and allows
|
||||
@@ -15,33 +14,14 @@ import * as Root from '../../core/root/r
|
||||
export class WebCustomData {
|
||||
#data = new Map<string, CSSProperty>();
|
||||
|
||||
- /** The test actually needs to wait for the result */
|
||||
- readonly fetchPromiseForTest: Promise<unknown>;
|
||||
-
|
||||
- constructor(remoteBase: string) {
|
||||
- if (!remoteBase) {
|
||||
this.fetchPromiseForTest = Promise.resolve();
|
||||
- this.fetchPromiseForTest = Promise.resolve();
|
||||
- return;
|
||||
- }
|
||||
- this.fetchPromiseForTest = fetch(`${remoteBase}third_party/vscode.web-custom-data/browsers.css-data.json`)
|
||||
@@ -108,6 +120,28 @@
|
||||
- }
|
||||
- })
|
||||
- .catch();
|
||||
- }
|
||||
-
|
||||
/**
|
||||
* Creates a fresh `WebCustomData` instance using the standard
|
||||
* DevTools remote base.
|
||||
* Throws if no valid remoteBase was found.
|
||||
*/
|
||||
static create(): WebCustomData {
|
||||
- const remoteBase = Root.Runtime.getRemoteBase();
|
||||
// Silently skip loading of the CSS data if remoteBase is not set properly.
|
||||
- return new WebCustomData(remoteBase?.base ?? '');
|
||||
+ return new WebCustomData();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -54,9 +34,6 @@ export class WebCustomData {
|
||||
}
|
||||
}
|
||||
|
||||
-interface CSSBrowserData {
|
||||
- properties: CSSProperty[];
|
||||
-}
|
||||
|
||||
export interface CSSProperty {
|
||||
name: string;
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
url.SchemeIs(dom_distiller::kDomDistillerScheme))
|
||||
--- a/chrome/browser/ui/singleton_tabs.cc
|
||||
+++ b/chrome/browser/ui/singleton_tabs.cc
|
||||
@@ -124,7 +124,8 @@ int GetIndexOfExistingTab(Browser* brows
|
||||
@@ -132,7 +132,8 @@ int GetIndexOfExistingTab(Browser* brows
|
||||
// RewriteURLIfNecessary removes the "view-source:" scheme which could lead
|
||||
// to incorrect matching, so ensure that the target and the candidate are
|
||||
// either both view-source:, or neither is.
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
--- a/components/omnibox/browser/autocomplete_input.cc
|
||||
+++ b/components/omnibox/browser/autocomplete_input.cc
|
||||
@@ -582,7 +582,8 @@ void AutocompleteInput::ParseForEmphasiz
|
||||
@@ -578,7 +578,8 @@ void AutocompleteInput::ParseForEmphasiz
|
||||
// For the view-source and blob schemes, we should emphasize the host of the
|
||||
// URL qualified by the view-source or blob prefix.
|
||||
if ((base::EqualsCaseInsensitiveASCII(scheme_str, kViewSourceScheme) ||
|
||||
@@ -60,7 +60,7 @@
|
||||
return GURL(parts.scheme.is_valid() ? text : FixupPath(text));
|
||||
--- a/content/browser/child_process_security_policy_impl.cc
|
||||
+++ b/content/browser/child_process_security_policy_impl.cc
|
||||
@@ -939,6 +939,7 @@ ChildProcessSecurityPolicyImpl::ChildPro
|
||||
@@ -938,6 +938,7 @@ ChildProcessSecurityPolicyImpl::ChildPro
|
||||
RegisterWebSafeScheme(url::kWssScheme);
|
||||
#endif // BUILDFLAG(ENABLE_WEBSOCKETS)
|
||||
RegisterWebSafeScheme(url::kDataScheme);
|
||||
@@ -70,7 +70,7 @@
|
||||
// other origins, so we should not treat them as web safe. Remove callers of
|
||||
--- a/net/BUILD.gn
|
||||
+++ b/net/BUILD.gn
|
||||
@@ -1081,6 +1081,8 @@ component("net") {
|
||||
@@ -1101,6 +1101,8 @@ component("net") {
|
||||
"url_request/static_http_user_agent_settings.cc",
|
||||
"url_request/static_http_user_agent_settings.h",
|
||||
"url_request/storage_access_status_cache.h",
|
||||
@@ -84,7 +84,7 @@
|
||||
@@ -0,0 +1,25 @@
|
||||
+// Copyright (c) 2018 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#include "net/url_request/trk_protocol_handler.h"
|
||||
+
|
||||
@@ -112,7 +112,7 @@
|
||||
@@ -0,0 +1,30 @@
|
||||
+// Copyright (c) 2018 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#ifndef NET_URL_REQUEST_TRK_PROTOCOL_HANDLER_H_
|
||||
+#define NET_URL_REQUEST_TRK_PROTOCOL_HANDLER_H_
|
||||
@@ -173,7 +173,7 @@
|
||||
return NetLogURLRequestConstructorParams(url, priority_,
|
||||
--- a/net/url_request/url_request_context_builder.cc
|
||||
+++ b/net/url_request/url_request_context_builder.cc
|
||||
@@ -50,6 +50,7 @@
|
||||
@@ -53,6 +53,7 @@
|
||||
#include "net/socket/network_binding_client_socket_factory.h"
|
||||
#include "net/ssl/ssl_config_service_defaults.h"
|
||||
#include "net/url_request/static_http_user_agent_settings.h"
|
||||
@@ -181,7 +181,7 @@
|
||||
#include "net/url_request/url_request_context.h"
|
||||
#include "net/url_request/url_request_job_factory.h"
|
||||
#include "url/url_constants.h"
|
||||
@@ -597,6 +598,9 @@ std::unique_ptr<URLRequestContext> URLRe
|
||||
@@ -612,6 +613,9 @@ std::unique_ptr<URLRequestContext> URLRe
|
||||
}
|
||||
protocol_handlers_.clear();
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/chrome/browser/chrome_content_browser_client.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client.cc
|
||||
@@ -2714,24 +2714,6 @@ void ChromeContentBrowserClient::AppendE
|
||||
@@ -2636,24 +2636,6 @@ void ChromeContentBrowserClient::AppendE
|
||||
command_line->AppendSwitchASCII(switches::kMetricsClientID,
|
||||
client_info->client_id);
|
||||
}
|
||||
@@ -26,7 +26,7 @@
|
||||
- command_line->AppendSwitchASCII(switches::kEnableCrashReporter, switch_value);
|
||||
#endif
|
||||
|
||||
if (logging::DialogsAreSuppressed())
|
||||
if (logging::DialogsAreSuppressed()) {
|
||||
--- a/components/crash/core/app/crashpad.cc
|
||||
+++ b/components/crash/core/app/crashpad.cc
|
||||
@@ -72,6 +72,12 @@ void InitializeDatabasePath(const base::
|
||||
@@ -44,7 +44,7 @@
|
||||
const base::FilePath& exe_path,
|
||||
--- a/components/gwp_asan/client/gwp_asan.cc
|
||||
+++ b/components/gwp_asan/client/gwp_asan.cc
|
||||
@@ -323,6 +323,11 @@ GWP_ASAN_EXPORT std::optional<AllocatorS
|
||||
@@ -340,6 +340,11 @@ GWP_ASAN_EXPORT std::optional<AllocatorS
|
||||
|
||||
// Exported for testing.
|
||||
GWP_ASAN_EXPORT std::optional<AllocatorSettings> GetAllocatorSettings(
|
||||
|
||||
@@ -705,7 +705,7 @@
|
||||
|
||||
--- a/components/domain_reliability/uploader.cc
|
||||
+++ b/components/domain_reliability/uploader.cc
|
||||
@@ -81,7 +81,7 @@ class DomainReliabilityUploaderImpl : pu
|
||||
@@ -80,7 +80,7 @@ class DomainReliabilityUploaderImpl : pu
|
||||
if (discard_uploads_)
|
||||
discarded_upload_count_++;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
|
||||
+++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
|
||||
@@ -297,7 +297,7 @@ bool DomDistillerViewerSource::ShouldSer
|
||||
@@ -291,7 +291,7 @@ bool DomDistillerViewerSource::ShouldSer
|
||||
std::string DomDistillerViewerSource::GetContentSecurityPolicy(
|
||||
network::mojom::CSPDirectiveName directive) {
|
||||
if (directive == network::mojom::CSPDirectiveName::StyleSrc) {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/components/gcm_driver/gcm_client_impl.cc
|
||||
+++ b/components/gcm_driver/gcm_client_impl.cc
|
||||
@@ -432,6 +432,7 @@ void GCMClientImpl::StartGCM() {
|
||||
@@ -431,6 +431,7 @@ void GCMClientImpl::StartGCM() {
|
||||
|
||||
void GCMClientImpl::InitializeMCSClient() {
|
||||
DCHECK(network_connection_tracker_);
|
||||
@@ -10,7 +10,7 @@
|
||||
std::vector<GURL> endpoints;
|
||||
endpoints.push_back(gservices_settings_.GetMCSMainEndpoint());
|
||||
GURL fallback_endpoint = gservices_settings_.GetMCSFallbackEndpoint();
|
||||
@@ -611,23 +612,6 @@ void GCMClientImpl::RemoveHeartbeatInter
|
||||
@@ -610,23 +611,6 @@ void GCMClientImpl::RemoveHeartbeatInter
|
||||
|
||||
void GCMClientImpl::StartCheckin() {
|
||||
DCHECK(io_task_runner_->RunsTasksInCurrentSequence());
|
||||
@@ -34,7 +34,7 @@
|
||||
}
|
||||
|
||||
void GCMClientImpl::OnCheckinCompleted(
|
||||
@@ -684,24 +668,6 @@ void GCMClientImpl::SetGServicesSettings
|
||||
@@ -683,24 +667,6 @@ void GCMClientImpl::SetGServicesSettings
|
||||
|
||||
void GCMClientImpl::SchedulePeriodicCheckin() {
|
||||
DCHECK(io_task_runner_->RunsTasksInCurrentSequence());
|
||||
|
||||
@@ -565,7 +565,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
|
||||
@@ -621,10 +621,7 @@ std::u16string TemplateURLRef::SearchTer
|
||||
bool TemplateURLRef::HasGoogleBaseURLs(
|
||||
const SearchTermsData& search_terms_data) const {
|
||||
ParseIfNecessary(search_terms_data);
|
||||
@@ -681,7 +681,7 @@
|
||||
} // namespace variations
|
||||
--- a/content/browser/preloading/prefetch/prefetch_container.cc
|
||||
+++ b/content/browser/preloading/prefetch/prefetch_container.cc
|
||||
@@ -999,7 +999,7 @@ void PrefetchContainer::AddRedirectHop(c
|
||||
@@ -970,7 +970,7 @@ void PrefetchContainer::AddRedirectHop(c
|
||||
// some which are added by throttles). These aren't yet supported for
|
||||
// prefetch, including browsing topics and client hints.
|
||||
net::HttpRequestHeaders updated_headers;
|
||||
@@ -692,7 +692,7 @@
|
||||
|
||||
--- a/net/base/url_util.cc
|
||||
+++ b/net/base/url_util.cc
|
||||
@@ -519,28 +519,6 @@ bool HasGoogleHost(const GURL& url) {
|
||||
@@ -537,28 +537,6 @@ bool HasGoogleHost(const GURL& url) {
|
||||
}
|
||||
|
||||
bool IsGoogleHost(std::string_view host) {
|
||||
|
||||
@@ -7,26 +7,26 @@
|
||||
|
||||
--- a/chrome/BUILD.gn
|
||||
+++ b/chrome/BUILD.gn
|
||||
@@ -372,7 +372,6 @@ if (!is_android && !is_mac) {
|
||||
@@ -369,7 +369,6 @@ if (!is_android && !is_mac) {
|
||||
}
|
||||
|
||||
data_deps += [
|
||||
- "//chrome/browser/resources/media/mei_preload:component",
|
||||
"//chrome/browser/web_applications/isolated_web_apps/key_distribution/preload:component",
|
||||
"//components/webapps/isolated_web_apps/preload:component",
|
||||
"//third_party/widevine/cdm",
|
||||
]
|
||||
@@ -1202,7 +1201,6 @@ if (is_win) {
|
||||
@@ -1204,7 +1203,6 @@ if (is_win) {
|
||||
":optimization_guide_library",
|
||||
":swiftshader_binaries",
|
||||
":widevine_cdm_library",
|
||||
- "//chrome/browser/resources/media/mei_preload:component_bundle",
|
||||
"//chrome/browser/web_applications/isolated_web_apps/key_distribution/preload:component_bundle",
|
||||
"//components/webapps/isolated_web_apps/preload:component_bundle",
|
||||
]
|
||||
|
||||
--- a/chrome/browser/resources/BUILD.gn
|
||||
+++ b/chrome/browser/resources/BUILD.gn
|
||||
@@ -88,11 +88,6 @@ group("resources") {
|
||||
public_deps += [ "accessibility:reading_mode_gdocs_extension_resources" ]
|
||||
@@ -97,11 +97,6 @@ group("resources") {
|
||||
]
|
||||
}
|
||||
|
||||
- if (is_mac) {
|
||||
@@ -36,4 +36,4 @@
|
||||
- }
|
||||
|
||||
if (is_win || is_mac || is_linux || is_chromeos) {
|
||||
public_deps += [
|
||||
public_deps += [ "connectors_internals:resources" ]
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
--- a/components/network_time/network_time_tracker.cc
|
||||
+++ b/components/network_time/network_time_tracker.cc
|
||||
@@ -282,7 +282,7 @@ void NetworkTimeTracker::UpdateNetworkTi
|
||||
@@ -279,7 +279,7 @@ void NetworkTimeTracker::UpdateNetworkTi
|
||||
}
|
||||
|
||||
bool NetworkTimeTracker::AreTimeFetchesEnabled() const {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/components/browsing_data/content/browsing_data_model.cc
|
||||
+++ b/components/browsing_data/content/browsing_data_model.cc
|
||||
@@ -998,12 +998,6 @@ void BrowsingDataModel::PopulateFromDisk
|
||||
@@ -992,12 +992,6 @@ void BrowsingDataModel::PopulateFromDisk
|
||||
base::FeatureList::IsEnabled(network::features::kSharedStorageAPI);
|
||||
bool is_shared_dictionary_enabled = base::FeatureList::IsEnabled(
|
||||
network::features::kCompressionDictionaryTransportBackend);
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
base::RepeatingClosure completion =
|
||||
base::BindRepeating([](const base::OnceClosure&) {},
|
||||
@@ -1040,27 +1034,7 @@ void BrowsingDataModel::PopulateFromDisk
|
||||
@@ -1034,27 +1028,7 @@ void BrowsingDataModel::PopulateFromDisk
|
||||
base::BindOnce(&OnSharedDictionaryUsageLoaded, this, completion));
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
}
|
||||
|
||||
// static
|
||||
@@ -861,7 +861,7 @@ void PrivacySandboxSettingsImpl::SetTopi
|
||||
@@ -888,7 +888,7 @@ void PrivacySandboxSettingsImpl::SetTopi
|
||||
}
|
||||
|
||||
bool PrivacySandboxSettingsImpl::IsPrivacySandboxRestricted() const {
|
||||
@@ -61,7 +61,7 @@
|
||||
}
|
||||
|
||||
bool PrivacySandboxSettingsImpl::IsPrivacySandboxCurrentlyUnrestricted() const {
|
||||
@@ -947,11 +947,7 @@ PrivacySandboxSettingsImpl::GetPrivacySa
|
||||
@@ -957,11 +957,7 @@ PrivacySandboxSettingsImpl::GetPrivacySa
|
||||
return Status::kIncognitoProfile;
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@
|
||||
// static
|
||||
--- a/content/browser/interest_group/ad_auction_service_impl.cc
|
||||
+++ b/content/browser/interest_group/ad_auction_service_impl.cc
|
||||
@@ -191,11 +191,6 @@ AdAuctionServiceImpl::BiddingAndAuctionD
|
||||
@@ -192,11 +192,6 @@ AdAuctionServiceImpl::BiddingAndAuctionD
|
||||
void AdAuctionServiceImpl::CreateMojoService(
|
||||
RenderFrameHost* render_frame_host,
|
||||
mojo::PendingReceiver<blink::mojom::AdAuctionService> receiver) {
|
||||
@@ -178,7 +178,7 @@
|
||||
void AdAuctionServiceImpl::JoinInterestGroup(
|
||||
--- a/content/browser/storage_partition_impl.cc
|
||||
+++ b/content/browser/storage_partition_impl.cc
|
||||
@@ -1483,38 +1483,7 @@ void StoragePartitionImpl::Initialize(
|
||||
@@ -1469,38 +1469,7 @@ void StoragePartitionImpl::Initialize(
|
||||
|
||||
bucket_manager_ = std::make_unique<BucketManager>(this);
|
||||
|
||||
@@ -217,7 +217,7 @@
|
||||
|
||||
GeneratedCodeCacheSettings settings =
|
||||
GetContentClient()->browser()->GetGeneratedCodeCacheSettings(
|
||||
@@ -1543,8 +1512,6 @@ void StoragePartitionImpl::Initialize(
|
||||
@@ -1529,8 +1498,6 @@ void StoragePartitionImpl::Initialize(
|
||||
|
||||
font_access_manager_ = FontAccessManager::Create();
|
||||
|
||||
@@ -226,7 +226,7 @@
|
||||
|
||||
#if BUILDFLAG(ENABLE_LIBRARY_CDMS)
|
||||
if (is_in_memory()) {
|
||||
@@ -1568,11 +1535,6 @@ void StoragePartitionImpl::Initialize(
|
||||
@@ -1554,11 +1521,6 @@ void StoragePartitionImpl::Initialize(
|
||||
std::make_unique<SharedStorageHeaderObserver>(this);
|
||||
}
|
||||
|
||||
@@ -240,7 +240,7 @@
|
||||
void StoragePartitionImpl::OnStorageServiceDisconnected() {
|
||||
--- a/content/browser/web_contents/web_contents_impl.cc
|
||||
+++ b/content/browser/web_contents/web_contents_impl.cc
|
||||
@@ -3949,12 +3949,6 @@ void WebContentsImpl::Init(const WebCont
|
||||
@@ -4107,12 +4107,6 @@ void WebContentsImpl::Init(const WebCont
|
||||
DateTimeChooser::CreateDateTimeChooser(this);
|
||||
#endif
|
||||
|
||||
@@ -255,7 +255,7 @@
|
||||
BtmWebContentsObserver::MaybeCreateForWebContents(this);
|
||||
--- a/content/services/auction_worklet/private_aggregation_bindings.cc
|
||||
+++ b/content/services/auction_worklet/private_aggregation_bindings.cc
|
||||
@@ -402,56 +402,6 @@ PrivateAggregationBindings::~PrivateAggr
|
||||
@@ -406,53 +406,6 @@ PrivateAggregationBindings::~PrivateAggr
|
||||
|
||||
void PrivateAggregationBindings::AttachToContext(
|
||||
v8::Local<v8::Context> context) {
|
||||
@@ -281,8 +281,6 @@
|
||||
- send_histogram_report_function)
|
||||
- .Check();
|
||||
-
|
||||
- if (blink::features::kPrivateAggregationApiProtectedAudienceExtensionsEnabled
|
||||
- .Get()) {
|
||||
- v8::Local<v8::Function> report_contribution_for_event_function =
|
||||
- v8::Function::New(
|
||||
- context, &PrivateAggregationBindings::ContributeToHistogramOnEvent,
|
||||
@@ -294,7 +292,6 @@
|
||||
- v8_helper_->CreateStringFromLiteral("contributeToHistogramOnEvent"),
|
||||
- report_contribution_for_event_function)
|
||||
- .Check();
|
||||
- }
|
||||
-
|
||||
- v8::Local<v8::Function> enable_debug_mode_function =
|
||||
- v8::Function::New(context, &PrivateAggregationBindings::EnableDebugMode,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/chrome/browser/media/webrtc/webrtc_log_uploader.cc
|
||||
+++ b/chrome/browser/media/webrtc/webrtc_log_uploader.cc
|
||||
@@ -183,31 +183,13 @@ void WebRtcLogUploader::OnLoggingStopped
|
||||
@@ -179,31 +179,13 @@ void WebRtcLogUploader::OnLoggingStopped
|
||||
DCHECK(meta_data.get());
|
||||
DCHECK(!upload_done_data.paths.directory.empty());
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
} else {
|
||||
main_task_runner_->PostTask(
|
||||
FROM_HERE,
|
||||
@@ -224,28 +206,7 @@ void WebRtcLogUploader::PrepareMultipart
|
||||
@@ -220,28 +202,7 @@ void WebRtcLogUploader::PrepareMultipart
|
||||
DCHECK(!compressed_log.empty());
|
||||
DCHECK(meta_data.get());
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
}
|
||||
|
||||
void WebRtcLogUploader::UploadStoredLog(
|
||||
@@ -312,48 +273,6 @@ void WebRtcLogUploader::LoggingStoppedDo
|
||||
@@ -308,48 +269,6 @@ void WebRtcLogUploader::LoggingStoppedDo
|
||||
DCHECK(log_buffer.get());
|
||||
DCHECK(!log_paths.directory.empty());
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -114,7 +114,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -130,7 +130,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterStringPref(prefs::kWebRTCUDPPortRange, std::string());
|
||||
registry->RegisterBooleanPref(prefs::kWebRtcEventLogCollectionAllowed, false);
|
||||
registry->RegisterListPref(prefs::kWebRtcLocalIpsAllowedUrls);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc
|
||||
+++ b/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc
|
||||
@@ -680,12 +680,6 @@ std::vector<url::Origin> ChromeContentBr
|
||||
@@ -678,12 +678,6 @@ std::vector<url::Origin> ChromeContentBr
|
||||
GetOriginsRequiringDedicatedProcess() {
|
||||
std::vector<url::Origin> list;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
--- a/chrome/browser/extensions/chrome_content_verifier_delegate.cc
|
||||
+++ b/chrome/browser/extensions/chrome_content_verifier_delegate.cc
|
||||
@@ -300,17 +300,7 @@ bool ChromeContentVerifierDelegate::IsFr
|
||||
@@ -303,17 +303,7 @@ bool ChromeContentVerifierDelegate::IsFr
|
||||
// between which extensions are considered in-store.
|
||||
// See https://crbug.com/766806 for details.
|
||||
if (!InstallVerifier::IsFromStore(extension, context_)) {
|
||||
@@ -60,15 +60,15 @@
|
||||
}
|
||||
--- a/chrome/browser/extensions/extension_migrator.h
|
||||
+++ b/chrome/browser/extensions/extension_migrator.h
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "base/memory/raw_ptr.h"
|
||||
#include "chrome/browser/extensions/external_loader.h"
|
||||
#include "extensions/buildflags/buildflags.h"
|
||||
+#include "url/gurl.h"
|
||||
|
||||
class Profile;
|
||||
static_assert(BUILDFLAG(ENABLE_EXTENSIONS_CORE));
|
||||
|
||||
@@ -40,6 +41,7 @@ class ExtensionMigrator : public Externa
|
||||
@@ -43,6 +44,7 @@ class ExtensionMigrator : public Externa
|
||||
raw_ptr<Profile> profile_;
|
||||
const std::string old_id_;
|
||||
const std::string new_id_;
|
||||
@@ -177,7 +177,7 @@
|
||||
fetch->oauth2_attempt_count++;
|
||||
--- a/extensions/common/extension_urls.cc
|
||||
+++ b/extensions/common/extension_urls.cc
|
||||
@@ -68,8 +68,6 @@ GURL AppendUtmSource(const GURL& url, st
|
||||
@@ -74,8 +74,6 @@ GURL AppendUtmSource(const GURL& url, st
|
||||
|
||||
GURL GetWebstoreExtensionsCategoryURL() {
|
||||
GURL base_url = GetNewWebstoreLaunchURL();
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
base::FEATURE_ENABLED_BY_DEFAULT),
|
||||
--- a/services/network/public/cpp/features.cc
|
||||
+++ b/services/network/public/cpp/features.cc
|
||||
@@ -124,12 +124,7 @@ BASE_FEATURE(kSplitAuthCacheByNetworkIso
|
||||
@@ -108,12 +108,7 @@ BASE_FEATURE(kSplitAuthCacheByNetworkIso
|
||||
// Enable usage of hardcoded DoH upgrade mapping for use in automatic mode.
|
||||
BASE_FEATURE(kDnsOverHttpsUpgrade,
|
||||
"DnsOverHttpsUpgrade",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/extensions/api/developer_private/extension_info_generator_desktop.cc
|
||||
+++ b/chrome/browser/extensions/api/developer_private/extension_info_generator_desktop.cc
|
||||
@@ -132,17 +132,6 @@ void ExtensionInfoGenerator::FillExtensi
|
||||
@@ -54,17 +54,6 @@ void ExtensionInfoGenerator::FillExtensi
|
||||
info.controlled_info.emplace();
|
||||
info.controlled_info->text =
|
||||
l10n_util::GetStringUTF8(IDS_EXTENSIONS_INSTALL_LOCATION_ENTERPRISE);
|
||||
@@ -17,10 +17,10 @@
|
||||
- }
|
||||
}
|
||||
|
||||
bool is_enabled = state == developer::ExtensionState::kEnabled;
|
||||
// Pinned to toolbar.
|
||||
--- a/chrome/browser/extensions/extension_management.cc
|
||||
+++ b/chrome/browser/extensions/extension_management.cc
|
||||
@@ -317,31 +317,7 @@ bool ExtensionManagement::IsAllowedManif
|
||||
@@ -322,31 +322,7 @@ bool ExtensionManagement::IsAllowedManif
|
||||
int manifest_version,
|
||||
const std::string& extension_id,
|
||||
Manifest::Type manifest_type) {
|
||||
@@ -52,7 +52,7 @@
|
||||
}
|
||||
|
||||
bool ExtensionManagement::IsAllowedManifestVersion(const Extension* extension) {
|
||||
@@ -362,26 +338,8 @@ bool ExtensionManagement::IsExemptFromMV
|
||||
@@ -367,26 +343,8 @@ bool ExtensionManagement::IsExemptFromMV
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
// Returns true if the given `stage` is one in which extension enablement should
|
||||
--- a/chrome/browser/ui/webui/extensions/extensions_ui.cc
|
||||
+++ b/chrome/browser/ui/webui/extensions/extensions_ui.cc
|
||||
@@ -481,7 +481,7 @@ content::WebUIDataSource* CreateAndAddEx
|
||||
@@ -490,7 +490,7 @@ content::WebUIDataSource* CreateAndAddEx
|
||||
extensions_features::kExtensionsMenuAccessControlWithPermittedSites));
|
||||
source->AddBoolean(
|
||||
"safetyHubThreeDotDetails",
|
||||
@@ -137,7 +137,7 @@
|
||||
source->AddResourcePath("images/product_logo.png",
|
||||
--- a/extensions/common/extension.cc
|
||||
+++ b/extensions/common/extension.cc
|
||||
@@ -96,13 +96,6 @@ bool IsManifestSupported(int manifest_ve
|
||||
@@ -104,13 +104,6 @@ bool IsManifestSupported(int manifest_ve
|
||||
// Supported versions are always safe.
|
||||
if (manifest_version >= kMinimumSupportedManifestVersion &&
|
||||
manifest_version <= kMaximumSupportedManifestVersion) {
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
|
||||
--- a/chrome/BUILD.gn
|
||||
+++ b/chrome/BUILD.gn
|
||||
@@ -374,7 +374,6 @@ if (!is_android && !is_mac) {
|
||||
@@ -370,7 +370,6 @@ if (!is_android && !is_mac) {
|
||||
|
||||
data_deps += [
|
||||
"//chrome/browser/resources/media/mei_preload:component",
|
||||
"//chrome/browser/web_applications/isolated_web_apps/key_distribution/preload:component",
|
||||
- "//components/privacy_sandbox/privacy_sandbox_attestations/preload:component",
|
||||
"//components/webapps/isolated_web_apps/preload:component",
|
||||
"//third_party/widevine/cdm",
|
||||
]
|
||||
|
||||
@@ -933,8 +932,6 @@ if (is_win) {
|
||||
@@ -934,8 +933,6 @@ if (is_win) {
|
||||
|
||||
bundle_data("chrome_framework_resources") {
|
||||
sources = [
|
||||
@@ -20,17 +20,17 @@
|
||||
# This image is used to badge the lock icon in the
|
||||
# authentication dialogs, such as those used for installation
|
||||
# from disk image and Keystone promotion (if so enabled). It
|
||||
@@ -1207,7 +1204,6 @@ if (is_win) {
|
||||
@@ -1208,7 +1205,6 @@ if (is_win) {
|
||||
":swiftshader_binaries",
|
||||
":widevine_cdm_library",
|
||||
"//chrome/browser/resources/media/mei_preload:component_bundle",
|
||||
"//chrome/browser/web_applications/isolated_web_apps/key_distribution/preload:component_bundle",
|
||||
- "//components/privacy_sandbox/privacy_sandbox_attestations/preload:component_bundle",
|
||||
"//components/webapps/isolated_web_apps/preload:component_bundle",
|
||||
]
|
||||
|
||||
if (is_chrome_branded) {
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -765,10 +765,6 @@ static_library("browser") {
|
||||
@@ -775,10 +775,6 @@ static_library("browser") {
|
||||
"navigation_predictor/navigation_predictor_metrics_document_data.h",
|
||||
"navigation_predictor/navigation_predictor_preconnect_client.cc",
|
||||
"navigation_predictor/navigation_predictor_preconnect_client.h",
|
||||
@@ -41,7 +41,7 @@
|
||||
"navigation_predictor/search_engine_preconnector_keyed_service_factory.cc",
|
||||
"navigation_predictor/search_engine_preconnector_keyed_service_factory.h",
|
||||
"net/cert_verifier_service_time_updater.cc",
|
||||
@@ -3549,10 +3545,6 @@ static_library("browser") {
|
||||
@@ -3618,10 +3614,6 @@ static_library("browser") {
|
||||
} else {
|
||||
#!is_android
|
||||
sources += [
|
||||
@@ -52,27 +52,27 @@
|
||||
"accessibility/caption_bubble_context_browser.h",
|
||||
"accessibility/embedded_a11y_extension_loader.cc",
|
||||
"accessibility/embedded_a11y_extension_loader.h",
|
||||
@@ -4268,8 +4260,6 @@ static_library("browser") {
|
||||
@@ -4329,8 +4321,6 @@ static_library("browser") {
|
||||
"//chrome/app:command_ids",
|
||||
"//chrome/app/theme:chrome_unscaled_resources_grit",
|
||||
"//chrome/app/vector_icons",
|
||||
- "//chrome/browser/accessibility/tree_fixing:prefs",
|
||||
- "//chrome/browser/accessibility/tree_fixing:service",
|
||||
"//chrome/browser/actor",
|
||||
"//chrome/browser/apps/app_service",
|
||||
"//chrome/browser/apps/link_capturing",
|
||||
"//chrome/browser/autofill_ai:util",
|
||||
@@ -4291,10 +4281,6 @@ static_library("browser") {
|
||||
@@ -4350,10 +4340,6 @@ static_library("browser") {
|
||||
"//chrome/browser/metrics/desktop_session_duration",
|
||||
"//chrome/browser/new_tab_page/chrome_colors",
|
||||
"//chrome/browser/policy:path_parser",
|
||||
"//chrome/browser/resources:component_extension_resources",
|
||||
- "//chrome/browser/screen_ai:prefs",
|
||||
- "//chrome/browser/screen_ai:screen_ai_install_state",
|
||||
- "//chrome/browser/screen_ai:screen_ai_service_router_factory",
|
||||
- "//chrome/browser/screen_ai/public:optical_character_recognizer",
|
||||
"//chrome/browser/search/background",
|
||||
"//chrome/browser/sharing_hub",
|
||||
"//chrome/browser/smart_card",
|
||||
"//chrome/browser/themes",
|
||||
@@ -4419,9 +4405,6 @@ static_library("browser") {
|
||||
@@ -4512,9 +4498,6 @@ static_library("browser") {
|
||||
"//components/webauthn/core/browser",
|
||||
"//components/webauthn/core/browser:passkey_model",
|
||||
"//services/device/public/cpp/hid",
|
||||
@@ -82,7 +82,7 @@
|
||||
"//third_party/crashpad/crashpad/client:common",
|
||||
"//third_party/zxcvbn-cpp",
|
||||
"//ui/views",
|
||||
@@ -4516,8 +4499,6 @@ static_library("browser") {
|
||||
@@ -4630,8 +4613,6 @@ static_library("browser") {
|
||||
sources += [
|
||||
"accessibility/soda_installer_impl.cc",
|
||||
"accessibility/soda_installer_impl.h",
|
||||
@@ -91,7 +91,7 @@
|
||||
"device_identity/device_oauth2_token_store_desktop.cc",
|
||||
"device_identity/device_oauth2_token_store_desktop.h",
|
||||
"device_notifications/device_status_icon_renderer.cc",
|
||||
@@ -4556,8 +4537,6 @@ static_library("browser") {
|
||||
@@ -4670,8 +4651,6 @@ static_library("browser") {
|
||||
"profiles/profile_activity_metrics_recorder.h",
|
||||
"profiles/profile_list_desktop.cc",
|
||||
"profiles/profile_list_desktop.h",
|
||||
@@ -100,15 +100,15 @@
|
||||
"signin/force_signin_verifier.cc",
|
||||
"signin/force_signin_verifier.h",
|
||||
"signin/signin_manager.cc",
|
||||
@@ -5359,7 +5338,6 @@ static_library("browser") {
|
||||
@@ -5471,7 +5450,6 @@ static_library("browser") {
|
||||
"//chrome/browser/policy:system_features_disable_list",
|
||||
"//chrome/browser/push_notification:push_notification",
|
||||
"//chrome/browser/resources:app_icon_resources",
|
||||
- "//chrome/browser/screen_ai:screen_ai_dlc_installer",
|
||||
"//chrome/browser/sharesheet",
|
||||
"//chrome/browser/support_tool/ash",
|
||||
"//chrome/browser/ui/ash/accelerator",
|
||||
"//chrome/browser/ui/ash/accessibility",
|
||||
@@ -5623,7 +5601,6 @@ static_library("browser") {
|
||||
@@ -5738,7 +5716,6 @@ static_library("browser") {
|
||||
"//remoting/host/chromeos:browser_interop",
|
||||
"//remoting/host/chromeos:features",
|
||||
"//services/device/public/cpp/geolocation",
|
||||
@@ -116,7 +116,7 @@
|
||||
"//third_party/nearby:rpc_resources_proto",
|
||||
"//third_party/nearby:wire_format_proto",
|
||||
"//ui/chromeos",
|
||||
@@ -7850,12 +7827,6 @@ static_library("browser") {
|
||||
@@ -7993,12 +7970,6 @@ static_library("browser") {
|
||||
}
|
||||
|
||||
if (enable_pdf) {
|
||||
@@ -131,18 +131,21 @@
|
||||
"//chrome/browser/pdf:pdf_pref_names",
|
||||
--- a/chrome/browser/accessibility/tree_fixing/BUILD.gn
|
||||
+++ b/chrome/browser/accessibility/tree_fixing/BUILD.gn
|
||||
@@ -60,8 +60,6 @@ source_set("internal") {
|
||||
@@ -64,11 +64,9 @@ source_set("internal") {
|
||||
deps = [
|
||||
"//base",
|
||||
"//chrome/browser/profiles:profile",
|
||||
- "//chrome/browser/screen_ai:screen_ai_service_router_factory",
|
||||
"//components/paint_preview/browser",
|
||||
"//components/paint_preview/common",
|
||||
"//components/paint_preview/public",
|
||||
"//content/public/browser:browser",
|
||||
- "//services/screen_ai/public/mojom:mojom",
|
||||
]
|
||||
}
|
||||
--- a/chrome/browser/browser_process_impl.cc
|
||||
+++ b/chrome/browser/browser_process_impl.cc
|
||||
@@ -249,12 +249,10 @@
|
||||
@@ -246,12 +246,10 @@
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
#include "chrome/browser/chromeos/extensions/telemetry/chromeos_telemetry_extensions_browser_api_provider.h"
|
||||
#include "chrome/browser/hid/hid_pinned_notification.h"
|
||||
@@ -155,7 +158,7 @@
|
||||
#include "chrome/browser/usb/usb_status_icon.h"
|
||||
#include "components/enterprise/browser/controller/chrome_browser_cloud_management_controller.h"
|
||||
#endif
|
||||
@@ -1359,9 +1357,6 @@ void BrowserProcessImpl::PreMainMessageL
|
||||
@@ -1382,9 +1380,6 @@ void BrowserProcessImpl::PreMainMessageL
|
||||
soda_installer_impl_ = std::make_unique<speech::SodaInstallerImplChromeOS>();
|
||||
#endif // BUILDFLAG(IS_CHROMEOS)
|
||||
|
||||
@@ -177,7 +180,7 @@
|
||||
|
||||
// Real implementation of BrowserProcess that creates and returns the services.
|
||||
class BrowserProcessImpl : public BrowserProcess,
|
||||
@@ -431,9 +428,6 @@ class BrowserProcessImpl : public Browse
|
||||
@@ -439,9 +436,6 @@ class BrowserProcessImpl : public Browse
|
||||
// to ensure that SodaInstallerImpl gets destructed first.
|
||||
std::unique_ptr<speech::SodaInstaller> soda_installer_impl_;
|
||||
|
||||
@@ -189,7 +192,7 @@
|
||||
std::unique_ptr<BrowserProcessPlatformPart> platform_part_;
|
||||
--- a/chrome/browser/chrome_browser_interface_binders.cc
|
||||
+++ b/chrome/browser/chrome_browser_interface_binders.cc
|
||||
@@ -78,8 +78,6 @@
|
||||
@@ -81,8 +81,6 @@
|
||||
|
||||
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
|
||||
BUILDFLAG(IS_CHROMEOS)
|
||||
@@ -198,7 +201,7 @@
|
||||
#include "chrome/browser/ui/web_applications/sub_apps_service_impl.h"
|
||||
#endif
|
||||
|
||||
@@ -357,27 +355,6 @@ void BindMediaFoundationPreferences(
|
||||
@@ -362,27 +360,6 @@ void BindMediaFoundationPreferences(
|
||||
}
|
||||
#endif // BUILDFLAG(IS_WIN)
|
||||
|
||||
@@ -224,9 +227,9 @@
|
||||
-}
|
||||
-#endif
|
||||
|
||||
} // namespace
|
||||
|
||||
@@ -510,11 +487,6 @@ void PopulateChromeFrameBinders(
|
||||
void BindModelBroker(
|
||||
content::RenderFrameHost* frame_host,
|
||||
@@ -532,11 +509,6 @@ void PopulateChromeFrameBinders(
|
||||
base::BindRepeating(&web_app::SubAppsServiceImpl::CreateIfAllowed));
|
||||
}
|
||||
|
||||
@@ -249,7 +252,7 @@
|
||||
#endif // BUILDFLAG(IS_ANDROID)
|
||||
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
@@ -237,9 +235,6 @@ void RegisterComponentsForUpdate() {
|
||||
@@ -239,9 +237,6 @@ void RegisterComponentsForUpdate() {
|
||||
|
||||
RegisterAutofillStatesComponent(cus, g_browser_process->local_state());
|
||||
|
||||
@@ -364,7 +367,7 @@
|
||||
void NavigationPredictor::SetModelScoreCallbackForTesting(
|
||||
--- a/chrome/browser/pdf/pdf_extension_util.cc
|
||||
+++ b/chrome/browser/pdf/pdf_extension_util.cc
|
||||
@@ -104,7 +104,6 @@ void AddPdfViewerStrings(base::Value::Di
|
||||
@@ -110,7 +110,6 @@ void AddPdfViewerStrings(base::Value::Di
|
||||
{"rotationStateLabel90", IDS_PDF_ROTATION_STATE_LABEL_90},
|
||||
{"rotationStateLabel180", IDS_PDF_ROTATION_STATE_LABEL_180},
|
||||
{"rotationStateLabel270", IDS_PDF_ROTATION_STATE_LABEL_270},
|
||||
@@ -372,33 +375,76 @@
|
||||
{"thumbnailPageAriaLabel", IDS_PDF_THUMBNAIL_PAGE_ARIA_LABEL},
|
||||
{"tooltipAttachments", IDS_PDF_TOOLTIP_ATTACHMENTS},
|
||||
{"tooltipDocumentOutline", IDS_PDF_TOOLTIP_DOCUMENT_OUTLINE},
|
||||
--- a/chrome/browser/permissions/BUILD.gn
|
||||
+++ b/chrome/browser/permissions/BUILD.gn
|
||||
@@ -42,8 +42,6 @@ source_set("permissions") {
|
||||
"permissions_aiv1_handler.h",
|
||||
"prediction_based_permission_ui_selector.cc",
|
||||
"prediction_based_permission_ui_selector.h",
|
||||
- "prediction_model_handler_provider.cc",
|
||||
- "prediction_model_handler_provider.h",
|
||||
"prediction_service_factory.cc",
|
||||
"prediction_service_factory.h",
|
||||
"prediction_service_request.cc",
|
||||
--- a/chrome/browser/permissions/prediction_based_permission_ui_selector.cc
|
||||
+++ b/chrome/browser/permissions/prediction_based_permission_ui_selector.cc
|
||||
@@ -282,21 +282,6 @@ void PredictionBasedPermissionUiSelector
|
||||
@@ -250,30 +250,6 @@ void PredictionBasedPermissionUiSelector
|
||||
if (snapshot.drawsNothing()) {
|
||||
VLOG(1) << "[PermissionsAIv3] The page's snapshot is empty";
|
||||
} else {
|
||||
- PredictionModelHandlerProvider* prediction_model_handler_provider =
|
||||
- PredictionModelHandlerProviderFactory::GetForBrowserContext(profile_);
|
||||
- LogPredictionModelHandlerProviderForAiv3(
|
||||
- prediction_model_handler_provider != nullptr);
|
||||
- if (prediction_model_handler_provider) {
|
||||
- PermissionsAiv3Handler* aiv3_handler =
|
||||
- prediction_model_handler_provider->GetPermissionsAiv3Handler(
|
||||
- request_metadata.request_type);
|
||||
-
|
||||
- LogPermissionsAiv3HandlerForAiv3(aiv3_handler != nullptr);
|
||||
- if (aiv3_handler) {
|
||||
- VLOG(1) << "[PermissionsAIv3] Inquire model";
|
||||
-
|
||||
- aiv3_handler->ExecuteModel(
|
||||
- base::BindRepeating(
|
||||
- &PredictionBasedPermissionUiSelector::
|
||||
- OnDeviceAiv3ModelExecutionCallback,
|
||||
- weak_ptr_factory_.GetWeakPtr(),
|
||||
- /*model_inquire_start_time=*/base::TimeTicks::Now(),
|
||||
- std::move(features), std::move(request_metadata)),
|
||||
- std::make_unique<SkBitmap>(snapshot));
|
||||
- return;
|
||||
- }
|
||||
- }
|
||||
VLOG(1) << "[PermissionsAIv3] On device AI model session unavailable";
|
||||
}
|
||||
InquireServerModel(features, std::move(request_metadata),
|
||||
@@ -404,22 +380,6 @@ void PredictionBasedPermissionUiSelector
|
||||
if (inner_text.size() > kPageContentMaxLength) {
|
||||
inner_text.resize(kPageContentMaxLength);
|
||||
}
|
||||
- if (PredictionModelHandlerProvider* prediction_model_handler_provider =
|
||||
- PredictionModelHandlerProviderFactory::GetForBrowserContext(
|
||||
- profile_)) {
|
||||
- if (PermissionsAiHandler* gen_ai_model_handler =
|
||||
- prediction_model_handler_provider->GetPermissionsAiHandler()) {
|
||||
- VLOG(1) << "[PermissionsAIv1] Inquire model.";
|
||||
- gen_ai_model_handler->InquireAiOnDeviceModel(
|
||||
- std::move(inner_text), request_type,
|
||||
- if (PermissionsAiv1Handler* aiv1_handler =
|
||||
- prediction_model_handler_provider->GetPermissionsAiv1Handler()) {
|
||||
- VLOG(1) << "[PermissionsAIv1] Inquire model";
|
||||
- aiv1_handler->InquireAiOnDeviceModel(
|
||||
- std::move(inner_text), request_metadata.request_type,
|
||||
- base::BindRepeating(&PredictionBasedPermissionUiSelector::
|
||||
- AiOnDeviceModelExecutionCallback,
|
||||
- OnDeviceAiv1ModelExecutionCallback,
|
||||
- weak_ptr_factory_.GetWeakPtr(),
|
||||
- std::move(features), request_type));
|
||||
- std::move(features),
|
||||
- std::move(request_metadata)));
|
||||
- return;
|
||||
- }
|
||||
- }
|
||||
VLOG(1) << "[PermissionsAIv1] On device AI model session unavailable";
|
||||
} else {
|
||||
VLOG(1) << "[PermissionsAIv1] The page's contnet too short or empty";
|
||||
VLOG(1) << "[PermissionsAIv1] The page's content is too short or empty";
|
||||
--- a/chrome/browser/prefs/BUILD.gn
|
||||
+++ b/chrome/browser/prefs/BUILD.gn
|
||||
@@ -267,7 +267,6 @@ source_set("impl") {
|
||||
@@ -286,7 +286,6 @@ source_set("impl") {
|
||||
} else {
|
||||
deps += [
|
||||
"//chrome/browser/promos:utils",
|
||||
@@ -408,7 +454,7 @@
|
||||
"//chrome/browser/search_engines",
|
||||
--- a/chrome/browser/prefs/browser_prefs.cc
|
||||
+++ b/chrome/browser/prefs/browser_prefs.cc
|
||||
@@ -1792,9 +1792,6 @@ void RegisterLocalState(PrefRegistrySimp
|
||||
@@ -1842,9 +1842,6 @@ void RegisterLocalState(PrefRegistrySimp
|
||||
DeviceOAuth2TokenStoreDesktop::RegisterPrefs(registry);
|
||||
#endif
|
||||
|
||||
@@ -420,7 +466,7 @@
|
||||
PlatformAuthPolicyObserver::RegisterPrefs(registry);
|
||||
--- a/chrome/browser/profiles/BUILD.gn
|
||||
+++ b/chrome/browser/profiles/BUILD.gn
|
||||
@@ -294,7 +294,6 @@ source_set("profiles_extra_parts_impl")
|
||||
@@ -305,7 +305,6 @@ source_set("profiles_extra_parts_impl")
|
||||
]
|
||||
} else {
|
||||
deps += [
|
||||
@@ -428,7 +474,7 @@
|
||||
"//chrome/browser/apps/app_service",
|
||||
"//chrome/browser/autofill",
|
||||
"//chrome/browser/contextual_cueing",
|
||||
@@ -302,7 +301,6 @@ source_set("profiles_extra_parts_impl")
|
||||
@@ -313,7 +312,6 @@ source_set("profiles_extra_parts_impl")
|
||||
"//chrome/browser/feedback",
|
||||
"//chrome/browser/hid",
|
||||
"//chrome/browser/media/router/discovery/access_code:access_code_sink_service",
|
||||
@@ -438,7 +484,7 @@
|
||||
"//chrome/browser/search_engine_choice",
|
||||
--- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
|
||||
+++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
|
||||
@@ -102,7 +102,6 @@
|
||||
@@ -105,7 +105,6 @@
|
||||
#include "chrome/browser/media_galleries/media_galleries_preferences_factory.h"
|
||||
#include "chrome/browser/metrics/variations/google_groups_manager_factory.h"
|
||||
#include "chrome/browser/navigation_predictor/navigation_predictor_keyed_service_factory.h"
|
||||
@@ -446,15 +492,15 @@
|
||||
#include "chrome/browser/navigation_predictor/search_engine_preconnector.h"
|
||||
#include "chrome/browser/navigation_predictor/search_engine_preconnector_keyed_service_factory.h"
|
||||
#include "chrome/browser/net/dns_probe_service_factory.h"
|
||||
@@ -322,7 +321,6 @@
|
||||
#include "chrome/browser/performance_manager/persistence/site_data/site_data_cache_facade_factory.h"
|
||||
@@ -332,7 +331,6 @@
|
||||
#include "chrome/browser/prefs/persistent_renderer_prefs_manager_factory.h"
|
||||
#include "chrome/browser/privacy_sandbox/privacy_sandbox_survey_desktop_controller_factory.h"
|
||||
#include "chrome/browser/profile_resetter/reset_report_uploader_factory.h"
|
||||
-#include "chrome/browser/screen_ai/screen_ai_service_router_factory.h"
|
||||
#include "chrome/browser/search/background/ntp_background_service_factory.h"
|
||||
#include "chrome/browser/search/background/ntp_custom_background_service_factory.h"
|
||||
#include "chrome/browser/search/instant_service_factory.h"
|
||||
@@ -1005,7 +1003,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
@@ -1039,7 +1037,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
#if BUILDFLAG(CHROME_ROOT_STORE_CERT_MANAGEMENT_UI)
|
||||
net::ServerCertificateDatabaseServiceFactory::GetInstance();
|
||||
#endif
|
||||
@@ -462,7 +508,7 @@
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
NearbySharingServiceFactory::GetInstance();
|
||||
if (base::FeatureList::IsEnabled(ash::features::kNearbyPresence)) {
|
||||
@@ -1057,9 +1054,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
@@ -1091,9 +1088,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
OneTimePermissionsTrackerFactory::GetInstance();
|
||||
#endif
|
||||
OpenerHeuristicServiceFactory::GetInstance();
|
||||
@@ -472,7 +518,7 @@
|
||||
OptimizationGuideKeyedServiceFactory::GetInstance();
|
||||
OriginKeyedPermissionActionServiceFactory::GetInstance();
|
||||
OriginTrialsFactory::GetInstance();
|
||||
@@ -1123,13 +1117,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
@@ -1168,13 +1162,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
policy::UserPolicySigninServiceFactory::GetInstance();
|
||||
#endif
|
||||
PolicyBlocklistFactory::GetInstance();
|
||||
@@ -486,7 +532,7 @@
|
||||
PredictionServiceFactory::GetInstance();
|
||||
predictors::AutocompleteActionPredictorFactory::GetInstance();
|
||||
predictors::LoadingPredictorFactory::GetInstance();
|
||||
@@ -1215,13 +1202,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
@@ -1261,13 +1248,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
#else
|
||||
SafetyHubMenuNotificationServiceFactory::GetInstance();
|
||||
SafetyHubHatsServiceFactory::GetInstance();
|
||||
@@ -500,7 +546,7 @@
|
||||
#endif
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
if (ash::features::IsScannerEnabled()) {
|
||||
@@ -1331,7 +1311,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
@@ -1378,7 +1358,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
TrackingProtectionSettingsFactory::GetInstance();
|
||||
translate::TranslateRankerFactory::GetInstance();
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
@@ -510,7 +556,7 @@
|
||||
#if !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_ANDROID)
|
||||
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
|
||||
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
|
||||
@@ -221,11 +221,6 @@ void OffTheRecordProfileImpl::Init() {
|
||||
@@ -225,11 +225,6 @@ void OffTheRecordProfileImpl::Init() {
|
||||
// AccessibilityLabelsService has a default prefs behavior in incognito.
|
||||
AccessibilityLabelsService::InitOffTheRecordPrefs(this);
|
||||
|
||||
@@ -524,7 +570,7 @@
|
||||
// System Profile.
|
||||
--- a/chrome/browser/profiles/profile_impl.cc
|
||||
+++ b/chrome/browser/profiles/profile_impl.cc
|
||||
@@ -846,24 +846,6 @@ void ProfileImpl::DoFinalInit(CreateMode
|
||||
@@ -845,24 +845,6 @@ void ProfileImpl::DoFinalInit(CreateMode
|
||||
// The password settings service needs to start listening to settings
|
||||
// changes from Google Mobile Services, as early as possible.
|
||||
PasswordManagerSettingsServiceFactory::GetForProfile(this);
|
||||
@@ -559,7 +605,7 @@
|
||||
#include "chrome/browser/prefs/incognito_mode_prefs.h"
|
||||
#include "chrome/browser/profiles/delete_profile_helper.h"
|
||||
#include "chrome/browser/profiles/keep_alive/profile_keep_alive_types.h"
|
||||
@@ -1508,9 +1507,6 @@ void ProfileManager::DoFinalInitForServi
|
||||
@@ -1509,9 +1508,6 @@ void ProfileManager::DoFinalInitForServi
|
||||
// Ensure NavigationPredictorKeyedService is started.
|
||||
NavigationPredictorKeyedServiceFactory::GetForProfile(profile);
|
||||
|
||||
@@ -571,7 +617,7 @@
|
||||
#if BUILDFLAG(IS_ANDROID)
|
||||
--- a/chrome/browser/resources/BUILD.gn
|
||||
+++ b/chrome/browser/resources/BUILD.gn
|
||||
@@ -91,7 +91,6 @@ group("resources") {
|
||||
@@ -100,7 +100,6 @@ group("resources") {
|
||||
if (is_mac) {
|
||||
public_deps += [
|
||||
"//chrome/browser/resources/media/mei_preload:component",
|
||||
@@ -581,7 +627,7 @@
|
||||
|
||||
--- a/chrome/browser/resources/pdf/pdf_viewer.html
|
||||
+++ b/chrome/browser/resources/pdf/pdf_viewer.html
|
||||
@@ -94,10 +94,6 @@ import {AnnotationMode} from './constant
|
||||
@@ -100,10 +100,6 @@ import {AnnotationMode} from './constant
|
||||
</cr-page-selector>
|
||||
` : ''}
|
||||
</if>
|
||||
@@ -594,7 +640,7 @@
|
||||
${this.showErrorDialog ? html`<viewer-error-dialog id="error-dialog">
|
||||
--- a/chrome/browser/ui/BUILD.gn
|
||||
+++ b/chrome/browser/ui/BUILD.gn
|
||||
@@ -1716,8 +1716,6 @@ static_library("ui") {
|
||||
@@ -1657,8 +1657,6 @@ static_library("ui") {
|
||||
"//chrome/browser/regional_capabilities",
|
||||
"//chrome/browser/safe_browsing",
|
||||
"//chrome/browser/safe_browsing:advanced_protection",
|
||||
@@ -603,7 +649,7 @@
|
||||
"//chrome/browser/smart_card:smart_card",
|
||||
"//chrome/browser/tab_group_sync:utils",
|
||||
"//chrome/browser/themes",
|
||||
@@ -2397,7 +2395,6 @@ static_library("ui") {
|
||||
@@ -2370,7 +2368,6 @@ static_library("ui") {
|
||||
"//chrome/browser/policy:onc",
|
||||
"//chrome/browser/policy:system_features_disable_list",
|
||||
"//chrome/browser/push_notification:push_notification",
|
||||
@@ -747,7 +793,7 @@
|
||||
#include "chrome/browser/speech/extension_api/tts_engine_extension_api.h"
|
||||
#include "chrome/browser/translate/chrome_translate_client.h"
|
||||
#include "chrome/browser/ui/browser.h"
|
||||
@@ -371,24 +369,6 @@ ReadAnythingUntrustedPageHandler::ReadAn
|
||||
@@ -369,24 +367,6 @@ ReadAnythingUntrustedPageHandler::ReadAn
|
||||
prefs_lang = language::ExtractBaseLanguage(prefs_lang);
|
||||
SetDefaultLanguageCode(prefs_lang);
|
||||
|
||||
@@ -772,7 +818,7 @@
|
||||
|
||||
// Enable accessibility for the top level render frame and all descendants.
|
||||
// This causes AXTreeSerializer to reset and send accessibility events of
|
||||
@@ -842,12 +822,6 @@ void ReadAnythingUntrustedPageHandler::S
|
||||
@@ -856,12 +836,6 @@ void ReadAnythingUntrustedPageHandler::S
|
||||
weak_factory_.GetSafeRef(), inner_contents[0], kReadAnythingAXMode);
|
||||
}
|
||||
}
|
||||
@@ -787,7 +833,7 @@
|
||||
|
||||
--- a/chrome/renderer/BUILD.gn
|
||||
+++ b/chrome/renderer/BUILD.gn
|
||||
@@ -371,18 +371,6 @@ static_library("renderer") {
|
||||
@@ -373,18 +373,6 @@ static_library("renderer") {
|
||||
]
|
||||
} else {
|
||||
sources += [
|
||||
@@ -806,7 +852,7 @@
|
||||
"media/chrome_speech_recognition_client.cc",
|
||||
"media/chrome_speech_recognition_client.h",
|
||||
"searchbox/searchbox.cc",
|
||||
@@ -396,7 +384,6 @@ static_library("renderer") {
|
||||
@@ -399,7 +387,6 @@ static_library("renderer") {
|
||||
"//components/crx_file",
|
||||
"//components/trusted_vault",
|
||||
"//services/screen_ai/buildflags",
|
||||
@@ -821,10 +867,10 @@
|
||||
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
-#include "chrome/renderer/accessibility/read_anything/read_anything_app_controller.h"
|
||||
#include "chrome/renderer/actor/tool_executor.h"
|
||||
#include "chrome/renderer/searchbox/searchbox_extension.h"
|
||||
#endif // !BUILDFLAG(IS_ANDROID)
|
||||
|
||||
@@ -321,21 +320,6 @@ void ChromeRenderFrameObserver::DidCommi
|
||||
@@ -318,21 +317,6 @@ void ChromeRenderFrameObserver::DidCommi
|
||||
}
|
||||
|
||||
void ChromeRenderFrameObserver::DidClearWindowObject() {
|
||||
@@ -848,7 +894,7 @@
|
||||
void ChromeRenderFrameObserver::DidMeaningfulLayout(
|
||||
--- a/chrome/test/BUILD.gn
|
||||
+++ b/chrome/test/BUILD.gn
|
||||
@@ -2187,9 +2187,6 @@ if (!is_android) {
|
||||
@@ -2275,9 +2275,6 @@ if (!is_android) {
|
||||
"//chrome/browser/resource_coordinator:tab_manager_features",
|
||||
"//chrome/browser/safe_browsing:advanced_protection",
|
||||
"//chrome/browser/safe_browsing:verdict_cache_manager_factory",
|
||||
@@ -858,7 +904,7 @@
|
||||
"//chrome/browser/search",
|
||||
"//chrome/browser/search_engines",
|
||||
"//chrome/browser/segmentation_platform:test_utils",
|
||||
@@ -2592,9 +2589,6 @@ if (!is_android) {
|
||||
@@ -2699,9 +2696,6 @@ if (!is_android) {
|
||||
"//services/network/public/proto:sct_audit_report_proto",
|
||||
"//services/preferences/public/cpp",
|
||||
"//services/preferences/public/cpp/tracked",
|
||||
@@ -868,30 +914,30 @@
|
||||
"//services/service_manager/public/cpp",
|
||||
"//services/strings",
|
||||
"//services/test/echo/public/mojom",
|
||||
@@ -8121,7 +8115,6 @@ test("unit_tests") {
|
||||
|
||||
# Non-android deps for "unit_tests" target.
|
||||
@@ -8265,7 +8259,6 @@ test("unit_tests") {
|
||||
#
|
||||
# TODO(crbug.com/417513088): Maybe merge with the non-android `deps` declaration above?
|
||||
deps += [
|
||||
- "../browser/screen_ai:screen_ai_install_state",
|
||||
"//chrome:packed_resources_integrity_header",
|
||||
"//chrome/browser/apps:icon_standardizer",
|
||||
"//chrome/browser/apps/app_service",
|
||||
@@ -8156,7 +8149,6 @@ test("unit_tests") {
|
||||
@@ -8299,7 +8292,6 @@ test("unit_tests") {
|
||||
"//chrome/browser/profile_resetter:fake_profile_resetter",
|
||||
"//chrome/browser/resource_coordinator:tab_manager_features",
|
||||
"//chrome/browser/resources:component_extension_resources_grit",
|
||||
"//chrome/browser/resources/new_tab_page_instant:resources_grit",
|
||||
- "//chrome/browser/screen_ai:unit_tests",
|
||||
"//chrome/browser/search/background",
|
||||
"//chrome/browser/search/background:constants",
|
||||
"//chrome/browser/search_engine_choice:unit_tests",
|
||||
@@ -8265,7 +8257,6 @@ test("unit_tests") {
|
||||
@@ -8413,7 +8405,6 @@ test("unit_tests") {
|
||||
"//components/webapps/browser",
|
||||
"//services/metrics/public/cpp:ukm_builders",
|
||||
"//services/network:test_support",
|
||||
- "//services/screen_ai:test_support",
|
||||
"//services/video_effects/test:test_support",
|
||||
"//third_party/crashpad/crashpad/util",
|
||||
"//third_party/libaddressinput",
|
||||
"//third_party/lzma_sdk/google:unit_tests",
|
||||
--- a/chrome/test/chromedriver/BUILD.gn
|
||||
+++ b/chrome/test/chromedriver/BUILD.gn
|
||||
@@ -408,7 +408,7 @@ source_set("lib") {
|
||||
@@ -915,9 +961,9 @@
|
||||
python_library("fixtures") {
|
||||
--- a/chrome/utility/BUILD.gn
|
||||
+++ b/chrome/utility/BUILD.gn
|
||||
@@ -144,7 +144,6 @@ static_library("utility") {
|
||||
"//chrome/common/importer:interfaces",
|
||||
@@ -145,7 +145,6 @@ static_library("utility") {
|
||||
"//components/autofill/core/common",
|
||||
"//components/user_data_importer/common",
|
||||
"//services/proxy_resolver:lib",
|
||||
- "//services/screen_ai",
|
||||
]
|
||||
@@ -955,9 +1001,19 @@
|
||||
#endif // !BUILDFLAG(IS_ANDROID)
|
||||
|
||||
#if BUILDFLAG(ENABLE_BROWSER_SPEECH_SERVICE)
|
||||
--- a/components/BUILD.gn
|
||||
+++ b/components/BUILD.gn
|
||||
@@ -600,7 +600,6 @@ test("components_unittests") {
|
||||
"//components/media_router/common/providers/cast/channel:unit_tests",
|
||||
"//components/page_info:unit_tests",
|
||||
"//components/permissions:unit_tests",
|
||||
- "//components/permissions/prediction_service:unit_tests",
|
||||
"//components/privacy_sandbox:unit_tests",
|
||||
"//components/privacy_sandbox/privacy_sandbox_attestations:unit_tests",
|
||||
"//components/safety_check:unit_tests",
|
||||
--- a/components/omnibox/browser/autocomplete_classifier.cc
|
||||
+++ b/components/omnibox/browser/autocomplete_classifier.cc
|
||||
@@ -122,8 +122,6 @@ void AutocompleteClassifier::Classify(
|
||||
@@ -126,8 +126,6 @@ void AutocompleteClassifier::Classify(
|
||||
metrics::OmniboxEventProto::PageClassification page_classification,
|
||||
AutocompleteMatch* match,
|
||||
GURL* alternate_nav_url) {
|
||||
@@ -1010,24 +1066,20 @@
|
||||
return wrapper_node;
|
||||
--- a/components/pdf/renderer/pdf_view_web_plugin_client.cc
|
||||
+++ b/components/pdf/renderer/pdf_view_web_plugin_client.cc
|
||||
@@ -203,34 +203,6 @@ PdfViewWebPluginClient::CreateAssociated
|
||||
@@ -203,44 +203,6 @@ PdfViewWebPluginClient::CreateAssociated
|
||||
return GetFrame()->CreateAssociatedURLLoader(options);
|
||||
}
|
||||
|
||||
-void PdfViewWebPluginClient::GetOcrMaxImageDimension(
|
||||
- base::OnceCallback<void(uint32_t)> callback) {
|
||||
- ConnectOcrIfNeeded();
|
||||
- return screen_ai_annotator_->GetMaxImageDimension(std::move(callback));
|
||||
-}
|
||||
-
|
||||
-void PdfViewWebPluginClient::PerformOcr(
|
||||
- const SkBitmap& image,
|
||||
- base::OnceCallback<void(screen_ai::mojom::VisualAnnotationPtr)> callback) {
|
||||
- CHECK(base::FeatureList::IsEnabled(ax::mojom::features::kScreenAIOCREnabled));
|
||||
-
|
||||
- if (!screen_ai_annotator_.is_bound()) {
|
||||
- render_frame_->GetBrowserInterfaceBroker().GetInterface(
|
||||
- screen_ai_annotator_.BindNewPipeAndPassReceiver());
|
||||
- screen_ai_annotator_->SetClientType(
|
||||
- screen_ai::mojom::OcrClientType::kPdfViewer);
|
||||
- screen_ai_annotator_.set_disconnect_handler(
|
||||
- base::BindOnce(&PdfViewWebPluginClient::OnOcrDisconnected,
|
||||
- weak_factory_.GetWeakPtr()));
|
||||
- }
|
||||
- ConnectOcrIfNeeded();
|
||||
- screen_ai_annotator_->PerformOcrAndReturnAnnotation(image,
|
||||
- std::move(callback));
|
||||
-}
|
||||
@@ -1041,6 +1093,20 @@
|
||||
- screen_ai_annotator_.reset();
|
||||
- CHECK(ocr_disconnect_callback_);
|
||||
- ocr_disconnect_callback_.Run();
|
||||
-}
|
||||
-
|
||||
-void PdfViewWebPluginClient::ConnectOcrIfNeeded() {
|
||||
- CHECK(base::FeatureList::IsEnabled(ax::mojom::features::kScreenAIOCREnabled));
|
||||
-
|
||||
- if (!screen_ai_annotator_.is_bound()) {
|
||||
- render_frame_->GetBrowserInterfaceBroker().GetInterface(
|
||||
- screen_ai_annotator_.BindNewPipeAndPassReceiver());
|
||||
- screen_ai_annotator_->SetClientType(
|
||||
- screen_ai::mojom::OcrClientType::kPdfViewer);
|
||||
- screen_ai_annotator_.set_disconnect_handler(
|
||||
- base::BindOnce(&PdfViewWebPluginClient::OnOcrDisconnected,
|
||||
- weak_factory_.GetWeakPtr()));
|
||||
- }
|
||||
-}
|
||||
|
||||
void PdfViewWebPluginClient::UpdateTextInputState() {
|
||||
@@ -1055,10 +1121,12 @@
|
||||
|
||||
namespace blink {
|
||||
class WebLocalFrame;
|
||||
@@ -87,16 +86,10 @@ class PdfViewWebPluginClient : public ch
|
||||
@@ -87,19 +86,10 @@ class PdfViewWebPluginClient : public ch
|
||||
chrome_pdf::PdfAccessibilityImageFetcher* image_fetcher,
|
||||
blink::WebPluginContainer* plugin_element,
|
||||
bool print_preview) override;
|
||||
- void GetOcrMaxImageDimension(
|
||||
- base::OnceCallback<void(uint32_t)> callback) override;
|
||||
- void PerformOcr(
|
||||
- const SkBitmap& image,
|
||||
- base::OnceCallback<void(screen_ai::mojom::VisualAnnotationPtr)> callback)
|
||||
@@ -1069,10 +1137,11 @@
|
||||
blink::WebLocalFrame* GetFrame() const;
|
||||
|
||||
- void OnOcrDisconnected();
|
||||
- void ConnectOcrIfNeeded();
|
||||
|
||||
const raw_ptr<content::RenderFrame> render_frame_;
|
||||
|
||||
@@ -105,8 +98,6 @@ class PdfViewWebPluginClient : public ch
|
||||
@@ -108,8 +98,6 @@ class PdfViewWebPluginClient : public ch
|
||||
|
||||
raw_ptr<blink::WebPluginContainer> plugin_container_;
|
||||
|
||||
@@ -1083,7 +1152,7 @@
|
||||
};
|
||||
--- a/components/update_client/BUILD.gn
|
||||
+++ b/components/update_client/BUILD.gn
|
||||
@@ -341,8 +341,6 @@ source_set("unit_tests") {
|
||||
@@ -361,8 +361,6 @@ source_set("unit_tests") {
|
||||
"//third_party/puffin:libpuffpatch",
|
||||
"//third_party/re2",
|
||||
]
|
||||
@@ -1094,7 +1163,7 @@
|
||||
fuzzer_test("update_client_protocol_serializer_fuzzer") {
|
||||
--- a/content/shell/BUILD.gn
|
||||
+++ b/content/shell/BUILD.gn
|
||||
@@ -820,10 +820,6 @@ if (is_apple) {
|
||||
@@ -825,10 +825,6 @@ if (is_apple) {
|
||||
deps = [ "//third_party/icu:icudata" ]
|
||||
}
|
||||
|
||||
@@ -1117,19 +1186,22 @@
|
||||
page_objects.links = page->GetLinkInfo(text_runs);
|
||||
--- a/pdf/pdf_view_web_plugin.cc
|
||||
+++ b/pdf/pdf_view_web_plugin.cc
|
||||
@@ -1348,11 +1348,6 @@ void PdfViewWebPlugin::DocumentLoadCompl
|
||||
@@ -1378,14 +1378,6 @@ void PdfViewWebPlugin::DocumentLoadCompl
|
||||
if (accessibility_state_ == AccessibilityState::kPending)
|
||||
LoadAccessibility();
|
||||
|
||||
- // To avoid delaying page load for searchify, start searchify after document
|
||||
- // load is completed.
|
||||
- // Maximum image dimension is asked once and stored for the next usages, so
|
||||
- // `BindOnce` is sufficient.
|
||||
- client_->SetOcrDisconnectedCallback(engine_->GetOcrDisconnectHandler());
|
||||
- engine_->StartSearchify(
|
||||
- base::BindOnce(&Client::GetOcrMaxImageDimension, client_->GetWeakPtr()),
|
||||
- base::BindRepeating(&Client::PerformOcr, client_->GetWeakPtr()));
|
||||
|
||||
if (!full_frame_)
|
||||
return;
|
||||
@@ -2446,7 +2441,7 @@ void PdfViewWebPlugin::EnableAccessibili
|
||||
@@ -2482,7 +2474,7 @@ void PdfViewWebPlugin::EnableAccessibili
|
||||
|
||||
SkBitmap PdfViewWebPlugin::GetImageForOcr(int32_t page_index,
|
||||
int32_t page_object_index) {
|
||||
@@ -1138,7 +1210,7 @@
|
||||
}
|
||||
|
||||
void PdfViewWebPlugin::HandleAccessibilityAction(
|
||||
@@ -2973,19 +2968,6 @@ void PdfViewWebPlugin::PrepareAndSetAcce
|
||||
@@ -3001,19 +2993,6 @@ void PdfViewWebPlugin::PrepareAndSetAcce
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1160,25 +1232,26 @@
|
||||
|
||||
--- a/pdf/pdfium/pdfium_engine.cc
|
||||
+++ b/pdf/pdfium/pdfium_engine.cc
|
||||
@@ -2696,7 +2696,7 @@ void PDFiumEngine::HandleLongPress(const
|
||||
|
||||
SkBitmap PDFiumEngine::GetImageForOcr(int page_index, int image_index) {
|
||||
DCHECK(PageIndexInBounds(page_index));
|
||||
- return pages_[page_index]->GetImageForOcr(image_index);
|
||||
@@ -2674,8 +2674,7 @@ SkBitmap PDFiumEngine::GetImageForOcr(in
|
||||
// This function is not used after launch of PDF Searchify. Default OCR
|
||||
// expected resolution is used to avoid unnecessary update of the call chain.
|
||||
// TODO(crbug.com/360803943): Remove this function and call chain.
|
||||
- return pages_[page_index]->GetImageForOcr(image_index,
|
||||
- /*max_image_dimension=*/2048);
|
||||
+ return SkBitmap();
|
||||
}
|
||||
|
||||
bool PDFiumEngine::GetPrintScaling() {
|
||||
--- a/services/passage_embeddings/passage_embeddings_service.cc
|
||||
+++ b/services/passage_embeddings/passage_embeddings_service.cc
|
||||
@@ -22,7 +22,6 @@ PassageEmbeddingsService::PassageEmbeddi
|
||||
PassageEmbeddingsService::~PassageEmbeddingsService() = default;
|
||||
@@ -23,7 +23,6 @@ PassageEmbeddingsService::~PassageEmbedd
|
||||
|
||||
#if BUILDFLAG(BUILD_WITH_TFLITE_LIB)
|
||||
void PassageEmbeddingsService::OnEmbedderDisconnect() {
|
||||
- embedder_.reset();
|
||||
}
|
||||
#endif
|
||||
|
||||
void PassageEmbeddingsService::LoadModels(
|
||||
--- a/services/passage_embeddings/passage_embeddings_service.h
|
||||
+++ b/services/passage_embeddings/passage_embeddings_service.h
|
||||
@@ -11,7 +11,6 @@
|
||||
@@ -1209,19 +1282,9 @@
|
||||
- use_fake_screen_ai = is_msan || is_ubsan || is_ubsan_vptr || is_ubsan_security
|
||||
+ use_fake_screen_ai = false
|
||||
}
|
||||
--- a/third_party/devtools-frontend/src/BUILD.gn
|
||||
+++ b/third_party/devtools-frontend/src/BUILD.gn
|
||||
@@ -16,7 +16,6 @@ import("./third_party/blink/public/publi
|
||||
devtools_frontend_resources_deps = [
|
||||
":favicon",
|
||||
"front_end",
|
||||
- "test",
|
||||
]
|
||||
|
||||
group("devtools_all_files") {
|
||||
--- a/third_party/devtools-frontend/src/front_end/BUILD.gn
|
||||
+++ b/third_party/devtools-frontend/src/front_end/BUILD.gn
|
||||
@@ -213,7 +213,6 @@ group("unittests") {
|
||||
@@ -207,7 +207,6 @@ group("unittests") {
|
||||
"panels/timeline:unittests",
|
||||
"panels/timeline/components:unittests",
|
||||
"panels/timeline/components/insights:unittests",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -608,8 +608,6 @@ static_library("browser") {
|
||||
@@ -613,8 +613,6 @@ static_library("browser") {
|
||||
"infobars/simple_alert_infobar_creator.h",
|
||||
"interstitials/chrome_settings_page_helper.cc",
|
||||
"interstitials/chrome_settings_page_helper.h",
|
||||
@@ -11,7 +11,7 @@
|
||||
"invalidation/profile_invalidation_provider_factory.cc",
|
||||
"invalidation/profile_invalidation_provider_factory.h",
|
||||
"k_anonymity_service/k_anonymity_service_client.cc",
|
||||
@@ -2313,7 +2311,6 @@ static_library("browser") {
|
||||
@@ -2346,7 +2344,6 @@ static_library("browser") {
|
||||
"//components/resources",
|
||||
"//components/safe_browsing/content/browser",
|
||||
"//components/safe_browsing/content/browser:safe_browsing_service",
|
||||
@@ -19,7 +19,7 @@
|
||||
"//components/safe_browsing/content/browser/password_protection",
|
||||
"//components/safe_browsing/content/browser/web_ui",
|
||||
"//components/safe_browsing/content/common/proto:download_file_types_proto",
|
||||
@@ -3892,10 +3889,6 @@ static_library("browser") {
|
||||
@@ -3956,10 +3953,6 @@ static_library("browser") {
|
||||
"new_tab_page/modules/modules_switches.h",
|
||||
"new_tab_page/modules/new_tab_page_modules.cc",
|
||||
"new_tab_page/modules/new_tab_page_modules.h",
|
||||
@@ -30,7 +30,7 @@
|
||||
"new_tab_page/modules/v2/authentication/microsoft_auth_page_handler.cc",
|
||||
"new_tab_page/modules/v2/authentication/microsoft_auth_page_handler.h",
|
||||
"new_tab_page/modules/v2/calendar/calendar_fake_data_helper.cc",
|
||||
@@ -8468,7 +8461,6 @@ static_library("browser_generated_files"
|
||||
@@ -8621,7 +8614,6 @@ static_library("browser_generated_files"
|
||||
"//chrome/browser/new_tab_page/chrome_colors:generate_chrome_colors_info",
|
||||
"//chrome/browser/new_tab_page/chrome_colors:generate_colors_info",
|
||||
"//chrome/browser/new_tab_page/modules/file_suggestion:mojo_bindings",
|
||||
@@ -38,7 +38,7 @@
|
||||
"//chrome/browser/new_tab_page/modules/v2/authentication:mojo_bindings",
|
||||
"//chrome/browser/new_tab_page/modules/v2/calendar:mojo_bindings",
|
||||
"//chrome/browser/new_tab_page/modules/v2/most_relevant_tab_resumption:mojo_bindings",
|
||||
@@ -8954,8 +8946,6 @@ static_library("test_support") {
|
||||
@@ -9116,8 +9108,6 @@ static_library("test_support") {
|
||||
"//components/reporting/util:status",
|
||||
"//components/reporting/util:status_macros",
|
||||
"//components/reporting/util:task_runner_context",
|
||||
@@ -74,7 +74,7 @@
|
||||
// Launch a HaTS survey. Note this needs to come before the command is
|
||||
--- a/chrome/browser/download/chrome_download_manager_delegate.cc
|
||||
+++ b/chrome/browser/download/chrome_download_manager_delegate.cc
|
||||
@@ -169,7 +169,6 @@ using content::DownloadManager;
|
||||
@@ -171,7 +171,6 @@ using content::DownloadManager;
|
||||
using download::DownloadItem;
|
||||
using download::DownloadPathReservationTracker;
|
||||
using download::PathValidationResult;
|
||||
@@ -82,7 +82,7 @@
|
||||
using ConnectionType = net::NetworkChangeNotifier::ConnectionType;
|
||||
|
||||
#if BUILDFLAG(SAFE_BROWSING_DOWNLOAD_PROTECTION)
|
||||
@@ -1815,7 +1814,6 @@ void ChromeDownloadManagerDelegate::OnDo
|
||||
@@ -1873,7 +1872,6 @@ void ChromeDownloadManagerDelegate::OnDo
|
||||
DownloadItemModel model(item);
|
||||
model.DetermineAndSetShouldPreferOpeningInBrowser(
|
||||
target_info.target_path, target_info.is_filetype_handled_safely);
|
||||
@@ -90,7 +90,7 @@
|
||||
}
|
||||
if (ShouldBlockFile(item, target_info.danger_type)) {
|
||||
MaybeReportDangerousDownloadBlocked(
|
||||
@@ -1896,49 +1894,20 @@ bool ChromeDownloadManagerDelegate::IsOp
|
||||
@@ -1954,49 +1952,20 @@ bool ChromeDownloadManagerDelegate::IsOp
|
||||
bool ChromeDownloadManagerDelegate::ShouldBlockFile(
|
||||
download::DownloadItem* item,
|
||||
download::DownloadDangerType danger_type) const {
|
||||
@@ -146,7 +146,7 @@
|
||||
<< static_cast<int>(download_restriction);
|
||||
--- a/chrome/browser/download/download_target_determiner.cc
|
||||
+++ b/chrome/browser/download/download_target_determiner.cc
|
||||
@@ -1373,14 +1373,7 @@ DownloadFileType::DangerLevel DownloadTa
|
||||
@@ -1371,14 +1371,7 @@ DownloadFileType::DangerLevel DownloadTa
|
||||
|
||||
std::optional<base::Time>
|
||||
DownloadTargetDeterminer::GetLastDownloadBypassTimestamp() const {
|
||||
@@ -294,15 +294,15 @@
|
||||
analysis_config_->supported_tags[0].max_file_size;
|
||||
--- a/chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc
|
||||
+++ b/chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc
|
||||
@@ -40,8 +40,6 @@
|
||||
#include "chrome/browser/profiles/profile.h"
|
||||
@@ -41,8 +41,6 @@
|
||||
#include "chrome/browser/safe_browsing/chrome_enterprise_url_lookup_service_factory.h"
|
||||
#include "chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service.h"
|
||||
#include "chrome/browser/safe_browsing/cloud_content_scanning/deep_scanning_utils.h"
|
||||
-#include "chrome/browser/safe_browsing/cloud_content_scanning/file_analysis_request.h"
|
||||
-#include "chrome/browser/safe_browsing/download_protection/check_client_download_request.h"
|
||||
#include "chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager_factory.h"
|
||||
#include "chrome/browser/signin/identity_manager_factory.h"
|
||||
#include "chrome/grit/generated_resources.h"
|
||||
#include "components/enterprise/buildflags/buildflags.h"
|
||||
#include "components/enterprise/common/files_scan_data.h"
|
||||
--- a/chrome/browser/enterprise/connectors/analysis/content_analysis_downloads_delegate.cc
|
||||
+++ b/chrome/browser/enterprise/connectors/analysis/content_analysis_downloads_delegate.cc
|
||||
@@ -126,7 +126,7 @@ ContentAnalysisDownloadsDelegate::GetCus
|
||||
@@ -491,7 +491,7 @@
|
||||
signals.Set(device_signals::names::kBuiltInDnsClientEnabled,
|
||||
--- a/chrome/browser/enterprise/connectors/reporting/realtime_reporting_client.cc
|
||||
+++ b/chrome/browser/enterprise/connectors/reporting/realtime_reporting_client.cc
|
||||
@@ -188,20 +188,7 @@ void RealtimeReportingClient::SetProfile
|
||||
@@ -187,20 +187,7 @@ void RealtimeReportingClient::SetProfile
|
||||
}
|
||||
|
||||
std::string RealtimeReportingClient::GetProfileUserName() {
|
||||
@@ -513,6 +513,28 @@
|
||||
}
|
||||
|
||||
std::string RealtimeReportingClient::GetProfileIdentifier() {
|
||||
--- a/chrome/browser/enterprise/connectors/reporting/telomere_reporting_context.cc
|
||||
+++ b/chrome/browser/enterprise/connectors/reporting/telomere_reporting_context.cc
|
||||
@@ -176,19 +176,6 @@ TelomereReportingContext* TelomereReport
|
||||
}
|
||||
|
||||
RealtimeReportingClient* TelomereReportingContext::GetReportingClient() const {
|
||||
- for (auto& it : active_profiles_) {
|
||||
- Profile* profile = it.second;
|
||||
- RealtimeReportingClient* reporting_client =
|
||||
- RealtimeReportingClientFactory::GetForProfile(profile);
|
||||
- if (!reporting_client) {
|
||||
- continue;
|
||||
- }
|
||||
- std::optional<ReportingSettings> settings =
|
||||
- reporting_client->GetReportingSettings();
|
||||
- if (settings.has_value() && !settings->per_profile) {
|
||||
- return reporting_client;
|
||||
- }
|
||||
- }
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
--- a/chrome/browser/enterprise/data_controls/reporting_service.cc
|
||||
+++ b/chrome/browser/enterprise/data_controls/reporting_service.cc
|
||||
@@ -163,10 +163,6 @@ void ReportingService::ReportPaste(
|
||||
@@ -641,73 +663,47 @@
|
||||
std::string browser_version;
|
||||
safe_browsing::SafeBrowsingState safe_browsing_protection_level;
|
||||
bool site_isolation_enabled;
|
||||
--- a/chrome/browser/enterprise/signals/signals_utils.cc
|
||||
+++ b/chrome/browser/enterprise/signals/signals_utils.cc
|
||||
@@ -33,38 +33,11 @@ bool IsURLBlocked(const GURL& url, Polic
|
||||
|
||||
} // namespace
|
||||
|
||||
-safe_browsing::SafeBrowsingState GetSafeBrowsingProtectionLevel(
|
||||
- PrefService* profile_prefs) {
|
||||
- DCHECK(profile_prefs);
|
||||
- bool safe_browsing_enabled =
|
||||
- profile_prefs->GetBoolean(prefs::kSafeBrowsingEnabled);
|
||||
- bool safe_browsing_enhanced_enabled =
|
||||
- profile_prefs->GetBoolean(prefs::kSafeBrowsingEnhanced);
|
||||
-
|
||||
- if (safe_browsing_enabled) {
|
||||
- if (safe_browsing_enhanced_enabled)
|
||||
- return safe_browsing::SafeBrowsingState::ENHANCED_PROTECTION;
|
||||
- else
|
||||
- return safe_browsing::SafeBrowsingState::STANDARD_PROTECTION;
|
||||
- } else {
|
||||
- return safe_browsing::SafeBrowsingState::NO_SAFE_BROWSING;
|
||||
- }
|
||||
-}
|
||||
-
|
||||
bool GetBuiltInDnsClientEnabled(PrefService* local_state) {
|
||||
DCHECK(local_state);
|
||||
return local_state->GetBoolean(prefs::kBuiltInDnsClientEnabled);
|
||||
--- a/chrome/browser/enterprise/signals/profile_signals_collector.cc
|
||||
+++ b/chrome/browser/enterprise/signals/profile_signals_collector.cc
|
||||
@@ -45,13 +45,7 @@ ProfileSignalsCollector::ProfileSignalsC
|
||||
policy_blocklist_service_(
|
||||
PolicyBlocklistFactory::GetForBrowserContext(profile)),
|
||||
profile_prefs_(profile->GetPrefs()),
|
||||
- policy_manager_(profile->GetCloudPolicyManager()),
|
||||
- connectors_service_(
|
||||
- enterprise_connectors::ConnectorsServiceFactory::GetForBrowserContext(
|
||||
- profile)) {
|
||||
-#if BUILDFLAG(ENTERPRISE_CLOUD_CONTENT_ANALYSIS)
|
||||
- DCHECK(connectors_service_);
|
||||
-#endif // BUILDFLAG(ENTERPRISE_CLOUD_CONTENT_ANALYSIS)
|
||||
+ policy_manager_(profile->GetCloudPolicyManager()) {
|
||||
DCHECK(policy_blocklist_service_);
|
||||
}
|
||||
|
||||
-std::optional<safe_browsing::PasswordProtectionTrigger>
|
||||
-GetPasswordProtectionWarningTrigger(PrefService* profile_prefs) {
|
||||
- DCHECK(profile_prefs);
|
||||
- if (!profile_prefs->HasPrefPath(prefs::kPasswordProtectionWarningTrigger))
|
||||
- return std::nullopt;
|
||||
- return static_cast<safe_browsing::PasswordProtectionTrigger>(
|
||||
- profile_prefs->GetInteger(prefs::kPasswordProtectionWarningTrigger));
|
||||
-}
|
||||
-
|
||||
bool GetChromeRemoteDesktopAppBlocked(PolicyBlocklistService* service) {
|
||||
DCHECK(service);
|
||||
return IsURLBlocked(GURL("https://remotedesktop.google.com"), service) ||
|
||||
--- a/chrome/browser/enterprise/signals/signals_utils.h
|
||||
+++ b/chrome/browser/enterprise/signals/signals_utils.h
|
||||
@@ -17,12 +17,6 @@ namespace utils {
|
||||
|
||||
bool GetBuiltInDnsClientEnabled(PrefService* local_state);
|
||||
|
||||
-std::optional<safe_browsing::PasswordProtectionTrigger>
|
||||
-GetPasswordProtectionWarningTrigger(PrefService* profile_prefs);
|
||||
-
|
||||
-safe_browsing::SafeBrowsingState GetSafeBrowsingProtectionLevel(
|
||||
- PrefService* profile_prefs);
|
||||
-
|
||||
bool GetChromeRemoteDesktopAppBlocked(PolicyBlocklistService* service);
|
||||
|
||||
} // namespace utils
|
||||
@@ -68,12 +62,8 @@ void ProfileSignalsCollector::GetProfile
|
||||
signal_response.chrome_remote_desktop_app_blocked =
|
||||
device_signals::GetChromeRemoteDesktopAppBlocked(
|
||||
policy_blocklist_service_);
|
||||
- signal_response.password_protection_warning_trigger =
|
||||
- device_signals::GetPasswordProtectionWarningTrigger(profile_prefs_);
|
||||
signal_response.profile_enrollment_domain =
|
||||
device_signals::TryGetEnrollmentDomain(policy_manager_);
|
||||
- signal_response.safe_browsing_protection_level =
|
||||
- device_signals::GetSafeBrowsingProtectionLevel(profile_prefs_);
|
||||
signal_response.site_isolation_enabled =
|
||||
device_signals::GetSiteIsolationEnabled();
|
||||
#if BUILDFLAG(ENTERPRISE_CLOUD_CONTENT_ANALYSIS)
|
||||
--- a/chrome/browser/extensions/BUILD.gn
|
||||
+++ b/chrome/browser/extensions/BUILD.gn
|
||||
@@ -705,8 +705,6 @@ source_set("extensions") {
|
||||
"mv2_deprecation_impact_checker.h",
|
||||
"navigation_extension_enabler.cc",
|
||||
"navigation_extension_enabler.h",
|
||||
- "omaha_attributes_handler.cc",
|
||||
- "omaha_attributes_handler.h",
|
||||
"permissions/site_permissions_helper.cc",
|
||||
"permissions/site_permissions_helper.h",
|
||||
"permissions_based_management_policy_provider.cc",
|
||||
@@ -348,8 +348,6 @@ source_set("extensions") {
|
||||
"management/management_util.h",
|
||||
"manifest_check_level.h",
|
||||
"mv2_experiment_stage.h",
|
||||
- "omaha_attributes_handler.cc",
|
||||
- "omaha_attributes_handler.h",
|
||||
"pack_extension_job.cc",
|
||||
"pack_extension_job.h",
|
||||
"permissions/active_tab_permission_granter.cc",
|
||||
--- a/chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc
|
||||
+++ b/chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc
|
||||
@@ -99,16 +99,8 @@ api::enterprise_reporting_private::Conte
|
||||
@@ -753,7 +749,7 @@
|
||||
void Blocklist::GetMalwareIDs(const std::set<ExtensionId>& ids,
|
||||
--- a/chrome/browser/extensions/chrome_extension_system.cc
|
||||
+++ b/chrome/browser/extensions/chrome_extension_system.cc
|
||||
@@ -454,8 +454,6 @@ void ChromeExtensionSystem::InstallUpdat
|
||||
@@ -463,8 +463,6 @@ void ChromeExtensionSystem::InstallUpdat
|
||||
void ChromeExtensionSystem::PerformActionBasedOnOmahaAttributes(
|
||||
const std::string& extension_id,
|
||||
const base::Value::Dict& attributes) {
|
||||
@@ -761,7 +757,7 @@
|
||||
- attributes);
|
||||
}
|
||||
|
||||
bool ChromeExtensionSystem::FinishDelayedInstallationIfReady(
|
||||
} // namespace extensions
|
||||
--- a/chrome/browser/extensions/extension_allowlist_factory.cc
|
||||
+++ b/chrome/browser/extensions/extension_allowlist_factory.cc
|
||||
@@ -45,7 +45,6 @@ ExtensionAllowlistFactory::ExtensionAllo
|
||||
@@ -774,28 +770,39 @@
|
||||
ExtensionAllowlistFactory::~ExtensionAllowlistFactory() = default;
|
||||
--- a/chrome/browser/extensions/extension_service.cc
|
||||
+++ b/chrome/browser/extensions/extension_service.cc
|
||||
@@ -57,7 +57,6 @@
|
||||
@@ -54,7 +54,6 @@
|
||||
#include "chrome/browser/extensions/forced_extensions/install_stage_tracker.h"
|
||||
#include "chrome/browser/extensions/install_verifier.h"
|
||||
#include "chrome/browser/extensions/installed_loader.h"
|
||||
#include "chrome/browser/extensions/manifest_v2_experiment_manager.h"
|
||||
#include "chrome/browser/extensions/mv2_experiment_stage.h"
|
||||
-#include "chrome/browser/extensions/omaha_attributes_handler.h"
|
||||
#include "chrome/browser/extensions/pending_extension_manager.h"
|
||||
#include "chrome/browser/extensions/permissions/permissions_updater.h"
|
||||
#include "chrome/browser/extensions/profile_util.h"
|
||||
@@ -218,10 +217,6 @@ ExtensionService::ExtensionService(
|
||||
this,
|
||||
component_loader_.get())),
|
||||
extension_registrar_(ExtensionRegistrar::Get(profile)),
|
||||
#include "chrome/browser/extensions/unpacked_installer.h"
|
||||
@@ -215,9 +214,6 @@ ExtensionService::ExtensionService(
|
||||
extension_telemetry_service_verdict_handler_(extension_prefs,
|
||||
registry_,
|
||||
extension_registrar_),
|
||||
- omaha_attributes_handler_(extension_prefs,
|
||||
- ExtensionRegistry::Get(profile),
|
||||
- this,
|
||||
- registry_,
|
||||
- extension_registrar_),
|
||||
force_installed_tracker_(registry_, profile_),
|
||||
force_installed_metrics_(registry_, profile_, &force_installed_tracker_),
|
||||
corrupted_extension_reinstaller_(
|
||||
@@ -451,17 +446,6 @@ bool ExtensionService::UninstallExtensio
|
||||
transient_extension_id, reason, error, std::move(done_callback));
|
||||
@@ -404,11 +400,6 @@ void ExtensionService::LoadExtensionsFro
|
||||
<< "--load-extension is not allowed in Google Chrome, ignoring.";
|
||||
return;
|
||||
}
|
||||
- if (safe_browsing::IsEnhancedProtectionEnabled(*profile_->GetPrefs())) {
|
||||
- VLOG(1) << "--load-extension is not allowed for users opted into "
|
||||
- << "Enhanced Safe Browsing, ignoring.";
|
||||
- return;
|
||||
- }
|
||||
if (ShouldBlockCommandLineExtension(*profile_)) {
|
||||
// TODO(crbug.com/401529219): Deprecate this restriction once
|
||||
// --load-extension removal on Chrome builds is fully launched.
|
||||
@@ -456,17 +447,6 @@ void ExtensionService::LoadSigninProfile
|
||||
}
|
||||
#endif
|
||||
|
||||
-void ExtensionService::PerformActionBasedOnOmahaAttributes(
|
||||
- const std::string& extension_id,
|
||||
@@ -813,7 +820,7 @@
|
||||
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
||||
--- a/chrome/browser/extensions/extension_service.h
|
||||
+++ b/chrome/browser/extensions/extension_service.h
|
||||
@@ -28,7 +28,6 @@
|
||||
@@ -27,7 +27,6 @@
|
||||
#include "chrome/browser/extensions/extension_telemetry_service_verdict_handler.h"
|
||||
#include "chrome/browser/extensions/forced_extensions/force_installed_metrics.h"
|
||||
#include "chrome/browser/extensions/forced_extensions/force_installed_tracker.h"
|
||||
@@ -821,9 +828,9 @@
|
||||
#include "chrome/browser/extensions/safe_browsing_verdict_handler.h"
|
||||
#include "chrome/browser/profiles/profile_manager_observer.h"
|
||||
#include "chrome/browser/upgrade_detector/upgrade_observer.h"
|
||||
@@ -252,10 +251,6 @@ class ExtensionService : public Extensio
|
||||
void RemoveDisableReasonAndMaybeEnable(const std::string& extension_id,
|
||||
disable_reason::DisableReason reason);
|
||||
@@ -166,10 +165,6 @@ class ExtensionService : public Extensio
|
||||
// KeyedService two-phase shutdown.
|
||||
void Shutdown();
|
||||
|
||||
- // Performs action based on Omaha attributes for the extension.
|
||||
- void PerformActionBasedOnOmahaAttributes(const std::string& extension_id,
|
||||
@@ -832,9 +839,9 @@
|
||||
// Performs action based on verdicts received from the Extension Telemetry
|
||||
// server. Currently, these verdicts are limited to off-store extensions.
|
||||
void PerformActionBasedOnExtensionTelemetryServiceVerdicts(
|
||||
@@ -553,8 +548,6 @@ class ExtensionService : public Extensio
|
||||
// Helper to register and unregister extensions.
|
||||
raw_ptr<ExtensionRegistrar> extension_registrar_ = nullptr;
|
||||
@@ -374,8 +369,6 @@ class ExtensionService : public Extensio
|
||||
ExtensionTelemetryServiceVerdictHandler
|
||||
extension_telemetry_service_verdict_handler_;
|
||||
|
||||
- // Needs `extension_registrar_` during construction.
|
||||
- OmahaAttributesHandler omaha_attributes_handler_;
|
||||
@@ -847,54 +854,54 @@
|
||||
blocklist_prefs::SetExtensionTelemetryServiceBlocklistState(
|
||||
extension_id, BitMapBlocklistState::NOT_BLOCKLISTED,
|
||||
extension_prefs_);
|
||||
- extension_service_->OnBlocklistStateRemoved(extension_id);
|
||||
- registrar_->OnBlocklistStateRemoved(extension_id);
|
||||
ReportOffstoreExtensionReenabled(current_state);
|
||||
break;
|
||||
case BLOCKLISTED_MALWARE:
|
||||
blocklist_prefs::SetExtensionTelemetryServiceBlocklistState(
|
||||
extension_id, BitMapBlocklistState::BLOCKLISTED_MALWARE,
|
||||
extension_prefs_);
|
||||
- extension_service_->OnBlocklistStateAdded(extension_id);
|
||||
- registrar_->OnBlocklistStateAdded(extension_id);
|
||||
ReportOffstoreExtensionDisabled(
|
||||
ExtensionTelemetryDisableReason::kMalware);
|
||||
break;
|
||||
--- a/chrome/browser/extensions/safe_browsing_verdict_handler.cc
|
||||
+++ b/chrome/browser/extensions/safe_browsing_verdict_handler.cc
|
||||
@@ -119,7 +119,6 @@ void SafeBrowsingVerdictHandler::UpdateB
|
||||
@@ -120,7 +120,6 @@ void SafeBrowsingVerdictHandler::UpdateB
|
||||
blocklist_.Remove(id);
|
||||
blocklist_prefs::SetSafeBrowsingExtensionBlocklistState(
|
||||
id, BitMapBlocklistState::NOT_BLOCKLISTED, extension_prefs_);
|
||||
- extension_service_->OnBlocklistStateRemoved(id);
|
||||
- registrar_->OnBlocklistStateRemoved(id);
|
||||
UMA_HISTOGRAM_ENUMERATION("ExtensionBlacklist.UnblacklistInstalled",
|
||||
extension->location());
|
||||
}
|
||||
@@ -133,7 +132,6 @@ void SafeBrowsingVerdictHandler::UpdateB
|
||||
@@ -134,7 +133,6 @@ void SafeBrowsingVerdictHandler::UpdateB
|
||||
blocklist_.Insert(extension);
|
||||
blocklist_prefs::SetSafeBrowsingExtensionBlocklistState(
|
||||
id, BitMapBlocklistState::BLOCKLISTED_MALWARE, extension_prefs_);
|
||||
- extension_service_->OnBlocklistStateAdded(id);
|
||||
- registrar_->OnBlocklistStateAdded(id);
|
||||
UMA_HISTOGRAM_ENUMERATION("ExtensionBlacklist.BlacklistInstalled",
|
||||
extension->location());
|
||||
}
|
||||
@@ -157,7 +155,6 @@ void SafeBrowsingVerdictHandler::UpdateG
|
||||
@@ -158,7 +156,6 @@ void SafeBrowsingVerdictHandler::UpdateG
|
||||
blocklist_prefs::SetSafeBrowsingExtensionBlocklistState(
|
||||
extension->id(), BitMapBlocklistState::NOT_BLOCKLISTED,
|
||||
extension_prefs_);
|
||||
- extension_service_->OnGreylistStateRemoved(extension->id());
|
||||
- registrar_->OnGreylistStateRemoved(extension->id());
|
||||
UMA_HISTOGRAM_ENUMERATION("Extensions.Greylist.Enabled",
|
||||
extension->location());
|
||||
}
|
||||
@@ -177,7 +174,6 @@ void SafeBrowsingVerdictHandler::UpdateG
|
||||
@@ -178,7 +175,6 @@ void SafeBrowsingVerdictHandler::UpdateG
|
||||
blocklist_prefs::BlocklistStateToBitMapBlocklistState(greylist_state);
|
||||
blocklist_prefs::SetSafeBrowsingExtensionBlocklistState(
|
||||
extension->id(), bitmap_greylist_state, extension_prefs_);
|
||||
- extension_service_->OnGreylistStateAdded(id, bitmap_greylist_state);
|
||||
- registrar_->OnGreylistStateAdded(id, bitmap_greylist_state);
|
||||
UMA_HISTOGRAM_ENUMERATION("Extensions.Greylist.Disabled",
|
||||
extension->location());
|
||||
}
|
||||
--- a/chrome/browser/notifications/persistent_notification_handler.cc
|
||||
+++ b/chrome/browser/notifications/persistent_notification_handler.cc
|
||||
@@ -212,16 +212,6 @@ void PersistentNotificationHandler::Disa
|
||||
@@ -307,16 +307,6 @@ void PersistentNotificationHandler::Disa
|
||||
NotificationPermissionContext::UpdatePermission(profile, origin,
|
||||
CONTENT_SETTING_BLOCK);
|
||||
#endif
|
||||
@@ -911,6 +918,90 @@
|
||||
}
|
||||
|
||||
void PersistentNotificationHandler::OpenSettings(Profile* profile,
|
||||
@@ -355,42 +345,6 @@ void PersistentNotificationHandler::OnMa
|
||||
Profile* profile,
|
||||
bool did_show_warning,
|
||||
bool did_user_unsubscribe) {
|
||||
- CHECK(profile);
|
||||
-
|
||||
- // In case the data volume becomes excessive, logging should happen at a
|
||||
- // sampled rate. This rate is defined by the
|
||||
- // `kReportNotificationContentDetectionDataRate` feature parameter.
|
||||
- if (base::RandDouble() * 100 >
|
||||
- safe_browsing::kReportNotificationContentDetectionDataRate.Get()) {
|
||||
- return;
|
||||
- }
|
||||
-
|
||||
- scoped_refptr<content::PlatformNotificationContext> notification_context =
|
||||
- profile->GetStoragePartitionForUrl(url)->GetPlatformNotificationContext();
|
||||
- if (!notification_context ||
|
||||
- !OptimizationGuideKeyedServiceFactory::GetForProfile(profile)) {
|
||||
- return;
|
||||
- }
|
||||
-
|
||||
- blink::mojom::EngagementLevel engagement_level =
|
||||
- blink::mojom::EngagementLevel::NONE;
|
||||
- if (site_engagement::SiteEngagementService::Get(profile)) {
|
||||
- engagement_level = site_engagement::SiteEngagementService::Get(profile)
|
||||
- ->GetEngagementLevel(url);
|
||||
- }
|
||||
-
|
||||
- // Read notification data from database and upload as log to model quality
|
||||
- // service.
|
||||
- notification_context->ReadNotificationDataAndRecordInteraction(
|
||||
- notification_id, url,
|
||||
- content::PlatformNotificationContext::Interaction::NONE,
|
||||
- base::BindOnce(
|
||||
- &safe_browsing::SendNotificationContentDetectionDataToMQLSServer,
|
||||
- OptimizationGuideKeyedServiceFactory::GetForProfile(profile)
|
||||
- ->GetModelQualityLogsUploaderService()
|
||||
- ->GetWeakPtr(),
|
||||
- safe_browsing::NotificationContentDetectionMQLSMetadata(
|
||||
- did_show_warning, did_user_unsubscribe, engagement_level)));
|
||||
}
|
||||
|
||||
#if BUILDFLAG(ENABLE_BACKGROUND_MODE)
|
||||
--- a/chrome/browser/notifications/platform_notification_service_impl.cc
|
||||
+++ b/chrome/browser/notifications/platform_notification_service_impl.cc
|
||||
@@ -775,38 +775,8 @@ void PlatformNotificationServiceImpl::Up
|
||||
std::unique_ptr<PersistentNotificationMetadata> persistent_metadata,
|
||||
bool should_show_warning,
|
||||
std::optional<std::string> serialized_content_detection_metadata) {
|
||||
- if (base::FeatureList::IsEnabled(
|
||||
- safe_browsing::kReportNotificationContentDetectionData)) {
|
||||
- content::PlatformNotificationContext::WriteResourcesResultCallback
|
||||
- callback = base::BindOnce(
|
||||
- &PlatformNotificationServiceImpl::DidUpdatePersistentMetadata,
|
||||
- weak_ptr_factory_.GetWeakPtr(), std::move(persistent_metadata),
|
||||
- notification, should_show_warning);
|
||||
-#if BUILDFLAG(IS_ANDROID)
|
||||
- if (should_show_warning) {
|
||||
- // Keep track of suspicious notification ids.
|
||||
- safe_browsing::UpdateSuspiciousNotificationIds(
|
||||
- HostContentSettingsMapFactory::GetForProfile(profile_),
|
||||
- notification.origin_url(), notification.id());
|
||||
- }
|
||||
-#endif
|
||||
- if (serialized_content_detection_metadata.has_value()) {
|
||||
- scoped_refptr<content::PlatformNotificationContext> notification_context =
|
||||
- profile_->GetStoragePartitionForUrl(notification.origin_url())
|
||||
- ->GetPlatformNotificationContext();
|
||||
- if (notification_context) {
|
||||
- notification_context->WriteNotificationMetadata(
|
||||
- notification.id(), notification.origin_url(),
|
||||
- safe_browsing::kMetadataDictionaryKey,
|
||||
- serialized_content_detection_metadata.value(), std::move(callback));
|
||||
- return;
|
||||
- }
|
||||
- }
|
||||
- std::move(callback).Run(/*success=*/false);
|
||||
- } else {
|
||||
DoUpdatePersistentMetadataThenDisplay(std::move(persistent_metadata),
|
||||
notification, should_show_warning);
|
||||
- }
|
||||
}
|
||||
|
||||
void PlatformNotificationServiceImpl::LogPersistentNotificationShownMetrics(
|
||||
--- a/chrome/browser/permissions/contextual_notification_permission_ui_selector.cc
|
||||
+++ b/chrome/browser/permissions/contextual_notification_permission_ui_selector.cc
|
||||
@@ -16,7 +16,6 @@
|
||||
@@ -998,7 +1089,7 @@
|
||||
|
||||
--- a/chrome/browser/permissions/prediction_based_permission_ui_selector.cc
|
||||
+++ b/chrome/browser/permissions/prediction_based_permission_ui_selector.cc
|
||||
@@ -462,55 +462,5 @@ bool PredictionBasedPermissionUiSelector
|
||||
@@ -597,68 +597,6 @@ bool PredictionBasedPermissionUiSelector
|
||||
|
||||
PredictionSource PredictionBasedPermissionUiSelector::GetPredictionTypeToUse(
|
||||
permissions::RequestType request_type) {
|
||||
@@ -1013,12 +1104,12 @@
|
||||
-
|
||||
- if (request_type == permissions::RequestType::kNotifications &&
|
||||
- !is_notification_cpss_enabled) {
|
||||
- return PredictionSource::USE_NONE;
|
||||
- return PredictionSource::kNoCpssModel;
|
||||
- }
|
||||
-
|
||||
- if (request_type == permissions::RequestType::kGeolocation &&
|
||||
- !is_geolocation_cpss_enabled) {
|
||||
- return PredictionSource::USE_NONE;
|
||||
- return PredictionSource::kNoCpssModel;
|
||||
- }
|
||||
-
|
||||
- bool use_server_side = false;
|
||||
@@ -1032,10 +1123,22 @@
|
||||
-#endif // BUILDFLAG(IS_ANDROID)
|
||||
- }
|
||||
- if (use_server_side) {
|
||||
- if (base::FeatureList::IsEnabled(permissions::features::kPermissionsAIv1)) {
|
||||
- return PredictionSource::USE_ONDEVICE_AI_AND_SERVER_SIDE;
|
||||
- // Aiv3 takes priority over Aiv1 if both are enabled.
|
||||
-#if BUILDFLAG(BUILD_WITH_TFLITE_LIB)
|
||||
- if (request_type == permissions::RequestType::kNotifications &&
|
||||
- base::FeatureList::IsEnabled(permissions::features::kPermissionsAIv3)) {
|
||||
- return PredictionSource::kOnDeviceAiv3AndServerSideModel;
|
||||
- }
|
||||
- return PredictionSource::USE_SERVER_SIDE;
|
||||
- if (request_type == permissions::RequestType::kGeolocation &&
|
||||
- base::FeatureList::IsEnabled(
|
||||
- permissions::features::kPermissionsAIv3Geolocation)) {
|
||||
- return PredictionSource::kOnDeviceAiv3AndServerSideModel;
|
||||
- }
|
||||
-#endif // BUILDFLAG(BUILD_WITH_TFLITE_LIB)
|
||||
- if (base::FeatureList::IsEnabled(permissions::features::kPermissionsAIv1)) {
|
||||
- return PredictionSource::kOnDeviceAiv1AndServerSideModel;
|
||||
- }
|
||||
- return PredictionSource::kServerSideCpssV3Model;
|
||||
- }
|
||||
-
|
||||
-#if BUILDFLAG(BUILD_WITH_TFLITE_LIB)
|
||||
@@ -1048,15 +1151,16 @@
|
||||
- permissions::features::kPermissionOnDeviceGeolocationPredictions);
|
||||
- }
|
||||
- if (use_ondevice_tflite) {
|
||||
- return PredictionSource::USE_ONDEVICE_TFLITE;
|
||||
- return PredictionSource::kOnDeviceCpssV1Model;
|
||||
- }
|
||||
-#endif // BUILDFLAG(BUILD_WITH_TFLITE_LIB)
|
||||
-
|
||||
return PredictionSource::USE_NONE;
|
||||
return PredictionSource::kNoCpssModel;
|
||||
}
|
||||
|
||||
--- a/chrome/browser/policy/configuration_policy_handler_list_factory.cc
|
||||
+++ b/chrome/browser/policy/configuration_policy_handler_list_factory.cc
|
||||
@@ -2489,8 +2489,6 @@ std::unique_ptr<ConfigurationPolicyHandl
|
||||
@@ -2494,8 +2494,6 @@ std::unique_ptr<ConfigurationPolicyHandl
|
||||
handlers->AddHandler(
|
||||
std::make_unique<bookmarks::ManagedBookmarksPolicyHandler>(
|
||||
chrome_schema));
|
||||
@@ -1067,7 +1171,7 @@
|
||||
std::make_unique<URLBlocklistPolicyHandler>(key::kURLBlocklist));
|
||||
--- a/chrome/browser/prefs/browser_prefs.cc
|
||||
+++ b/chrome/browser/prefs/browser_prefs.cc
|
||||
@@ -275,7 +275,6 @@
|
||||
@@ -284,7 +284,6 @@
|
||||
#include "chrome/browser/nearby_sharing/common/nearby_share_prefs.h"
|
||||
#include "chrome/browser/new_tab_page/modules/file_suggestion/drive_service.h"
|
||||
#include "chrome/browser/new_tab_page/modules/file_suggestion/microsoft_files_page_handler.h"
|
||||
@@ -1075,19 +1179,21 @@
|
||||
#include "chrome/browser/new_tab_page/modules/v2/authentication/microsoft_auth_page_handler.h"
|
||||
#include "chrome/browser/new_tab_page/modules/v2/calendar/google_calendar_page_handler.h"
|
||||
#include "chrome/browser/new_tab_page/modules/v2/calendar/outlook_calendar_page_handler.h"
|
||||
@@ -2029,7 +2028,6 @@ void RegisterProfilePrefs(user_prefs::Pr
|
||||
MicrosoftFilesPageHandler::RegisterProfilePrefs(registry);
|
||||
@@ -2089,7 +2088,6 @@ void RegisterProfilePrefs(user_prefs::Pr
|
||||
NewTabFooterUI::RegisterProfilePrefs(registry);
|
||||
NewTabPageHandler::RegisterProfilePrefs(registry);
|
||||
NewTabPageUI::RegisterProfilePrefs(registry);
|
||||
- ntp::SafeBrowsingHandler::RegisterProfilePrefs(registry);
|
||||
ntp_tiles::CustomLinksManagerImpl::RegisterProfilePrefs(registry);
|
||||
OutlookCalendarPageHandler::RegisterProfilePrefs(registry);
|
||||
PinnedTabCodec::RegisterProfilePrefs(registry);
|
||||
promos_utils::RegisterProfilePrefs(registry);
|
||||
--- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
|
||||
+++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
|
||||
@@ -839,7 +839,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
enterprise_connectors::ExtensionTelemetryEventRouterFactory::GetInstance();
|
||||
@@ -867,9 +867,7 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
enterprise_connectors::TelomereEventRouterFactory::GetInstance();
|
||||
}
|
||||
#endif
|
||||
- enterprise_connectors::BrowserCrashEventRouterFactory::GetInstance();
|
||||
enterprise_connectors::ConnectorsServiceFactory::GetInstance();
|
||||
- enterprise_connectors::ReportingEventRouterFactory::GetInstance();
|
||||
#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || \
|
||||
@@ -1095,7 +1201,7 @@
|
||||
enterprise_connectors::DeviceTrustConnectorServiceFactory::GetInstance();
|
||||
--- a/chrome/browser/safe_browsing/BUILD.gn
|
||||
+++ b/chrome/browser/safe_browsing/BUILD.gn
|
||||
@@ -93,13 +93,6 @@ static_library("safe_browsing") {
|
||||
@@ -94,13 +94,6 @@ static_library("safe_browsing") {
|
||||
allow_circular_includes_from += [ "//chrome/browser/ash/file_manager" ]
|
||||
}
|
||||
|
||||
@@ -1260,7 +1366,7 @@
|
||||
// certificate. So, when users click proceed on an interstitial, move the tab
|
||||
--- a/chrome/browser/ui/BUILD.gn
|
||||
+++ b/chrome/browser/ui/BUILD.gn
|
||||
@@ -4558,8 +4558,6 @@ static_library("ui") {
|
||||
@@ -4535,8 +4535,6 @@ static_library("ui") {
|
||||
"views/safe_browsing/prompt_for_scanning_modal_dialog.h",
|
||||
"views/safe_browsing/tailored_security_desktop_dialog_manager.cc",
|
||||
"views/safe_browsing/tailored_security_desktop_dialog_manager.h",
|
||||
@@ -1269,18 +1375,18 @@
|
||||
"views/select_audio_output/select_audio_output_dialog.cc",
|
||||
"views/select_audio_output/select_audio_output_dialog.h",
|
||||
"views/select_audio_output/select_audio_output_views.cc",
|
||||
--- a/chrome/browser/ui/safety_hub/unused_site_permissions_service.cc
|
||||
+++ b/chrome/browser/ui/safety_hub/unused_site_permissions_service.cc
|
||||
@@ -52,7 +52,6 @@
|
||||
--- a/chrome/browser/ui/safety_hub/revoked_permissions_service.cc
|
||||
+++ b/chrome/browser/ui/safety_hub/revoked_permissions_service.cc
|
||||
@@ -53,7 +53,6 @@
|
||||
#include "components/prefs/pref_change_registrar.h"
|
||||
#include "components/prefs/pref_service.h"
|
||||
#include "components/safe_browsing/core/common/features.h"
|
||||
-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
|
||||
#include "content/public/browser/browser_context.h"
|
||||
#include "content/public/browser/browser_thread.h"
|
||||
#include "ui/base/l10n/l10n_util.h"
|
||||
@@ -371,34 +370,6 @@ UnusedSitePermissionsService::UnusedSite
|
||||
base::Unretained(this)));
|
||||
#include "revoked_permissions_service.h"
|
||||
@@ -409,34 +408,6 @@ RevokedPermissionsService::RevokedPermis
|
||||
base::Unretained(this)));
|
||||
#endif // BUILDFLAG(IS_ANDROID)
|
||||
|
||||
- if (base::FeatureList::IsEnabled(
|
||||
@@ -1296,28 +1402,28 @@
|
||||
-#endif
|
||||
- hcsm());
|
||||
-
|
||||
- if (base::FeatureList::IsEnabled(
|
||||
- safe_browsing::kSafetyHubDisruptiveNotificationRevocation)) {
|
||||
- disruptive_notification_manager_ =
|
||||
- std::make_unique<DisruptiveNotificationPermissionsManager>(
|
||||
- hcsm(),
|
||||
- site_engagement::SiteEngagementServiceFactory::GetForProfile(
|
||||
- browser_context_));
|
||||
- }
|
||||
-
|
||||
- pref_change_registrar_->Add(
|
||||
- prefs::kSafeBrowsingEnabled,
|
||||
- base::BindRepeating(&UnusedSitePermissionsService::
|
||||
- base::BindRepeating(&RevokedPermissionsService::
|
||||
- OnPermissionsAutorevocationControlChanged,
|
||||
- base::Unretained(this)));
|
||||
- }
|
||||
-
|
||||
- if (base::FeatureList::IsEnabled(
|
||||
- features::kSafetyHubDisruptiveNotificationRevocation)) {
|
||||
- disruptive_notification_manager_ =
|
||||
- std::make_unique<DisruptiveNotificationPermissionsManager>(
|
||||
- hcsm(),
|
||||
- site_engagement::SiteEngagementServiceFactory::GetForProfile(
|
||||
- browser_context_));
|
||||
- }
|
||||
|
||||
bool migration_completed = pref_change_registrar_->prefs()->GetBoolean(
|
||||
safety_hub_prefs::kUnusedSitePermissionsRevocationMigrationCompleted);
|
||||
@@ -1056,9 +1027,7 @@ bool UnusedSitePermissionsService::IsUnu
|
||||
@@ -1204,9 +1175,7 @@ bool RevokedPermissionsService::IsUnused
|
||||
}
|
||||
|
||||
bool UnusedSitePermissionsService::
|
||||
IsAbusiveNotificationAutoRevocationEnabled() {
|
||||
bool RevokedPermissionsService::IsAbusiveNotificationAutoRevocationEnabled() {
|
||||
- return base::FeatureList::IsEnabled(
|
||||
- safe_browsing::kSafetyHubAbusiveNotificationRevocation) &&
|
||||
- safe_browsing::IsSafeBrowsingEnabled(*pref_change_registrar_->prefs());
|
||||
@@ -1327,7 +1433,7 @@
|
||||
const std::set<ContentSettingsType>
|
||||
--- a/chrome/browser/ui/tab_contents/BUILD.gn
|
||||
+++ b/chrome/browser/ui/tab_contents/BUILD.gn
|
||||
@@ -50,7 +50,6 @@ source_set("impl") {
|
||||
@@ -51,7 +51,6 @@ source_set("impl") {
|
||||
if (is_win || is_mac || is_linux || is_chromeos) {
|
||||
sources += [
|
||||
"chrome_web_contents_menu_helper.cc",
|
||||
@@ -1337,15 +1443,15 @@
|
||||
|
||||
--- a/chrome/browser/ui/toasts/toast_service.cc
|
||||
+++ b/chrome/browser/ui/toasts/toast_service.cc
|
||||
@@ -33,7 +33,6 @@
|
||||
@@ -34,7 +34,6 @@
|
||||
#include "components/plus_addresses/features.h"
|
||||
#include "components/plus_addresses/grit/plus_addresses_strings.h"
|
||||
#include "components/safe_browsing/core/common/features.h"
|
||||
-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
|
||||
#include "components/strings/grit/components_strings.h"
|
||||
#include "components/tab_collections/public/tab_interface.h"
|
||||
#include "components/tabs/public/tab_interface.h"
|
||||
#include "components/vector_icons/vector_icons.h"
|
||||
@@ -140,57 +139,6 @@ void ToastService::RegisterToasts(
|
||||
@@ -146,57 +145,6 @@ void ToastService::RegisterToasts(
|
||||
.Build());
|
||||
}
|
||||
|
||||
@@ -1542,7 +1648,7 @@
|
||||
#include "components/safe_browsing/core/browser/db/database_manager.h"
|
||||
#include "content/public/browser/web_contents.h"
|
||||
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
|
||||
@@ -208,11 +210,13 @@ void ShareServiceImpl::Share(const std::
|
||||
@@ -210,11 +212,13 @@ void ShareServiceImpl::Share(const std::
|
||||
|
||||
// Check if at least one file is marked by the download protection service
|
||||
// to send a ping to check this file type.
|
||||
@@ -1556,7 +1662,7 @@
|
||||
|
||||
// In the case where the original blob handle was to a native file (of
|
||||
// unknown size), the serialized data does not contain an accurate file
|
||||
@@ -222,6 +226,7 @@ void ShareServiceImpl::Share(const std::
|
||||
@@ -224,6 +228,7 @@ void ShareServiceImpl::Share(const std::
|
||||
}
|
||||
|
||||
DCHECK(!safe_browsing_request_);
|
||||
@@ -1564,7 +1670,7 @@
|
||||
if (should_check_url && g_browser_process->safe_browsing_service()) {
|
||||
safe_browsing_request_.emplace(
|
||||
g_browser_process->safe_browsing_service()->database_manager(),
|
||||
@@ -231,6 +236,7 @@ void ShareServiceImpl::Share(const std::
|
||||
@@ -233,6 +238,7 @@ void ShareServiceImpl::Share(const std::
|
||||
std::move(files), std::move(callback)));
|
||||
return;
|
||||
}
|
||||
@@ -1574,7 +1680,7 @@
|
||||
std::move(callback),
|
||||
--- a/chrome/common/webui_url_constants.cc
|
||||
+++ b/chrome/common/webui_url_constants.cc
|
||||
@@ -122,7 +122,6 @@ base::span<const base::cstring_view> Chr
|
||||
@@ -123,7 +123,6 @@ base::span<const base::cstring_view> Chr
|
||||
kChromeUISuggestInternalsHost,
|
||||
#endif
|
||||
kChromeUINTPTilesInternalsHost,
|
||||
@@ -1584,7 +1690,7 @@
|
||||
kChromeUITabSearchHost,
|
||||
--- a/chrome/test/BUILD.gn
|
||||
+++ b/chrome/test/BUILD.gn
|
||||
@@ -2449,7 +2449,6 @@ if (!is_android) {
|
||||
@@ -2558,7 +2558,6 @@ if (!is_android) {
|
||||
"//components/resources",
|
||||
"//components/safe_browsing:buildflags",
|
||||
"//components/safe_browsing/content/browser",
|
||||
@@ -1592,7 +1698,7 @@
|
||||
"//components/safe_browsing/content/browser:safe_browsing_service",
|
||||
"//components/safe_browsing/content/browser/password_protection",
|
||||
"//components/safe_browsing/content/browser/password_protection:test_support",
|
||||
@@ -6771,7 +6770,6 @@ test("unit_tests") {
|
||||
@@ -6921,7 +6920,6 @@ test("unit_tests") {
|
||||
"//components/resources",
|
||||
"//components/safe_browsing:buildflags",
|
||||
"//components/safe_browsing/content/browser",
|
||||
@@ -1600,6 +1706,166 @@
|
||||
"//components/safe_browsing/content/browser/notification_content_detection",
|
||||
"//components/safe_browsing/content/browser/notification_content_detection:test_utils",
|
||||
"//components/safe_browsing/content/browser/password_protection",
|
||||
--- a/components/device_signals/core/browser/browser_utils.cc
|
||||
+++ b/components/device_signals/core/browser/browser_utils.cc
|
||||
@@ -29,35 +29,6 @@ bool IsURLBlocked(const GURL& url, Polic
|
||||
|
||||
namespace device_signals {
|
||||
|
||||
-safe_browsing::SafeBrowsingState GetSafeBrowsingProtectionLevel(
|
||||
- PrefService* profile_prefs) {
|
||||
- DCHECK(profile_prefs);
|
||||
- bool safe_browsing_enabled =
|
||||
- profile_prefs->GetBoolean(prefs::kSafeBrowsingEnabled);
|
||||
- bool safe_browsing_enhanced_enabled =
|
||||
- profile_prefs->GetBoolean(prefs::kSafeBrowsingEnhanced);
|
||||
-
|
||||
- if (safe_browsing_enabled) {
|
||||
- if (safe_browsing_enhanced_enabled) {
|
||||
- return safe_browsing::SafeBrowsingState::ENHANCED_PROTECTION;
|
||||
- } else {
|
||||
- return safe_browsing::SafeBrowsingState::STANDARD_PROTECTION;
|
||||
- }
|
||||
- } else {
|
||||
- return safe_browsing::SafeBrowsingState::NO_SAFE_BROWSING;
|
||||
- }
|
||||
-}
|
||||
-
|
||||
-std::optional<safe_browsing::PasswordProtectionTrigger>
|
||||
-GetPasswordProtectionWarningTrigger(PrefService* profile_prefs) {
|
||||
- DCHECK(profile_prefs);
|
||||
- if (!profile_prefs->HasPrefPath(prefs::kPasswordProtectionWarningTrigger)) {
|
||||
- return std::nullopt;
|
||||
- }
|
||||
- return static_cast<safe_browsing::PasswordProtectionTrigger>(
|
||||
- profile_prefs->GetInteger(prefs::kPasswordProtectionWarningTrigger));
|
||||
-}
|
||||
-
|
||||
bool GetChromeRemoteDesktopAppBlocked(PolicyBlocklistService* service) {
|
||||
DCHECK(service);
|
||||
return IsURLBlocked(GURL("https://remotedesktop.google.com"), service) ||
|
||||
--- a/components/device_signals/core/browser/browser_utils.h
|
||||
+++ b/components/device_signals/core/browser/browser_utils.h
|
||||
@@ -22,12 +22,6 @@ namespace device_signals {
|
||||
|
||||
bool GetChromeRemoteDesktopAppBlocked(PolicyBlocklistService* service);
|
||||
|
||||
-std::optional<safe_browsing::PasswordProtectionTrigger>
|
||||
-GetPasswordProtectionWarningTrigger(PrefService* profile_prefs);
|
||||
-
|
||||
-safe_browsing::SafeBrowsingState GetSafeBrowsingProtectionLevel(
|
||||
- PrefService* profile_prefs);
|
||||
-
|
||||
std::optional<std::string> TryGetEnrollmentDomain(
|
||||
policy::CloudPolicyManager* manager);
|
||||
|
||||
--- a/components/device_signals/core/browser/signals_types.h
|
||||
+++ b/components/device_signals/core/browser/signals_types.h
|
||||
@@ -13,7 +13,6 @@
|
||||
#include "build/build_config.h"
|
||||
#include "components/device_signals/core/common/common_types.h"
|
||||
#include "components/enterprise/connectors/core/reporting_constants.h"
|
||||
-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
|
||||
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
#include "components/device_signals/core/common/win/win_types.h"
|
||||
@@ -246,10 +245,7 @@ struct ProfileSignalsResponse : BaseSign
|
||||
|
||||
bool built_in_dns_client_enabled;
|
||||
bool chrome_remote_desktop_app_blocked;
|
||||
- std::optional<safe_browsing::PasswordProtectionTrigger>
|
||||
- password_protection_warning_trigger = std::nullopt;
|
||||
std::optional<std::string> profile_enrollment_domain = std::nullopt;
|
||||
- safe_browsing::SafeBrowsingState safe_browsing_protection_level;
|
||||
bool site_isolation_enabled;
|
||||
|
||||
// Enterprise cloud content analysis exclusives
|
||||
--- a/components/enterprise/browser/reporting/chrome_profile_request_generator.cc
|
||||
+++ b/components/enterprise/browser/reporting/chrome_profile_request_generator.cc
|
||||
@@ -229,16 +229,10 @@ void ChromeProfileRequestGenerator::OnAg
|
||||
profile_signals.built_in_dns_client_enabled);
|
||||
profile_signals_report->set_chrome_remote_desktop_app_blocked(
|
||||
profile_signals.chrome_remote_desktop_app_blocked);
|
||||
- profile_signals_report->set_password_protection_warning_trigger(
|
||||
- TranslatePasswordProtectionTrigger(
|
||||
- profile_signals.password_protection_warning_trigger));
|
||||
profile_signals_report->set_profile_enrollment_domain(
|
||||
profile_signals.profile_enrollment_domain.value_or(""));
|
||||
profile_signals_report->set_realtime_url_check_mode(
|
||||
TranslateRealtimeUrlCheckMode(profile_signals.realtime_url_check_mode));
|
||||
- profile_signals_report->set_safe_browsing_protection_level(
|
||||
- TranslateSafeBrowsingLevel(
|
||||
- profile_signals.safe_browsing_protection_level));
|
||||
profile_signals_report->set_site_isolation_enabled(
|
||||
profile_signals.site_isolation_enabled);
|
||||
|
||||
--- a/components/enterprise/browser/reporting/report_util.cc
|
||||
+++ b/components/enterprise/browser/reporting/report_util.cc
|
||||
@@ -80,25 +80,6 @@ em::SettingValue TranslateSettingValue(
|
||||
}
|
||||
}
|
||||
|
||||
-em::ProfileSignalsReport::PasswordProtectionTrigger
|
||||
-TranslatePasswordProtectionTrigger(
|
||||
- std::optional<safe_browsing::PasswordProtectionTrigger> trigger) {
|
||||
- if (trigger == std::nullopt) {
|
||||
- return em::ProfileSignalsReport::POLICY_UNSET;
|
||||
- }
|
||||
- switch (trigger.value()) {
|
||||
- case safe_browsing::PasswordProtectionTrigger::PASSWORD_PROTECTION_OFF:
|
||||
- return em::ProfileSignalsReport::PASSWORD_PROTECTION_OFF;
|
||||
- case safe_browsing::PasswordProtectionTrigger::PASSWORD_REUSE:
|
||||
- return em::ProfileSignalsReport::PASSWORD_REUSE;
|
||||
- case safe_browsing::PasswordProtectionTrigger::PHISHING_REUSE:
|
||||
- return em::ProfileSignalsReport::PHISHING_REUSE;
|
||||
- case safe_browsing::PasswordProtectionTrigger::
|
||||
- PASSWORD_PROTECTION_TRIGGER_MAX:
|
||||
- NOTREACHED();
|
||||
- }
|
||||
-}
|
||||
-
|
||||
em::ProfileSignalsReport::RealtimeUrlCheckMode TranslateRealtimeUrlCheckMode(
|
||||
enterprise_connectors::EnterpriseRealTimeUrlCheckMode mode) {
|
||||
switch (mode) {
|
||||
@@ -111,18 +92,6 @@ em::ProfileSignalsReport::RealtimeUrlChe
|
||||
}
|
||||
}
|
||||
|
||||
-em::ProfileSignalsReport::SafeBrowsingLevel TranslateSafeBrowsingLevel(
|
||||
- safe_browsing::SafeBrowsingState level) {
|
||||
- switch (level) {
|
||||
- case safe_browsing::SafeBrowsingState::NO_SAFE_BROWSING:
|
||||
- return em::ProfileSignalsReport::NO_SAFE_BROWSING;
|
||||
- case safe_browsing::SafeBrowsingState::STANDARD_PROTECTION:
|
||||
- return em::ProfileSignalsReport::STANDARD_PROTECTION;
|
||||
- case safe_browsing::SafeBrowsingState::ENHANCED_PROTECTION:
|
||||
- return em::ProfileSignalsReport::ENHANCED_PROTECTION;
|
||||
- }
|
||||
-}
|
||||
-
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
std::unique_ptr<em::AntiVirusProduct> TranslateAvProduct(
|
||||
device_signals::AvProduct av_product) {
|
||||
--- a/components/enterprise/browser/reporting/report_util.h
|
||||
+++ b/components/enterprise/browser/reporting/report_util.h
|
||||
@@ -19,17 +19,10 @@ std::string ObfuscateFilePath(const std:
|
||||
enterprise_management::SettingValue TranslateSettingValue(
|
||||
device_signals::SettingValue setting_value);
|
||||
|
||||
-enterprise_management::ProfileSignalsReport::PasswordProtectionTrigger
|
||||
-TranslatePasswordProtectionTrigger(
|
||||
- std::optional<safe_browsing::PasswordProtectionTrigger> trigger);
|
||||
-
|
||||
enterprise_management::ProfileSignalsReport::RealtimeUrlCheckMode
|
||||
TranslateRealtimeUrlCheckMode(
|
||||
enterprise_connectors::EnterpriseRealTimeUrlCheckMode mode);
|
||||
|
||||
-enterprise_management::ProfileSignalsReport::SafeBrowsingLevel
|
||||
-TranslateSafeBrowsingLevel(safe_browsing::SafeBrowsingState level);
|
||||
-
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
std::unique_ptr<enterprise_management::AntiVirusProduct> TranslateAvProduct(
|
||||
device_signals::AvProduct av_product);
|
||||
--- a/components/enterprise/buildflags/buildflags.gni
|
||||
+++ b/components/enterprise/buildflags/buildflags.gni
|
||||
@@ -10,11 +10,11 @@ declare_args() {
|
||||
@@ -1637,7 +1903,7 @@
|
||||
const base::Value::List* enabled_opt_in_events_value =
|
||||
--- a/components/password_manager/core/browser/leak_detection/leak_detection_check_impl.cc
|
||||
+++ b/components/password_manager/core/browser/leak_detection/leak_detection_check_impl.cc
|
||||
@@ -336,12 +336,7 @@ bool LeakDetectionCheck::IsURLBlockedByP
|
||||
@@ -314,12 +314,7 @@ bool LeakDetectionCheck::IsURLBlockedByP
|
||||
const PrefService& prefs,
|
||||
const GURL& form_url,
|
||||
autofill::SavePasswordProgressLogger* logger) {
|
||||
@@ -1763,7 +2029,7 @@
|
||||
void OhttpKeyService::Shutdown() {
|
||||
--- a/components/safe_browsing/core/browser/realtime/chrome_enterprise_url_lookup_service.cc
|
||||
+++ b/components/safe_browsing/core/browser/realtime/chrome_enterprise_url_lookup_service.cc
|
||||
@@ -135,7 +135,7 @@ bool ChromeEnterpriseRealTimeUrlLookupSe
|
||||
@@ -138,7 +138,7 @@ bool ChromeEnterpriseRealTimeUrlLookupSe
|
||||
|
||||
bool ChromeEnterpriseRealTimeUrlLookupService::CanCheckSafeBrowsingDb() const {
|
||||
// Check database if safe browsing is enabled.
|
||||
@@ -1794,7 +2060,7 @@
|
||||
void RealTimeUrlLookupService::MaybeFillReferringWebApk(
|
||||
--- a/components/safe_browsing/core/browser/realtime/url_lookup_service_base.cc
|
||||
+++ b/components/safe_browsing/core/browser/realtime/url_lookup_service_base.cc
|
||||
@@ -614,17 +614,6 @@ std::unique_ptr<RTLookupRequest> RealTim
|
||||
@@ -593,17 +593,6 @@ void RealTimeUrlLookupServiceBase::Start
|
||||
request->set_report_type(is_sampled_report ? RTLookupRequest::SAMPLED_REPORT
|
||||
: RTLookupRequest::FULL_REPORT);
|
||||
request->set_frame_type(RTLookupRequest::MAIN_FRAME);
|
||||
@@ -1809,9 +2075,9 @@
|
||||
- std::move(referring_app_info_proto);
|
||||
- MaybeFillReferringWebApk(*referring_app_info, *request);
|
||||
- }
|
||||
std::optional<std::string> dm_token_string = GetDMTokenString();
|
||||
if (dm_token_string.has_value()) {
|
||||
request->set_dm_token(dm_token_string.value());
|
||||
|
||||
std::string browser_dm_token = GetBrowserDMTokenString();
|
||||
if (!browser_dm_token.empty()) {
|
||||
--- a/components/safe_browsing/core/browser/safe_browsing_hats_delegate.h
|
||||
+++ b/components/safe_browsing/core/browser/safe_browsing_hats_delegate.h
|
||||
@@ -5,6 +5,8 @@
|
||||
@@ -1952,7 +2218,7 @@
|
||||
void SSLBlockingPageBase::PopulateEnhancedProtectionMessage(
|
||||
--- a/components/sync_preferences/common_syncable_prefs_database.cc
|
||||
+++ b/components/sync_preferences/common_syncable_prefs_database.cc
|
||||
@@ -322,9 +322,6 @@ constexpr auto kCommonSyncablePrefsAllow
|
||||
@@ -327,9 +327,6 @@ constexpr auto kCommonSyncablePrefsAllow
|
||||
{plus_addresses::prefs::kLastPlusAddressFillingTime,
|
||||
{syncable_prefs_ids::kLastPlusAddressFillingTime, syncer::PREFERENCES,
|
||||
PrefSensitivity::kNone, MergeBehavior::kNone}},
|
||||
@@ -2040,7 +2306,7 @@
|
||||
void DidFileSkipQuarantine(base::File::Error result);
|
||||
--- a/extensions/browser/extension_registrar.cc
|
||||
+++ b/extensions/browser/extension_registrar.cc
|
||||
@@ -747,103 +747,27 @@ void ExtensionRegistrar::UnblockAllExten
|
||||
@@ -772,103 +772,27 @@ void ExtensionRegistrar::UnblockAllExten
|
||||
|
||||
void ExtensionRegistrar::OnBlocklistStateRemoved(
|
||||
const std::string& extension_id) {
|
||||
@@ -2146,7 +2412,7 @@
|
||||
void ExtensionRegistrar::OnUnpackedExtensionReloadFailed(
|
||||
--- a/extensions/browser/updater/update_service.cc
|
||||
+++ b/extensions/browser/updater/update_service.cc
|
||||
@@ -132,13 +132,6 @@ void UpdateService::OnCrxStateChange(Upd
|
||||
@@ -133,13 +133,6 @@ void UpdateService::OnCrxStateChange(Upd
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
# Disables translation and removes the "Translate to" context menu when --translate-script-url flag is not set
|
||||
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
@@ -173,6 +173,7 @@
|
||||
@@ -171,6 +171,7 @@
|
||||
#include "components/supervised_user/core/browser/supervised_user_preferences.h"
|
||||
#include "components/supervised_user/core/browser/supervised_user_service.h"
|
||||
#include "components/supervised_user/core/browser/supervised_user_url_filter.h"
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "components/translate/core/browser/translate_download_manager.h"
|
||||
#include "components/translate/core/browser/translate_manager.h"
|
||||
#include "components/translate/core/browser/translate_prefs.h"
|
||||
@@ -2241,6 +2242,7 @@ void RenderViewContextMenu::AppendPageIt
|
||||
@@ -2281,6 +2282,7 @@ void RenderViewContextMenu::AppendPageIt
|
||||
}
|
||||
|
||||
if (CanTranslate(/*menu_logging=*/true)) {
|
||||
@@ -47,7 +47,7 @@
|
||||
request_pending_ = true;
|
||||
--- a/components/translate/core/browser/translate_manager.cc
|
||||
+++ b/components/translate/core/browser/translate_manager.cc
|
||||
@@ -837,8 +837,9 @@ void TranslateManager::FilterIsTranslate
|
||||
@@ -821,8 +821,9 @@ void TranslateManager::FilterIsTranslate
|
||||
TriggerDecision::kDisabledOffline);
|
||||
}
|
||||
|
||||
|
||||
@@ -2861,7 +2861,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+#endif // BRAVE_UTILITY_IMPORTER_CHROME_IMPORTER_H_
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -10830,6 +10830,9 @@ Check your passwords anytime in <ph name
|
||||
@@ -10879,6 +10879,9 @@ Check your passwords anytime in <ph name
|
||||
Microsoft Edge
|
||||
</message>
|
||||
</if>
|
||||
|
||||
@@ -175,7 +175,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
} // namespace importer
|
||||
--- a/tools/metrics/histograms/metadata/sql/histograms.xml
|
||||
+++ b/tools/metrics/histograms/metadata/sql/histograms.xml
|
||||
@@ -38,6 +38,7 @@ chromium-metrics-reviews@google.com.
|
||||
@@ -39,6 +39,7 @@ chromium-metrics-reviews@google.com.
|
||||
<variant name="DataSharingGroupStorage" summary="DataSharingGroupStorage"/>
|
||||
<variant name="DBSCSessions" summary="DBSCSessions"/>
|
||||
<variant name="DIPS" summary="DIPS"/>
|
||||
@@ -242,7 +242,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
|
||||
@@ -4231,6 +4231,10 @@ inline constexpr char kServiceWorkerToCo
|
||||
@@ -4271,6 +4271,10 @@ inline constexpr char kServiceWorkerToCo
|
||||
// is set as a SharedWorker script URL.
|
||||
inline constexpr char kSharedWorkerBlobURLFixEnabled[] =
|
||||
"worker.shared_worker_blob_url_fix_enabled";
|
||||
@@ -255,7 +255,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#endif // CHROME_COMMON_PREF_NAMES_H_
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -1148,6 +1148,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
@@ -1150,6 +1150,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kImportDialogSearchEngine] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
@@ -266,7 +266,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
// Supervised Users. This setting is queried in our Tast tests (b/241943380).
|
||||
--- a/chrome/browser/ui/webui/settings/settings_ui.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_ui.cc
|
||||
@@ -62,6 +62,7 @@
|
||||
@@ -63,6 +63,7 @@
|
||||
#include "chrome/browser/ui/webui/settings/font_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/hats_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/import_data_handler.h"
|
||||
@@ -274,7 +274,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "chrome/browser/ui/webui/settings/metrics_reporting_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/on_startup_handler.h"
|
||||
#include "chrome/browser/ui/webui/settings/password_manager_handler.h"
|
||||
@@ -207,6 +208,7 @@ void SettingsUI::RegisterProfilePrefs(
|
||||
@@ -213,6 +214,7 @@ void SettingsUI::RegisterProfilePrefs(
|
||||
registry->RegisterBooleanPref(prefs::kImportDialogHistory, true);
|
||||
registry->RegisterBooleanPref(prefs::kImportDialogSavedPasswords, true);
|
||||
registry->RegisterBooleanPref(prefs::kImportDialogSearchEngine, true);
|
||||
@@ -282,7 +282,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
}
|
||||
|
||||
SettingsUI::SettingsUI(content::WebUI* web_ui)
|
||||
@@ -251,7 +253,7 @@ SettingsUI::SettingsUI(content::WebUI* w
|
||||
@@ -259,7 +261,7 @@ SettingsUI::SettingsUI(content::WebUI* w
|
||||
AddSettingsPageUIHandler(std::make_unique<DownloadsHandler>(profile));
|
||||
AddSettingsPageUIHandler(std::make_unique<ExtensionControlHandler>());
|
||||
AddSettingsPageUIHandler(std::make_unique<FontHandler>(profile));
|
||||
@@ -293,7 +293,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -849,6 +849,8 @@ void AddImportDataStrings(content::WebUI
|
||||
@@ -880,6 +880,8 @@ void AddImportDataStrings(content::WebUI
|
||||
{"importHistory", IDS_SETTINGS_IMPORT_HISTORY_CHECKBOX},
|
||||
{"importFavorites", IDS_SETTINGS_IMPORT_FAVORITES_CHECKBOX},
|
||||
{"importPasswords", IDS_SETTINGS_IMPORT_PASSWORDS_CHECKBOX},
|
||||
@@ -318,7 +318,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
</div>
|
||||
--- a/chrome/browser/ui/BUILD.gn
|
||||
+++ b/chrome/browser/ui/BUILD.gn
|
||||
@@ -1524,6 +1524,10 @@ static_library("ui") {
|
||||
@@ -1528,6 +1528,10 @@ static_library("ui") {
|
||||
"webui/settings/accessibility_main_handler.h",
|
||||
"webui/settings/appearance_handler.cc",
|
||||
"webui/settings/appearance_handler.h",
|
||||
@@ -329,7 +329,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"webui/settings/browser_lifetime_handler.cc",
|
||||
"webui/settings/browser_lifetime_handler.h",
|
||||
"webui/settings/captions_handler.cc",
|
||||
@@ -1679,6 +1683,13 @@ static_library("ui") {
|
||||
@@ -1683,6 +1687,13 @@ static_library("ui") {
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -2530,6 +2530,7 @@ static_library("browser") {
|
||||
@@ -2564,6 +2564,7 @@ static_library("browser") {
|
||||
"//third_party/libyuv",
|
||||
"//third_party/metrics_proto",
|
||||
"//third_party/re2",
|
||||
@@ -19,7 +19,7 @@
|
||||
"//third_party/widevine/cdm:headers",
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -181,6 +181,7 @@
|
||||
@@ -182,6 +182,7 @@
|
||||
#include "components/translate/core/common/translate_util.h"
|
||||
#include "components/trusted_vault/features.h"
|
||||
#include "components/ui_devtools/switches.h"
|
||||
@@ -44,7 +44,7 @@
|
||||
#endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
|
||||
--- a/content/browser/BUILD.gn
|
||||
+++ b/content/browser/BUILD.gn
|
||||
@@ -294,6 +294,7 @@ source_set("browser") {
|
||||
@@ -296,6 +296,7 @@ source_set("browser") {
|
||||
"//third_party/re2",
|
||||
"//third_party/snappy",
|
||||
"//third_party/sqlite",
|
||||
@@ -62,7 +62,7 @@
|
||||
#include "components/viz/common/switches.h"
|
||||
#include "components/viz/host/gpu_client.h"
|
||||
#include "components/viz/host/host_frame_sink_manager.h"
|
||||
@@ -3493,6 +3494,8 @@ void RenderProcessHostImpl::PropagateBro
|
||||
@@ -3507,6 +3508,8 @@ void RenderProcessHostImpl::PropagateBro
|
||||
switches::kEnableWebGLImageChromium,
|
||||
switches::kEnableWebGPUDeveloperFeatures,
|
||||
switches::kFileUrlPathAlias,
|
||||
@@ -91,7 +91,7 @@
|
||||
#include "ui/accessibility/accessibility_features.h"
|
||||
#include "ui/base/ui_base_features.h"
|
||||
#include "ui/events/blink/blink_features.h"
|
||||
@@ -485,6 +486,10 @@ void SetRuntimeFeaturesFromCommandLine(c
|
||||
@@ -487,6 +488,10 @@ void SetRuntimeFeaturesFromCommandLine(c
|
||||
true},
|
||||
{wrf::EnableWebAudioBypassOutputBufferingOptOut,
|
||||
blink::switches::kWebAudioBypassOutputBufferingOptOut, true},
|
||||
@@ -116,15 +116,15 @@
|
||||
|
||||
--- a/third_party/blink/renderer/core/dom/document.cc
|
||||
+++ b/third_party/blink/renderer/core/dom/document.cc
|
||||
@@ -42,6 +42,7 @@
|
||||
@@ -41,6 +41,7 @@
|
||||
#include "base/i18n/time_formatting.h"
|
||||
#include "base/metrics/histogram_functions.h"
|
||||
#include "base/not_fatal_until.h"
|
||||
#include "base/notreached.h"
|
||||
+#include "base/rand_util.h"
|
||||
#include "base/task/single_thread_task_runner.h"
|
||||
#include "base/time/time.h"
|
||||
#include "base/trace_event/trace_event.h"
|
||||
@@ -869,6 +870,11 @@ Document::Document(const DocumentInit& i
|
||||
@@ -890,6 +891,11 @@ Document::Document(const DocumentInit& i
|
||||
TRACE_EVENT_WITH_FLOW0("blink", "Document::Document", TRACE_ID_LOCAL(this),
|
||||
TRACE_EVENT_FLAG_FLOW_OUT);
|
||||
DCHECK(agent_);
|
||||
@@ -136,7 +136,7 @@
|
||||
if (base::FeatureList::IsEnabled(features::kDelayAsyncScriptExecution) &&
|
||||
features::kDelayAsyncScriptExecutionDelayByDefaultParam.Get()) {
|
||||
script_runner_delayer_->Activate();
|
||||
@@ -995,6 +1001,14 @@ const Position Document::PositionAdjuste
|
||||
@@ -1020,6 +1026,14 @@ const Position Document::PositionAdjuste
|
||||
return Position::BeforeNode(*shadow_host);
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@
|
||||
V8VisibilityState visibilityState() const;
|
||||
String visibilityStateAsString() const;
|
||||
bool IsPageVisible() const;
|
||||
@@ -2704,6 +2708,9 @@ class CORE_EXPORT Document : public Cont
|
||||
@@ -2747,6 +2751,9 @@ class CORE_EXPORT Document : public Cont
|
||||
|
||||
base::ElapsedTimer start_time_;
|
||||
|
||||
@@ -176,7 +176,7 @@
|
||||
|
||||
--- a/third_party/blink/renderer/core/dom/element.cc
|
||||
+++ b/third_party/blink/renderer/core/dom/element.cc
|
||||
@@ -2836,6 +2836,11 @@ DOMRectList* Element::getClientRects() {
|
||||
@@ -2959,6 +2959,11 @@ DOMRectList* Element::getClientRects() {
|
||||
DCHECK(element_layout_object);
|
||||
GetDocument().AdjustQuadsForScrollAndAbsoluteZoom(quads,
|
||||
*element_layout_object);
|
||||
@@ -188,7 +188,7 @@
|
||||
return MakeGarbageCollected<DOMRectList>(quads);
|
||||
}
|
||||
|
||||
@@ -2863,6 +2868,9 @@ gfx::RectF Element::GetBoundingClientRec
|
||||
@@ -2986,6 +2991,9 @@ gfx::RectF Element::GetBoundingClientRec
|
||||
DCHECK(element_layout_object);
|
||||
GetDocument().AdjustRectForScrollAndAbsoluteZoom(result,
|
||||
*element_layout_object);
|
||||
@@ -200,7 +200,7 @@
|
||||
|
||||
--- a/third_party/blink/renderer/core/dom/range.cc
|
||||
+++ b/third_party/blink/renderer/core/dom/range.cc
|
||||
@@ -1634,6 +1634,12 @@ DOMRectList* Range::getClientRects() con
|
||||
@@ -1648,6 +1648,12 @@ DOMRectList* Range::getClientRects() con
|
||||
Vector<gfx::QuadF> quads;
|
||||
GetBorderAndTextQuads(quads);
|
||||
|
||||
@@ -213,7 +213,7 @@
|
||||
return MakeGarbageCollected<DOMRectList>(quads);
|
||||
}
|
||||
|
||||
@@ -1641,7 +1647,11 @@ DOMRect* Range::getBoundingClientRect()
|
||||
@@ -1655,7 +1661,11 @@ DOMRect* Range::getBoundingClientRect()
|
||||
// TODO(crbug.com/1499981): This should be removed once synchronized scrolling
|
||||
// impact is understood.
|
||||
SyncScrollAttemptHeuristic::DidAccessScrollOffset();
|
||||
@@ -266,7 +266,7 @@
|
||||
const TextDirection& direction,
|
||||
--- a/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
|
||||
+++ b/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
|
||||
@@ -103,6 +103,9 @@
|
||||
@@ -109,6 +109,9 @@
|
||||
// https://github.com/include-what-you-use/include-what-you-use/issues/1122
|
||||
// IWYU pragma: no_include "base/numerics/clamped_math.h"
|
||||
|
||||
@@ -274,9 +274,9 @@
|
||||
+#include "third_party/blink/renderer/core/frame/local_dom_window.h"
|
||||
+
|
||||
namespace blink {
|
||||
namespace {
|
||||
|
||||
constexpr char kDefaultFont[] = "10px sans-serif";
|
||||
@@ -1182,13 +1185,26 @@ TextMetrics* BaseRenderingContext2D::mea
|
||||
@@ -1276,13 +1279,26 @@ TextMetrics* BaseRenderingContext2D::mea
|
||||
TextDirection direction =
|
||||
ToTextDirection(state.GetDirection(), host, computed_style);
|
||||
|
||||
@@ -308,7 +308,7 @@
|
||||
String BaseRenderingContext2D::lang() const {
|
||||
--- a/third_party/blink/renderer/platform/BUILD.gn
|
||||
+++ b/third_party/blink/renderer/platform/BUILD.gn
|
||||
@@ -1784,6 +1784,7 @@ component("platform") {
|
||||
@@ -1793,6 +1793,7 @@ component("platform") {
|
||||
"//components/paint_preview/common",
|
||||
"//components/search_engines:search_engine_utils",
|
||||
"//components/translate/core/language_detection:language_detection",
|
||||
@@ -343,7 +343,7 @@
|
||||
#include "third_party/skia/include/core/SkSurface.h"
|
||||
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
@@ -2092,6 +2092,12 @@
|
||||
@@ -2254,6 +2254,12 @@
|
||||
status: "stable",
|
||||
},
|
||||
{
|
||||
|
||||
@@ -34,7 +34,7 @@ approach to change color components.
|
||||
#endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
|
||||
--- a/content/browser/renderer_host/render_process_host_impl.cc
|
||||
+++ b/content/browser/renderer_host/render_process_host_impl.cc
|
||||
@@ -3496,6 +3496,7 @@ void RenderProcessHostImpl::PropagateBro
|
||||
@@ -3510,6 +3510,7 @@ void RenderProcessHostImpl::PropagateBro
|
||||
switches::kFileUrlPathAlias,
|
||||
switches::kFingerprintingClientRectsNoise,
|
||||
switches::kFingerprintingCanvasMeasureTextNoise,
|
||||
@@ -44,7 +44,7 @@ approach to change color components.
|
||||
switches::kForceGpuMemAvailableMb,
|
||||
--- a/content/child/runtime_features.cc
|
||||
+++ b/content/child/runtime_features.cc
|
||||
@@ -490,6 +490,8 @@ void SetRuntimeFeaturesFromCommandLine(c
|
||||
@@ -492,6 +492,8 @@ void SetRuntimeFeaturesFromCommandLine(c
|
||||
switches::kFingerprintingClientRectsNoise, true},
|
||||
{wrf::EnableFingerprintingCanvasMeasureTextNoise,
|
||||
switches::kFingerprintingCanvasMeasureTextNoise, true},
|
||||
@@ -65,7 +65,7 @@ approach to change color components.
|
||||
};
|
||||
--- a/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
|
||||
+++ b/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
|
||||
@@ -508,6 +508,9 @@ ImageData* BaseRenderingContext2D::getIm
|
||||
@@ -599,6 +599,9 @@ ImageData* BaseRenderingContext2D::getIm
|
||||
snapshot->PaintImageForCurrentFrame().GetSkImageInfo().bounds();
|
||||
DCHECK(!bounds.intersect(SkIRect::MakeXYWH(sx, sy, sw, sh)));
|
||||
}
|
||||
@@ -77,7 +77,7 @@ approach to change color components.
|
||||
return image_data;
|
||||
--- a/third_party/blink/renderer/platform/BUILD.gn
|
||||
+++ b/third_party/blink/renderer/platform/BUILD.gn
|
||||
@@ -1729,7 +1729,9 @@ component("platform") {
|
||||
@@ -1737,7 +1737,9 @@ component("platform") {
|
||||
"//third_party/blink/renderer:non_test_config",
|
||||
]
|
||||
|
||||
@@ -305,7 +305,7 @@ approach to change color components.
|
||||
// Methods overridden by all sub-classes
|
||||
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
@@ -2098,6 +2098,9 @@
|
||||
@@ -2260,6 +2260,9 @@
|
||||
name: "FingerprintingCanvasMeasureTextNoise",
|
||||
},
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -2205,6 +2205,7 @@ static_library("browser") {
|
||||
@@ -2241,6 +2241,7 @@ static_library("browser") {
|
||||
"//components/net_log",
|
||||
"//components/network_hints/common:mojo_bindings",
|
||||
"//components/network_session_configurator/browser",
|
||||
@@ -65,7 +65,7 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
#include "base/synchronization/waitable_event.h"
|
||||
#include "base/task/sequenced_task_runner.h"
|
||||
#include "base/task/single_thread_task_runner.h"
|
||||
@@ -118,6 +120,7 @@
|
||||
@@ -119,6 +121,7 @@
|
||||
#include "components/metrics/metrics_service.h"
|
||||
#include "components/metrics_services_manager/metrics_services_manager.h"
|
||||
#include "components/metrics_services_manager/metrics_services_manager_client.h"
|
||||
@@ -73,7 +73,7 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
#include "components/network_time/network_time_tracker.h"
|
||||
#include "components/os_crypt/async/browser/os_crypt_async.h"
|
||||
#include "components/permissions/permissions_client.h"
|
||||
@@ -151,6 +154,7 @@
|
||||
@@ -152,6 +155,7 @@
|
||||
#include "extensions/common/constants.h"
|
||||
#include "media/media_buildflags.h"
|
||||
#include "mojo/public/cpp/bindings/pending_receiver.h"
|
||||
@@ -81,7 +81,7 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
#include "ppapi/buildflags/buildflags.h"
|
||||
#include "printing/buildflags/buildflags.h"
|
||||
#include "services/network/public/cpp/features.h"
|
||||
@@ -417,6 +421,18 @@ void BrowserProcessImpl::Init() {
|
||||
@@ -419,6 +423,18 @@ void BrowserProcessImpl::Init() {
|
||||
pref_change_registrar_.Add(metrics::prefs::kMetricsReportingEnabled,
|
||||
base::BindRepeating(&ApplyMetricsReportingPolicy));
|
||||
|
||||
@@ -102,7 +102,7 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
|
||||
--- a/chrome/browser/flag_descriptions.cc
|
||||
+++ b/chrome/browser/flag_descriptions.cc
|
||||
@@ -2536,6 +2536,10 @@ const char kMantisFeatureKeyDescription[
|
||||
@@ -2632,6 +2632,10 @@ const char kMantisFeatureKeyDescription[
|
||||
"Feature key to use the Mantis feature on ChromeOS.";
|
||||
#endif // BUILDFLAG(IS_CHROMEOS)
|
||||
|
||||
@@ -115,7 +115,7 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
const char kMediaRouterCastAllowAllIPsDescription[] =
|
||||
--- a/chrome/browser/flag_descriptions.h
|
||||
+++ b/chrome/browser/flag_descriptions.h
|
||||
@@ -1465,6 +1465,9 @@ extern const char kMantisFeatureKeyName[
|
||||
@@ -1528,6 +1528,9 @@ extern const char kMantisFeatureKeyName[
|
||||
extern const char kMantisFeatureKeyDescription[];
|
||||
#endif // IS_CHROMEOS
|
||||
|
||||
|
||||
@@ -3,14 +3,14 @@ author: Michael Gilbert <mgilbert@debian.org>
|
||||
|
||||
--- a/chrome/browser/ui/startup/infobar_utils.cc
|
||||
+++ b/chrome/browser/ui/startup/infobar_utils.cc
|
||||
@@ -156,10 +156,6 @@ void AddInfoBarsIfNecessary(Browser* bro
|
||||
infobars::ContentInfoBarManager* infobar_manager =
|
||||
infobars::ContentInfoBarManager::FromWebContents(web_contents);
|
||||
@@ -171,10 +171,6 @@ void AddInfoBarsIfNecessary(Browser* bro
|
||||
infobars::ContentInfoBarManager* infobar_manager =
|
||||
infobars::ContentInfoBarManager::FromWebContents(web_contents);
|
||||
|
||||
- if (!google_apis::HasAPIKeyConfigured()) {
|
||||
- GoogleApiKeysInfoBarDelegate::Create(infobar_manager);
|
||||
- }
|
||||
- if (!google_apis::HasAPIKeyConfigured()) {
|
||||
- GoogleApiKeysInfoBarDelegate::Create(infobar_manager);
|
||||
- }
|
||||
-
|
||||
if (ObsoleteSystem::IsObsoleteNowOrSoon()) {
|
||||
PrefService* local_state = g_browser_process->local_state();
|
||||
if (!local_state ||
|
||||
if (ObsoleteSystem::IsObsoleteNowOrSoon()) {
|
||||
PrefService* local_state = g_browser_process->local_state();
|
||||
if (!local_state ||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
void BackgroundModeManager::RegisterProfile(Profile* profile) {
|
||||
--- a/chrome/browser/chrome_content_browser_client.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client.cc
|
||||
@@ -1558,7 +1558,7 @@ void ChromeContentBrowserClient::Registe
|
||||
@@ -1407,7 +1407,7 @@ void ChromeContentBrowserClient::Registe
|
||||
void ChromeContentBrowserClient::RegisterProfilePrefs(
|
||||
user_prefs::PrefRegistrySyncable* registry) {
|
||||
registry->RegisterBooleanPref(prefs::kDisable3DAPIs, false);
|
||||
@@ -56,7 +56,7 @@
|
||||
</cr-dialog>
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -97,7 +97,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -113,7 +113,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
registry->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, true);
|
||||
registry->RegisterBooleanPref(prefs::kWebAppCreateInQuickLaunchBar, true);
|
||||
registry->RegisterBooleanPref(
|
||||
@@ -87,7 +87,7 @@
|
||||
kAutofillPaymentCvcStorage, true,
|
||||
--- a/components/bookmarks/browser/bookmark_utils.cc
|
||||
+++ b/components/bookmarks/browser/bookmark_utils.cc
|
||||
@@ -456,7 +456,7 @@ bool DoesBookmarkContainWords(const std:
|
||||
@@ -449,7 +449,7 @@ bool DoesBookmarkContainWords(const std:
|
||||
|
||||
void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
|
||||
registry->RegisterBooleanPref(
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ Subject: [PATCH 56/66] browser: disable profile auto-import on first run
|
||||
|
||||
--- a/chrome/browser/chrome_browser_main.cc
|
||||
+++ b/chrome/browser/chrome_browser_main.cc
|
||||
@@ -1578,11 +1578,6 @@ int ChromeBrowserMainParts::PreMainMessa
|
||||
@@ -1568,11 +1568,6 @@ int ChromeBrowserMainParts::PreMainMessa
|
||||
// and preferences have been registered since some of the import code depends
|
||||
// on preferences.
|
||||
if (first_run::IsChromeFirstRun()) {
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ it as hidden as it was before?
|
||||
|
||||
--- a/net/cert/x509_util.cc
|
||||
+++ b/net/cert/x509_util.cc
|
||||
@@ -280,7 +280,7 @@ bool GetTLSServerEndPointChannelBinding(
|
||||
@@ -281,7 +281,7 @@ bool GetTLSServerEndPointChannelBinding(
|
||||
}
|
||||
|
||||
// RSA keys created by CreateKeyAndSelfSignedCert will be of this length.
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
@@ -0,0 +1,18 @@
|
||||
+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#include "components/ungoogled/ungoogled_switches.h"
|
||||
+
|
||||
@@ -43,7 +43,7 @@
|
||||
@@ -0,0 +1,20 @@
|
||||
+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+// Defines all the fingerprinting command-line switches.
|
||||
+
|
||||
|
||||
@@ -1,27 +1,16 @@
|
||||
--- a/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
|
||||
+++ b/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
|
||||
|
||||
+#include "base/command_line.h"
|
||||
#include "base/observer_list.h"
|
||||
#include "build/build_config.h"
|
||||
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
|
||||
@@ -86,9 +87,12 @@ bool BookmarkTabHelper::ShouldShowBookma
|
||||
const bool has_saved_tab_groups =
|
||||
tab_group_service && !tab_group_service->GetAllGroups().empty();
|
||||
|
||||
+ const std::string flag_value =
|
||||
+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("bookmark-bar-ntp");
|
||||
// The bookmark bar is only shown on the NTP if the user
|
||||
// has added something to it.
|
||||
- return IsNTP(web_contents()) && (has_bookmarks || has_saved_tab_groups);
|
||||
+ return IsNTP(web_contents()) && (has_bookmarks || has_saved_tab_groups) &&
|
||||
+ (flag_value != "never");
|
||||
--- a/chrome/browser/ui/browser.cc
|
||||
+++ b/chrome/browser/ui/browser.cc
|
||||
@@ -3824,6 +3824,10 @@ void Browser::UpdateBookmarkBarState(Boo
|
||||
}
|
||||
|
||||
void BookmarkTabHelper::AddObserver(BookmarkTabHelperObserver* observer) {
|
||||
bool Browser::ShouldShowBookmarkBar() const {
|
||||
+ if (base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("bookmark-bar-ntp") == "never") {
|
||||
+ return false;
|
||||
+ }
|
||||
+
|
||||
if (profile_->IsGuestSession()) {
|
||||
return false;
|
||||
}
|
||||
--- a/chrome/browser/ungoogled_flag_choices.h
|
||||
+++ b/chrome/browser/ungoogled_flag_choices.h
|
||||
@@ -34,4 +34,10 @@ const FeatureEntry::Choice kScrollEventC
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/browser.cc
|
||||
+++ b/chrome/browser/ui/browser.cc
|
||||
@@ -142,6 +142,7 @@
|
||||
@@ -143,6 +143,7 @@
|
||||
#include "chrome/browser/ui/unload_controller.h"
|
||||
#include "chrome/browser/ui/views/frame/browser_view.h"
|
||||
#include "chrome/browser/ui/views/frame/contents_web_view.h"
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "chrome/browser/ui/views/status_bubble_views.h"
|
||||
#include "chrome/browser/ui/web_applications/app_browser_controller.h"
|
||||
#include "chrome/browser/ui/web_applications/web_app_launch_utils.h"
|
||||
@@ -586,6 +587,7 @@ Browser::Browser(const CreateParams& par
|
||||
@@ -640,6 +641,7 @@ Browser::Browser(const CreateParams& par
|
||||
omit_from_session_restore_(params.omit_from_session_restore),
|
||||
should_trigger_session_restore_(params.should_trigger_session_restore),
|
||||
cancel_download_confirmation_state_(NOT_PROMPTED),
|
||||
@@ -16,7 +16,7 @@
|
||||
override_bounds_(params.initial_bounds),
|
||||
initial_show_state_(params.initial_show_state),
|
||||
initial_workspace_(params.initial_workspace),
|
||||
@@ -1049,20 +1051,22 @@ Browser::WarnBeforeClosingResult Browser
|
||||
@@ -1102,20 +1104,22 @@ Browser::WarnBeforeClosingResult Browser
|
||||
return WarnBeforeClosingResult::kOkToClose;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
}
|
||||
|
||||
DCHECK(!warn_before_closing_callback_)
|
||||
@@ -1100,6 +1104,7 @@ bool Browser::TryToCloseWindow(
|
||||
@@ -1153,6 +1157,7 @@ bool Browser::TryToCloseWindow(
|
||||
|
||||
void Browser::ResetTryToCloseWindow() {
|
||||
cancel_download_confirmation_state_ = NOT_PROMPTED;
|
||||
@@ -60,7 +60,7 @@
|
||||
unload_controller_.ResetTryToCloseWindow();
|
||||
}
|
||||
|
||||
@@ -3408,6 +3413,58 @@ bool Browser::CanCloseWithInProgressDown
|
||||
@@ -3542,6 +3547,58 @@ bool Browser::CanCloseWithInProgressDown
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
void Browser::InProgressDownloadResponse(bool cancel_downloads) {
|
||||
if (cancel_downloads) {
|
||||
cancel_download_confirmation_state_ = RESPONSE_RECEIVED;
|
||||
@@ -3433,6 +3490,22 @@ void Browser::InProgressDownloadResponse
|
||||
@@ -3567,6 +3624,22 @@ void Browser::InProgressDownloadResponse
|
||||
|
||||
std::move(warn_before_closing_callback_)
|
||||
.Run(WarnBeforeClosingResult::kDoNotClose);
|
||||
@@ -152,7 +152,7 @@
|
||||
#include "chrome/browser/ui/signin/signin_view_controller.h"
|
||||
#include "chrome/browser/ui/tabs/tab_strip_model.h"
|
||||
#include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
|
||||
@@ -1216,12 +1217,17 @@ class Browser : public TabStripModelObse
|
||||
@@ -1237,12 +1238,17 @@ class Browser : public TabStripModelObse
|
||||
// Returns true if the window can close, false otherwise.
|
||||
bool CanCloseWithInProgressDownloads();
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
// Called when the user has decided whether to proceed or not with the browser
|
||||
// closure, in case the cookie migration notice was shown. |proceed_closing|
|
||||
// is true if the browser can be closed.
|
||||
@@ -1394,6 +1400,8 @@ class Browser : public TabStripModelObse
|
||||
@@ -1413,6 +1419,8 @@ class Browser : public TabStripModelObse
|
||||
// when the browser is closed with in-progress downloads.
|
||||
CancelDownloadConfirmationState cancel_download_confirmation_state_;
|
||||
|
||||
|
||||
@@ -1,20 +1,21 @@
|
||||
--- a/chrome/browser/chrome_content_browser_client.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client.cc
|
||||
@@ -934,10 +934,14 @@ bool HandleNewTabPageLocationOverride(
|
||||
@@ -821,11 +821,15 @@ bool HandleNewTabPageLocationOverride(
|
||||
|
||||
// Don't change the URL when incognito mode.
|
||||
if (profile->IsOffTheRecord())
|
||||
if (profile->IsOffTheRecord()) {
|
||||
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch("custom-ntp"))
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string ntp_location =
|
||||
profile->GetPrefs()->GetString(prefs::kNewTabPageLocationOverride);
|
||||
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("custom-ntp"))
|
||||
+ ntp_location = base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("custom-ntp");
|
||||
+ if (profile->IsOffTheRecord() && ntp_location.find("chrome://") != std::string::npos) return false;
|
||||
if (ntp_location.empty())
|
||||
if (ntp_location.empty()) {
|
||||
return false;
|
||||
url::Component scheme;
|
||||
}
|
||||
--- a/chrome/browser/ungoogled_flag_entries.h
|
||||
+++ b/chrome/browser/ungoogled_flag_entries.h
|
||||
@@ -76,4 +76,8 @@
|
||||
@@ -28,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);
|
||||
@@ -36,7 +37,7 @@
|
||||
return CombineAndSanitizeOriginLists(existing_value, new_value);
|
||||
}
|
||||
|
||||
@@ -484,6 +485,7 @@ void FlagsState::SetOriginListFlag(const
|
||||
@@ -483,6 +484,7 @@ void FlagsState::SetOriginListFlag(const
|
||||
const std::string& value,
|
||||
FlagsStorage* flags_storage) {
|
||||
const std::string new_value =
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/third_party/blink/common/features.cc
|
||||
+++ b/third_party/blink/common/features.cc
|
||||
@@ -18,6 +18,8 @@
|
||||
@@ -19,6 +19,8 @@
|
||||
|
||||
namespace blink::features {
|
||||
|
||||
@@ -40,8 +40,8 @@
|
||||
+#include "third_party/blink/public/common/features.h"
|
||||
#include "third_party/blink/public/common/input/web_menu_source_type.h"
|
||||
#include "third_party/blink/public/platform/web_input_event_result.h"
|
||||
#include "third_party/blink/renderer/core/dom/document.h"
|
||||
@@ -1434,10 +1435,14 @@ FrameSelection& SelectionController::Sel
|
||||
#include "third_party/blink/renderer/core/annotation/annotation_agent_impl.h"
|
||||
@@ -1436,10 +1437,14 @@ FrameSelection& SelectionController::Sel
|
||||
}
|
||||
|
||||
bool IsSelectionOverLink(const MouseEventWithHitTestResults& event) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/frame/browser_frame.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_frame.cc
|
||||
@@ -642,5 +642,7 @@ bool BrowserFrame::RegenerateFrameOnThem
|
||||
@@ -643,5 +643,7 @@ bool BrowserFrame::RegenerateFrameOnThem
|
||||
}
|
||||
|
||||
bool BrowserFrame::IsIncognitoBrowser() const {
|
||||
@@ -10,7 +10,7 @@
|
||||
}
|
||||
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
||||
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
||||
@@ -57,6 +57,7 @@
|
||||
@@ -59,6 +59,7 @@
|
||||
#include "ui/base/webui/jstemplate_builder.h"
|
||||
#include "ui/base/webui/web_ui_util.h"
|
||||
#include "ui/color/color_provider.h"
|
||||
@@ -18,7 +18,7 @@
|
||||
#include "ui/gfx/color_utils.h"
|
||||
#include "ui/native_theme/native_theme.h"
|
||||
|
||||
@@ -454,7 +455,9 @@ void NTPResourceCache::CreateNewTabIncog
|
||||
@@ -467,7 +468,9 @@ void NTPResourceCache::CreateNewTabIncog
|
||||
profile_->GetPrefs()->GetString(prefs::kCurrentThemeID);
|
||||
|
||||
// Colors.
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
#include "base/feature_list.h"
|
||||
#include "base/format_macros.h"
|
||||
#include "base/functional/bind.h"
|
||||
@@ -544,6 +545,15 @@ AutocompleteController::AutocompleteCont
|
||||
@@ -566,6 +567,15 @@ AutocompleteController::AutocompleteCont
|
||||
steady_state_omnibox_position_(
|
||||
metrics::OmniboxEventProto::UNKNOWN_POSITION) {
|
||||
provider_types &= ~OmniboxFieldTrial::GetDisabledProviderTypes();
|
||||
@@ -59,7 +59,7 @@
|
||||
// so their async requests can be kicked off before waiting a few milliseconds
|
||||
--- a/components/omnibox/browser/history_url_provider.cc
|
||||
+++ b/components/omnibox/browser/history_url_provider.cc
|
||||
@@ -489,6 +489,9 @@ void HistoryURLProvider::Start(const Aut
|
||||
@@ -488,6 +488,9 @@ void HistoryURLProvider::Start(const Aut
|
||||
if (fixed_up_input.type() != metrics::OmniboxInputType::QUERY)
|
||||
matches_.push_back(what_you_typed_match);
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
#include "base/feature_list.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/functional/callback.h"
|
||||
@@ -629,6 +630,9 @@ void SearchProvider::Run(bool query_is_p
|
||||
@@ -628,6 +629,9 @@ void SearchProvider::Run(bool query_is_p
|
||||
}
|
||||
|
||||
void SearchProvider::DoHistoryQuery(bool minimal_changes) {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/tab_helpers.cc
|
||||
+++ b/chrome/browser/ui/tab_helpers.cc
|
||||
@@ -541,7 +541,9 @@ void TabHelpers::AttachTabHelpers(WebCon
|
||||
@@ -545,7 +545,9 @@ void TabHelpers::AttachTabHelpers(WebCon
|
||||
profile, web_contents);
|
||||
#endif // BUILDFLAG(SAFE_BROWSING_AVAILABLE)
|
||||
SafetyTipWebContentsObserver::CreateForWebContents(web_contents);
|
||||
@@ -25,7 +25,7 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/chrome/renderer/chrome_render_frame_observer.cc
|
||||
+++ b/chrome/renderer/chrome_render_frame_observer.cc
|
||||
@@ -256,14 +256,16 @@ void ChromeRenderFrameObserver::DidFinis
|
||||
@@ -253,14 +253,16 @@ void ChromeRenderFrameObserver::DidFinis
|
||||
if (frame->Parent() || frame->IsInFencedFrameTree())
|
||||
return;
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
--- a/components/search_engines/template_url_service.cc
|
||||
+++ b/components/search_engines/template_url_service.cc
|
||||
@@ -20,6 +20,7 @@
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "base/base64url.h"
|
||||
#include "base/check_deref.h"
|
||||
#include "base/check_is_test.h"
|
||||
@@ -60,8 +60,8 @@
|
||||
#include "base/containers/contains.h"
|
||||
#include "base/containers/fixed_flat_map.h"
|
||||
#include "base/containers/flat_map.h"
|
||||
@@ -309,6 +310,12 @@ std::string_view SyncChangeTypeToHistogr
|
||||
NOTREACHED();
|
||||
@@ -346,6 +347,12 @@ bool ShouldCommitUpdateToAccount(
|
||||
return account_data_changed;
|
||||
}
|
||||
|
||||
+bool ShouldAutocollect() {
|
||||
@@ -73,7 +73,7 @@
|
||||
} // namespace
|
||||
|
||||
// TemplateURLService::LessWithPrefix -----------------------------------------
|
||||
@@ -489,6 +496,7 @@ TemplateURLService::TemplateURLService(
|
||||
@@ -526,6 +533,7 @@ TemplateURLService::TemplateURLService(
|
||||
std::unique_ptr<TemplateURLServiceClient> client,
|
||||
const base::RepeatingClosure& dsp_change_callback)
|
||||
: prefs_(prefs),
|
||||
@@ -81,7 +81,7 @@
|
||||
search_engine_choice_service_(search_engine_choice_service),
|
||||
prepopulate_data_resolver_(prepopulate_data_resolver),
|
||||
search_terms_data_(std::move(search_terms_data)),
|
||||
@@ -592,8 +600,8 @@ bool TemplateURLService::CanAddAutogener
|
||||
@@ -631,8 +639,8 @@ bool TemplateURLService::CanAddAutogener
|
||||
// that may interfere with search queries). An easy heuristic for this is
|
||||
// whether the user has a TemplateURL that has been manually modified (e.g.,
|
||||
// renamed) connected to the same host.
|
||||
@@ -92,7 +92,7 @@
|
||||
}
|
||||
|
||||
bool TemplateURLService::IsPrepopulatedOrDefaultProviderByPolicy(
|
||||
@@ -2316,6 +2324,8 @@ SyncDataMap TemplateURLService::CreateGU
|
||||
@@ -2441,6 +2449,8 @@ SyncDataMap TemplateURLService::CreateGU
|
||||
}
|
||||
|
||||
void TemplateURLService::Init() {
|
||||
@@ -101,7 +101,7 @@
|
||||
if (client_) {
|
||||
client_->SetOwner(this);
|
||||
}
|
||||
@@ -2498,6 +2508,9 @@ void TemplateURLService::ChangeToLoadedS
|
||||
@@ -2623,6 +2633,9 @@ void TemplateURLService::ChangeToLoadedS
|
||||
|
||||
bool TemplateURLService::CanAddAutogeneratedKeywordForHost(
|
||||
const std::string& host) const {
|
||||
@@ -113,7 +113,7 @@
|
||||
return true;
|
||||
--- a/components/search_engines/template_url_service.h
|
||||
+++ b/components/search_engines/template_url_service.h
|
||||
@@ -895,6 +895,8 @@ class TemplateURLService final : public
|
||||
@@ -911,6 +911,8 @@ class TemplateURLService final : public
|
||||
|
||||
raw_ref<TemplateURLPrepopulateData::Resolver> prepopulate_data_resolver_;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "base/debug/alias.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/i18n/rtl.h"
|
||||
@@ -726,6 +727,13 @@ void Tab::HideHover(TabStyle::HideHoverS
|
||||
@@ -728,6 +729,13 @@ void Tab::HideHover(TabStyle::HideHoverS
|
||||
DeprecatedLayoutImmediately();
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// BrowserView::GetAccessibleTabLabel to get the updated accessible name.
|
||||
--- a/chrome/browser/ui/views/tabs/tab.h
|
||||
+++ b/chrome/browser/ui/views/tabs/tab.h
|
||||
@@ -89,6 +89,7 @@ class Tab : public gfx::AnimationDelegat
|
||||
@@ -93,6 +93,7 @@ class Tab : public gfx::AnimationDelegat
|
||||
void OnMouseEntered(const ui::MouseEvent& event) override;
|
||||
void OnMouseExited(const ui::MouseEvent& event) override;
|
||||
void OnGestureEvent(ui::GestureEvent* event) override;
|
||||
@@ -34,7 +34,7 @@
|
||||
void PaintChildren(const views::PaintInfo& info) override;
|
||||
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
|
||||
@@ -15,6 +15,7 @@
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#include "base/check.h"
|
||||
#include "base/compiler_specific.h"
|
||||
#include "base/containers/adapters.h"
|
||||
@@ -1923,6 +1924,8 @@ void TabStrip::OnMouseEventInTab(views::
|
||||
@@ -1936,6 +1937,8 @@ void TabStrip::OnMouseEventInTab(views::
|
||||
}
|
||||
|
||||
void TabStrip::UpdateHoverCard(Tab* tab, HoverCardUpdateType update_type) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/browser_command_controller.cc
|
||||
+++ b/chrome/browser/ui/browser_command_controller.cc
|
||||
@@ -1487,7 +1487,8 @@ void BrowserCommandController::InitComma
|
||||
@@ -1555,7 +1555,8 @@ void BrowserCommandController::InitComma
|
||||
command_updater_.UpdateCommandEnabled(IDC_WINDOW_CLOSE_OTHER_TABS,
|
||||
normal_window);
|
||||
|
||||
@@ -10,9 +10,22 @@
|
||||
command_updater_.UpdateCommandEnabled(IDC_TAB_SEARCH,
|
||||
enable_tab_search_commands);
|
||||
command_updater_.UpdateCommandEnabled(IDC_TAB_SEARCH_CLOSE,
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -458,6 +458,10 @@ static std::string GetCountryCode() {
|
||||
}
|
||||
|
||||
bool IsTabSearchMoving() {
|
||||
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button")) {
|
||||
+ return false;
|
||||
+ }
|
||||
+
|
||||
static const bool is_tab_search_moving = [] {
|
||||
if (GetCountryCode() == "us" &&
|
||||
base::FeatureList::IsEnabled(
|
||||
--- a/chrome/browser/ui/views/frame/browser_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_view.cc
|
||||
@@ -5069,6 +5069,7 @@ void BrowserView::AddedToWidget() {
|
||||
@@ -5283,6 +5283,7 @@ void BrowserView::AddedToWidget() {
|
||||
|
||||
toolbar_->Init();
|
||||
|
||||
@@ -49,15 +62,3 @@
|
||||
+ "Removes the tabsearch button from the tabstrip. ungoogled-chromium flag",
|
||||
+ kOsDesktop, SINGLE_VALUE_TYPE("remove-tabsearch-button")},
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/chrome/common/chrome_features.cc
|
||||
+++ b/chrome/common/chrome_features.cc
|
||||
@@ -436,7 +436,8 @@ BASE_FEATURE(kTabstripComboButton,
|
||||
base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
bool IsTabSearchMoving() {
|
||||
- return base::FeatureList::IsEnabled(features::kTabstripComboButton);
|
||||
+ return base::FeatureList::IsEnabled(features::kTabstripComboButton) &&
|
||||
+ !base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button");
|
||||
}
|
||||
|
||||
const base::FeatureParam<bool> kTabstripComboButtonHasBackground{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/components/webui/flags/flags_state.cc
|
||||
+++ b/components/webui/flags/flags_state.cc
|
||||
@@ -235,6 +235,7 @@ std::string GetCombinedOriginListValue(c
|
||||
@@ -234,6 +234,7 @@ std::string GetCombinedOriginListValue(c
|
||||
const std::string new_value =
|
||||
flags_storage.GetOriginListFlag(internal_entry_name);
|
||||
if (command_line_switch == "custom-ntp") return existing_value.empty() ? new_value : existing_value;
|
||||
@@ -19,7 +19,7 @@
|
||||
return CombineAndSanitizeOriginLists(existing_value, new_value);
|
||||
}
|
||||
|
||||
@@ -486,6 +487,7 @@ void FlagsState::SetOriginListFlag(const
|
||||
@@ -485,6 +486,7 @@ void FlagsState::SetOriginListFlag(const
|
||||
FlagsStorage* flags_storage) {
|
||||
const std::string new_value =
|
||||
internal_name == "custom-ntp" ? value :
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/browser_features.cc
|
||||
+++ b/chrome/browser/browser_features.cc
|
||||
@@ -351,4 +351,5 @@ BASE_FEATURE(kRemovalOfIWAsFromTabCaptur
|
||||
@@ -359,4 +359,5 @@ BASE_FEATURE(kRemovalOfIWAsFromTabCaptur
|
||||
"RemovalOfIWAsFromTabCapture",
|
||||
base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
} // namespace features
|
||||
--- a/chrome/browser/browser_features.h
|
||||
+++ b/chrome/browser/browser_features.h
|
||||
@@ -133,6 +133,7 @@ BASE_DECLARE_FEATURE(kRemovalOfIWAsFromT
|
||||
@@ -135,6 +135,7 @@ BASE_DECLARE_FEATURE(kRemovalOfIWAsFromT
|
||||
// module, e.g.
|
||||
// //chrome/browser/<foo_module>/features.h
|
||||
//
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "chrome/browser/browser_process.h"
|
||||
#include "chrome/browser/browsing_data/chrome_browsing_data_remover_constants.h"
|
||||
#include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h"
|
||||
@@ -147,6 +148,21 @@ class BrowsingDataRemoverObserver
|
||||
@@ -148,6 +149,21 @@ class BrowsingDataRemoverObserver
|
||||
#endif
|
||||
};
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
uint64_t GetOriginTypeMask(const base::Value::List& data_types) {
|
||||
uint64_t result = 0;
|
||||
for (const auto& data_type : data_types) {
|
||||
@@ -313,9 +329,10 @@ void ChromeBrowsingDataLifetimeManager::
|
||||
@@ -326,9 +342,10 @@ void ChromeBrowsingDataLifetimeManager::
|
||||
const base::Value::List& data_types = profile_->GetPrefs()->GetList(
|
||||
browsing_data::prefs::kClearBrowsingDataOnExitList);
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
profile_->GetPrefs()->SetBoolean(
|
||||
browsing_data::prefs::kClearBrowsingDataOnExitDeletionPending, true);
|
||||
auto* remover = profile_->GetBrowsingDataRemover();
|
||||
@@ -326,8 +343,8 @@ void ChromeBrowsingDataLifetimeManager::
|
||||
@@ -339,8 +356,8 @@ void ChromeBrowsingDataLifetimeManager::
|
||||
DCHECK(keep_browser_alive);
|
||||
#endif
|
||||
remover->RemoveAndReply(base::Time(), base::Time::Max(),
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "base/containers/adapters.h"
|
||||
#include "base/containers/flat_map.h"
|
||||
#include "base/containers/span.h"
|
||||
@@ -987,6 +988,10 @@ void TabStripModel::CloseAllTabsInGroup(
|
||||
@@ -1161,6 +1162,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);
|
||||
}
|
||||
|
||||
@@ -2276,9 +2281,13 @@ TabStripModel::GetGroupsDestroyedFromRem
|
||||
@@ -2789,9 +2794,13 @@ TabStripModel::GetGroupsDestroyedFromRem
|
||||
void TabStripModel::ExecuteCloseTabsByIndices(
|
||||
base::RepeatingCallback<std::vector<int>()> get_indices_to_close,
|
||||
uint32_t close_types) {
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
|
||||
#include "base/auto_reset.h"
|
||||
+#include "base/command_line.h"
|
||||
#include "build/build_config.h"
|
||||
#include "chrome/browser/extensions/crx_installer.h"
|
||||
#include "chrome/browser/extensions/extension_install_prompt.h"
|
||||
#include "chrome/browser/extensions/extension_management.h"
|
||||
@@ -97,6 +98,14 @@ scoped_refptr<extensions::CrxInstaller>
|
||||
@@ -113,6 +114,14 @@ scoped_refptr<extensions::CrxInstaller>
|
||||
return installer;
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
bool IsExtensionDownload(const DownloadItem& download_item) {
|
||||
if (download_item.GetTargetDisposition() ==
|
||||
DownloadItem::TARGET_DISPOSITION_PROMPT)
|
||||
@@ -105,7 +114,7 @@ bool IsExtensionDownload(const DownloadI
|
||||
@@ -121,7 +130,7 @@ bool IsExtensionDownload(const DownloadI
|
||||
if (download_item.GetMimeType() == extensions::Extension::kMimeType ||
|
||||
extensions::UserScript::IsURLUserScript(download_item.GetURL(),
|
||||
download_item.GetMimeType())) {
|
||||
@@ -50,7 +50,7 @@
|
||||
bool IsExtensionDownload(const download::DownloadItem& download_item);
|
||||
--- a/chrome/browser/download/download_target_determiner.cc
|
||||
+++ b/chrome/browser/download/download_target_determiner.cc
|
||||
@@ -1238,10 +1238,12 @@ DownloadConfirmationReason DownloadTarge
|
||||
@@ -1236,10 +1236,12 @@ DownloadConfirmationReason DownloadTarge
|
||||
return DownloadConfirmationReason::SAVE_AS;
|
||||
|
||||
#if BUILDFLAG(ENABLE_EXTENSIONS)
|
||||
@@ -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
|
||||
@@ -283,6 +283,13 @@ bool ExtensionManagement::IsInstallation
|
||||
@@ -286,6 +286,13 @@ bool ExtensionManagement::IsInstallation
|
||||
bool ExtensionManagement::IsOffstoreInstallAllowed(
|
||||
const GURL& url,
|
||||
const GURL& referrer_url) const {
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
+#include "base/command_line.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/i18n/rtl.h"
|
||||
#include "base/metrics/histogram_macros.h"
|
||||
@@ -194,7 +195,8 @@ void AppModalDialogManager::RunBeforeUnl
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
@@ -145,7 +146,8 @@ void AppModalDialogManager::RunBeforeUnl
|
||||
ChromeJavaScriptDialogExtraData* extra_data =
|
||||
&javascript_dialog_extra_data_[web_contents];
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "base/compiler_specific.h"
|
||||
#include "base/containers/flat_set.h"
|
||||
#include "base/feature_list.h"
|
||||
@@ -1338,7 +1339,8 @@ void HistoryBackend::InitImpl(
|
||||
@@ -1327,7 +1328,8 @@ void HistoryBackend::InitImpl(
|
||||
db_->GetStartDate(&first_recorded_time_);
|
||||
|
||||
// Start expiring old stuff.
|
||||
@@ -31,7 +31,7 @@
|
||||
}
|
||||
|
||||
void HistoryBackend::OnMemoryPressure(
|
||||
@@ -1561,6 +1563,8 @@ void HistoryBackend::AddPagesWithDetails
|
||||
@@ -1549,6 +1551,8 @@ void HistoryBackend::AddPagesWithDetails
|
||||
}
|
||||
|
||||
bool HistoryBackend::IsExpiredVisitTime(const base::Time& time) const {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/net/socket/ssl_client_socket_impl.cc
|
||||
+++ b/net/socket/ssl_client_socket_impl.cc
|
||||
@@ -202,7 +202,8 @@ class SSLClientSocketImpl::SSLContext {
|
||||
@@ -198,7 +198,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,7 +3,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/startup/infobar_utils.cc
|
||||
+++ b/chrome/browser/ui/startup/infobar_utils.cc
|
||||
@@ -124,7 +124,8 @@ void AddInfoBarsIfNecessary(Browser* bro
|
||||
@@ -136,7 +136,8 @@ void AddInfoBarsIfNecessary(Browser* bro
|
||||
}
|
||||
|
||||
// Web apps should not display the session restore bubble (crbug.com/1264121)
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "base/feature_list.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/functional/callback_helpers.h"
|
||||
@@ -36,6 +37,7 @@
|
||||
@@ -35,6 +36,7 @@
|
||||
#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"
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "chrome/common/pref_names.h"
|
||||
#include "chrome/grit/generated_resources.h"
|
||||
#include "components/feature_engagement/public/event_constants.h"
|
||||
@@ -543,6 +545,17 @@ void ExtensionsToolbarContainer::AnchorA
|
||||
@@ -544,6 +546,17 @@ void ExtensionsToolbarContainer::AnchorA
|
||||
widget->widget_delegate()->AsBubbleDialogDelegate()->SetAnchorView(
|
||||
anchor_view && anchor_view->GetVisible() ? anchor_view
|
||||
: GetExtensionsButton());
|
||||
@@ -34,7 +34,7 @@
|
||||
widget->Show();
|
||||
}
|
||||
|
||||
@@ -942,6 +955,9 @@ void ExtensionsToolbarContainer::UpdateC
|
||||
@@ -943,6 +956,9 @@ void ExtensionsToolbarContainer::UpdateC
|
||||
}
|
||||
|
||||
bool ExtensionsToolbarContainer::ShouldContainerBeVisible() const {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/frame/browser_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_view.cc
|
||||
@@ -2220,6 +2220,10 @@ void BrowserView::ExitFullscreen() {
|
||||
@@ -2370,6 +2370,10 @@ void BrowserView::ExitFullscreen() {
|
||||
void BrowserView::UpdateExclusiveAccessBubble(
|
||||
const ExclusiveAccessBubbleParams& params,
|
||||
ExclusiveAccessBubbleHideCallback first_hide_callback) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/tabs/tab.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/tab.cc
|
||||
@@ -1156,7 +1156,11 @@ void Tab::UpdateIconVisibility() {
|
||||
@@ -1174,7 +1174,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;
|
||||
@@ -1185,6 +1189,8 @@ void Tab::UpdateIconVisibility() {
|
||||
@@ -1203,6 +1207,8 @@ void Tab::UpdateIconVisibility() {
|
||||
!controller_->IsLockedForOnTask() &&
|
||||
#endif
|
||||
large_enough_for_close_button;
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
// Low entropy client hints.
|
||||
--- a/third_party/blink/common/features.cc
|
||||
+++ b/third_party/blink/common/features.cc
|
||||
@@ -19,6 +19,7 @@
|
||||
@@ -20,6 +20,7 @@
|
||||
namespace blink::features {
|
||||
|
||||
BASE_FEATURE(kDisableLinkDrag, "DisableLinkDrag", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
data, container_policy);
|
||||
--- a/third_party/blink/common/features.cc
|
||||
+++ b/third_party/blink/common/features.cc
|
||||
@@ -20,6 +20,7 @@ namespace blink::features {
|
||||
@@ -21,6 +21,7 @@ namespace blink::features {
|
||||
|
||||
BASE_FEATURE(kDisableLinkDrag, "DisableLinkDrag", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
BASE_FEATURE(kReducedSystemInfo, "ReducedSystemInfo", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
||||
@@ -462,6 +462,17 @@ void ToolbarView::Init() {
|
||||
@@ -471,6 +471,17 @@ void ToolbarView::Init() {
|
||||
browser_->profile()->IsGuestSession() ||
|
||||
browser_->profile()->IsRegularProfile();
|
||||
#endif
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/third_party/blink/common/features.cc
|
||||
+++ b/third_party/blink/common/features.cc
|
||||
@@ -21,6 +21,11 @@ namespace blink::features {
|
||||
@@ -22,6 +22,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
|
||||
@@ -3857,6 +3857,8 @@ ScriptValue WebGLRenderingContextBase::g
|
||||
@@ -3915,6 +3915,8 @@ ScriptValue WebGLRenderingContextBase::g
|
||||
pname, IdentifiabilityBenignStringToken(
|
||||
String(ContextGL()->GetString(GL_RENDERER))));
|
||||
}
|
||||
@@ -95,7 +95,7 @@
|
||||
return WebGLAny(script_state,
|
||||
String(ContextGL()->GetString(GL_RENDERER)));
|
||||
}
|
||||
@@ -3872,6 +3874,8 @@ ScriptValue WebGLRenderingContextBase::g
|
||||
@@ -3930,6 +3932,8 @@ ScriptValue WebGLRenderingContextBase::g
|
||||
pname, IdentifiabilityBenignStringToken(
|
||||
String(ContextGL()->GetString(GL_VENDOR))));
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -4446,10 +4446,12 @@ const FeatureEntry::FeatureVariation kEn
|
||||
@@ -4732,10 +4732,12 @@ const FeatureEntry::FeatureVariation kHi
|
||||
#include "chrome/browser/ungoogled_flag_choices.h"
|
||||
#include "chrome/browser/bromite_flag_choices.h"
|
||||
#include "chrome/browser/ungoogled_platform_flag_choices.h"
|
||||
@@ -18,7 +18,7 @@
|
||||
@@ -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 file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#ifndef CHROME_BROWSER_EXISTING_SWITCH_FLAG_CHOICES_H_
|
||||
+#define CHROME_BROWSER_EXISTING_SWITCH_FLAG_CHOICES_H_
|
||||
@@ -42,7 +42,7 @@
|
||||
@@ -0,0 +1,43 @@
|
||||
+// 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 file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#ifndef CHROME_BROWSER_EXISTING_SWITCH_FLAG_ENTRIES_H_
|
||||
+#define CHROME_BROWSER_EXISTING_SWITCH_FLAG_ENTRIES_H_
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/content/browser/renderer_host/navigation_request.cc
|
||||
+++ b/content/browser/renderer_host/navigation_request.cc
|
||||
@@ -166,6 +166,7 @@
|
||||
@@ -168,6 +168,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"
|
||||
@@ -385,10 +386,10 @@ void AddAdditionalRequestHeaders(
|
||||
@@ -388,10 +389,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
|
||||
@@ -136,6 +136,7 @@
|
||||
@@ -135,6 +135,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"
|
||||
@@ -4656,10 +4657,13 @@ void RenderFrameImpl::FinalizeRequestInt
|
||||
@@ -4664,10 +4665,13 @@ void RenderFrameImpl::FinalizeRequestInt
|
||||
|
||||
request.SetHasUserGesture(frame_->HasTransientUserActivation());
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
void RenderFrameImpl::DidLoadResourceFromMemoryCache(
|
||||
--- a/services/network/network_service_network_delegate.cc
|
||||
+++ b/services/network/network_service_network_delegate.cc
|
||||
@@ -30,6 +30,7 @@
|
||||
@@ -31,6 +31,7 @@
|
||||
#include "services/network/network_service_proxy_delegate.h"
|
||||
#include "services/network/pending_callback_chain.h"
|
||||
#include "services/network/public/cpp/features.h"
|
||||
@@ -80,7 +80,7 @@
|
||||
#include "services/network/url_loader.h"
|
||||
#include "url/gurl.h"
|
||||
|
||||
@@ -57,9 +58,14 @@ NetworkServiceNetworkDelegate::~NetworkS
|
||||
@@ -68,9 +69,14 @@ NetworkServiceNetworkDelegate::~NetworkS
|
||||
void NetworkServiceNetworkDelegate::MaybeTruncateReferrer(
|
||||
net::URLRequest* const request,
|
||||
const GURL& effective_url) {
|
||||
@@ -144,7 +144,7 @@
|
||||
@@ -0,0 +1,49 @@
|
||||
+// Copyright 2023 The ungoogled-chromium Authors
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#include "services/network/public/cpp/referrer_sanitizer.h"
|
||||
+
|
||||
@@ -196,7 +196,7 @@
|
||||
@@ -0,0 +1,32 @@
|
||||
+// Copyright 2023 The ungoogled-chromium Authors
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#ifndef SERVICES_NETWORK_PUBLIC_CPP_REFERRER_SANITIZER_H_
|
||||
+#define SERVICES_NETWORK_PUBLIC_CPP_REFERRER_SANITIZER_H_
|
||||
@@ -261,7 +261,7 @@
|
||||
std::vector<std::unique_ptr<URLLoaderThrottle>>
|
||||
--- a/third_party/blink/renderer/platform/loader/fetch/url_loader/dedicated_or_shared_worker_fetch_context_impl.cc
|
||||
+++ b/third_party/blink/renderer/platform/loader/fetch/url_loader/dedicated_or_shared_worker_fetch_context_impl.cc
|
||||
@@ -12,6 +12,7 @@
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "base/task/sequenced_task_runner.h"
|
||||
#include "base/task/single_thread_task_runner.h"
|
||||
#include "base/task/thread_pool.h"
|
||||
@@ -269,7 +269,7 @@
|
||||
#include "services/network/public/cpp/resource_request.h"
|
||||
#include "services/network/public/cpp/wrapper_shared_url_loader_factory.h"
|
||||
#include "third_party/blink/public/common/loader/loader_constants.h"
|
||||
@@ -22,6 +23,7 @@
|
||||
@@ -23,6 +24,7 @@
|
||||
#include "third_party/blink/public/platform/modules/service_worker/web_service_worker_provider_context.h"
|
||||
#include "third_party/blink/public/platform/platform.h"
|
||||
#include "third_party/blink/public/platform/resource_load_info_notifier_wrapper.h"
|
||||
@@ -277,7 +277,7 @@
|
||||
#include "third_party/blink/public/platform/url_loader_throttle_provider.h"
|
||||
#include "third_party/blink/public/platform/weak_wrapper_resource_load_info_notifier.h"
|
||||
#include "third_party/blink/public/platform/web_security_origin.h"
|
||||
@@ -342,10 +344,13 @@ void DedicatedOrSharedWorkerFetchContext
|
||||
@@ -373,10 +375,13 @@ void DedicatedOrSharedWorkerFetchContext
|
||||
auto url_request_extra_data = base::MakeRefCounted<WebURLRequestExtraData>();
|
||||
request.SetURLRequestExtraData(std::move(url_request_extra_data));
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/net/base/features.cc
|
||||
+++ b/net/base/features.cc
|
||||
@@ -13,6 +13,8 @@
|
||||
@@ -18,6 +18,8 @@
|
||||
|
||||
namespace net::features {
|
||||
|
||||
@@ -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.");
|
||||
@@ -1487,33 +1482,10 @@ int HostResolverManager::StartIPv6Reacha
|
||||
@@ -1489,33 +1484,10 @@ int HostResolverManager::StartIPv6Reacha
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,13 +36,13 @@
|
||||
actionButtonText_: String,
|
||||
cancelButtonHidden_: Boolean,
|
||||
@@ -79,6 +81,7 @@ export class SettingsSearchEngineEditDia
|
||||
private searchEngine_: string;
|
||||
private keyword_: string;
|
||||
private queryUrl_: string;
|
||||
+ private suggestionsUrl_: string;
|
||||
private dialogTitle_: string;
|
||||
private actionButtonText_: string;
|
||||
private cancelButtonHidden_: boolean;
|
||||
declare private searchEngine_: string;
|
||||
declare private keyword_: string;
|
||||
declare private queryUrl_: string;
|
||||
+ declare private suggestionsUrl_: string;
|
||||
declare private dialogTitle_: string;
|
||||
declare private actionButtonText_: string;
|
||||
declare private cancelButtonHidden_: boolean;
|
||||
@@ -109,6 +112,7 @@ export class SettingsSearchEngineEditDia
|
||||
this.keyword_ = this.model.keyword;
|
||||
this.queryUrl_ = this.model.url;
|
||||
@@ -165,7 +165,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/search_engines/edit_search_engine_controller.h
|
||||
+++ b/chrome/browser/ui/search_engines/edit_search_engine_controller.h
|
||||
@@ -23,7 +23,8 @@ class EditSearchEngineControllerDelegate
|
||||
@@ -22,7 +22,8 @@ class EditSearchEngineControllerDelegate
|
||||
virtual void OnEditedKeyword(TemplateURL* template_url,
|
||||
const std::u16string& title,
|
||||
const std::u16string& keyword,
|
||||
@@ -175,7 +175,7 @@
|
||||
|
||||
protected:
|
||||
virtual ~EditSearchEngineControllerDelegate() = default;
|
||||
@@ -54,6 +55,8 @@ class EditSearchEngineController {
|
||||
@@ -53,6 +54,8 @@ class EditSearchEngineController {
|
||||
// character results in a valid url.
|
||||
bool IsURLValid(const std::string& url_input) const;
|
||||
|
||||
@@ -184,7 +184,7 @@
|
||||
// Returns true if the value of |keyword_input| represents a valid keyword.
|
||||
// The keyword is valid if it is non-empty and does not conflict with an
|
||||
// existing entry. NOTE: this is just the keyword, not the title and url.
|
||||
@@ -62,7 +65,8 @@ class EditSearchEngineController {
|
||||
@@ -61,7 +64,8 @@ class EditSearchEngineController {
|
||||
// Completes the add or edit of a search engine.
|
||||
void AcceptAddOrEdit(const std::u16string& title_input,
|
||||
const std::u16string& keyword_input,
|
||||
@@ -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
|
||||
@@ -206,21 +206,25 @@ void TemplateURLTableModel::Remove(size_
|
||||
@@ -201,21 +201,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);
|
||||
@@ -229,7 +233,8 @@ void TemplateURLTableModel::ModifyTempla
|
||||
@@ -224,7 +228,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
|
||||
@@ -61,13 +61,15 @@ class TemplateURLTableModel : public ui:
|
||||
@@ -58,13 +58,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
|
||||
@@ -50,6 +50,7 @@ namespace {
|
||||
@@ -49,6 +49,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;
|
||||
@@ -228,6 +229,8 @@ base::Value::Dict SearchEnginesHandler::
|
||||
@@ -255,6 +256,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();
|
||||
@@ -403,12 +406,14 @@ void SearchEnginesHandler::HandleSearchE
|
||||
@@ -418,12 +421,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();
|
||||
@@ -438,6 +443,8 @@ bool SearchEnginesHandler::CheckFieldVal
|
||||
@@ -453,6 +458,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();
|
||||
}
|
||||
@@ -460,18 +467,21 @@ void SearchEnginesHandler::HandleSearchE
|
||||
@@ -475,18 +482,21 @@ void SearchEnginesHandler::HandleSearchE
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -428,7 +428,7 @@
|
||||
|
||||
--- a/components/search_engines/template_url_service.cc
|
||||
+++ b/components/search_engines/template_url_service.cc
|
||||
@@ -1006,7 +1006,8 @@ void TemplateURLService::IncrementUsageC
|
||||
@@ -998,7 +998,8 @@ void TemplateURLService::IncrementUsageC
|
||||
void TemplateURLService::ResetTemplateURL(TemplateURL* url,
|
||||
const std::u16string& title,
|
||||
const std::u16string& keyword,
|
||||
@@ -438,7 +438,7 @@
|
||||
DCHECK(!IsCreatedByExtension(url));
|
||||
DCHECK(!keyword.empty());
|
||||
DCHECK(!search_url.empty());
|
||||
@@ -1021,6 +1022,7 @@ void TemplateURLService::ResetTemplateUR
|
||||
@@ -1013,6 +1014,7 @@ void TemplateURLService::ResetTemplateUR
|
||||
data.safe_for_autoreplace = false;
|
||||
data.last_modified = clock_->Now();
|
||||
data.is_active = TemplateURLData::ActiveStatus::kTrue;
|
||||
@@ -448,7 +448,7 @@
|
||||
syncer::kSeparateLocalAndAccountSearchEngines)
|
||||
--- a/components/search_engines/template_url_service.h
|
||||
+++ b/components/search_engines/template_url_service.h
|
||||
@@ -342,7 +342,8 @@ class TemplateURLService final : public
|
||||
@@ -341,7 +341,8 @@ class TemplateURLService final : public
|
||||
void ResetTemplateURL(TemplateURL* url,
|
||||
const std::u16string& title,
|
||||
const std::u16string& keyword,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -4442,7 +4442,13 @@ const FeatureEntry::FeatureVariation kEn
|
||||
@@ -4728,7 +4728,13 @@ const FeatureEntry::FeatureVariation kHi
|
||||
// calculate and verify checksum.
|
||||
//
|
||||
// When adding a new choice, add it to the end of the list.
|
||||
@@ -19,7 +19,7 @@
|
||||
@@ -0,0 +1,7 @@
|
||||
+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#ifndef CHROME_BROWSER_BROMITE_FLAG_CHOICES_H_
|
||||
+#define CHROME_BROWSER_BROMITE_FLAG_CHOICES_H_
|
||||
@@ -29,7 +29,7 @@
|
||||
@@ -0,0 +1,7 @@
|
||||
+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#ifndef CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
|
||||
+#define CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
|
||||
@@ -39,7 +39,7 @@
|
||||
@@ -0,0 +1,7 @@
|
||||
+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#ifndef CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
|
||||
+#define CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
|
||||
@@ -49,7 +49,7 @@
|
||||
@@ -0,0 +1,7 @@
|
||||
+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#ifndef CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
+#define CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
@@ -59,7 +59,7 @@
|
||||
@@ -0,0 +1,7 @@
|
||||
+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#ifndef CHROME_BROWSER_UNGOOGLED_PLATFORM_FLAG_CHOICES_H_
|
||||
+#define CHROME_BROWSER_UNGOOGLED_PLATFORM_FLAG_CHOICES_H_
|
||||
@@ -69,7 +69,7 @@
|
||||
@@ -0,0 +1,7 @@
|
||||
+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
|
||||
+// Use of this source code is governed by a BSD-style license that can be
|
||||
+// found in the LICENSE file.
|
||||
+// found in the LICENSE.ungoogled_chromium file.
|
||||
+
|
||||
+#ifndef CHROME_BROWSER_UNGOOGLED_PLATFORM_FLAG_ENTRIES_H_
|
||||
+#define CHROME_BROWSER_UNGOOGLED_PLATFORM_FLAG_ENTRIES_H_
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -109,7 +109,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
@@ -125,7 +125,7 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
false);
|
||||
#endif
|
||||
registry->RegisterStringPref(prefs::kWebRTCIPHandlingPolicy,
|
||||
|
||||
@@ -1,83 +0,0 @@
|
||||
--- a/chrome/browser/media/webrtc/capture_policy_utils.cc
|
||||
+++ b/chrome/browser/media/webrtc/capture_policy_utils.cc
|
||||
@@ -56,36 +56,7 @@ void IsMultiCaptureAllowedForAnyOriginOn
|
||||
base::OnceCallback<void(bool)> callback,
|
||||
content::BrowserContext* context,
|
||||
bool is_multi_capture_allowed_for_any_origin_on_main_profile) {
|
||||
- // If the new MultiScreenCaptureAllowedForUrls policy permits access, exit
|
||||
- // early. If not, check the legacy
|
||||
- // GetDisplayMediaSetSelectAllScreensAllowedForUrls policy.
|
||||
- if (is_multi_capture_allowed_for_any_origin_on_main_profile) {
|
||||
- std::move(callback).Run(true);
|
||||
- return;
|
||||
- }
|
||||
-
|
||||
- // TODO(b/329064666): Remove the checks below once the pivot to IWAs is
|
||||
- // complete.
|
||||
- Profile* profile = Profile::FromBrowserContext(context);
|
||||
- if (!profile) {
|
||||
std::move(callback).Run(false);
|
||||
- return;
|
||||
- }
|
||||
-
|
||||
- HostContentSettingsMap* host_content_settings_map =
|
||||
- HostContentSettingsMapFactory::GetForProfile(profile);
|
||||
- if (!host_content_settings_map) {
|
||||
- std::move(callback).Run(false);
|
||||
- return;
|
||||
- }
|
||||
- ContentSettingsForOneType content_settings =
|
||||
- host_content_settings_map->GetSettingsForOneType(
|
||||
- ContentSettingsType::ALL_SCREEN_CAPTURE);
|
||||
- std::move(callback).Run(std::ranges::any_of(
|
||||
- content_settings, [](const ContentSettingPatternSource& source) {
|
||||
- return source.GetContentSetting() ==
|
||||
- ContentSetting::CONTENT_SETTING_ALLOW;
|
||||
- }));
|
||||
}
|
||||
|
||||
void CheckAllScreensMediaAllowedForIwaResultReceived(
|
||||
@@ -257,43 +228,13 @@ void RegisterProfilePrefs(PrefRegistrySi
|
||||
void CheckGetAllScreensMediaAllowedForAnyOrigin(
|
||||
content::BrowserContext* context,
|
||||
base::OnceCallback<void(bool)> callback) {
|
||||
-#if BUILDFLAG(IS_CHROMEOS)
|
||||
- if (crosapi::mojom::MultiCaptureService* multi_capture_service =
|
||||
- GetMultiCaptureService()) {
|
||||
- multi_capture_service->IsMultiCaptureAllowedForAnyOriginOnMainProfile(
|
||||
- base::BindOnce(
|
||||
- IsMultiCaptureAllowedForAnyOriginOnMainProfileResultReceived,
|
||||
- std::move(callback), context));
|
||||
- } else {
|
||||
- // If the multi capture service is not available with the required version,
|
||||
- // fall back to the original flow using the deprecated policy.
|
||||
- IsMultiCaptureAllowedForAnyOriginOnMainProfileResultReceived(
|
||||
- std::move(callback), context, /*result=*/false);
|
||||
- }
|
||||
-#else
|
||||
std::move(callback).Run(false);
|
||||
-#endif // BUILDFLAG(IS_CHROMEOS)
|
||||
}
|
||||
|
||||
void CheckGetAllScreensMediaAllowed(content::BrowserContext* context,
|
||||
const GURL& url,
|
||||
base::OnceCallback<void(bool)> callback) {
|
||||
-#if BUILDFLAG(IS_CHROMEOS)
|
||||
- crosapi::mojom::MultiCaptureService* multi_capture_service =
|
||||
- GetMultiCaptureService();
|
||||
- if (multi_capture_service) {
|
||||
- multi_capture_service->IsMultiCaptureAllowed(
|
||||
- url, base::BindOnce(&CheckAllScreensMediaAllowedForIwaResultReceived,
|
||||
- std::move(callback), std::move(url), context));
|
||||
- } else {
|
||||
- // If the multi capture service is not available with the required version,
|
||||
- // fall back to the original flow using the deprecated policy.
|
||||
- CheckAllScreensMediaAllowedForIwaResultReceived(
|
||||
- std::move(callback), std::move(url), context, /*result=*/false);
|
||||
- }
|
||||
-#else
|
||||
std::move(callback).Run(false);
|
||||
-#endif // BUILDFLAG(IS_CHROMEOS)
|
||||
}
|
||||
|
||||
#if BUILDFLAG(ENABLE_SCREEN_CAPTURE)
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user