Compare commits

...

66 Commits

Author SHA1 Message Date
wukko 058dbdb229 revision: bump to 3 2025-06-05 01:43:38 +06:00
wukko c9a7f5b1b3 helium/ui/tab-style: fix margin between tabs 2025-06-05 00:46:54 +06:00
wukko 1d5f225b08 helium/core: clean up context menu
- remove qr code generation action
- remove cast option from main page context menu
- merged "remove read anything context menu entry" into this patch
2025-06-04 23:38:59 +06:00
wukko d9213991cc helium/ui: fix pwa toolbar
- it's now not as tall
- action buttons don't have 1km spacing between them
2025-06-04 22:58:21 +06:00
wukko a6484f3d3f helium/ui: smaller window grab handle 2025-06-04 22:05:04 +06:00
wukko 6271d50506 helium/ui/layout-constants: adjust toolbar-related spacings 2025-06-04 22:03:57 +06:00
jj 6e13b31f0e chromium: update to 137.0.7151.69 2025-06-03 16:04:44 +00:00
wukko 025564d6d7 helium/core/proxy-extensions: fix deps order in build.gn 2025-05-31 18:21:35 +06:00
jj 4010387eab repo: add ungoogled-chromium license to root 2025-05-31 11:51:48 +00:00
wukko 3a977845f0 patches/series: remove holes 2025-05-31 17:30:47 +06:00
wukko a126f65782 patches: refresh for 137.0.7151.55 2025-05-31 17:04:02 +06:00
wukko 28393b6386 merge: update to ungoogled-chromium 137.0.7151.55 2025-05-31 16:39:59 +06:00
Blaise 76f98dc4eb Update to Chromium 137.0.7151.55 2025-05-27 14:46:55 -05:00
Max Lee Abdurrahman As-Salafi Carter 祁明思 70eb9a635d fix: correct f-string quote usage in helium_version.py (#18) 2025-05-26 16:59:30 +02:00
jj 7413c75494 helium/bangs: verify keyword is matching before stripping 2025-05-23 09:17:31 +00:00
wukko b5f74116b5 revision: bump to 10
god damn
2025-05-22 01:08:13 +06:00
wukko 825f4133fb utils/replace_resources: print the destination after copying 2025-05-22 00:45:56 +06:00
wukko aa47b1c96b helium/ui: fix omnibox tabs icon
now it's a tab icon instead of brand icon
2025-05-22 00:44:37 +06:00
wukko 89b1d39616 helium/ui/app-menu: add customize action to main, fix bookmarks title
& also rename patch to be universal
2025-05-22 00:43:33 +06:00
wukko 0796d78ce2 helium/core: don't try to toggle the extension container that isnt there
fixes a crash in guest mode (because the container isn't created in guest mode)
2025-05-21 23:29:37 +06:00
wukko 0e489582aa helium/core: toggle extensions container in toolbar via a pref 2025-05-21 22:22:06 +06:00
wukko bb49e1680e helium/core: hide avatar in toolbar via a pref
& make it a toggle in customization side panel
2025-05-21 19:39:02 +06:00
wukko c242d6f7f6 helium/ui: make infobar & text button thinner 2025-05-21 16:56:00 +06:00
wukko 6f9cf25b95 helium/core: move tab search to toolbar & disable by default 2025-05-21 16:55:18 +06:00
jj 52271f9841 bump revision 2025-05-20 21:38:44 +00:00
jj 9873ccd1d9 helium/onboarding: don't open if --no-first-run is set, bump version 2025-05-20 21:38:07 +00:00
wukko 364ce99eaf revision: bump to 8 2025-05-18 18:44:42 +06:00
wukko aef6a463d5 extras: update onboarding 2025-05-18 18:44:29 +06:00
wukko 5fee4a7145 resources/branding: replace more skia product icons 2025-05-18 18:09:00 +06:00
wukko 55efa2111f resources: move helium skia icons to resources 2025-05-18 18:07:57 +06:00
wukko 49373d155b resources/branding: optimize product logo svg 2025-05-18 17:56:39 +06:00
wukko bb5af0c7b1 helium/ui/app-menu: remove obnoxious bg from default browser prompt 2025-05-18 17:56:24 +06:00
wukko af5539abf7 helium/ui/settings: clean up product info footer on about page
& merge other tiny patch into this one cuz it just makes sense
2025-05-18 17:14:50 +06:00
wukko a3db74b428 helium/ui/cr-components: fix segmented button border & size
now it doesn't stick out of its bounds, making it align perfectly with all other items in the "customize chrome" side panel
2025-05-18 16:34:20 +06:00
wukko 14d7bbb71b helium/ui/layout-provider: make side panel content radius 12dp 2025-05-18 12:02:15 +06:00
wukko 5607b15249 helium/ui/sidepanels: fix card widths, paddings, and radius
also made the search bar in bookmarks bar of appropriate radius
2025-05-18 12:01:52 +06:00
wukko 64ec07beb7 helium/ui/sidepanels: fix button order, header padding, and update icons 2025-05-18 11:33:52 +06:00
wukko 38a114d48d helium/ui/cr-components: fix focus ring on custom theme color picker 2025-05-18 11:31:57 +06:00
wukko 08f481a314 helium/ui/cr-components: fix segmented button option radius 2025-05-18 08:53:07 +06:00
jj cde40a97f0 helium/ui/bangs: add appropriate text and icons for ai chatbots 2025-05-17 21:59:42 +00:00
jj 0dae50b2f0 helium/bangs: add support for categories 2025-05-17 21:59:42 +00:00
wukko 327c2eccfc revision: bump to 7 2025-05-17 19:44:37 +06:00
jj a256e3a4e5 helium/bangs: support omnipositional bangs (#16) 2025-05-17 19:42:51 +06:00
wukko f753602e4e helium/ui: fix sidepanel headers 2025-05-17 19:19:46 +06:00
wukko f45035b8c9 helium/ui/cr-components: thinner segmented button 2025-05-17 18:04:45 +06:00
wukko 7310a65592 helium/ui: restyle the "customize chrome" sidepanel 2025-05-17 18:04:25 +06:00
wukko 03b64f23a4 helium/omnibox: make omnibox rows thinner, fix alignment
& also make omnibox_suggestion_button_row_view prettier
2025-05-17 14:51:24 +06:00
wukko 29cf8f0ad3 helium/ui: re-align location bar keyword search 2025-05-17 14:50:49 +06:00
wukko bf61a1a5c0 helium/ui: make toolbar & tab strip thinner 2025-05-17 14:50:23 +06:00
wukko 60f45b2ba5 helium/ui: clean up profile customization dialog
it's seen when you make a new profile
2025-05-17 11:57:23 +06:00
wukko 159473844a helium/copy-page-url-shortcut: fix copy url accelerator
alt -> shift
(oops)
2025-05-17 10:58:08 +06:00
wukko 1e4188bbca merge: update to ungoogled-chromium 136.0.7103.113 2025-05-15 20:23:34 +06:00
networkException 1a4952eb9e Update to Chromium 136.0.7103.113 2025-05-14 20:06:15 +02:00
wukko 2ce4603ecf revision: bump to 5
gawd damn
2025-05-12 22:21:07 +06:00
wukko 6cce6332c7 extras: update onboarding 2025-05-12 22:20:56 +06:00
wukko 8f89dcfa97 revision: bump to 4 2025-05-12 18:32:00 +06:00
wukko 830b7bcc4b helium/ui: disable tab group editor footer 2025-05-12 17:31:37 +06:00
wukko 06da4cfcdc helium/ui: clean up the profile picker
- removed google bg elements
- fixed bottom button alignment
- removed the chrome logo spin easter egg
2025-05-12 17:04:49 +06:00
wukko f34f4e8bd2 helium/settings: remove about page easter egg
no more spinny helium logo
2025-05-12 17:04:11 +06:00
wukko 27d17fa340 resources/branding: add product_logo.svg 2025-05-12 16:51:27 +06:00
wukko fc37b27f9a utils/name_substitution: don't add to tarball if it doesn't exist 2025-05-12 10:25:21 +06:00
jj a290073661 util: rewrite name substitution script in python 2025-05-11 22:03:52 +00:00
wukko 0814b98d6b revision: bump to 3 2025-05-12 00:10:44 +06:00
wukko b6eaed2233 helium/ui: reduce bookmarks bar padding 2025-05-12 00:07:59 +06:00
wukko d13d58652f helium/ui: remove devtools annoyances
- remove feedback button from recorder panel
- remove what's new panel entirely because it's useless & invasive (auto opened by default)
- remove empty help submenu
2025-05-11 22:44:34 +06:00
wukko fde4fe86b6 helium/ui: remove the autofill link from updated profiles menu 2025-05-11 22:43:16 +06:00
165 changed files with 3717 additions and 1681 deletions
+29
View File
@@ -0,0 +1,29 @@
BSD 3-Clause License
Copyright (c) 2015-2023, The ungoogled-chromium Authors
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+1 -1
View File
@@ -186,4 +186,4 @@ 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)).
+1 -1
View File
@@ -1 +1 @@
136.0.7103.92
137.0.7151.69
+1 -1
View File
@@ -3,7 +3,7 @@
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# found in the LICENSE.ungoogled_chromium file.
"""Run sanity checking algorithms over downloads.ini files
It checks the following:
+1 -1
View File
@@ -2,7 +2,7 @@
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# found in the LICENSE.ungoogled_chromium file.
"""
Checks if files in a list exist.
+1 -1
View File
@@ -3,7 +3,7 @@
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# found in the LICENSE.ungoogled_chromium file.
"""Run sanity checking algorithms over GN flags
It checks the following:
+1 -1
View File
@@ -3,7 +3,7 @@
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# found in the LICENSE.ungoogled_chromium file.
"""Run sanity checking algorithms over ungoogled-chromium's patch files
It checks the following:
+1 -1
View File
@@ -2,7 +2,7 @@
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# found in the LICENSE.ungoogled_chromium file.
"""Run Pylint over devutils"""
import argparse
+1 -1
View File
@@ -2,7 +2,7 @@
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# found in the LICENSE.ungoogled_chromium file.
"""Run Pylint over any module"""
import argparse
+1 -1
View File
@@ -2,7 +2,7 @@
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# found in the LICENSE.ungoogled_chromium file.
"""Run Pylint over utils"""
import argparse
+1 -1
View File
@@ -2,7 +2,7 @@
# Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# found in the LICENSE.ungoogled_chromium file.
"""Test check_patch_files.py"""
import logging
+1 -1
View File
@@ -2,7 +2,7 @@
# Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# found in the LICENSE.ungoogled_chromium file.
"""Test validate_patches.py"""
import logging
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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
+1 -1
View File
@@ -3,7 +3,7 @@
# Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# found in the LICENSE.ungoogled_chromium file.
"""Run sanity checking algorithms over ungoogled-chromium's config files
NOTE: This script is hardcoded to run over ungoogled-chromium's config files only.
+1 -1
View File
@@ -3,7 +3,7 @@
# Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# found in the LICENSE.ungoogled_chromium file.
"""
Validates that all patches apply cleanly against the source tree.
+1 -1
View File
@@ -43,7 +43,7 @@ mkdir -p build/download_cache
```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
python3 ./utils/name_substitution.py" --sub -t 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.
+143 -54
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -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
@@ -1,9 +1,9 @@
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -3685,8 +3685,6 @@ static_library("browser") {
@@ -3694,8 +3694,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",
@@ -11,7 +11,7 @@
"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
@@ -5511,10 +5511,6 @@ ChromeContentBrowserClient::CreateThrott
throttles.push_back(std::make_unique<PolicyBlocklistNavigationThrottle>(
handle, handle->GetWebContents()->GetBrowserContext()));
@@ -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
@@ -705,18 +705,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") {
@@ -577,6 +579,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") {
@@ -596,6 +599,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
@@ -891,93 +891,6 @@ std::tuple<GURL, std::string> AutofillCr
}
bool AutofillCrowdsourcingManager::StartRequest(FormRequestData request_data) {
@@ -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.
@@ -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";
@@ -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
@@ -132,6 +132,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
@@ -96,6 +96,7 @@ void NtpBackgroundService::Shutdown() {
}
void NtpBackgroundService::FetchCollectionInfo() {
+ return;
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.
@@ -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") {
@@ -1094,6 +1094,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
@@ -2752,24 +2752,6 @@ void ChromeContentBrowserClient::AppendE
command_line->AppendSwitchASCII(switches::kMetricsClientID,
client_info->client_id);
}
@@ -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) {
@@ -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;
@@ -12,20 +12,20 @@
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) {
@@ -1206,7 +1205,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") {
@@ -89,11 +89,6 @@ group("resources") {
public_deps += [ "accessibility:reading_mode_gdocs_extension_resources" ]
}
@@ -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 {
@@ -52,7 +52,7 @@
}
// static
@@ -861,7 +861,7 @@ void PrivacySandboxSettingsImpl::SetTopi
@@ -864,7 +864,7 @@ void PrivacySandboxSettingsImpl::SetTopi
}
bool PrivacySandboxSettingsImpl::IsPrivacySandboxRestricted() const {
@@ -61,7 +61,7 @@
}
bool PrivacySandboxSettingsImpl::IsPrivacySandboxCurrentlyUnrestricted() const {
@@ -947,11 +947,7 @@ PrivacySandboxSettingsImpl::GetPrivacySa
@@ -933,11 +933,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
@@ -193,11 +193,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(
@@ -1466,38 +1466,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(
@@ -1526,8 +1495,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(
@@ -1551,11 +1518,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
@@ -3979,12 +3979,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/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();
@@ -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
@@ -61,17 +61,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;
// Dependent extensions.
--- 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;
}
@@ -81,7 +81,7 @@
bool ExtensionManagement::IsAllowedByUnpublishedAvailabilityPolicy(
--- a/chrome/browser/extensions/manifest_v2_experiment_manager.cc
+++ b/chrome/browser/extensions/manifest_v2_experiment_manager.cc
@@ -145,22 +145,6 @@ bool ManifestV2ExperimentManagerFactory:
@@ -146,22 +146,6 @@ bool ManifestV2ExperimentManagerFactory:
// Determines the current stage of the MV2 deprecation experiments.
MV2ExperimentStage CalculateCurrentExperimentStage() {
@@ -104,7 +104,7 @@
return MV2ExperimentStage::kNone;
}
@@ -200,19 +184,7 @@ PrefMap GetGlobalNoticeAcknowledgedPrefF
@@ -201,19 +185,7 @@ PrefMap GetGlobalNoticeAcknowledgedPrefF
// Returns true if legacy extensions should be disabled, looking at both
// experiment stage and global state.
bool ShouldDisableLegacyExtensions(MV2ExperimentStage stage) {
@@ -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",
@@ -3,15 +3,15 @@
--- a/chrome/BUILD.gn
+++ b/chrome/BUILD.gn
@@ -374,7 +374,6 @@ if (!is_android && !is_mac) {
@@ -373,7 +373,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) {
@@ -937,8 +936,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) {
@@ -1210,7 +1207,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") {
@@ -761,10 +761,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") {
@@ -3560,10 +3556,6 @@ static_library("browser") {
} else {
#!is_android
sources += [
@@ -52,7 +52,7 @@
"accessibility/caption_bubble_context_browser.h",
"accessibility/embedded_a11y_extension_loader.cc",
"accessibility/embedded_a11y_extension_loader.h",
@@ -4268,8 +4260,6 @@ static_library("browser") {
@@ -4283,8 +4275,6 @@ static_library("browser") {
"//chrome/app:command_ids",
"//chrome/app/theme:chrome_unscaled_resources_grit",
"//chrome/app/vector_icons",
@@ -60,8 +60,8 @@
- "//chrome/browser/accessibility/tree_fixing:service",
"//chrome/browser/apps/app_service",
"//chrome/browser/apps/link_capturing",
"//chrome/browser/autofill_ai:util",
@@ -4291,10 +4281,6 @@ static_library("browser") {
"//chrome/browser/contextual_cueing",
@@ -4305,10 +4295,6 @@ static_library("browser") {
"//chrome/browser/new_tab_page/chrome_colors",
"//chrome/browser/policy:path_parser",
"//chrome/browser/resources:component_extension_resources",
@@ -72,7 +72,7 @@
"//chrome/browser/search/background",
"//chrome/browser/smart_card",
"//chrome/browser/themes",
@@ -4419,9 +4405,6 @@ static_library("browser") {
@@ -4442,9 +4428,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") {
@@ -4544,8 +4527,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") {
@@ -4584,8 +4565,6 @@ static_library("browser") {
"profiles/profile_activity_metrics_recorder.h",
"profiles/profile_list_desktop.cc",
"profiles/profile_list_desktop.h",
@@ -100,7 +100,7 @@
"signin/force_signin_verifier.cc",
"signin/force_signin_verifier.h",
"signin/signin_manager.cc",
@@ -5359,7 +5338,6 @@ static_library("browser") {
@@ -5386,7 +5365,6 @@ static_library("browser") {
"//chrome/browser/policy:system_features_disable_list",
"//chrome/browser/push_notification:push_notification",
"//chrome/browser/resources:app_icon_resources",
@@ -108,7 +108,7 @@
"//chrome/browser/support_tool/ash",
"//chrome/browser/ui/ash/accelerator",
"//chrome/browser/ui/ash/accessibility",
@@ -5623,7 +5601,6 @@ static_library("browser") {
@@ -5651,7 +5629,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") {
@@ -7893,12 +7870,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 @@
@@ -250,12 +250,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
@@ -1381,9 +1379,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 @@
@@ -82,8 +82,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,
@@ -530,11 +507,6 @@ void PopulateChromeFrameBinders(
base::BindRepeating(&web_app::SubAppsServiceImpl::CreateIfAllowed));
}
@@ -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
@@ -100,7 +100,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},
@@ -374,17 +377,17 @@
{"tooltipDocumentOutline", IDS_PDF_TOOLTIP_DOCUMENT_OUTLINE},
--- 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
@@ -283,21 +283,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()) {
- if (PermissionsAiv1Handler* aiv1_model_handler =
- prediction_model_handler_provider->GetPermissionsAiv1Handler()) {
- VLOG(1) << "[PermissionsAIv1] Inquire model.";
- gen_ai_model_handler->InquireAiOnDeviceModel(
- aiv1_model_handler->InquireAiOnDeviceModel(
- std::move(inner_text), request_type,
- base::BindRepeating(&PredictionBasedPermissionUiSelector::
- AiOnDeviceModelExecutionCallback,
@@ -398,7 +401,7 @@
VLOG(1) << "[PermissionsAIv1] The page's contnet too short or empty";
--- a/chrome/browser/prefs/BUILD.gn
+++ b/chrome/browser/prefs/BUILD.gn
@@ -267,7 +267,6 @@ source_set("impl") {
@@ -274,7 +274,6 @@ source_set("impl") {
} else {
deps += [
"//chrome/browser/promos:utils",
@@ -408,7 +411,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
@@ -1807,9 +1807,6 @@ void RegisterLocalState(PrefRegistrySimp
DeviceOAuth2TokenStoreDesktop::RegisterPrefs(registry);
#endif
@@ -420,7 +423,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")
@@ -297,7 +297,6 @@ source_set("profiles_extra_parts_impl")
]
} else {
deps += [
@@ -428,7 +431,7 @@
"//chrome/browser/apps/app_service",
"//chrome/browser/autofill",
"//chrome/browser/contextual_cueing",
@@ -302,7 +301,6 @@ source_set("profiles_extra_parts_impl")
@@ -305,7 +304,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 +441,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 @@
@@ -104,7 +104,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,7 +449,7 @@
#include "chrome/browser/navigation_predictor/search_engine_preconnector.h"
#include "chrome/browser/navigation_predictor/search_engine_preconnector_keyed_service_factory.h"
#include "chrome/browser/net/dns_probe_service_factory.h"
@@ -322,7 +321,6 @@
@@ -326,7 +325,6 @@
#include "chrome/browser/performance_manager/persistence/site_data/site_data_cache_facade_factory.h"
#include "chrome/browser/privacy_sandbox/privacy_sandbox_survey_desktop_controller_factory.h"
#include "chrome/browser/profile_resetter/reset_report_uploader_factory.h"
@@ -454,7 +457,7 @@
#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
@@ -1025,7 +1023,6 @@ void ChromeBrowserMainExtraPartsProfiles
#if BUILDFLAG(CHROME_ROOT_STORE_CERT_MANAGEMENT_UI)
net::ServerCertificateDatabaseServiceFactory::GetInstance();
#endif
@@ -462,7 +465,7 @@
#if BUILDFLAG(IS_CHROMEOS)
NearbySharingServiceFactory::GetInstance();
if (base::FeatureList::IsEnabled(ash::features::kNearbyPresence)) {
@@ -1057,9 +1054,6 @@ void ChromeBrowserMainExtraPartsProfiles
@@ -1077,9 +1074,6 @@ void ChromeBrowserMainExtraPartsProfiles
OneTimePermissionsTrackerFactory::GetInstance();
#endif
OpenerHeuristicServiceFactory::GetInstance();
@@ -472,7 +475,7 @@
OptimizationGuideKeyedServiceFactory::GetInstance();
OriginKeyedPermissionActionServiceFactory::GetInstance();
OriginTrialsFactory::GetInstance();
@@ -1123,13 +1117,6 @@ void ChromeBrowserMainExtraPartsProfiles
@@ -1146,13 +1140,6 @@ void ChromeBrowserMainExtraPartsProfiles
policy::UserPolicySigninServiceFactory::GetInstance();
#endif
PolicyBlocklistFactory::GetInstance();
@@ -486,7 +489,7 @@
PredictionServiceFactory::GetInstance();
predictors::AutocompleteActionPredictorFactory::GetInstance();
predictors::LoadingPredictorFactory::GetInstance();
@@ -1215,13 +1202,6 @@ void ChromeBrowserMainExtraPartsProfiles
@@ -1239,13 +1226,6 @@ void ChromeBrowserMainExtraPartsProfiles
#else
SafetyHubMenuNotificationServiceFactory::GetInstance();
SafetyHubHatsServiceFactory::GetInstance();
@@ -500,7 +503,7 @@
#endif
#if BUILDFLAG(IS_CHROMEOS)
if (ash::features::IsScannerEnabled()) {
@@ -1331,7 +1311,6 @@ void ChromeBrowserMainExtraPartsProfiles
@@ -1356,7 +1336,6 @@ void ChromeBrowserMainExtraPartsProfiles
TrackingProtectionSettingsFactory::GetInstance();
translate::TranslateRankerFactory::GetInstance();
#if !BUILDFLAG(IS_ANDROID)
@@ -510,7 +513,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);
@@ -559,7 +562,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
@@ -1506,9 +1505,6 @@ void ProfileManager::DoFinalInitForServi
// Ensure NavigationPredictorKeyedService is started.
NavigationPredictorKeyedServiceFactory::GetForProfile(profile);
@@ -571,7 +574,7 @@
#if BUILDFLAG(IS_ANDROID)
--- a/chrome/browser/resources/BUILD.gn
+++ b/chrome/browser/resources/BUILD.gn
@@ -91,7 +91,6 @@ group("resources") {
@@ -92,7 +92,6 @@ group("resources") {
if (is_mac) {
public_deps += [
"//chrome/browser/resources/media/mei_preload:component",
@@ -581,7 +584,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
@@ -98,10 +98,6 @@ import {AnnotationMode} from './constant
</cr-page-selector>
` : ''}
</if>
@@ -594,7 +597,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") {
@@ -1722,8 +1722,6 @@ static_library("ui") {
"//chrome/browser/regional_capabilities",
"//chrome/browser/safe_browsing",
"//chrome/browser/safe_browsing:advanced_protection",
@@ -603,7 +606,7 @@
"//chrome/browser/smart_card:smart_card",
"//chrome/browser/tab_group_sync:utils",
"//chrome/browser/themes",
@@ -2397,7 +2395,6 @@ static_library("ui") {
@@ -2415,7 +2413,6 @@ static_library("ui") {
"//chrome/browser/policy:onc",
"//chrome/browser/policy:system_features_disable_list",
"//chrome/browser/push_notification:push_notification",
@@ -747,7 +750,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
@@ -364,24 +362,6 @@ ReadAnythingUntrustedPageHandler::ReadAn
prefs_lang = language::ExtractBaseLanguage(prefs_lang);
SetDefaultLanguageCode(prefs_lang);
@@ -772,7 +775,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
@@ -829,12 +809,6 @@ void ReadAnythingUntrustedPageHandler::S
weak_factory_.GetSafeRef(), inner_contents[0], kReadAnythingAXMode);
}
}
@@ -848,7 +851,7 @@
void ChromeRenderFrameObserver::DidMeaningfulLayout(
--- a/chrome/test/BUILD.gn
+++ b/chrome/test/BUILD.gn
@@ -2187,9 +2187,6 @@ if (!is_android) {
@@ -2250,9 +2250,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 +861,7 @@
"//chrome/browser/search",
"//chrome/browser/search_engines",
"//chrome/browser/segmentation_platform:test_utils",
@@ -2592,9 +2589,6 @@ if (!is_android) {
@@ -2664,9 +2661,6 @@ if (!is_android) {
"//services/network/public/proto:sct_audit_report_proto",
"//services/preferences/public/cpp",
"//services/preferences/public/cpp/tracked",
@@ -868,7 +871,7 @@
"//services/service_manager/public/cpp",
"//services/strings",
"//services/test/echo/public/mojom",
@@ -8121,7 +8115,6 @@ test("unit_tests") {
@@ -8211,7 +8205,6 @@ test("unit_tests") {
# Non-android deps for "unit_tests" target.
deps += [
@@ -876,7 +879,7 @@
"//chrome:packed_resources_integrity_header",
"//chrome/browser/apps:icon_standardizer",
"//chrome/browser/apps/app_service",
@@ -8156,7 +8149,6 @@ test("unit_tests") {
@@ -8246,7 +8239,6 @@ test("unit_tests") {
"//chrome/browser/resource_coordinator:tab_manager_features",
"//chrome/browser/resources:component_extension_resources_grit",
"//chrome/browser/resources/new_tab_page_instant:resources_grit",
@@ -884,7 +887,7 @@
"//chrome/browser/search/background",
"//chrome/browser/search/background:constants",
"//chrome/browser/search_engine_choice:unit_tests",
@@ -8265,7 +8257,6 @@ test("unit_tests") {
@@ -8358,7 +8350,6 @@ test("unit_tests") {
"//components/webapps/browser",
"//services/metrics/public/cpp:ukm_builders",
"//services/network:test_support",
@@ -955,9 +958,19 @@
#endif // !BUILDFLAG(IS_ANDROID)
#if BUILDFLAG(ENABLE_BROWSER_SPEECH_SERVICE)
--- a/components/BUILD.gn
+++ b/components/BUILD.gn
@@ -597,7 +597,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) {
@@ -1083,7 +1096,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 +1107,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) {
@@ -830,10 +830,6 @@ if (is_apple) {
deps = [ "//third_party/icu:icudata" ]
}
@@ -1160,7 +1173,7 @@
--- a/pdf/pdfium/pdfium_engine.cc
+++ b/pdf/pdfium/pdfium_engine.cc
@@ -2696,7 +2696,7 @@ void PDFiumEngine::HandleLongPress(const
@@ -2697,7 +2697,7 @@ void PDFiumEngine::HandleLongPress(const
SkBitmap PDFiumEngine::GetImageForOcr(int page_index, int image_index) {
DCHECK(PageIndexInBounds(page_index));
@@ -1209,19 +1222,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") {
@@ -606,8 +606,6 @@ static_library("browser") {
"infobars/simple_alert_infobar_creator.h",
"interstitials/chrome_settings_page_helper.cc",
"interstitials/chrome_settings_page_helper.h",
@@ -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") {
@@ -3903,10 +3900,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"
@@ -8515,7 +8508,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") {
@@ -9005,8 +8997,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
@@ -1840,7 +1839,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
@@ -1921,49 +1919,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/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",
@@ -330,8 +330,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/permissions_updater.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,15 +749,15 @@
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
void ChromeExtensionSystem::PerformActionBasedOnOmahaAttributes(
const std::string& extension_id,
@@ -465,8 +465,6 @@ void ChromeExtensionSystem::PerformActio
const base::Value::Dict& attributes) {
#if BUILDFLAG(ENABLE_EXTENSIONS)
// TODO(crbug.com/413460628): Port ExtensionService to desktop Android.
- extension_service()->PerformActionBasedOnOmahaAttributes(extension_id,
- attributes);
}
bool ChromeExtensionSystem::FinishDelayedInstallationIfReady(
#else
NOTIMPLEMENTED();
#endif
--- 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,38 @@
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));
@@ -358,10 +354,6 @@ void ExtensionService::Init() {
extensions_features::kDisableLoadExtensionCommandLineSwitch)) {
LOG(WARNING)
<< "--load-extension is not allowed in Google Chrome, ignoring.";
- } else if (safe_browsing::IsEnhancedProtectionEnabled(
- *profile_->GetPrefs())) {
- VLOG(1) << "--load-extension is not allowed for users opted into "
- << "Enhanced Safe Browsing, ignoring.";
} else if (ShouldBlockCommandLineExtension(*profile_)) {
// TODO(crbug.com/401529219): Deprecate this restriction once
// --load-extension switch is restricted on Chrome builds.
@@ -440,17 +432,6 @@ void ExtensionService::LoadSigninProfile
}
#endif
-void ExtensionService::PerformActionBasedOnOmahaAttributes(
- const std::string& extension_id,
@@ -813,7 +819,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 +827,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);
@@ -170,10 +169,6 @@ class ExtensionService : public Extensio
// nothing.
void EnableExtension(const std::string& extension_id);
- // Performs action based on Omaha attributes for the extension.
- void PerformActionBasedOnOmahaAttributes(const std::string& extension_id,
@@ -832,9 +838,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;
@@ -371,8 +366,6 @@ class ExtensionService : public Extensio
ExtensionTelemetryServiceVerdictHandler
extension_telemetry_service_verdict_handler_;
- // Needs `extension_registrar_` during construction.
- OmahaAttributesHandler omaha_attributes_handler_;
@@ -847,54 +853,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
@@ -235,16 +235,6 @@ void PersistentNotificationHandler::Disa
NotificationPermissionContext::UpdatePermission(profile, origin,
CONTENT_SETTING_BLOCK);
#endif
@@ -911,6 +917,76 @@
}
void PersistentNotificationHandler::OpenSettings(Profile* profile,
@@ -282,42 +272,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
@@ -773,24 +773,6 @@ 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) &&
- 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(),
- base::BindOnce(
- &PlatformNotificationServiceImpl::DidUpdatePersistentMetadata,
- weak_ptr_factory_.GetWeakPtr(), std::move(persistent_metadata),
- notification, should_show_warning));
- return;
- }
- }
DoUpdatePersistentMetadataThenDisplay(std::move(persistent_metadata),
notification, should_show_warning);
}
--- 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 +1074,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
@@ -463,55 +463,5 @@ bool PredictionBasedPermissionUiSelector
PredictionSource PredictionBasedPermissionUiSelector::GetPredictionTypeToUse(
permissions::RequestType request_type) {
@@ -1056,7 +1132,7 @@
}
--- 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
@@ -2506,8 +2506,6 @@ std::unique_ptr<ConfigurationPolicyHandl
handlers->AddHandler(
std::make_unique<bookmarks::ManagedBookmarksPolicyHandler>(
chrome_schema));
@@ -1067,7 +1143,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 @@
@@ -283,7 +283,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 +1151,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);
@@ -2054,7 +2053,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();
@@ -854,9 +854,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) || \
@@ -1260,7 +1338,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") {
@@ -4585,8 +4585,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 +1347,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"
@@ -386,34 +385,6 @@ RevokedPermissionsService::RevokedPermis
base::Unretained(this)));
#endif // BUILDFLAG(IS_ANDROID)
- if (base::FeatureList::IsEnabled(
@@ -1296,28 +1374,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(
- safe_browsing::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
@@ -1154,9 +1125,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 +1405,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",
@@ -1343,7 +1421,7 @@
#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(
.Build());
@@ -1574,7 +1652,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 +1662,7 @@
kChromeUITabSearchHost,
--- a/chrome/test/BUILD.gn
+++ b/chrome/test/BUILD.gn
@@ -2449,7 +2449,6 @@ if (!is_android) {
@@ -2523,7 +2523,6 @@ if (!is_android) {
"//components/resources",
"//components/safe_browsing:buildflags",
"//components/safe_browsing/content/browser",
@@ -1592,7 +1670,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") {
@@ -6871,7 +6870,6 @@ test("unit_tests") {
"//components/resources",
"//components/safe_browsing:buildflags",
"//components/safe_browsing/content/browser",
@@ -1600,6 +1678,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 exclusive
--- 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);
profile_report->set_allocated_profile_signals_report(
--- 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() {
@@ -1763,7 +2001,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 +2032,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
@@ -595,17 +595,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 +2047,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 +2190,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 +2278,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 +2384,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 @@
@@ -174,6 +174,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
@@ -2242,6 +2243,7 @@ void RenderViewContextMenu::AppendPageIt
}
if (CanTranslate(/*menu_logging=*/true)) {
@@ -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>
+9 -9
View File
@@ -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") {
]
}
@@ -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
@@ -3491,6 +3492,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
@@ -490,6 +491,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 @@
#include "base/metrics/histogram_functions.h"
@@ -43,6 +43,7 @@
#include "base/metrics/histogram_macros.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
#include "base/timer/elapsed_timer.h"
@@ -889,6 +890,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
@@ -1015,6 +1021,14 @@ const Position Document::PositionAdjuste
return Position::BeforeNode(*shadow_host);
}
@@ -153,7 +153,7 @@
selector_query_cache_ = MakeGarbageCollected<SelectorQueryCache>();
--- a/third_party/blink/renderer/core/dom/document.h
+++ b/third_party/blink/renderer/core/dom/document.h
@@ -558,6 +558,10 @@ class CORE_EXPORT Document : public Cont
@@ -556,6 +556,10 @@ class CORE_EXPORT Document : public Cont
has_xml_declaration_ = has_xml_declaration ? 1 : 0;
}
@@ -164,7 +164,7 @@
V8VisibilityState visibilityState() const;
String visibilityStateAsString() const;
bool IsPageVisible() const;
@@ -2704,6 +2708,9 @@ class CORE_EXPORT Document : public Cont
@@ -2732,6 +2736,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() {
@@ -2878,6 +2878,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
@@ -2905,6 +2910,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
@@ -1293,13 +1296,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") {
@@ -1797,6 +1797,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 @@
@@ -2176,6 +2176,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
@@ -3494,6 +3494,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
@@ -495,6 +495,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
@@ -615,6 +615,9 @@ ImageData* BaseRenderingContext2D::getIm
snapshot->PaintImageForCurrentFrame().GetSkImageInfo().bounds();
DCHECK(!bounds.intersect(SkIRect::MakeXYWH(sx, sy, sw, sh)));
}
@@ -77,7 +77,7 @@ approach to change color components.
return image_data;
--- a/third_party/blink/renderer/platform/BUILD.gn
+++ b/third_party/blink/renderer/platform/BUILD.gn
@@ -1729,7 +1729,9 @@ component("platform") {
@@ -1741,7 +1741,9 @@ component("platform") {
"//third_party/blink/renderer:non_test_config",
]
@@ -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 @@
@@ -2182,6 +2182,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") {
@@ -2207,6 +2207,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() {
@@ -418,6 +422,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[
@@ -2603,6 +2603,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[
@@ -1506,6 +1506,9 @@ extern const char kMantisFeatureKeyName[
extern const char kMantisFeatureKeyDescription[];
#endif // IS_CHROMEOS
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- a/chrome/browser/ui/startup/infobar_utils.cc
+++ b/chrome/browser/ui/startup/infobar_utils.cc
@@ -156,10 +156,6 @@ void AddInfoBarsIfNecessary(Browser* bro
@@ -163,10 +163,6 @@ void AddInfoBarsIfNecessary(Browser* bro
infobars::ContentInfoBarManager* infobar_manager =
infobars::ContentInfoBarManager::FromWebContents(web_contents);
@@ -12,7 +12,7 @@
void BackgroundModeManager::RegisterProfile(Profile* profile) {
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1558,7 +1558,7 @@ void ChromeContentBrowserClient::Registe
@@ -1567,7 +1567,7 @@ void ChromeContentBrowserClient::Registe
void ChromeContentBrowserClient::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(prefs::kDisable3DAPIs, false);
@@ -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:
@@ -457,7 +457,7 @@ bool DoesBookmarkContainWords(const std:
void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(
@@ -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
@@ -1583,11 +1583,6 @@ int ChromeBrowserMainParts::PreMainMessa
// and preferences have been registered since some of the import code depends
// on preferences.
if (first_run::IsChromeFirstRun()) {
@@ -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,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
@@ -587,6 +588,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
@@ -1050,20 +1052,22 @@ Browser::WarnBeforeClosingResult Browser
return WarnBeforeClosingResult::kOkToClose;
}
@@ -52,7 +52,7 @@
}
DCHECK(!warn_before_closing_callback_)
@@ -1100,6 +1104,7 @@ bool Browser::TryToCloseWindow(
@@ -1101,6 +1105,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
@@ -3447,6 +3452,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
@@ -3472,6 +3529,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
@@ -1415,6 +1421,8 @@ class Browser : public TabStripModelObse
// when the browser is closed with in-progress downloads.
CancelDownloadConfirmationState cancel_download_confirmation_state_;
@@ -1,6 +1,6 @@
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -934,10 +934,14 @@ bool HandleNewTabPageLocationOverride(
@@ -943,10 +943,14 @@ bool HandleNewTabPageLocationOverride(
// Don't change the URL when incognito mode.
if (profile->IsOffTheRecord())
@@ -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 {
@@ -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
@@ -546,6 +547,15 @@ AutocompleteController::AutocompleteCont
steady_state_omnibox_position_(
metrics::OmniboxEventProto::UNKNOWN_POSITION) {
provider_types &= ~OmniboxFieldTrial::GetDisabledProviderTypes();
@@ -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
@@ -594,8 +602,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
@@ -2438,6 +2446,8 @@ SyncDataMap TemplateURLService::CreateGU
}
void TemplateURLService::Init() {
@@ -101,7 +101,7 @@
if (client_) {
client_->SetOwner(this);
}
@@ -2498,6 +2508,9 @@ void TemplateURLService::ChangeToLoadedS
@@ -2620,6 +2630,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
@@ -901,6 +901,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();
}
@@ -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::
@@ -1946,6 +1947,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
@@ -1535,7 +1535,8 @@ void BrowserCommandController::InitComma
command_updater_.UpdateCommandEnabled(IDC_WINDOW_CLOSE_OTHER_TABS,
normal_window);
@@ -12,7 +12,7 @@
command_updater_.UpdateCommandEnabled(IDC_TAB_SEARCH_CLOSE,
--- 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() {
@@ -5197,6 +5197,7 @@ void BrowserView::AddedToWidget() {
toolbar_->Init();
@@ -51,7 +51,7 @@
#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,
@@ -538,7 +538,8 @@ BASE_FEATURE(kTabstripComboButton,
base::FEATURE_DISABLED_BY_DEFAULT);
bool IsTabSearchMoving() {
@@ -1,6 +1,6 @@
--- a/chrome/browser/browser_features.cc
+++ b/chrome/browser/browser_features.cc
@@ -351,4 +351,5 @@ BASE_FEATURE(kRemovalOfIWAsFromTabCaptur
@@ -349,4 +349,5 @@ BASE_FEATURE(kRemovalOfIWAsFromTabCaptur
"RemovalOfIWAsFromTabCapture",
base::FEATURE_ENABLED_BY_DEFAULT);
@@ -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(
@@ -998,6 +999,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
@@ -2466,9 +2471,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>
@@ -112,6 +113,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
@@ -120,7 +129,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 {
@@ -13,7 +13,7 @@
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -1208,6 +1208,8 @@ WindowOpenDisposition NavigationPolicyTo
@@ -1207,6 +1207,8 @@ WindowOpenDisposition NavigationPolicyTo
case blink::kWebNavigationPolicyNewWindow:
return WindowOpenDisposition::NEW_WINDOW;
case blink::kWebNavigationPolicyNewPopup:
@@ -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];
@@ -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 {
@@ -203,7 +203,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
@@ -131,7 +131,8 @@ void AddInfoBarsIfNecessary(Browser* bro
}
// Web apps should not display the session restore bubble (crbug.com/1264121)
@@ -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
@@ -545,6 +547,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
@@ -944,6 +957,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() {
@@ -2265,6 +2265,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() {
@@ -1178,7 +1178,11 @@ void Tab::UpdateIconVisibility() {
// Close button is shown on active tabs regardless of the size.
showing_close_button_ = true;
#endif // BUILDFLAG(IS_CHROMEOS)
@@ -12,7 +12,7 @@
showing_alert_indicator_ =
has_alert_icon && alert_icon_width <= available_width;
@@ -1185,6 +1189,8 @@ void Tab::UpdateIconVisibility() {
@@ -1207,6 +1211,8 @@ void Tab::UpdateIconVisibility() {
!controller_->IsLockedForOnTask() &&
#endif
large_enough_for_close_button;
@@ -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() {
@@ -464,6 +464,17 @@ void ToolbarView::Init() {
browser_->profile()->IsGuestSession() ||
browser_->profile()->IsRegularProfile();
#endif
@@ -86,7 +86,7 @@
// Feature declarations and associated constants (feature params, et cetera)
--- a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
+++ b/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
@@ -3857,6 +3857,8 @@ ScriptValue WebGLRenderingContextBase::g
@@ -3897,6 +3897,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
@@ -3912,6 +3914,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
@@ -4619,10 +4619,12 @@ const FeatureEntry::FeatureVariation
#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_
@@ -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(
@@ -386,10 +387,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
@@ -4666,10 +4667,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 @@
@@ -14,6 +14,8 @@
namespace net::features {
@@ -35,7 +35,7 @@
// https://vasilvv.github.io/httpbis-alps/draft-vvv-httpbis-alps.html.
--- a/net/dns/host_resolver_manager.cc
+++ b/net/dns/host_resolver_manager.cc
@@ -152,11 +152,6 @@ const size_t kMaxHostLength = 4096;
@@ -153,11 +153,6 @@ const size_t kMaxHostLength = 4096;
// cached.
const int kIPv6ProbePeriodMs = 1000;
@@ -47,7 +47,7 @@
// True if |hostname| ends with either ".local" or ".local.".
bool ResemblesMulticastDNSName(std::string_view hostname) {
return hostname.ends_with(".local") || hostname.ends_with(".local.");
@@ -1487,33 +1482,10 @@ int HostResolverManager::StartIPv6Reacha
@@ -1490,33 +1485,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;
@@ -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_
@@ -207,21 +207,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
@@ -230,7 +234,8 @@ void TemplateURLTableModel::ModifyTempla
DCHECK(template_url_service_->GetDefaultSearchProvider() != template_url ||
template_url->SupportsReplacement(
template_url_service_->search_terms_data()));
@@ -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
@@ -414,12 +417,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
@@ -449,6 +454,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
@@ -471,18 +478,21 @@ void SearchEnginesHandler::HandleSearchE
return;
}
@@ -448,7 +448,7 @@
syncer::kSeparateLocalAndAccountSearchEngines)
--- a/components/search_engines/template_url_service.h
+++ b/components/search_engines/template_url_service.h
@@ -342,7 +342,8 @@ class TemplateURLService final : public
@@ -346,7 +346,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
@@ -4615,7 +4615,13 @@ const FeatureEntry::FeatureVariation
// 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,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)
@@ -142,7 +142,7 @@
} // namespace download
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -129,7 +129,6 @@ source_set("browser") {
@@ -131,7 +131,6 @@ source_set("browser") {
"//components/performance_manager/scenario_api",
"//components/power_monitor",
"//components/services/filesystem:lib",
@@ -1,6 +1,6 @@
--- a/components/safe_browsing/core/common/features.cc
+++ b/components/safe_browsing/core/common/features.cc
@@ -121,7 +121,7 @@ BASE_FEATURE(kDlpRegionalizedEndpoints,
@@ -133,7 +133,7 @@ BASE_FEATURE(kDlpRegionalizedEndpoints,
BASE_FEATURE(kDownloadsPageReferrerUrl,
"DownloadsPageReferrerUrl",
@@ -13,7 +13,7 @@
--- a/chrome/browser/ui/toolbar/chrome_location_bar_model_delegate.cc
+++ b/chrome/browser/ui/toolbar/chrome_location_bar_model_delegate.cc
@@ -266,5 +266,5 @@ TemplateURLService* ChromeLocationBarMod
@@ -268,5 +268,5 @@ TemplateURLService* ChromeLocationBarMod
// static
void ChromeLocationBarModelDelegate::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
@@ -2,7 +2,7 @@
--- a/third_party/blink/common/features.cc
+++ b/third_party/blink/common/features.cc
@@ -2060,7 +2060,7 @@ BASE_FEATURE(kPrefetchFontLookupTables,
@@ -2089,7 +2089,7 @@ BASE_FEATURE(kPrefetchFontLookupTables,
// crbug.com/988956.
BASE_FEATURE(kPrefetchPrivacyChanges,
"PrefetchPrivacyChanges",
@@ -2,7 +2,7 @@
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -557,11 +557,6 @@ int GetContentRestrictions(const Browser
@@ -562,11 +562,6 @@ int GetContentRestrictions(const Browser
CoreTabHelper* core_tab_helper =
CoreTabHelper::FromWebContents(current_tab);
content_restrictions = core_tab_helper->content_restrictions();
@@ -14,7 +14,7 @@
}
return content_restrictions;
}
@@ -1712,8 +1707,7 @@ bool CanSavePage(const Browser* browser)
@@ -1822,8 +1817,7 @@ bool CanSavePage(const Browser* browser)
policy::DownloadRestriction::ALL_FILES) {
return false;
}
@@ -15,7 +15,7 @@
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -2185,8 +2185,6 @@ void TabStrip::NewTabButtonPressed(const
@@ -2208,8 +2208,6 @@ void TabStrip::NewTabButtonPressed(const
const ui::MouseEvent& mouse = static_cast<const ui::MouseEvent&>(event);
if (mouse.IsOnlyMiddleMouseButton()) {
@@ -24,7 +24,7 @@
ui::Clipboard* clipboard = ui::Clipboard::GetForCurrentThread();
CHECK(clipboard)
<< "Clipboard instance is not available, cannot proceed with "
@@ -2197,7 +2195,6 @@ void TabStrip::NewTabButtonPressed(const
@@ -2220,7 +2218,6 @@ void TabStrip::NewTabButtonPressed(const
if (!clipboard_text.empty()) {
controller_->CreateNewTabWithLocation(clipboard_text);
}
@@ -2,7 +2,7 @@
#
--- a/components/omnibox/common/omnibox_features.cc
+++ b/components/omnibox/common/omnibox_features.cc
@@ -326,7 +326,7 @@ BASE_FEATURE(kOmniboxTouchDownTriggerFor
@@ -320,7 +320,7 @@ BASE_FEATURE(kOmniboxTouchDownTriggerFor
// Enables additional site search providers for the Site search Starter Pack.
BASE_FEATURE(kStarterPackExpansion,
"StarterPackExpansion",
@@ -17,6 +17,7 @@
# Google sign-in and Anonymized Data Collection sections
# help bubble for the removed data collection section
# Privacy guide section on the privacy page
# The password leak detection toggle on the security settings page
# Advanced Protection Program link on the security settings page
# the 'Learn more' link from the search engine entry on the settings page
# Safety Check entry on the side menu on the settings page
@@ -25,7 +26,6 @@
# the 'Vist Chrome Web Store' entry in the extensions section of the main menu
# the side panel entry in All Bookmarks
# the feedback entry in the third party cookie popup
# unneeded elements from the profile menu
# the 'Learn more' link on crashed tabs
# the Third-party sign-in site settings (FedCM)
# non-functional AI options
@@ -53,7 +53,7 @@
<!-- Languages Page -->
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1211,7 +1211,7 @@
@@ -1216,7 +1216,7 @@
Active site
</message>
<message name="IDS_SETTINGS_PERFORMANCE_TAB_DISCARDING_EXCEPTIONS_ADD_DIALOG_HELP" desc="Help text shown on the second tab of the tab discarding exception list add dialog. Explains how to use the filter format to add an exclusion rule to the list.">
@@ -62,7 +62,7 @@
</message>
<message name="IDS_SETTINGS_PERFORMANCE_BATTERY_PAGE_TITLE" desc="Title of the power section in the performance settings page.">
Power
@@ -1235,7 +1235,7 @@
@@ -1240,7 +1240,7 @@
Inactive tabs appearance
</message>
<message name="IDS_SETTINGS_PERFORMANCE_DISCARD_RING_TREATMENT_ENABLED_DESCRIPTION_WITH_LEARN_LINK" desc="Label for a performance settings toggle description that controls whether the inactive tab UI is shown. Also contains a link to the help center article.">
@@ -71,7 +71,7 @@
</message>
<message name="IDS_SETTINGS_PERFORMANCE_TAB_HOVER_PREVIEW_CARD_LINK_TITLE" desc="Title for the link row that points to tab hover preview card apperance settings.">
Tab hover preview card appearance
@@ -1247,7 +1247,7 @@
@@ -1252,7 +1252,7 @@
Performance issue alerts
</message>
<message name="IDS_SETTINGS_PERFORMANCE_INTERVENTION_NOTIFICATION_ENABLED_DESCRIPTION" desc="Label for a performance settings toggle that controls whether performance intervention notifications should be shown and link to learn more about performance issue alerts.">
@@ -97,10 +97,18 @@
<span>$i18n{noSearchResults}</span>
--- a/chrome/browser/resources/extensions/sidebar.html.ts
+++ b/chrome/browser/resources/extensions/sidebar.html.ts
@@ -33,16 +33,6 @@ export function getHtml(this: Extensions
@@ -33,24 +33,6 @@ export function getHtml(this: Extensions
<cr-ripple></cr-ripple>
</a>
</cr-menu-selector>
-<div class="separator" ?hidden="${!this.inDevMode}"></div>
- ${this.inDevMode ? html`
- <div class="cr-nav-menu-item" id="moreExtensions">
- <span id="promo-message-text" class="cr-secondary-text"
- .innerHTML="${this.computeDocsPromoText_()}">
- </span>
- </div>
- `: ''}
-<div class="separator"></div>
-<div class="cr-nav-menu-item" id="moreExtensions">
- <cr-icon id="web-store-icon" icon="extensions-icons:web_store">
@@ -124,7 +132,7 @@
import {CrLitElement} from 'chrome://resources/lit/v3_0/lit.rollup.js';
import type {PropertyValues} from 'chrome://resources/lit/v3_0/lit.rollup.js';
@@ -111,13 +110,6 @@ export class ExtensionsSidebarElement ex
@@ -113,21 +112,6 @@ export class ExtensionsSidebarElement ex
}
}
@@ -134,6 +142,14 @@
- attrs: ['target'],
- substitutions: [loadTimeData.getString('getMoreExtensionsUrl')],
- });
- }
-
- protected computeDocsPromoText_(): TrustedHTML {
- return this.i18nAdvanced('sidebarDocsPromo', {
- tags: ['a'],
- attrs: ['target'],
- substitutions: [loadTimeData.getString('extensionsWhatsNewURL')],
- });
- }
}
@@ -177,7 +193,7 @@
<cr-link-row id="captions"
class="hr"
label="$i18n{captionsTitle}"
@@ -97,11 +97,6 @@
@@ -105,11 +105,6 @@
</settings-toggle-button>
</template>
</if>
@@ -235,7 +251,7 @@
<template is="dom-if"
--- a/chrome/browser/resources/settings/basic_page/basic_page.html
+++ b/chrome/browser/resources/settings/basic_page/basic_page.html
@@ -72,7 +72,7 @@
@@ -74,7 +74,7 @@
<!-- TODO(crbug.com/40267370): Add a test to basic_page_test.ts
to check that settings-safety-hub-entry-point is not visible
in the guest mode. -->
@@ -254,7 +270,7 @@
import '../privacy_page/privacy_page.js';
import '../safety_hub/safety_hub_entry_point.js';
import '../autofill_page/autofill_page.js';
@@ -277,7 +276,6 @@ export class SettingsBasicPageElement ex
@@ -283,7 +282,6 @@ export class SettingsBasicPageElement ex
this.showPrivacyGuidePromo_ = false;
return;
}
@@ -288,7 +304,7 @@
<cr-link-row id="historySearchRow"
--- a/chrome/browser/resources/settings/privacy_page/personalization_options.ts
+++ b/chrome/browser/resources/settings/privacy_page/personalization_options.ts
@@ -201,10 +201,6 @@ export class SettingsPersonalizationOpti
@@ -202,10 +202,6 @@ export class SettingsPersonalizationOpti
'chrome-signin-user-choice-info-change',
this.setChromeSigninUserChoiceInfo_.bind(this));
// </if>
@@ -319,7 +335,21 @@
class="hr" label="$i18n{thirdPartyCookiesLinkRowLabel}"
--- a/chrome/browser/resources/settings/privacy_page/security_page.html
+++ b/chrome/browser/resources/settings/privacy_page/security_page.html
@@ -237,9 +237,3 @@
@@ -113,13 +113,6 @@
<div class="cr-row first">
<h2 class="cr-title-text">$i18n{advancedPageTitle}</h2>
</div>
- <settings-toggle-button id="passwordsLeakToggle"
- label="$i18n{passwordsLeakDetectionLabel}"
- pref="{{prefs.generated.password_leak_detection}}"
- sub-label="[[getPasswordsLeakToggleSubLabel_(
- prefs.profile.password_manager_leak_detection.*,
- prefs.generated.password_leak_detection.*)]]">
- </settings-toggle-button>
<template is="dom-if" if="[[!enableHttpsFirstModeNewSettings_]]" restamp>
<settings-toggle-button id="httpsOnlyModeToggle"
pref="{{prefs.generated.https_first_mode_enabled}}"
@@ -229,9 +222,3 @@
</cr-link-row>
</if>
@@ -366,7 +396,7 @@
void RecentTabsSubMenuModel::BuildLocalEntries() {
--- a/chrome/browser/ui/toolbar/app_menu_model.cc
+++ b/chrome/browser/ui/toolbar/app_menu_model.cc
@@ -971,16 +971,6 @@ void ExtensionsMenuModel::Build(Browser*
@@ -954,16 +954,6 @@ void ExtensionsMenuModel::Build(Browser*
SetElementIdentifierAt(
GetIndexOfCommandId(IDC_EXTENSIONS_SUBMENU_MANAGE_EXTENSIONS).value(),
kManageExtensionsMenuItem);
@@ -385,7 +415,7 @@
////////////////////////////////////////////////////////////////////////////////
--- a/chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc
@@ -1237,12 +1237,14 @@ void BookmarkMenuDelegate::BuildOtherNod
@@ -1236,12 +1236,14 @@ void BookmarkMenuDelegate::BuildOtherNod
menu->AppendMenuItem(
IDC_SHOW_BOOKMARK_SIDE_PANEL,
l10n_util::GetStringUTF16(IDS_BOOKMARKS_ALL_BOOKMARKS_OPEN_SIDE_PANEL),
@@ -403,7 +433,7 @@
}
--- a/chrome/browser/ui/views/location_bar/cookie_controls/cookie_controls_content_view.cc
+++ b/chrome/browser/ui/views/location_bar/cookie_controls/cookie_controls_content_view.cc
@@ -213,14 +213,7 @@ void CookieControlsContentView::SetEnfor
@@ -148,14 +148,7 @@ void CookieControlsContentView::SetEnfor
}
void CookieControlsContentView::SetFeedbackSectionVisibility(bool visible) {
@@ -417,35 +447,7 @@
- }
}
void CookieControlsContentView::AddDescriptionRow() {
--- a/chrome/browser/ui/views/profiles/profile_menu_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_menu_view.cc
@@ -224,6 +224,7 @@ void ProfileMenuView::BuildMenu() {
}
gfx::ImageSkia ProfileMenuView::GetSyncIcon() const {
+ return gfx::ImageSkia();
Profile* profile = browser()->profile();
if (profile->IsOffTheRecord() || profile->IsGuestSession()) {
return gfx::ImageSkia();
@@ -646,16 +647,8 @@ void ProfileMenuView::BuildIdentity() {
badge_image_model, menu_title_, menu_subtitle_, management_label);
} else {
std::string profile_user_display_name, profile_user_email;
-#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX)
- profile_user_display_name = profile->GetPrefs()->GetString(
- enterprise_signin::prefs::kProfileUserDisplayName);
- profile_user_email = profile->GetPrefs()->GetString(
- enterprise_signin::prefs::kProfileUserEmail);
-#endif
menu_title_ =
- profile_user_display_name.empty()
- ? l10n_util::GetStringUTF16(IDS_PROFILES_LOCAL_PROFILE_STATE)
- : base::UTF8ToUTF16(profile_user_display_name);
+ base::UTF8ToUTF16(profile_user_display_name);
// The email may be empty.
menu_subtitle_ = base::UTF8ToUTF16(
profile_user_email.empty() ? account_info.email : profile_user_email);
void CookieControlsContentView::AddToggleRow() {
--- a/chrome/browser/ui/views/sad_tab_view.cc
+++ b/chrome/browser/ui/views/sad_tab_view.cc
@@ -574,9 +574,6 @@ SadTabView::SadTabView(content::WebConte
@@ -483,7 +485,7 @@
// Specify the maximum message and title width explicitly.
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -928,40 +928,20 @@ void AddPerformanceStrings(content::WebU
@@ -959,40 +959,20 @@ void AddPerformanceStrings(content::WebU
IDS_SETTINGS_PERFORMANCE_TAB_HOVER_PREVIEW_CARD_LINK_SUBTITLE},
{"performanceInterventionEnabledLabel",
IDS_SETTINGS_PERFORMANCE_INTERVENTION_NOTIFICATION_ENABLED_LABEL},
@@ -533,7 +535,7 @@
html_source->AddString(
"tabDiscardTimerFiveMinutes",
@@ -1007,11 +987,6 @@ void AddPerformanceStrings(content::WebU
@@ -1038,11 +1018,6 @@ void AddPerformanceStrings(content::WebU
base::NumberToString16(
performance_manager::user_tuning::BatterySaverModeManager::
kLowBatteryThresholdPercent)));
@@ -545,7 +547,7 @@
html_source->AddString("discardRingTreatmentLearnMoreUrl",
chrome::kDiscardRingTreatmentLearnMoreUrl);
@@ -3475,7 +3450,7 @@ void AddSiteSettingsStrings(content::Web
@@ -3494,7 +3469,7 @@ void AddSiteSettingsStrings(content::Web
base::FeatureList::IsEnabled(blink::features::kWebPrinting));
html_source->AddBoolean("enableFederatedIdentityApiContentSetting",
@@ -556,7 +558,7 @@
html_source->AddBoolean(
--- a/chrome/browser/ui/webui/settings/settings_ui.cc
+++ b/chrome/browser/ui/webui/settings/settings_ui.cc
@@ -640,13 +640,7 @@ SettingsUI::SettingsUI(content::WebUI* w
@@ -673,13 +673,7 @@ SettingsUI::SettingsUI(content::WebUI* w
auto* optimization_guide_service =
OptimizationGuideKeyedServiceFactory::GetForProfile(profile);
for (auto [key, name] : optimization_guide_features) {
@@ -570,10 +572,10 @@
+ html_source->AddBoolean(name, false);
}
is_any_ai_feature_enabled |= glic_enabled;
html_source->AddBoolean("showAdvancedFeaturesMainControl",
--- a/media/base/media_switches.cc
+++ b/media/base/media_switches.cc
@@ -863,7 +863,7 @@ BASE_FEATURE(kOnDeviceWebSpeech,
@@ -852,7 +852,7 @@ BASE_FEATURE(kOnDeviceWebSpeech,
base::FEATURE_DISABLED_BY_DEFAULT);
// Enables the Live Caption feature on supported devices.
@@ -101,7 +101,7 @@
Learn more about fixing update errors
--- a/components/webui/version/resources/about_version.html
+++ b/components/webui/version/resources/about_version.html
@@ -53,11 +53,21 @@ about:version template page
@@ -54,11 +54,21 @@ about:version template page
<table id="inner" cellpadding="0" cellspacing="0" border="0">
<tr><td class="label">$i18n{application_label}</td>
<td class="version" id="version">
+1 -1
View File
@@ -1,6 +1,6 @@
--- a/third_party/search_engines_data/resources/definitions/regional_settings.json
+++ b/third_party/search_engines_data/resources/definitions/regional_settings.json
@@ -9,7 +9,8 @@
@@ -10,7 +10,8 @@
"&ecosia",
"&bing",
"&break_stuff_google",
+124 -18
View File
@@ -34,7 +34,7 @@
#endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_DATA_UTIL_H_
--- a/components/search_engines/BUILD.gn
+++ b/components/search_engines/BUILD.gn
@@ -36,6 +36,8 @@ static_library("search_engines") {
@@ -35,6 +35,8 @@ static_library("search_engines") {
"search_terms_data.h",
"template_url.cc",
"template_url.h",
@@ -43,7 +43,7 @@
"template_url_data.cc",
"template_url_data.h",
"template_url_data_util.cc",
@@ -80,6 +82,7 @@ static_library("search_engines") {
@@ -79,6 +81,7 @@ static_library("search_engines") {
"//components/country_codes",
"//components/crash/core/common:crash_key",
"//components/database_utils",
@@ -142,7 +142,7 @@
search_engine_choice_service,
prepopulate_data_resolver,
/*search_terms_data=*/std::make_unique<SearchTermsData>(),
@@ -622,6 +632,10 @@ bool TemplateURLService::ShowInActivesLi
@@ -624,6 +634,10 @@ bool TemplateURLService::ShowInActivesLi
}
bool TemplateURLService::HiddenFromLists(const TemplateURL* t_url) const {
@@ -152,7 +152,7 @@
+
switch (t_url->policy_origin()) {
case TemplateURLData::PolicyOrigin::kNoPolicy:
// Hide if the preferred search engine for the keyword is created by
// Hide if another engine (e.g., one set by policy) takes precedence for
@@ -1481,11 +1495,37 @@ void TemplateURLService::Load() {
if (web_data_service_) {
@@ -191,7 +191,7 @@
base::CallbackListSubscription TemplateURLService::RegisterOnLoadedCallback(
base::OnceClosure callback) {
return loaded_ ? base::CallbackListSubscription()
@@ -2356,6 +2396,13 @@ void TemplateURLService::Init() {
@@ -2478,6 +2518,13 @@ void TemplateURLService::Init() {
base::Unretained(this)));
}
@@ -220,7 +220,7 @@
#if BUILDFLAG(IS_ANDROID)
#include "base/android/scoped_java_ref.h"
#endif
@@ -146,6 +148,7 @@ class TemplateURLService final : public
@@ -150,6 +152,7 @@ class TemplateURLService final : public
TemplateURLService(
PrefService& prefs,
@@ -228,7 +228,7 @@
search_engines::SearchEngineChoiceService& search_engine_choice_service,
TemplateURLPrepopulateData::Resolver& prepopulate_data_resolver,
std::unique_ptr<SearchTermsData> search_terms_data,
@@ -157,6 +160,7 @@ class TemplateURLService final : public
@@ -161,6 +164,7 @@ class TemplateURLService final : public
// some template URL data.
explicit TemplateURLService(
PrefService& prefs,
@@ -236,7 +236,7 @@
search_engines::SearchEngineChoiceService& search_engine_choice_service,
TemplateURLPrepopulateData::Resolver& prepopulate_data_resolver,
base::span<const TemplateURLService::Initializer> initializers = {});
@@ -476,6 +480,8 @@ class TemplateURLService final : public
@@ -480,6 +484,8 @@ class TemplateURLService final : public
// OnTemplateURLServiceChanged.
void Load();
@@ -245,7 +245,7 @@
// Registers a callback to be called when the service has loaded.
//
// If the service has already loaded, this function does nothing.
@@ -704,6 +710,8 @@ class TemplateURLService final : public
@@ -708,6 +714,8 @@ class TemplateURLService final : public
void Init();
@@ -254,7 +254,7 @@
// Simulate a loaded `TemplateURLService`.
void ApplyInitializersForTesting(
base::span<const TemplateURLService::Initializer> initializers);
@@ -905,6 +913,10 @@ class TemplateURLService final : public
@@ -911,6 +919,10 @@ class TemplateURLService final : public
// Service used to store entries.
scoped_refptr<KeywordWebDataService> web_data_service_;
@@ -267,7 +267,7 @@
// This closure is run when the default search provider is set to Google.
--- /dev/null
+++ b/components/search_engines/template_url_bang_manager.cc
@@ -0,0 +1,174 @@
@@ -0,0 +1,197 @@
+// Copyright 2025 The Helium Authors
+// You can use, redistribute, and/or modify this source code under
+// the terms of the GPL-3.0 license that can be found in the LICENSE file.
@@ -277,6 +277,7 @@
+#include <memory>
+#include <string>
+#include <vector>
+#include <map>
+
+#include "base/functional/bind.h"
+#include "base/functional/callback.h"
@@ -316,8 +317,25 @@
+
+BangManager* BangManager::GetInstance() {
+ return base::Singleton<
+ BangManager,
+ base::DefaultSingletonTraits<BangManager>>::get();
+ BangManager,
+ base::DefaultSingletonTraits<BangManager>
+ >::get();
+}
+
+BangCategory BangManager::GetCategoryForBang(size_t index) const {
+ if (auto category = category_map_.find(index - 1); category != category_map_.end()) {
+ return category->second;
+ }
+
+ return BANG_CATEGORY_OTHER;
+}
+
+BangCategory BangManager::GetCategoryFromJSONObject(std::string_view sc) const {
+ if (sc == "ai") {
+ return BANG_CATEGORY_AI;
+ }
+
+ return BANG_CATEGORY_OTHER;
+}
+
+void BangManager::LoadBangs(
@@ -421,6 +439,11 @@
+ continue;
+ }
+
+ auto bcategory = dict.FindString("sc");
+ if (bcategory) {
+ category_map_[index] = GetCategoryFromJSONObject(*bcategory);
+ }
+
+ // We need to pass the URL here as-is, because otherwise URLs
+ // which have the template in the path will have it %-encoded,
+ // which will break everything.
@@ -444,7 +467,7 @@
+
--- /dev/null
+++ b/components/search_engines/template_url_bang_manager.h
@@ -0,0 +1,65 @@
@@ -0,0 +1,75 @@
+// Copyright 2025 The Helium Authors
+// You can use, redistribute, and/or modify this source code under
+// the terms of the GPL-3.0 license that can be found in the LICENSE file.
@@ -455,6 +478,7 @@
+#include <memory>
+#include <string>
+#include <vector>
+#include <map>
+
+#include "base/memory/weak_ptr.h"
+#include "base/functional/callback.h"
@@ -474,6 +498,11 @@
+ std::string template_url;
+ };
+
+ enum BangCategory {
+ BANG_CATEGORY_OTHER = 0,
+ BANG_CATEGORY_AI,
+ };
+
+ class BangManager {
+ public:
+ static BangManager* GetInstance();
@@ -482,6 +511,8 @@
+ BangManager(const BangManager&) = delete;
+ BangManager& operator=(const BangManager&) = delete;
+
+ BangCategory GetCategoryForBang(size_t index) const;
+
+ void LoadBangs(
+ scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
+ PrefService& prefs,
@@ -496,6 +527,7 @@
+ );
+ void OnSimpleLoaderComplete(std::unique_ptr<std::string> response_body);
+ void LoadManifestFromString(const std::string& manifest);
+ BangCategory GetCategoryFromJSONObject(std::string_view sc) const;
+
+ // Weak factory for callbacks.
+ base::WeakPtrFactory<BangManager> weak_ptr_factory_{this};
@@ -505,6 +537,7 @@
+ std::vector<Bang> bangs_;
+ bool load_pending_;
+ std::vector<base::OnceClosure> callbacks_;
+ std::map<size_t, BangCategory> category_map_;
+ };
+}
+
@@ -524,6 +557,54 @@
return FeaturedKeywordMode::kPrefix;
return FeaturedKeywordMode::kFalse;
}
@@ -913,6 +913,7 @@ std::u16string AutocompleteInput::Autoco
const std::u16string& input,
bool trim_leading_whitespace,
std::u16string* remaining_input) {
+ std::u16string_view input_view = input;
// Find end of first token. The AutocompleteController has trimmed leading
// whitespace, so we need not skip over that.
const size_t first_white(input.find_first_of(base::kWhitespaceUTF16));
@@ -921,6 +922,39 @@ std::u16string AutocompleteInput::Autoco
return input; // Only one token provided.
}
+ const size_t first_exclamation(input.find_first_of('!'));
+ if (first_exclamation != std::u16string::npos && first_exclamation != 0) {
+ bool might_be_bang = input_view.substr(first_exclamation - 1)
+ .find_first_of(base::kWhitespaceUTF16) == 0;
+
+ if (might_be_bang) {
+ auto remaining_str = std::u16string(input_view.substr(0, first_exclamation));
+ std::u16string_view bang = input_view.substr(first_exclamation);
+
+ const size_t space_after(
+ input_view.find_first_of(base::kWhitespaceUTF16, first_exclamation)
+ );
+
+ if (space_after != std::string::npos) {
+ bang = bang.substr(0, space_after - first_exclamation);
+ remaining_str += input_view.substr(space_after + 1);
+ } else if (remaining_str.size() > 0) {
+ remaining_str.erase(remaining_str.size() - 1);
+ }
+
+ if (remaining_input != nullptr) {
+ if (trim_leading_whitespace) {
+ size_t offset = remaining_str.find_first_not_of(base::kWhitespaceUTF16);
+ remaining_str.erase(0, offset);
+ }
+
+ *remaining_input = std::move(remaining_str);
+ }
+
+ return std::u16string(bang);
+ }
+ }
+
// Set |remaining_input| to everything after the first token.
if (remaining_input != nullptr) {
const size_t remaining_start =
--- a/components/search_engines/template_url_data.cc
+++ b/components/search_engines/template_url_data.cc
@@ -27,7 +27,7 @@ namespace {
@@ -565,7 +646,7 @@
size_t TemplateURLData::EstimateMemoryUsage() const {
--- a/components/search_engines/template_url_data.h
+++ b/components/search_engines/template_url_data.h
@@ -253,6 +253,9 @@ struct TemplateURLData {
@@ -256,6 +256,9 @@ struct TemplateURLData {
// starter_pack_id > 0.
int starter_pack_id{0};
@@ -623,7 +704,7 @@
COMPONENT_EXPORT(HELIUM) GURL GetDummyURL();
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -1841,6 +1841,9 @@ void AddPrivacyStrings(content::WebUIDat
@@ -1876,6 +1876,9 @@ void AddPrivacyStrings(content::WebUIDat
{"heliumServicesToggle", IDS_SETTINGS_HELIUM_SERVICES_TOGGLE},
{"heliumServicesToggleDescription",
IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION},
@@ -635,7 +716,7 @@
{"heliumExtProxyToggleDescription",
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -2113,6 +2113,12 @@
@@ -2112,6 +2112,12 @@
<message name="IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of downloading and proxying extensions">
When enabled, Helium will proxy extension downloads and updates to protect your privacy. When disabled, downloading and updating extensions will not work.
</message>
@@ -674,7 +755,7 @@
registry->RegisterBooleanPref(prefs::kHeliumDidOnboarding, false);
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -347,6 +347,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -349,6 +349,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kHeliumExtProxyEnabled] =
settings_api::PrefType::kBoolean;
@@ -695,3 +776,28 @@
} // namespace prefs
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
--- a/components/omnibox/browser/omnibox_edit_model.cc
+++ b/components/omnibox/browser/omnibox_edit_model.cc
@@ -1722,7 +1722,10 @@ void OmniboxEditModel::InternalSetUserTe
std::u16string OmniboxEditModel::MaybeStripKeyword(
const std::u16string& text) const {
- return is_keyword_selected()
+ std::u16string actual_keyword = base::ToLowerASCII(
+ AutocompleteInput::SplitKeywordFromInput(text, false, nullptr));
+
+ return is_keyword_selected() && actual_keyword == keyword_
? AutocompleteInput::SplitReplacementStringFromInput(text, false)
: text;
}
@@ -2976,9 +2979,8 @@ bool OmniboxEditModel::MaybeAcceptKeywor
return false;
size_t keyword_length = new_text.length() - 1;
- return is_keyword_hint_ && (keyword_.length() == keyword_length) &&
+ return is_keyword_hint_ &&
IsSpaceCharForAcceptingKeyword(new_text[keyword_length]) &&
- !new_text.compare(0, keyword_length, keyword_, 0, keyword_length) &&
AcceptKeyword(OmniboxEventProto::SPACE_AT_END);
}
@@ -0,0 +1,29 @@
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
@@ -2216,7 +2216,6 @@ void RenderViewContextMenu::AppendPageIt
IDS_CONTENT_CONTEXT_SAVEPAGEAS);
menu_model_.AddItemWithStringId(IDC_PRINT, IDS_CONTENT_CONTEXT_PRINT);
AppendLiveCaptionItem();
- AppendMediaRouterItem();
if (IsRegionSearchEnabled()) {
AppendRegionSearchItem();
}
@@ -2344,8 +2344,7 @@ void RenderViewContextMenu::AppendMediaR
void RenderViewContextMenu::AppendReadingModeItem() {
// Show Read Anything option if it's not already open in the side panel.
- if (GetBrowser() && GetBrowser()->is_type_normal() &&
- !IsReadAnythingEntryShowing(GetBrowser())) {
+ if ((false)) {
menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_OPEN_IN_READING_MODE,
IDS_CONTENT_CONTEXT_READING_MODE);
}
@@ -3975,6 +3974,8 @@ bool RenderViewContextMenu::IsVideoFrame
bool RenderViewContextMenu::AppendQRCodeGeneratorItem(bool for_image,
bool draw_icon,
bool add_separator) {
+ return false;
+
if (!IsQRCodeGeneratorEnabled()) {
return false;
}
@@ -11,7 +11,7 @@
"G", IDC_FIND_NEXT, VIRTKEY, CONTROL
--- a/chrome/browser/global_keyboard_shortcuts_mac.mm
+++ b/chrome/browser/global_keyboard_shortcuts_mac.mm
@@ -144,7 +144,7 @@ const std::vector<KeyboardShortcutData>&
@@ -145,7 +145,7 @@ const std::vector<KeyboardShortcutData>&
{true, true, false, false, kVK_ANSI_M, IDC_SHOW_AVATAR_MENU},
{true, false, false, true, kVK_ANSI_L, IDC_SHOW_DOWNLOADS},
@@ -27,13 +27,13 @@
{IDC_DEV_TOOLS, ui::EF_COMMAND_DOWN | ui::EF_ALT_DOWN, ui::VKEY_I},
{IDC_DEV_TOOLS_CONSOLE, ui::EF_COMMAND_DOWN | ui::EF_ALT_DOWN, ui::VKEY_J},
- {IDC_DEV_TOOLS_INSPECT, ui::EF_COMMAND_DOWN | ui::EF_ALT_DOWN, ui::VKEY_C},
+ {IDC_COPY_URL, ui::EF_COMMAND_DOWN | ui::EF_ALT_DOWN, ui::VKEY_C},
+ {IDC_COPY_URL, ui::EF_COMMAND_DOWN | ui::EF_SHIFT_DOWN, ui::VKEY_C},
{IDC_FIND, ui::EF_COMMAND_DOWN, ui::VKEY_F},
{IDC_NEW_INCOGNITO_WINDOW, ui::EF_COMMAND_DOWN | ui::EF_SHIFT_DOWN,
ui::VKEY_N},
--- a/chrome/browser/ui/views/accelerator_table.cc
+++ b/chrome/browser/ui/views/accelerator_table.cc
@@ -257,7 +257,7 @@ const AcceleratorMapping kDevToolsAccele
@@ -265,7 +265,7 @@ const AcceleratorMapping kDevToolsAccele
{ui::VKEY_J, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN,
IDC_DEV_TOOLS_CONSOLE},
{ui::VKEY_C, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN,
@@ -1,6 +1,6 @@
--- a/components/bookmarks/browser/bookmark_utils.cc
+++ b/components/bookmarks/browser/bookmark_utils.cc
@@ -456,14 +456,14 @@ bool DoesBookmarkContainWords(const std:
@@ -457,14 +457,14 @@ bool DoesBookmarkContainWords(const std:
void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(
@@ -1,6 +1,6 @@
--- a/components/live_caption/caption_util.cc
+++ b/components/live_caption/caption_util.cc
@@ -126,6 +126,7 @@ std::optional<ui::CaptionStyle> GetCapti
@@ -127,6 +127,7 @@ std::optional<ui::CaptionStyle> GetCapti
}
bool IsLiveCaptionFeatureSupported() {
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/ui_features.cc
+++ b/chrome/browser/ui/ui_features.cc
@@ -155,12 +155,7 @@ BASE_FEATURE(kTabGroupsCollapseFreezing,
@@ -157,12 +157,7 @@ BASE_FEATURE(kTabGroupsCollapseFreezing,
// https://crbug.com/928954
BASE_FEATURE(kTabHoverCardImages,
"TabHoverCardImages",
@@ -0,0 +1,43 @@
--- a/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
+++ b/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
@@ -240,8 +240,7 @@ void PinnedToolbarActionsModel::MaybeMig
UpdatePinnedState(kActionShowChromeLabs, true);
pref_service_->SetBoolean(prefs::kPinnedChromeLabsMigrationComplete, true);
}
- if (features::HasTabSearchToolbarButton() &&
- !pref_service_->GetBoolean(prefs::kTabSearchMigrationComplete)) {
+ if ((false)) {
UpdatePinnedState(kActionTabSearch, true);
pref_service_->SetBoolean(prefs::kTabSearchMigrationComplete, true);
}
--- a/chrome/browser/ui/toolbar/toolbar_pref_names.cc
+++ b/chrome/browser/ui/toolbar/toolbar_pref_names.cc
@@ -23,7 +23,7 @@ void RegisterProfilePrefs(user_prefs::Pr
default_pinned_actions.Append(chrome_labs_action.value());
}
- if (features::HasTabSearchToolbarButton()) {
+ if ((false)) {
const std::optional<std::string>& tab_search_action =
actions::ActionIdMap::ActionIdToString(kActionTabSearch);
if (tab_search_action.has_value()) {
--- a/chrome/common/chrome_features.cc
+++ b/chrome/common/chrome_features.cc
@@ -535,7 +535,7 @@ BASE_FEATURE(kGlicUnloadOnClose,
BASE_FEATURE(kTabstripComboButton,
"TabstripComboButton",
- base::FEATURE_DISABLED_BY_DEFAULT);
+ base::FEATURE_ENABLED_BY_DEFAULT);
bool IsTabSearchMoving() {
return base::FeatureList::IsEnabled(features::kTabstripComboButton) &&
@@ -549,7 +549,7 @@ const base::FeatureParam<bool> kTabstrip
&kTabstripComboButton, "reverse_button_order", false};
const base::FeatureParam<bool> kTabSearchToolbarButton{
- &kTabstripComboButton, "tab_search_toolbar_button", false};
+ &kTabstripComboButton, "tab_search_toolbar_button", true};
bool HasTabstripComboButtonWithBackground() {
return IsTabSearchMoving() &&
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -32,7 +32,6 @@
@@ -31,7 +31,6 @@
#include "chrome/browser/profiles/profile_attributes_storage.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/profiles/profile_shortcut_manager.h"
@@ -8,7 +8,7 @@
#include "chrome/browser/signin/account_consistency_mode_manager.h"
#include "chrome/browser/signin/account_consistency_mode_manager_factory.h"
#include "chrome/browser/signin/chrome_signin_client_factory.h"
@@ -85,7 +84,6 @@
@@ -84,7 +83,6 @@
#include "components/plus_addresses/grit/plus_addresses_strings.h"
#include "components/plus_addresses/plus_address_service.h"
#include "components/prefs/pref_service.h"
@@ -16,7 +16,7 @@
#include "components/safe_browsing/core/common/features.h"
#include "components/safe_browsing/core/common/hashprefix_realtime/hash_realtime_utils.h"
#include "components/saved_tab_groups/public/features.h"
@@ -2382,14 +2380,9 @@ void AddSearchStrings(content::WebUIData
@@ -2414,14 +2412,9 @@ void AddSearchStrings(content::WebUIData
html_source->AddString("searchExplanationLearnMoreURL",
chrome::kOmniboxLearnMoreURL);
@@ -34,8 +34,8 @@
"saveGuestChoiceText", IDS_SEARCH_ENGINE_CHOICE_GUEST_SESSION_CHECKBOX);
--- a/components/regional_capabilities/regional_capabilities_utils.cc
+++ b/components/regional_capabilities/regional_capabilities_utils.cc
@@ -16,6 +16,9 @@
namespace regional_capabilities {
@@ -54,6 +54,9 @@ void ShufflePrepopulatedEngines(std::vec
} // namespace
bool IsEeaCountry(country_codes::CountryId country_id) {
+ if ((true))
@@ -0,0 +1,224 @@
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -223,6 +223,10 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
(*s_allowlist)[::prefs::kPinSplitTabButton] =
settings_api::PrefType::kBoolean;
+ // Custom toolbar button settings.
+ (*s_allowlist)[::prefs::kShowAvatarButton] =
+ settings_api::PrefType::kBoolean;
+
// Appearance settings.
(*s_allowlist)[::prefs::kCurrentThemeID] = settings_api::PrefType::kString;
(*s_allowlist)[::prefs::kPinnedActions] = settings_api::PrefType::kList;
--- a/chrome/browser/ui/actions/chrome_action_id.h
+++ b/chrome/browser/ui/actions/chrome_action_id.h
@@ -544,6 +544,7 @@
#define TOOLBAR_PINNABLE_ACTION_IDS \
E(kActionHome, IDC_HOME) \
E(kActionForward, IDC_FORWARD) \
+ E(kActionAvatar, IDC_SHOW_AVATAR_MENU) \
E(kActionNewIncognitoWindow, IDC_NEW_INCOGNITO_WINDOW) \
E(kActionSendSharedTabGroupFeedback, IDC_SEND_SHARED_TAB_GROUP_FEEDBACK) \
E(kActionShowPasswordManager, IDC_SHOW_PASSWORD_MANAGER) \
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -93,6 +93,9 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterBooleanPref(prefs::kPinSplitTabButton, false,
pref_registration_flags);
+ registry->RegisterBooleanPref(
+ prefs::kShowAvatarButton, true);
+
registry->RegisterInt64Pref(prefs::kDefaultBrowserLastDeclined, 0);
registry->RegisterBooleanPref(prefs::kWebAppCreateOnDesktop, true);
registry->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, true);
--- a/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
+++ b/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
@@ -216,6 +216,7 @@ void PinnedToolbarActionsModel::UpdatePi
void PinnedToolbarActionsModel::ResetToDefault() {
pref_service_->ClearPref(prefs::kShowHomeButton);
pref_service_->ClearPref(prefs::kShowForwardButton);
+ pref_service_->ClearPref(prefs::kShowAvatarButton);
pref_service_->ClearPref(prefs::kPinnedActions);
}
@@ -229,7 +230,10 @@ bool PinnedToolbarActionsModel::IsDefaul
const bool forward_is_default =
pref_service_->GetDefaultPrefValue(prefs::kShowForwardButton)
->GetBool() == pref_service_->GetBoolean(prefs::kShowForwardButton);
- return action_are_default && home_is_default && forward_is_default;
+ const bool avatar_is_default =
+ pref_service_->GetDefaultPrefValue(prefs::kShowAvatarButton)
+ ->GetBool() == pref_service_->GetBoolean(prefs::kShowAvatarButton);
+ return action_are_default && home_is_default && forward_is_default && avatar_is_default;
}
void PinnedToolbarActionsModel::MaybeMigrateExistingPinnedStates() {
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
@@ -461,8 +461,7 @@ void ToolbarView::Init() {
#else
// DevTools profiles are OffTheRecord, so hide it there.
show_avatar_toolbar_button = browser_->profile()->IsIncognitoProfile() ||
- browser_->profile()->IsGuestSession() ||
- browser_->profile()->IsRegularProfile();
+ browser_->profile()->IsGuestSession();
#endif
const std::string sab_value = base::CommandLine::ForCurrentProcess()->
@@ -531,6 +530,17 @@ void ToolbarView::Init() {
home_->SetVisible(show_home_button_.GetValue());
+ show_avatar_button_.Init(
+ prefs::kShowAvatarButton, prefs,
+ base::BindRepeating(&ToolbarView::OnShowAvatarButtonChanged,
+ base::Unretained(this)));
+
+ // avatar is always shown in incognito and guest profiles,
+ // but in regular profiles it's managed by the kShowAvatarButton pref
+ if (browser_->profile()->IsRegularProfile()) {
+ avatar_->SetVisible(show_avatar_button_.GetValue());
+ }
+
InitLayout();
for (auto* button : std::array<views::Button*, 5>{back_, forward_, reload_,
@@ -1241,6 +1251,10 @@ void ToolbarView::OnShowHomeButtonChange
home_->SetVisible(show_home_button_.GetValue());
}
+void ToolbarView::OnShowAvatarButtonChanged() {
+ avatar_->SetVisible(show_avatar_button_.GetValue());
+}
+
void ToolbarView::OnTouchUiChanged() {
if (display_mode_ == DisplayMode::NORMAL) {
// Update the internal margins for touch layout.
--- a/chrome/browser/ui/views/toolbar/toolbar_view.h
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.h
@@ -279,6 +279,8 @@ class ToolbarView : public views::Access
void OnShowHomeButtonChanged();
+ void OnShowAvatarButtonChanged();
+
void OnTouchUiChanged();
void UpdateClipPath();
@@ -330,6 +332,8 @@ class ToolbarView : public views::Access
// Controls whether or not a home button should be shown on the toolbar.
BooleanPrefMember show_home_button_;
+ BooleanPrefMember show_avatar_button_;
+
BooleanPrefMember show_chrome_labs_button_;
// The display mode used when laying out the toolbar.
--- a/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar.mojom
+++ b/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar.mojom
@@ -16,6 +16,7 @@ enum ActionId {
kShowSearchCompanion,
kHome,
kForward,
+ kAvatar,
kNewIncognitoWindow,
kShowPasswordManager,
kShowPaymentMethods,
--- a/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.cc
+++ b/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.cc
@@ -50,6 +50,8 @@ MojoActionForChromeAction(actions::Actio
return side_panel::customize_chrome::mojom::ActionId::kHome;
case kActionForward:
return side_panel::customize_chrome::mojom::ActionId::kForward;
+ case kActionAvatar:
+ return side_panel::customize_chrome::mojom::ActionId::kAvatar;
case kActionNewIncognitoWindow:
return side_panel::customize_chrome::mojom::ActionId::kNewIncognitoWindow;
case kActionShowPasswordsBubbleOrPage:
@@ -109,6 +111,8 @@ std::optional<actions::ActionId> ChromeA
return kActionHome;
case side_panel::customize_chrome::mojom::ActionId::kForward:
return kActionForward;
+ case side_panel::customize_chrome::mojom::ActionId::kAvatar:
+ return kActionAvatar;
case side_panel::customize_chrome::mojom::ActionId::kNewIncognitoWindow:
return kActionNewIncognitoWindow;
case side_panel::customize_chrome::mojom::ActionId::kShowPasswordManager:
@@ -174,6 +178,10 @@ CustomizeToolbarHandler::CustomizeToolba
prefs::kPinSplitTabButton,
base::BindRepeating(&CustomizeToolbarHandler::OnPinSplitTabButtonChanged,
base::Unretained(this)));
+ pref_change_registrar_.Add(
+ prefs::kShowAvatarButton,
+ base::BindRepeating(&CustomizeToolbarHandler::OnShowAvatarButtonChanged,
+ base::Unretained(this)));
}
CustomizeToolbarHandler::~CustomizeToolbarHandler() = default;
@@ -219,6 +227,19 @@ void CustomizeToolbarHandler::ListAction
actions.push_back(std::move(home_action));
actions.push_back(std::move(forward_action));
+ auto avatar_action = side_panel::customize_chrome::mojom::Action::New(
+ MojoActionForChromeAction(kActionAvatar).value(),
+ base::UTF16ToUTF8(l10n_util::GetStringUTF16(IDS_PROFILES_MENU_NAME)),
+ prefs()->GetBoolean(prefs::kShowAvatarButton), false,
+ side_panel::customize_chrome::mojom::CategoryId::kYourChrome,
+ GURL(webui::EncodePNGAndMakeDataURI(
+ ui::ImageModel::FromVectorIcon(
+ vector_icons::kAccountCircleChromeRefreshIcon, icon_color_id)
+ .Rasterize(&provider),
+ scale_factor)));
+
+ actions.push_back(std::move(avatar_action));
+
if (base::FeatureList::IsEnabled(features::kSideBySide)) {
auto split_tab_action = side_panel::customize_chrome::mojom::Action::New(
MojoActionForChromeAction(kActionSplitTab).value(),
@@ -369,6 +390,9 @@ void CustomizeToolbarHandler::PinAction(
case kActionSplitTab:
prefs()->SetBoolean(prefs::kPinSplitTabButton, pin);
break;
+ case kActionAvatar:
+ prefs()->SetBoolean(prefs::kShowAvatarButton, pin);
+ break;
default:
model_->UpdatePinnedState(chrome_action.value(), pin);
const std::optional<std::string> metrics_name =
@@ -422,6 +446,11 @@ void CustomizeToolbarHandler::OnPinSplit
prefs()->GetBoolean(prefs::kPinSplitTabButton));
}
+void CustomizeToolbarHandler::OnShowAvatarButtonChanged() {
+ OnActionPinnedChanged(kActionAvatar,
+ prefs()->GetBoolean(prefs::kShowAvatarButton));
+}
+
void CustomizeToolbarHandler::OnActionItemChanged() {
client_->NotifyActionsUpdated();
}
--- a/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.h
+++ b/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.h
@@ -54,6 +54,7 @@ class CustomizeToolbarHandler
void OnShowHomeButtonChanged();
void OnShowForwardButtonChanged();
void OnPinSplitTabButtonChanged();
+ void OnShowAvatarButtonChanged();
void OnActionItemChanged();
PrefService* prefs() const;
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -1324,6 +1324,10 @@ inline constexpr char kShowForwardButton
// toolbar.
inline constexpr char kPinSplitTabButton[] = "browser.pin_split_tab_button";
+// A boolean pref set to true if the Avatar button should be visible on the
+// toolbar.
+inline constexpr char kShowAvatarButton[] = "helium.browser.show_avatar_button";
+
// A boolean pref set to true if Gemini integration be enabled. This is managed
// by enterprise policy.
inline constexpr char kGeminiSettings[] = "browser.gemini_settings";
@@ -0,0 +1,234 @@
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -226,6 +226,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
// Custom toolbar button settings.
(*s_allowlist)[::prefs::kShowAvatarButton] =
settings_api::PrefType::kBoolean;
+ (*s_allowlist)[::prefs::kShowExtensionsButton] =
+ settings_api::PrefType::kBoolean;
// Appearance settings.
(*s_allowlist)[::prefs::kCurrentThemeID] = settings_api::PrefType::kString;
--- a/chrome/browser/ui/actions/chrome_action_id.h
+++ b/chrome/browser/ui/actions/chrome_action_id.h
@@ -545,6 +545,7 @@
E(kActionHome, IDC_HOME) \
E(kActionForward, IDC_FORWARD) \
E(kActionAvatar, IDC_SHOW_AVATAR_MENU) \
+ E(kActionExtensions) \
E(kActionNewIncognitoWindow, IDC_NEW_INCOGNITO_WINDOW) \
E(kActionSendSharedTabGroupFeedback, IDC_SEND_SHARED_TAB_GROUP_FEEDBACK) \
E(kActionShowPasswordManager, IDC_SHOW_PASSWORD_MANAGER) \
--- a/chrome/browser/ui/browser_ui_prefs.cc
+++ b/chrome/browser/ui/browser_ui_prefs.cc
@@ -95,6 +95,8 @@ void RegisterBrowserUserPrefs(user_prefs
registry->RegisterBooleanPref(
prefs::kShowAvatarButton, true);
+ registry->RegisterBooleanPref(
+ prefs::kShowExtensionsButton, true);
registry->RegisterInt64Pref(prefs::kDefaultBrowserLastDeclined, 0);
registry->RegisterBooleanPref(prefs::kWebAppCreateOnDesktop, true);
--- a/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
+++ b/chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.cc
@@ -217,6 +217,7 @@ void PinnedToolbarActionsModel::ResetToD
pref_service_->ClearPref(prefs::kShowHomeButton);
pref_service_->ClearPref(prefs::kShowForwardButton);
pref_service_->ClearPref(prefs::kShowAvatarButton);
+ pref_service_->ClearPref(prefs::kShowExtensionsButton);
pref_service_->ClearPref(prefs::kPinnedActions);
}
@@ -233,7 +234,12 @@ bool PinnedToolbarActionsModel::IsDefaul
const bool avatar_is_default =
pref_service_->GetDefaultPrefValue(prefs::kShowAvatarButton)
->GetBool() == pref_service_->GetBoolean(prefs::kShowAvatarButton);
- return action_are_default && home_is_default && forward_is_default && avatar_is_default;
+ const bool extensions_is_default =
+ pref_service_->GetDefaultPrefValue(prefs::kShowExtensionsButton)
+ ->GetBool() == pref_service_->GetBoolean(prefs::kShowExtensionsButton);
+ return action_are_default && home_is_default &&
+ forward_is_default && avatar_is_default &&
+ extensions_is_default;
}
void PinnedToolbarActionsModel::MaybeMigrateExistingPinnedStates() {
--- a/chrome/browser/ui/views/extensions/extensions_toolbar_container.cc
+++ b/chrome/browser/ui/views/extensions/extensions_toolbar_container.cc
@@ -550,7 +550,9 @@ void ExtensionsToolbarContainer::AnchorA
// Fix the position of widgets. Without this fix, extension-installed-bubble
// and extension-uninstall-dialog may be out of the window border on Linux.
- if (base::CommandLine::ForCurrentProcess()->HasSwitch("hide-extensions-menu"))
+ if (!browser_->profile()->GetPrefs()->GetBoolean(
+ prefs::kShowExtensionsButton) ||
+ base::CommandLine::ForCurrentProcess()->HasSwitch("hide-extensions-menu"))
{
views::View* anchor_view = BrowserView::GetBrowserViewForBrowser(browser_)
->toolbar_button_provider()->GetAppMenuButton();
@@ -957,7 +959,9 @@ void ExtensionsToolbarContainer::UpdateC
}
bool ExtensionsToolbarContainer::ShouldContainerBeVisible() const {
- if (base::CommandLine::ForCurrentProcess()->HasSwitch("hide-extensions-menu"))
+ if (!browser_->profile()->GetPrefs()->GetBoolean(
+ prefs::kShowExtensionsButton) ||
+ base::CommandLine::ForCurrentProcess()->HasSwitch("hide-extensions-menu"))
return false;
// The container (and extensions-menu button) should not be visible if we have
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
@@ -541,6 +541,14 @@ void ToolbarView::Init() {
avatar_->SetVisible(show_avatar_button_.GetValue());
}
+ if (extensions_container_) {
+ show_extensions_button_.Init(
+ prefs::kShowExtensionsButton, prefs,
+ base::BindRepeating(&ToolbarView::OnShowExtensionsButtonChanged,
+ base::Unretained(this)));
+ extensions_container_->SetVisible(show_extensions_button_.GetValue());
+ }
+
InitLayout();
for (auto* button : std::array<views::Button*, 5>{back_, forward_, reload_,
@@ -1255,6 +1263,10 @@ void ToolbarView::OnShowAvatarButtonChan
avatar_->SetVisible(show_avatar_button_.GetValue());
}
+void ToolbarView::OnShowExtensionsButtonChanged() {
+ extensions_container_->SetVisible(show_extensions_button_.GetValue());
+}
+
void ToolbarView::OnTouchUiChanged() {
if (display_mode_ == DisplayMode::NORMAL) {
// Update the internal margins for touch layout.
--- a/chrome/browser/ui/views/toolbar/toolbar_view.h
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.h
@@ -281,6 +281,8 @@ class ToolbarView : public views::Access
void OnShowAvatarButtonChanged();
+ void OnShowExtensionsButtonChanged();
+
void OnTouchUiChanged();
void UpdateClipPath();
@@ -334,6 +336,8 @@ class ToolbarView : public views::Access
BooleanPrefMember show_avatar_button_;
+ BooleanPrefMember show_extensions_button_;
+
BooleanPrefMember show_chrome_labs_button_;
// The display mode used when laying out the toolbar.
--- a/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar.mojom
+++ b/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar.mojom
@@ -17,6 +17,7 @@ enum ActionId {
kHome,
kForward,
kAvatar,
+ kExtensions,
kNewIncognitoWindow,
kShowPasswordManager,
kShowPaymentMethods,
--- a/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.cc
+++ b/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.cc
@@ -52,6 +52,8 @@ MojoActionForChromeAction(actions::Actio
return side_panel::customize_chrome::mojom::ActionId::kForward;
case kActionAvatar:
return side_panel::customize_chrome::mojom::ActionId::kAvatar;
+ case kActionExtensions:
+ return side_panel::customize_chrome::mojom::ActionId::kExtensions;
case kActionNewIncognitoWindow:
return side_panel::customize_chrome::mojom::ActionId::kNewIncognitoWindow;
case kActionShowPasswordsBubbleOrPage:
@@ -113,6 +115,8 @@ std::optional<actions::ActionId> ChromeA
return kActionForward;
case side_panel::customize_chrome::mojom::ActionId::kAvatar:
return kActionAvatar;
+ case side_panel::customize_chrome::mojom::ActionId::kExtensions:
+ return kActionExtensions;
case side_panel::customize_chrome::mojom::ActionId::kNewIncognitoWindow:
return kActionNewIncognitoWindow;
case side_panel::customize_chrome::mojom::ActionId::kShowPasswordManager:
@@ -182,6 +186,10 @@ CustomizeToolbarHandler::CustomizeToolba
prefs::kShowAvatarButton,
base::BindRepeating(&CustomizeToolbarHandler::OnShowAvatarButtonChanged,
base::Unretained(this)));
+ pref_change_registrar_.Add(
+ prefs::kShowExtensionsButton,
+ base::BindRepeating(&CustomizeToolbarHandler::OnShowExtensionsButtonChanged,
+ base::Unretained(this)));
}
CustomizeToolbarHandler::~CustomizeToolbarHandler() = default;
@@ -240,6 +248,19 @@ void CustomizeToolbarHandler::ListAction
actions.push_back(std::move(avatar_action));
+ auto extensions_action = side_panel::customize_chrome::mojom::Action::New(
+ MojoActionForChromeAction(kActionExtensions).value(),
+ base::UTF16ToUTF8(l10n_util::GetStringUTF16(IDS_TOOLTIP_EXTENSIONS_BUTTON)),
+ prefs()->GetBoolean(prefs::kShowExtensionsButton), false,
+ side_panel::customize_chrome::mojom::CategoryId::kYourChrome,
+ GURL(webui::EncodePNGAndMakeDataURI(
+ ui::ImageModel::FromVectorIcon(
+ vector_icons::kExtensionChromeRefreshIcon, icon_color_id)
+ .Rasterize(&provider),
+ scale_factor)));
+
+ actions.push_back(std::move(extensions_action));
+
if (base::FeatureList::IsEnabled(features::kSideBySide)) {
auto split_tab_action = side_panel::customize_chrome::mojom::Action::New(
MojoActionForChromeAction(kActionSplitTab).value(),
@@ -393,6 +414,9 @@ void CustomizeToolbarHandler::PinAction(
case kActionAvatar:
prefs()->SetBoolean(prefs::kShowAvatarButton, pin);
break;
+ case kActionExtensions:
+ prefs()->SetBoolean(prefs::kShowExtensionsButton, pin);
+ break;
default:
model_->UpdatePinnedState(chrome_action.value(), pin);
const std::optional<std::string> metrics_name =
@@ -451,6 +475,11 @@ void CustomizeToolbarHandler::OnShowAvat
prefs()->GetBoolean(prefs::kShowAvatarButton));
}
+void CustomizeToolbarHandler::OnShowExtensionsButtonChanged() {
+ OnActionPinnedChanged(kActionExtensions,
+ prefs()->GetBoolean(prefs::kShowExtensionsButton));
+}
+
void CustomizeToolbarHandler::OnActionItemChanged() {
client_->NotifyActionsUpdated();
}
--- a/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.h
+++ b/chrome/browser/ui/webui/side_panel/customize_chrome/customize_toolbar/customize_toolbar_handler.h
@@ -55,6 +55,7 @@ class CustomizeToolbarHandler
void OnShowForwardButtonChanged();
void OnPinSplitTabButtonChanged();
void OnShowAvatarButtonChanged();
+ void OnShowExtensionsButtonChanged();
void OnActionItemChanged();
PrefService* prefs() const;
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -1328,6 +1328,10 @@ inline constexpr char kPinSplitTabButton
// toolbar.
inline constexpr char kShowAvatarButton[] = "helium.browser.show_avatar_button";
+// A boolean pref set to true if the Extensions button should be visible on the
+// toolbar.
+inline constexpr char kShowExtensionsButton[] = "helium.browser.show_extensions_button";
+
// A boolean pref set to true if Gemini integration be enabled. This is managed
// by enterprise policy.
inline constexpr char kGeminiSettings[] = "browser.gemini_settings";
+20 -18
View File
@@ -1,14 +1,15 @@
--- a/third_party/search_engines_data/resources/definitions/prepopulated_engines.json
+++ b/third_party/search_engines_data/resources/definitions/prepopulated_engines.json
@@ -179,29 +179,13 @@
// *** *** *** *** WARNING *** *** *** ***
// TODO(crbug.com/343792225): Identify a way to resolve this problem and implement
// necessary changes.
@@ -177,30 +177,14 @@
"id": 114
},
- "google": {
+ "break_stuff_google": {
"name": "Google",
"keyword": "google.com",
"favicon_url": "https://www.google.com/images/branding/product/ico/googleg_alldp.ico",
"base_builtin_resource_id": "IDR_SEARCH_ENGINE_GOOGLE",
- "search_url": "{google:baseURL}search?q={searchTerms}&{google:RLZ}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:language}{google:prefetchSource}{google:searchClient}{google:sourceId}{google:contextualSearchVersion}ie={inputEncoding}",
- "suggest_url": "{google:baseSuggestURL}search?{google:searchFieldtrialParameter}client={google:suggestClient}&gs_ri={google:suggestRid}&xssi=t&q={searchTerms}&{google:inputType}{google:omniboxFocusType}{google:cursorPosition}{google:currentPageUrl}{google:pageClassification}{google:clientCacheTimeToLive}{google:searchVersion}{google:sessionToken}{google:prefetchQuery}sugkey={google:suggestAPIKeyParameter}",
- "image_url": "{google:baseSearchByImageURL}upload",
@@ -36,12 +37,12 @@
--- a/components/search_engines/template_url_prepopulate_data.cc
+++ b/components/search_engines/template_url_prepopulate_data.cc
@@ -296,7 +296,7 @@ void ClearPrepopulatedEnginesInPrefs(Pre
std::unique_ptr<TemplateURLData> GetPrepopulatedFallbackSearch(
PrefService& prefs,
CountryId country_id) {
- return FindPrepopulatedEngineInternal(prefs, country_id, google.id,
+ return FindPrepopulatedEngineInternal(prefs, country_id, duckduckgo.id,
@@ -222,7 +222,7 @@ std::unique_ptr<TemplateURLData> GetPrep
std::vector<const TemplateURLPrepopulateData::PrepopulatedEngine*>
regional_prepopulated_engines) {
return FindPrepopulatedEngineInternal(prefs, regional_prepopulated_engines,
- google.id,
+ duckduckgo.id,
/*use_first_as_fallback=*/true);
}
@@ -114,11 +115,12 @@
--- a/third_party/search_engines_data/resources/definitions/regional_settings.json
+++ b/third_party/search_engines_data/resources/definitions/regional_settings.json
@@ -3,6 +3,17 @@
@@ -3,6 +3,18 @@
// found in the LICENSE file.
{
"elements": {
+ "ZZ": { // Default
+ "ZZ": {
+ // Default
+ "search_engines": [
+ "&duckduckgo",
+ "&ecosia",
@@ -129,16 +131,16 @@
+ }
+ },
+ "elements_ignored": {
"AE": { // United Arab Emirates
"AE": {
// United Arab Emirates
"search_engines": [
"&google",
@@ -1335,7 +1346,8 @@
@@ -1183,7 +1195,8 @@
"name": "kRegionalSettings",
"export_items": false,
"map_key_type": "country_codes::CountryId",
- "map_aliases": {
+ "map_aliases": {},
+ "map_aliases_ignored": {
"AD": "ES", // Andorra
"AF": "ZZ", // Afghanistan
"AG": "ZZ", // Antigua and Barbuda
"AD": "ES", // Andorra
"AF": "ZZ", // Afghanistan
"AG": "ZZ", // Antigua and Barbuda
+14 -12
View File
@@ -43,11 +43,13 @@
#include "components/custom_handlers/protocol_handler_registry.h"
#include "components/prefs/pref_service.h"
#include "components/privacy_sandbox/privacy_sandbox_features.h"
@@ -473,6 +475,13 @@ StartupBrowserCreatorImpl::DetermineStar
@@ -473,6 +475,15 @@ StartupBrowserCreatorImpl::DetermineStar
LaunchResult launch_result =
tabs.empty() ? LaunchResult::kNormally : LaunchResult::kWithGivenUrls;
+ if (!is_incognito_or_guest) {
+ bool no_first_run = base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kNoFirstRun);
+ if (!is_incognito_or_guest && !no_first_run) {
+ if (!profile_->GetPrefs()->GetBoolean(prefs::kHeliumDidOnboarding)) {
+ UrlsToTabs({ GURL(chrome::kHeliumSetupURL) }, &tabs);
+ return { tabs, LaunchResult::kWithGivenUrls };
@@ -59,7 +61,7 @@
whats_new::LogStartupType(whats_new::StartupType::kIneligible);
--- a/tools/gritsettings/resource_ids.spec
+++ b/tools/gritsettings/resource_ids.spec
@@ -1131,6 +1131,10 @@
@@ -1135,6 +1135,10 @@
"META": {"sizes": {"includes": [30],}},
"includes": [7480],
},
@@ -72,7 +74,7 @@
# START ios/ section.
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -8449,6 +8449,7 @@ static_library("browser_generated_files"
@@ -8496,6 +8496,7 @@ static_library("browser_generated_files"
"//chrome/browser/ui/webui/user_education_internals:mojo_bindings",
"//chrome/browser/v8_compile_hints/proto",
"//chrome/browser/web_applications/mojom:mojom_web_apps_enum",
@@ -82,7 +84,7 @@
if (is_android) {
--- a/chrome/chrome_paks.gni
+++ b/chrome/chrome_paks.gni
@@ -432,11 +432,13 @@ template("chrome_extra_paks") {
@@ -434,11 +434,13 @@ template("chrome_extra_paks") {
if (!is_android && !is_chromeos) {
sources += [
"$root_gen_dir/chrome/intro_resources.pak",
@@ -98,7 +100,7 @@
--- a/chrome/common/webui_url_constants.cc
+++ b/chrome/common/webui_url_constants.cc
@@ -116,6 +116,7 @@ base::span<const base::cstring_view> Chr
@@ -117,6 +117,7 @@ base::span<const base::cstring_view> Chr
kChromeUIPrefsInternalsHost,
kChromeUIProfileInternalsHost,
content::kChromeUIQuotaInternalsHost,
@@ -108,7 +110,7 @@
#if !BUILDFLAG(IS_ANDROID)
--- a/chrome/common/webui_url_constants.h
+++ b/chrome/common/webui_url_constants.h
@@ -560,6 +560,8 @@ inline constexpr char kChromeUIProfilePi
@@ -571,6 +571,8 @@ inline constexpr char kChromeUIProfilePi
inline constexpr char kChromeUIProfilePickerStartupQuery[] = "startup";
inline constexpr char kChromeUIProfilePickerGlicQuery[] = "glic";
inline constexpr char kChromeUIProfilePickerUrl[] = "chrome://profile-picker/";
@@ -119,7 +121,7 @@
"chrome://history-sync-optin/";
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -231,6 +231,10 @@ static_library("ui") {
@@ -232,6 +232,10 @@ static_library("ui") {
"webui/net_internals/net_internals_ui.h",
"webui/ntp_tiles_internals_ui.cc",
"webui/ntp_tiles_internals_ui.h",
@@ -132,7 +134,7 @@
"webui/omnibox/omnibox_ui.cc",
--- a/chrome/browser/ui/webui/chrome_web_ui_configs.cc
+++ b/chrome/browser/ui/webui/chrome_web_ui_configs.cc
@@ -34,6 +34,7 @@
@@ -35,6 +35,7 @@
#include "chrome/browser/ui/webui/net_export_ui.h"
#include "chrome/browser/ui/webui/net_internals/net_internals_ui.h"
#include "chrome/browser/ui/webui/ntp_tiles_internals_ui.h"
@@ -140,7 +142,7 @@
#include "chrome/browser/ui/webui/omnibox/omnibox_ui.h"
#include "chrome/browser/ui/webui/policy/policy_ui.h"
#include "chrome/browser/ui/webui/predictors/predictors_ui.h"
@@ -387,6 +388,7 @@ void RegisterChromeWebUIConfigs() {
@@ -398,6 +399,7 @@ void RegisterChromeWebUIConfigs() {
#if !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_ANDROID)
map.AddWebUIConfig(std::make_unique<ManagedUserProfileNoticeUIConfig>());
map.AddWebUIConfig(std::make_unique<IntroUIConfig>());
@@ -497,7 +499,7 @@
}
--- a/chrome/browser/ui/browser_navigator.cc
+++ b/chrome/browser/ui/browser_navigator.cc
@@ -583,7 +583,8 @@ bool IsHostAllowedInIncognito(const GURL
@@ -579,7 +579,8 @@ bool IsHostAllowedInIncognito(const GURL
host != chrome::kChromeUIHistoryHost &&
host != chrome::kChromeUIExtensionsHost &&
host != chrome::kChromeUIBookmarksHost &&
@@ -509,7 +511,7 @@
} // namespace
--- a/chrome/browser/ui/webui/settings/search_engines_handler.cc
+++ b/chrome/browser/ui/webui/settings/search_engines_handler.cc
@@ -313,7 +313,9 @@ void SearchEnginesHandler::HandleSetDefa
@@ -340,7 +340,9 @@ void SearchEnginesHandler::HandleSetDefa
CHECK(choice_made_location ==
search_engines::ChoiceMadeLocation::kSearchSettings ||
choice_made_location ==
@@ -93,7 +93,7 @@
url.SchemeIs(url::kTraceScheme) ||
--- a/chrome/browser/ui/browser_navigator.cc
+++ b/chrome/browser/ui/browser_navigator.cc
@@ -553,7 +553,8 @@ std::unique_ptr<content::WebContents> Cr
@@ -549,7 +549,8 @@ std::unique_ptr<content::WebContents> Cr
bool IsHostAllowedInIncognito(const GURL& url) {
std::string scheme = url.scheme();
std::string_view host = url.host_piece();
@@ -103,7 +103,7 @@
return true;
}
@@ -638,6 +639,12 @@ base::WeakPtr<content::NavigationHandle>
@@ -634,6 +635,12 @@ base::WeakPtr<content::NavigationHandle>
}
}
@@ -118,7 +118,7 @@
// handling.
--- a/chrome/browser/extensions/extension_tab_util.cc
+++ b/chrome/browser/extensions/extension_tab_util.cc
@@ -1032,7 +1032,8 @@ bool ExtensionTabUtil::IsKillURL(const G
@@ -1062,7 +1062,8 @@ bool ExtensionTabUtil::IsKillURL(const G
return true;
}
@@ -130,7 +130,7 @@
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -2182,6 +2182,13 @@ void Browser::SetContentsBounds(WebConte
@@ -2212,6 +2212,13 @@ void Browser::SetContentsBounds(WebConte
}
void Browser::UpdateTargetURL(WebContents* source, const GURL& url) {
@@ -144,7 +144,7 @@
std::vector<StatusBubble*> status_bubbles = GetStatusBubbles();
for (StatusBubble* status_bubble : status_bubbles) {
StatusBubbleViews* status_bubble_views =
@@ -2189,7 +2196,7 @@ void Browser::UpdateTargetURL(WebContent
@@ -2219,7 +2226,7 @@ void Browser::UpdateTargetURL(WebContent
ContentsWebView* anchor =
static_cast<ContentsWebView*>(status_bubble_views->base_view());
if (source == anchor->GetWebContents()) {
@@ -163,7 +163,7 @@
#include "net/cookies/cookie_util.h"
#include "third_party/icu/source/common/unicode/ubidi.h"
#include "third_party/metrics_proto/omnibox_event.pb.h"
@@ -594,6 +595,12 @@ void OmniboxEditModel::AdjustTextForCopy
@@ -597,6 +598,12 @@ void OmniboxEditModel::AdjustTextForCopy
*url_from_text = controller_->client()->GetNavigationEntryURL();
*write_url = true;
@@ -1,6 +1,6 @@
--- a/chrome/common/chrome_features.cc
+++ b/chrome/common/chrome_features.cc
@@ -725,7 +725,7 @@ BASE_FEATURE(kHttpsFirstBalancedMode,
@@ -827,7 +827,7 @@ BASE_FEATURE(kHttpsFirstBalancedMode,
// possible.
BASE_FEATURE(kHttpsFirstBalancedModeAutoEnable,
"HttpsFirstBalancedModeAutoEnable",
@@ -1,6 +1,6 @@
--- a/extensions/common/extension_urls.cc
+++ b/extensions/common/extension_urls.cc
@@ -38,10 +38,10 @@ const GURL* g_item_snippet_url_for_test_
@@ -38,12 +38,12 @@ const GURL* g_item_snippet_url_for_test_
} // namespace
@@ -8,13 +8,15 @@
-const char kNewChromeWebstoreBaseURL[] = "trk:08:https://chromewebstore.google.com/";
+const char kChromeWebstoreBaseURL[] = "https://chrome.google.com/webstore";
+const char kNewChromeWebstoreBaseURL[] = "https://chromewebstore.google.com/";
const char kExtensionsDocsWhatsNewURL[] =
"trk:06:https://developer.chrome.com/docs/extensions/whats-new";
const char kChromeWebstoreUpdateURL[] =
- "trk:05:https://clients2.google.com/service/update2/crx";
+ "https://update-url-to-be-replaced.qjz9zk";
const char kChromeWebstoreApiURL[] = "trk:07:https://chromewebstore.googleapis.com/";
const char kAppMenuUtmSource[] = "ext_app_menu";
@@ -63,6 +63,7 @@ GURL GetNewWebstoreLaunchURL() {
@@ -69,6 +69,7 @@ GURL GetNewWebstoreLaunchURL() {
}
GURL AppendUtmSource(const GURL& url, std::string_view utm_source_value) {
@@ -22,7 +24,7 @@
return net::AppendQueryParameter(url, "utm_source", utm_source_value);
}
@@ -76,6 +77,8 @@ std::string GetWebstoreItemDetailURLPref
@@ -82,6 +83,8 @@ std::string GetWebstoreItemDetailURLPref
}
GURL GetWebstoreItemSnippetURL(const extensions::ExtensionId& extension_id) {
@@ -31,7 +33,7 @@
if (g_item_snippet_url_for_test_) {
// Return `<base URL><extension_id>`. There is no suffix if the URL is
// overridden by a test.
@@ -99,9 +102,6 @@ GURL GetDefaultWebstoreUpdateUrl() {
@@ -105,9 +108,6 @@ GURL GetDefaultWebstoreUpdateUrl() {
}
GURL GetWebstoreUpdateUrl() {
@@ -131,7 +133,7 @@
+#endif // EXTENSIONS_COMMON_MANIFEST_URL_PATCHER_H_
--- a/extensions/common/BUILD.gn
+++ b/extensions/common/BUILD.gn
@@ -446,6 +446,8 @@ static_library("common") {
@@ -449,6 +449,8 @@ static_library("common") {
"manifest_handlers/webview_info.h",
"manifest_url_handlers.cc",
"manifest_url_handlers.h",
@@ -164,7 +166,7 @@
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -345,6 +345,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -347,6 +347,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
// Helium services page
(*s_allowlist)[::prefs::kHeliumServicesEnabled] =
settings_api::PrefType::kBoolean;
@@ -199,7 +201,7 @@
</div>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -1841,6 +1841,10 @@ void AddPrivacyStrings(content::WebUIDat
@@ -1876,6 +1876,10 @@ void AddPrivacyStrings(content::WebUIDat
{"heliumServicesToggle", IDS_SETTINGS_HELIUM_SERVICES_TOGGLE},
{"heliumServicesToggleDescription",
IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION},
@@ -212,7 +214,7 @@
IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION},
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -2107,6 +2107,12 @@
@@ -2106,6 +2106,12 @@
<message name="IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of all Helium services">
When enabled, Helium will be able to connect to anonymous services for providing additional functionality, such as native !bangs or extension downloads.
</message>
@@ -274,31 +276,33 @@
PrefChangeRegistrar& registrar, const base::RepeatingClosure& observer);
--- a/chrome/browser/extensions/BUILD.gn
+++ b/chrome/browser/extensions/BUILD.gn
@@ -330,6 +330,7 @@ source_set("extensions") {
"//components/cookie_config",
"//components/crx_file",
@@ -441,6 +441,7 @@ source_set("extensions") {
"//components/data_sharing/public:features",
"//components/embedder_support",
"//components/enterprise",
+ "//components/helium_services",
"//components/infobars/content",
"//components/infobars/core",
"//components/no_state_prefetch/browser",
--- a/chrome/browser/extensions/pending_extension_manager.cc
+++ b/chrome/browser/extensions/pending_extension_manager.cc
@@ -18,10 +18,12 @@
#include "chrome/common/chrome_features.h"
#include "chrome/common/extensions/extension_constants.h"
--- a/extensions/browser/pending_extension_manager.cc
+++ b/extensions/browser/pending_extension_manager.cc
@@ -14,11 +14,14 @@
#include "base/version.h"
#include "build/build_config.h"
#include "content/public/browser/browser_thread.h"
+#include "components/helium_services/helium_services_helpers.h"
+#include "chrome/browser/profiles/profile.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/pending_extension_manager_factory.h"
#include "extensions/common/constants.h"
#include "extensions/common/extension.h"
+#include "extensions/common/extension_urls.h"
#include "url/gurl.h"
#if !BUILDFLAG(IS_ANDROID)
@@ -248,11 +250,11 @@ bool PendingExtensionManager::AddFromExt
kRemoteInstall);
namespace {
@@ -214,11 +217,11 @@ bool PendingExtensionManager::AddFromExt
creation_flags, mark_acknowledged, kRemoteInstall);
}
-std::list<std::string> PendingExtensionManager::GetPendingIdsForUpdateCheck()
@@ -312,7 +316,7 @@
ManifestLocation install_source = it.second.install_source();
// Some install sources read a CRX from the filesystem. They can
@@ -264,6 +266,17 @@ std::list<std::string> PendingExtensionM
@@ -230,6 +233,17 @@ std::list<std::string> PendingExtensionM
continue;
}
@@ -332,7 +336,7 @@
--- a/chrome/browser/extensions/updater/extension_updater.cc
+++ b/chrome/browser/extensions/updater/extension_updater.cc
@@ -37,7 +37,10 @@
@@ -36,7 +36,10 @@
#include "chrome/browser/profiles/keep_alive/profile_keep_alive_types.h"
#include "chrome/browser/profiles/keep_alive/scoped_profile_keep_alive.h"
#include "chrome/browser/profiles/profile.h"
@@ -341,9 +345,9 @@
#include "components/prefs/pref_service.h"
+#include "components/prefs/pref_change_registrar.h"
#include "components/update_client/update_query_params.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
@@ -207,9 +210,6 @@ void ExtensionUpdater::EnsureDownloaderC
@@ -213,9 +216,6 @@ void ExtensionUpdater::EnsureDownloaderC
if (!downloader_.get()) {
downloader_ = downloader_factory_.Run(this);
}
@@ -353,7 +357,7 @@
}
void ExtensionUpdater::Start() {
@@ -231,6 +231,15 @@ void ExtensionUpdater::Start() {
@@ -237,6 +237,15 @@ void ExtensionUpdater::Start() {
CheckSoon();
ScheduleNextCheck();
}
@@ -369,7 +373,7 @@
}
void ExtensionUpdater::Stop() {
@@ -339,7 +348,6 @@ void ExtensionUpdater::AddToDownloader(
@@ -366,7 +375,6 @@ void ExtensionUpdater::AddToDownloader(
int request_id,
DownloadFetchPriority fetch_priority,
ExtensionUpdateCheckParams* update_check_params) {
@@ -377,16 +381,16 @@
// In Kiosk mode extensions are downloaded and updated by the ExternalCache.
// Therefore we skip updates here to avoid conflicts.
@@ -439,7 +447,7 @@ void ExtensionUpdater::CheckNow(CheckPar
@@ -464,7 +472,7 @@ void ExtensionUpdater::CheckNow(CheckPar
// Add fetch records for extensions that should be fetched by an update URL.
// These extensions are not yet installed. They come from group policy
// and external install sources.
- const PendingExtensionManager* pending_extension_manager =
+ PendingExtensionManager* pending_extension_manager =
PendingExtensionManager::Get(profile_);
const CorruptedExtensionReinstaller* corrupted_extension_reinstaller =
CorruptedExtensionReinstaller::Get(profile_);
@@ -577,7 +585,7 @@ void ExtensionUpdater::CheckNow(CheckPar
ExtensionUpdateCheckParams update_check_params;
@@ -597,7 +605,7 @@ void ExtensionUpdater::CheckNow(CheckPar
// OnExtensionDownloadFinished for each extension that was checked.
downloader_->StartAllPending(extension_cache_);
@@ -395,7 +399,7 @@
update_check_params.priority =
params.fetch_priority == DownloadFetchPriority::kBackground
? ExtensionUpdateCheckParams::UpdateCheckPriority::BACKGROUND
@@ -795,6 +803,9 @@ void ExtensionUpdater::CleanUpCrxFileIfN
@@ -815,6 +823,9 @@ void ExtensionUpdater::CleanUpCrxFileIfN
bool ExtensionUpdater::CanUseUpdateService(
const ExtensionId& extension_id) const {
@@ -407,7 +411,7 @@
--- a/chrome/browser/extensions/webstore_installer.cc
+++ b/chrome/browser/extensions/webstore_installer.cc
@@ -47,6 +47,7 @@
@@ -46,6 +46,7 @@
#include "components/crx_file/id_util.h"
#include "components/download/public/common/download_url_parameters.h"
#include "components/update_client/update_query_params.h"
@@ -415,7 +419,7 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/download_manager.h"
#include "content/public/browser/navigation_controller.h"
@@ -204,7 +205,7 @@ GURL WebstoreInstaller::GetWebstoreInsta
@@ -203,7 +204,7 @@ GURL WebstoreInstaller::GetWebstoreInsta
if (!install_source.empty())
params.push_back(installsource_param);
params.push_back("uc");
@@ -426,7 +430,7 @@
url_string + "?response=redirect&" +
--- a/chrome/browser/extensions/webstore_installer.h
+++ b/chrome/browser/extensions/webstore_installer.h
@@ -110,7 +110,7 @@ class WebstoreInstaller : public Extensi
@@ -113,7 +113,7 @@ class WebstoreInstaller : public Extensi
friend class base::DeleteHelper<WebstoreInstaller>;
// Helper to get install URL.
@@ -437,7 +441,7 @@
// DownloadManager::DownloadUrl callback.
--- a/chrome/browser/extensions/extension_management.cc
+++ b/chrome/browser/extensions/extension_management.cc
@@ -48,6 +48,8 @@
@@ -46,6 +46,8 @@
#include "chrome/common/extensions/extension_constants.h"
#include "chrome/common/pref_names.h"
#include "components/crx_file/id_util.h"
@@ -446,7 +450,7 @@
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_service.h"
#include "content/public/common/content_switches.h"
@@ -113,6 +115,12 @@ ExtensionManagement::ExtensionManagement
@@ -116,6 +118,12 @@ ExtensionManagement::ExtensionManagement
pref_change_callback);
pref_change_registrar_.Add(pref_names::kExtensionUnpublishedAvailability,
pref_change_callback);
@@ -459,7 +463,7 @@
// Note that both |global_settings_| and |default_settings_| will be null
// before first call to Refresh(), so in order to resolve this, Refresh() must
// be called in the initialization of ExtensionManagement.
@@ -241,12 +249,20 @@ GURL ExtensionManagement::GetEffectiveUp
@@ -244,12 +252,20 @@ GURL ExtensionManagement::GetEffectiveUp
<< "Update URL cannot be overridden to be the webstore URL!";
return update_url;
}
@@ -484,15 +488,15 @@
<< "An extension's update URL cannot be overridden to the webstore.";
--- a/chrome/browser/extensions/updater/extension_updater.h
+++ b/chrome/browser/extensions/updater/extension_updater.h
@@ -21,6 +21,7 @@
#include "base/memory/weak_ptr.h"
@@ -22,6 +22,7 @@
#include "base/observer_list.h"
#include "base/time/time.h"
#include "base/unguessable_token.h"
+#include "components/prefs/pref_change_registrar.h"
#include "components/keyed_service/core/keyed_service.h"
#include "extensions/browser/extension_registry_observer.h"
#include "extensions/browser/extension_system.h"
@@ -375,6 +376,8 @@ class ExtensionUpdater : public KeyedSer
@@ -406,6 +407,8 @@ class ExtensionUpdater : public KeyedSer
raw_ptr<PrefService> prefs_ = nullptr;
raw_ptr<Profile> profile_ = nullptr;
@@ -512,9 +516,9 @@
// ShouldAllowInstall() returns the result of running constructor argument
// |should_allow_install| on an extension. After an extension is unpacked,
// this function is run. If it returns true, the extension is installed.
--- a/chrome/browser/extensions/pending_extension_manager.h
+++ b/chrome/browser/extensions/pending_extension_manager.h
@@ -144,7 +144,7 @@ class PendingExtensionManager : public K
--- a/extensions/browser/pending_extension_manager.h
+++ b/extensions/browser/pending_extension_manager.h
@@ -145,7 +145,7 @@ class PendingExtensionManager : public K
// Get the list of pending IDs that should be installed from an update URL.
// Pending extensions that will be installed from local files will not be
// included in the set.
@@ -96,7 +96,7 @@
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -8025,6 +8025,8 @@ static_library("browser") {
@@ -8068,6 +8068,8 @@ static_library("browser") {
deps += [
"//components/spellcheck/browser",
"//components/spellcheck/common",
@@ -107,7 +107,7 @@
if (!is_android) {
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -349,6 +349,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
@@ -351,6 +351,8 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
settings_api::PrefType::kBoolean;
(*s_allowlist)[::prefs::kHeliumBangsEnabled] =
settings_api::PrefType::kBoolean;
@@ -144,7 +144,7 @@
</div>
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -2119,6 +2119,12 @@
@@ -2118,6 +2118,12 @@
<message name="IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of downloading bangs">
When enabled, Helium will fetch our list of bangs that help you browse the Internet faster, such as !w or !gh.
</message>
@@ -159,7 +159,7 @@
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -1842,6 +1842,9 @@ void AddPrivacyStrings(content::WebUIDat
@@ -1877,6 +1877,9 @@ void AddPrivacyStrings(content::WebUIDat
{"heliumBangsToggle", IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE},
{"heliumBangsToggleDescription",
IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE_DESCRIPTION},
@@ -1,12 +0,0 @@
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
@@ -2338,8 +2338,7 @@ void RenderViewContextMenu::AppendMediaR
void RenderViewContextMenu::AppendReadingModeItem() {
// Show Read Anything option if it's not already open in the side panel.
- if (GetBrowser() && GetBrowser()->is_type_normal() &&
- !IsReadAnythingEntryShowing(GetBrowser())) {
+ if ((false)) {
menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_OPEN_IN_READING_MODE,
IDS_CONTENT_CONTEXT_READING_MODE);
}
@@ -114,7 +114,7 @@
// DIR_ROAMING_USER_DATA has been overridden by a command-line option.
--- a/chrome/common/chrome_paths_linux.cc
+++ b/chrome/common/chrome_paths_linux.cc
@@ -99,6 +99,23 @@ bool GetDefaultUserDataDirectory(base::F
@@ -101,6 +101,23 @@ bool GetDefaultUserDataDirectory(base::F
return true;
}

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