Compare commits

...

55 Commits

Author SHA1 Message Date
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
104 changed files with 3337 additions and 1369 deletions
+1 -1
View File
@@ -1 +1 @@
136.0.7103.92
137.0.7151.55
+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",
@@ -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)) {
@@ -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.
@@ -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"
@@ -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) {
@@ -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.
@@ -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.
+110 -4
View File
@@ -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 {
@@ -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
@@ -1711,7 +1711,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;
}
@@ -2928,9 +2931,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);
}
@@ -27,7 +27,7 @@
{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},
@@ -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
@@ -244,8 +244,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
@@ -433,7 +433,7 @@ BASE_FEATURE(kGlicWarmMultiple,
BASE_FEATURE(kTabstripComboButton,
"TabstripComboButton",
- base::FEATURE_DISABLED_BY_DEFAULT);
+ base::FEATURE_ENABLED_BY_DEFAULT);
bool IsTabSearchMoving() {
return base::FeatureList::IsEnabled(features::kTabstripComboButton) &&
@@ -447,7 +447,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() &&
@@ -0,0 +1,230 @@
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -221,6 +221,10 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
(*s_allowlist)[::prefs::kShowForwardButton] =
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
@@ -540,6 +540,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
prefs::kShowForwardButton, true,
GetHomeAndForwardButtonAndHomePageIsNewTabPageFlags());
+ 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
@@ -220,6 +220,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);
}
@@ -233,7 +234,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
@@ -459,8 +459,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()->
@@ -529,6 +528,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_,
@@ -1238,6 +1248,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
@@ -49,6 +49,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:
@@ -106,6 +108,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:
@@ -165,6 +169,10 @@ CustomizeToolbarHandler::CustomizeToolba
prefs::kShowForwardButton,
base::BindRepeating(&CustomizeToolbarHandler::OnShowForwardButtonChanged,
base::Unretained(this)));
+ pref_change_registrar_.Add(
+ prefs::kShowAvatarButton,
+ base::BindRepeating(&CustomizeToolbarHandler::OnShowAvatarButtonChanged,
+ base::Unretained(this)));
}
CustomizeToolbarHandler::~CustomizeToolbarHandler() = default;
@@ -200,6 +208,17 @@ void CustomizeToolbarHandler::ListAction
.Rasterize(&provider),
scale_factor)));
+ 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)));
+
const raw_ptr<BrowserWindowInterface> bwi =
webui::GetBrowserWindowInterface(web_contents_);
CHECK(bwi);
@@ -249,6 +268,7 @@ void CustomizeToolbarHandler::ListAction
actions.push_back(std::move(home_action));
actions.push_back(std::move(forward_action));
+ actions.push_back(std::move(avatar_action));
add_action(kActionNewIncognitoWindow,
side_panel::customize_chrome::mojom::CategoryId::kNavigation);
@@ -338,6 +358,9 @@ void CustomizeToolbarHandler::PinAction(
case kActionForward:
prefs()->SetBoolean(prefs::kShowForwardButton, pin);
break;
+ case kActionAvatar:
+ prefs()->SetBoolean(prefs::kShowAvatarButton, pin);
+ break;
default:
model_->UpdatePinnedState(chrome_action.value(), pin);
const std::optional<std::string> metrics_name =
@@ -386,6 +409,11 @@ void CustomizeToolbarHandler::OnShowForw
prefs()->GetBoolean(prefs::kShowForwardButton));
}
+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
@@ -44,6 +44,7 @@ class CustomizeToolbarHandler
void OnActionPinnedChanged(actions::ActionId id, bool pinned);
void OnShowHomeButtonChanged();
void OnShowForwardButtonChanged();
+ void OnShowAvatarButtonChanged();
void OnActionItemChanged();
PrefService* prefs() const;
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -1315,6 +1315,10 @@ inline constexpr char kShowHomeButton[]
// toolbar.
inline constexpr char kShowForwardButton[] = "browser.show_forward_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,240 @@
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
@@ -224,6 +224,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
@@ -541,6 +541,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
@@ -221,6 +221,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);
}
@@ -237,7 +238,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
@@ -548,7 +548,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();
@@ -955,7 +957,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
@@ -539,6 +539,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_,
@@ -1252,6 +1260,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
@@ -51,6 +51,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:
@@ -110,6 +112,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:
@@ -173,6 +177,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;
@@ -219,6 +227,17 @@ void CustomizeToolbarHandler::ListAction
.Rasterize(&provider),
scale_factor)));
+ 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)));
+
const raw_ptr<BrowserWindowInterface> bwi =
webui::GetBrowserWindowInterface(web_contents_);
CHECK(bwi);
@@ -269,6 +288,7 @@ void CustomizeToolbarHandler::ListAction
actions.push_back(std::move(home_action));
actions.push_back(std::move(forward_action));
actions.push_back(std::move(avatar_action));
+ actions.push_back(std::move(extensions_action));
add_action(kActionNewIncognitoWindow,
side_panel::customize_chrome::mojom::CategoryId::kNavigation);
@@ -361,6 +381,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 =
@@ -414,6 +437,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
@@ -45,6 +45,7 @@ class CustomizeToolbarHandler
void OnShowHomeButtonChanged();
void OnShowForwardButtonChanged();
void OnShowAvatarButtonChanged();
+ void OnShowExtensionsButtonChanged();
void OnActionItemChanged();
PrefService* prefs() const;
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -1319,6 +1319,10 @@ inline constexpr char kShowForwardButton
// 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";
+4 -2
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 };
@@ -0,0 +1,31 @@
--- a/chrome/browser/resources/settings/about_page/about_page.html
+++ b/chrome/browser/resources/settings/about_page/about_page.html
@@ -5,10 +5,7 @@
.info-sections {
padding: var(--cr-section-vertical-padding) var(--cr-section-padding);
- }
-
- .info-section {
- margin-bottom: 12px;
+ line-height: 1.8;
}
.product-title {
@@ -47,7 +44,7 @@
</style>
<settings-section page-title="$i18n{aboutPageTitle}" section="about">
<div class="cr-row two-line first">
- <img id="product-logo" on-click="onProductLogoClick_"
+ <img id="product-logo"
srcset="chrome://theme/current-channel-logo@1x 1x,
chrome://theme/current-channel-logo@2x 2x"
alt="$i18n{aboutProductLogoAlt}"
@@ -145,7 +142,6 @@
<settings-section>
<div class="info-sections">
<div class="info-section">
- <div class="secondary">$i18n{aboutProductTitle}</div>
<div class="secondary">$i18n{aboutProductCopyright}</div>
</div>
@@ -10,8 +10,18 @@
AddItemWithStringIdAndVectorIcon(this, IDC_QRCODE_GENERATOR,
IDS_APP_MENU_CREATE_QR_CODE,
kQrCodeChromeRefreshIcon);
@@ -894,13 +891,6 @@ void ToolsMenuModel::Build(Browser* brow
@@ -884,23 +881,8 @@ void ToolsMenuModel::Build(Browser* brow
AddItemWithStringIdAndVectorIcon(this, IDC_NAME_WINDOW, IDS_NAME_WINDOW,
kNameWindowIcon);
- if (CustomizeChromePageHandler::IsSupported(
- NtpCustomBackgroundServiceFactory::GetForProfile(browser->profile()),
- browser->profile())) {
- AddItemWithStringIdAndVectorIcon(this, IDC_SHOW_CUSTOMIZE_CHROME_SIDE_PANEL,
- IDS_SHOW_CUSTOMIZE_CHROME_SIDE_PANEL,
- kEditChromeRefreshIcon);
- }
-
AddSeparator(ui::NORMAL_SEPARATOR);
- AddItemWithStringIdAndVectorIcon(this, IDC_SHOW_READING_MODE_SIDE_PANEL,
@@ -24,7 +34,7 @@
AddSeparator(ui::NORMAL_SEPARATOR);
if (!features::IsExtensionMenuInRootAppMenu()) {
AddItemWithStringId(IDC_MANAGE_EXTENSIONS, IDS_SHOW_EXTENSIONS);
@@ -1786,32 +1776,6 @@ void AppMenuModel::Build() {
@@ -1786,32 +1768,6 @@ void AppMenuModel::Build() {
AddSeparator(ui::NORMAL_SEPARATOR);
@@ -57,7 +67,16 @@
if (!browser_->profile()->IsOffTheRecord()) {
auto recent_tabs_sub_menu =
std::make_unique<RecentTabsSubMenuModel>(provider_, browser_);
@@ -1850,15 +1814,11 @@ void AppMenuModel::Build() {
@@ -1833,7 +1789,7 @@ void AppMenuModel::Build() {
std::make_unique<BookmarkSubMenuModel>(this, browser_);
AddSubMenuWithStringIdAndVectorIcon(
- this, IDC_BOOKMARKS_MENU, IDS_BOOKMARKS_AND_LISTS_MENU,
+ this, IDC_BOOKMARKS_MENU, IDS_BOOKMARKS_LIST_TITLE,
bookmark_sub_menu_model_.get(), kBookmarksListsMenuIcon);
SetElementIdentifierAt(GetIndexOfCommandId(IDC_BOOKMARKS_MENU).value(),
kBookmarksMenuItem);
@@ -1850,15 +1806,11 @@ void AppMenuModel::Build() {
kTabGroupsMenuItem);
}
@@ -78,7 +97,7 @@
AddItemWithStringIdAndVectorIcon(this, IDC_CLEAR_BROWSING_DATA,
IDS_CLEAR_BROWSING_DATA,
kTrashCanRefreshIcon);
@@ -1898,9 +1858,6 @@ void AppMenuModel::Build() {
@@ -1898,9 +1850,6 @@ void AppMenuModel::Build() {
lens::features::kLensOverlay));
}
@@ -88,7 +107,20 @@
CreateFindAndEditSubMenu();
sub_menus_.push_back(
@@ -2048,6 +2005,7 @@ bool AppMenuModel::AddDefaultBrowserMenu
@@ -1949,6 +1898,12 @@ void AppMenuModel::Build() {
#endif
#endif
+ if (!browser_->profile()->IsIncognitoProfile() && !browser_->profile()->IsGuestSession()) {
+ AddItemWithStringIdAndVectorIcon(this, IDC_SHOW_CUSTOMIZE_CHROME_SIDE_PANEL,
+ IDS_SHOW_CUSTOMIZE_CHROME_SIDE_PANEL,
+ kEditChromeRefreshIcon);
+ }
+
AddItemWithStringIdAndVectorIcon(this, IDC_OPTIONS, IDS_SETTINGS,
kSettingsMenuIcon);
@@ -2048,6 +2003,7 @@ bool AppMenuModel::AddDefaultBrowserMenu
}
bool AppMenuModel::AddSafetyHubMenuItem() {
+9
View File
@@ -18,3 +18,12 @@
item->set_vertical_margin(vertical_margin);
item->SetMenuItemBackground(MenuItemView::MenuItemBackground(
background_color_id, kBackgroundCornerRadius));
@@ -1471,7 +1471,7 @@ void AppMenu::PopulateMenu(MenuItemView*
case IDC_SET_BROWSER_AS_DEFAULT: {
// Only highlight the default browser item when it is first in the
// AppMenu.
- if (i == 0) {
+ if ((false)) {
add_menu_row_background(
views::LayoutProvider::Get()->GetDistanceMetric(
views::DISTANCE_CONTROL_VERTICAL_TEXT_PADDING),
+218
View File
@@ -0,0 +1,218 @@
--- a/components/vector_icons/chat_spark.icon
+++ b/components/vector_icons/chat_spark.icon
@@ -30,19 +30,4 @@ R_V_LINE_TO, 4.51,
R_CUBIC_TO, 0, 0.41, -0.15, 0.76, -0.45, 1.06,
ARC_TO, 1.45, 1.45, 0, 0, 1, 16.5, 15,
H_LINE_TO, 5,
-CLOSE,
-R_MOVE_TO, 3, -6,
-R_V_LINE_TO, -1.5,
-R_H_LINE_TO, 8,
-V_LINE_TO, 12,
-CLOSE,
-R_MOVE_TO, 0, -2.75,
-R_V_LINE_TO, -1.5,
-R_H_LINE_TO, 7,
-R_V_LINE_TO, 1.5,
-CLOSE,
-MOVE_TO, 5, 6.5,
-V_LINE_TO, 5,
-R_H_LINE_TO, 4,
-R_V_LINE_TO, 1.5,
CLOSE
--- a/chrome/browser/ui/views/BUILD.gn
+++ b/chrome/browser/ui/views/BUILD.gn
@@ -34,6 +34,7 @@ component("views") {
"//components/keep_alive_registry",
"//components/lens",
"//components/lens:buildflags",
+ "//components/search_engines",
"//components/vector_icons",
"//content/public/browser",
"//printing/buildflags",
--- a/components/omnibox/browser/autocomplete_controller.h
+++ b/components/omnibox/browser/autocomplete_controller.h
@@ -34,6 +34,7 @@
#include "components/omnibox/browser/omnibox_log.h"
#include "components/omnibox/browser/open_tab_provider.h"
#include "components/optimization_guide/machine_learning_tflite_buildflags.h"
+#include "components/search_engines/template_url_bang_manager.h"
#include "third_party/omnibox_proto/types.pb.h"
class ClipboardProvider;
@@ -529,6 +530,8 @@ class AutocompleteController : public Au
// A list of all providers.
Providers providers_;
+ raw_ptr<Bangs::BangManager> bang_manager_ = Bangs::BangManager::GetInstance();
+
raw_ptr<BookmarkProvider> bookmark_provider_;
raw_ptr<HistoryQuickProvider> history_quick_provider_;
--- a/components/omnibox/browser/autocomplete_controller.cc
+++ b/components/omnibox/browser/autocomplete_controller.cc
@@ -87,6 +87,7 @@
#include "components/optimization_guide/machine_learning_tflite_buildflags.h"
#include "components/search_engines/search_engine_type.h"
#include "components/search_engines/template_url.h"
+#include "components/search_engines/template_url_bang_manager.h"
#include "components/search_engines/template_url_service.h"
#include "components/search_engines/template_url_starter_pack_data.h"
#include "components/strings/grit/components_strings.h"
@@ -1766,7 +1767,21 @@ void AutocompleteController::UpdateKeywo
// name -- don't assume that the normal search keyword description
// is applicable.
i->description = template_url->AdjustedShortNameForLocaleDirection();
- if (template_url->type() != TemplateURL::OMNIBOX_API_EXTENSION) {
+ if (template_url->bang_id() > 0) {
+ int description_template = -1;
+
+ switch (bang_manager_->GetCategoryForBang(template_url->bang_id())) {
+ case Bangs::BANG_CATEGORY_AI:
+ description_template = IDS_OMNIBOX_SELECTED_KEYWORD_ASK_TEXT;
+ break;
+ default:
+ description_template = IDS_AUTOCOMPLETE_SEARCH_DESCRIPTION;
+ break;
+ }
+
+ i->description = l10n_util::GetStringFUTF16(
+ description_template, i->description);
+ } else if (template_url->type() != TemplateURL::OMNIBOX_API_EXTENSION) {
i->description = l10n_util::GetStringFUTF16(
IDS_AUTOCOMPLETE_SEARCH_DESCRIPTION, i->description);
}
--- a/components/omnibox/browser/keyword_provider.h
+++ b/components/omnibox/browser/keyword_provider.h
@@ -22,6 +22,7 @@
#include "components/omnibox/browser/autocomplete_input.h"
#include "components/omnibox/browser/autocomplete_provider.h"
#include "components/omnibox/browser/keyword_extensions_delegate.h"
+#include "components/search_engines/template_url_bang_manager.h"
#include "third_party/metrics_proto/omnibox_input_type.pb.h"
class AutocompleteProviderClient;
@@ -118,6 +119,8 @@ class KeywordProvider : public Autocompl
// Model for the keywords.
raw_ptr<TemplateURLService, DanglingUntriaged> model_;
+ const raw_ptr<Bangs::BangManager> bang_manager_ = Bangs::BangManager::GetInstance();
+
// Delegate to handle the extensions-only logic for KeywordProvider.
// NULL when extensions are not enabled. May be NULL for tests.
std::unique_ptr<KeywordExtensionsDelegate> extensions_delegate_;
--- a/components/omnibox/browser/keyword_provider.cc
+++ b/components/omnibox/browser/keyword_provider.cc
@@ -24,6 +24,7 @@
#include "components/omnibox/browser/search_provider.h"
#include "components/omnibox/common/omnibox_feature_configs.h"
#include "components/search_engines/template_url.h"
+#include "components/search_engines/template_url_bang_manager.h"
#include "components/search_engines/template_url_service.h"
#include "components/search_engines/template_url_starter_pack_data.h"
#include "components/strings/grit/components_strings.h"
@@ -421,9 +422,20 @@ void KeywordProvider::FillInURLAndConten
if (element_ref.SupportsReplacement(
GetTemplateURLService()->search_terms_data()) &&
(element->type() != TemplateURL::OMNIBOX_API_EXTENSION)) {
+
+ int empty_id = IDS_EMPTY_KEYWORD_VALUE;
+ if (element->bang_id() > 0) {
+ switch (bang_manager_->GetCategoryForBang(element->bang_id())) {
+ case Bangs::BANG_CATEGORY_AI:
+ empty_id = IDS_STARTER_PACK_PAGE_EMPTY_QUERY_MATCH_TEXT;
+ break;
+ default:
+ break;
+ }
+ }
// No query input; return a generic, no-destination placeholder.
match->contents.assign(
- l10n_util::GetStringUTF16(IDS_EMPTY_KEYWORD_VALUE));
+ l10n_util::GetStringUTF16(empty_id));
match->contents_class.emplace_back(0, ACMatchClassification::DIM);
} else {
// Keyword or extension that has no replacement text (aka a shorthand for
--- a/chrome/browser/ui/views/location_bar/selected_keyword_view.h
+++ b/chrome/browser/ui/views/location_bar/selected_keyword_view.h
@@ -9,6 +9,7 @@
#include "base/memory/raw_ptr.h"
#include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h"
+#include "components/search_engines/template_url_bang_manager.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/views/controls/label.h"
@@ -72,6 +73,8 @@ class SelectedKeywordView : public IconL
// May be nullptr in tests.
const raw_ptr<Profile> profile_;
+ const raw_ptr<Bangs::BangManager> bang_manager_ = Bangs::BangManager::GetInstance();
+
// The keyword we're showing. If empty, no keyword is selected.
// NOTE: we don't cache the TemplateURL as it is possible for it to get
// deleted out from under us.
--- a/chrome/browser/ui/views/location_bar/selected_keyword_view.cc
+++ b/chrome/browser/ui/views/location_bar/selected_keyword_view.cc
@@ -15,6 +15,7 @@
#include "components/omnibox/browser/vector_icons.h"
#include "components/search_engines/template_url_service.h"
#include "components/search_engines/template_url_starter_pack_data.h"
+#include "components/search_engines/template_url_bang_manager.h"
#include "components/strings/grit/components_strings.h"
#include "components/vector_icons/vector_icons.h"
#include "ui/accessibility/ax_enums.mojom.h"
@@ -113,6 +114,15 @@ void SelectedKeywordView::SetCustomImage
if (template_url &&
template_url->starter_pack_id() == TemplateURLStarterPackData::kGemini) {
vector_icon = &omnibox::kSparkIcon;
+
+ } else if (template_url && template_url->bang_id() > 0) {
+ switch (bang_manager_->GetCategoryForBang(template_url->bang_id())) {
+ case Bangs::BANG_CATEGORY_AI:
+ vector_icon = &vector_icons::kChatSparkIcon;
+ break;
+ default:
+ break;
+ }
} else if (history_embeddings::IsHistoryEmbeddingsEnabledForProfile(
profile_) &&
history_embeddings::GetFeatureParameters().omnibox_scoped &&
--- a/chrome/browser/ui/views/omnibox/omnibox_suggestion_button_row_view.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_suggestion_button_row_view.cc
@@ -23,6 +23,7 @@
#include "components/omnibox/browser/omnibox_edit_model.h"
#include "components/omnibox/browser/omnibox_field_trial.h"
#include "components/omnibox/browser/vector_icons.h"
+#include "components/search_engines/template_url_bang_manager.h"
#include "components/strings/grit/components_strings.h"
#include "components/vector_icons/vector_icons.h"
#include "third_party/metrics_proto/omnibox_event.pb.h"
@@ -345,6 +346,27 @@ void OmniboxSuggestionButtonRowView::Upd
const auto names = SelectedKeywordView::GetKeywordLabelNames(
keyword,
popup_view_->controller()->client()->GetTemplateURLService());
+
+ const gfx::VectorIcon* icon = &vector_icons::kSearchChromeRefreshIcon;
+
+ if (AutocompleteMatch* associated_keyword = match().associated_keyword.get();
+ associated_keyword != nullptr) {
+ TemplateURL* turl = associated_keyword->GetTemplateURL(
+ popup_view_->controller()->client()->GetTemplateURLService(),
+ false
+ );
+ auto* bang_manager = Bangs::BangManager::GetInstance();
+
+ switch (bang_manager->GetCategoryForBang(turl ? turl->bang_id() : 0)) {
+ case Bangs::BANG_CATEGORY_AI:
+ icon = &vector_icons::kChatSparkIcon;
+ break;
+ default:
+ break;
+ }
+ }
+
+ keyword_button_->SetIcon(*icon);
keyword_button_->SetText(names.full_name);
keyword_button_->GetViewAccessibility().SetName(
l10n_util::GetStringFUTF16(IDS_ACC_KEYWORD_MODE, names.short_name));
@@ -0,0 +1,40 @@
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
@@ -172,7 +172,7 @@ using PermanentFolderType = BookmarkPare
bool animations_enabled = true;
// Thickness of the separator (|) in dips (density-independent pixels).
-constexpr int kBookmarkBarSeparatorThickness = 2;
+constexpr int kBookmarkBarSeparatorThickness = 1;
gfx::ImageSkia* GetImageSkiaNamed(int id) {
return ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed(id);
@@ -350,8 +350,8 @@ class BookmarkBarView::ButtonSeparatorVi
public:
ButtonSeparatorView() {
- const int leading_padding = 8;
- const int trailing_padding = 8;
+ const int leading_padding = 3;
+ const int trailing_padding = 3;
separator_thickness_ = kBookmarkBarSeparatorThickness;
const gfx::Insets border_insets =
gfx::Insets::TLBR(0, leading_padding, 0, trailing_padding);
@@ -697,7 +697,7 @@ void BookmarkBarView::Layout(PassKey) {
}
int x = GetLeadingMargin();
- static constexpr int kBookmarkBarTrailingMargin = 8;
+ static constexpr int kBookmarkBarTrailingMargin = 6;
int width = View::width() - x - kBookmarkBarTrailingMargin;
const int button_height = GetLayoutConstant(BOOKMARK_BAR_BUTTON_HEIGHT);
@@ -818,7 +818,7 @@ void BookmarkBarView::Layout(PassKey) {
// the bookmark buttons.
if (saved_tab_group_bar_width > 0) {
// Possibly update the paddings of the separator
- constexpr int kSeparatorPadding = 8;
+ constexpr int kSeparatorPadding = 6;
const int left_padding = saved_tab_group_bar_->IsOverflowButtonVisible()
? 0
: kSeparatorPadding;
@@ -0,0 +1,10 @@
--- a/chrome/browser/ui/views/tabs/tab_group_editor_bubble_view.cc
+++ b/chrome/browser/ui/views/tabs/tab_group_editor_bubble_view.cc
@@ -754,6 +754,7 @@ bool TabGroupEditorBubbleView::IsGroupSh
}
bool TabGroupEditorBubbleView::ShouldShowSavedFooter() const {
+ return false;
PrefService* pref_service = browser_->profile()->GetPrefs();
return (CanSaveGroups() && pref_service &&
saved_tab_group_prefs::GetLearnMoreFooterShownCount(pref_service) <
@@ -0,0 +1,19 @@
--- a/components/omnibox/browser/autocomplete_match.cc
+++ b/components/omnibox/browser/autocomplete_match.cc
@@ -63,6 +63,7 @@
#include "components/omnibox/browser/suggestion_answer.h"
#include "components/omnibox/browser/vector_icons.h" // nogncheck
#include "components/vector_icons/vector_icons.h" // nogncheck
+#include "chrome/app/vector_icons/vector_icons.h" // nogncheck
#endif
constexpr bool kIsDesktop = !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_IOS);
@@ -643,7 +644,7 @@ const gfx::VectorIcon& AutocompleteMatch
case KEYWORD_MODE_STARTER_PACK_HISTORY:
return vector_icons::kHistoryChromeRefreshIcon;
case KEYWORD_MODE_STARTER_PACK_TABS:
- return omnibox::kProductChromeRefreshIcon;
+ return kTabIcon;
case KEYWORD_MODE_STARTER_PACK_GEMINI:
return omnibox::kSparkIcon;
default:
-145
View File
@@ -1,148 +1,3 @@
--- a/chrome/app/vector_icons/browser_logo.icon
+++ b/chrome/app/vector_icons/browser_logo.icon
@@ -1,46 +1,26 @@
-// Copyright 2023 The Chromium Authors
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+// 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.
-CANVAS_DIMENSIONS, 16,
-MOVE_TO, 5.5, 8.02,
-R_CUBIC_TO, 0, 0.7, 0.24, 1.29, 0.73, 1.77,
-R_ARC_TO, 2.41, 2.41, 0, 0, 0, 1.77, 0.73,
-R_CUBIC_TO, 0.7, 0, 1.29, -0.24, 1.77, -0.73,
-R_ARC_TO, 2.41, 2.41, 0, 0, 0, 0.73, -1.77,
-R_CUBIC_TO, 0, -0.69, -0.24, -1.28, -0.73, -1.77,
-ARC_TO, 2.41, 2.41, 0, 0, 0, 8, 5.52,
-R_CUBIC_TO, -0.69, 0, -1.28, 0.24, -1.77, 0.73,
-R_ARC_TO, 2.41, 2.41, 0, 0, 0, -0.73, 1.77,
+CANVAS_DIMENSIONS, 56,
+FILL_RULE_NONZERO,
+MOVE_TO, 26, 51,
+R_ARC_TO, 1, 1, 0, 0, 0, 4, 0,
+V_LINE_TO, 5,
+ARC_TO, 1, 1, 0, 0, 0, 26, 5,
CLOSE,
-MOVE_TO, 8, 11.77,
-R_CUBIC_TO, 0.13, 0, 0.25, 0, 0.39, -0.01,
-R_CUBIC_TO, 0.14, -0.01, 0.26, -0.03, 0.39, -0.06,
-LINE_TO, 7.09, 14.59,
-R_CUBIC_TO, -1.66, -0.18, -3.03, -0.9, -4.11, -2.16,
-R_CUBIC_TO, -1.08, -1.26, -1.62, -2.73, -1.62, -4.41,
-R_ARC_TO, 6.54, 6.54, 0, 0, 1, 0.66, -2.86,
-R_LINE_TO, 2.77, 4.73,
-R_CUBIC_TO, 0.33, 0.59, 0.77, 1.05, 1.35, 1.38,
-R_CUBIC_TO, 0.58, 0.33, 1.2, 0.5, 1.87, 0.5,
+MOVE_TO, 9, 6,
+ARC_TO, 1, 1, 0, 0, 0, 6, 9,
+LINE_TO, 47, 50,
+R_ARC_TO, 1, 1, 0, 0, 0, 3, -3,
CLOSE,
-MOVE_TO, 8, 4.27,
-R_CUBIC_TO, -0.82, 0, -1.55, 0.24, -2.19, 0.73,
-ARC_TO, 3.79, 3.79, 0, 0, 0, 4.46, 6.87,
-LINE_TO, 2.77, 3.94,
-R_ARC_TO, 6.2, 6.2, 0, 0, 1, 2.29, -1.9,
-ARC_TO, 6.64, 6.64, 0, 0, 1, 8, 1.38,
-R_CUBIC_TO, 1.09, 0, 2.13, 0.26, 3.09, 0.77,
-R_ARC_TO, 6.72, 6.72, 0, 0, 1, 2.38, 2.12,
+MOVE_TO, 5, 26,
+R_ARC_TO, 1, 1, 0, 0, 0, 0, 4,
+H_LINE_TO, 51,
+R_ARC_TO, 1, 1, 0, 0, 0, 0, -4,
CLOSE,
-R_MOVE_TO, 6.16, 1.25,
-R_CUBIC_TO, 0.17, 0.41, 0.3, 0.82, 0.37, 1.23,
-R_CUBIC_TO, 0.08, 0.42, 0.12, 0.84, 0.12, 1.27,
-R_CUBIC_TO, 0, 1.79, -0.58, 3.29, -1.73, 4.5,
-R_CUBIC_TO, -1.15, 1.22, -2.62, 1.93, -4.41, 2.12,
-R_LINE_TO, 2.71, -4.75,
-R_CUBIC_TO, 0.16, -0.29, 0.29, -0.59, 0.38, -0.9,
-R_ARC_TO, 3.34, 3.34, 0, 0, 0, 0.14, -0.97,
-R_CUBIC_TO, 0, -0.46, -0.09, -0.91, -0.26, -1.34,
-R_ARC_TO, 4.12, 4.12, 0, 0, 0, -0.71, -1.16,
+MOVE_TO, 6, 47,
+R_ARC_TO, 1, 1, 0, 0, 0, 3, 3,
+LINE_TO, 50, 9,
+ARC_TO, 1, 1, 0, 0, 0, 47, 6,
CLOSE
--- a/components/omnibox/browser/vector_icons/product_chrome_refresh.icon
+++ b/components/omnibox/browser/vector_icons/product_chrome_refresh.icon
@@ -1,51 +1,26 @@
-// Copyright 2023 The Chromium Authors
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
+// 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.
-CANVAS_DIMENSIONS, 15,
-MOVE_TO, 4.92, 7.5,
-R_CUBIC_TO, 0, 0.71, 0.25, 1.31, 0.76, 1.82,
-R_CUBIC_TO, 0.51, 0.51, 1.12, 0.76, 1.82, 0.76,
-R_CUBIC_TO, 0.7, 0, 1.31, -0.25, 1.82, -0.76,
-R_CUBIC_TO, 0.51, -0.51, 0.76, -1.12, 0.76, -1.82,
-R_CUBIC_TO, 0, -0.7, -0.25, -1.31, -0.76, -1.82,
-R_ARC_TO, 2.49, 2.49, 0, 0, 0, -1.82, -0.76,
-R_CUBIC_TO, -0.7, 0, -1.31, 0.25, -1.82, 0.76,
-R_ARC_TO, 2.49, 2.49, 0, 0, 0, -0.76, 1.82,
+CANVAS_DIMENSIONS, 56,
+FILL_RULE_NONZERO,
+MOVE_TO, 26, 51,
+R_ARC_TO, 1, 1, 0, 0, 0, 4, 0,
+V_LINE_TO, 5,
+ARC_TO, 1, 1, 0, 0, 0, 26, 5,
CLOSE,
-MOVE_TO, 7.5, 11.48,
-R_CUBIC_TO, 0.14, 0, 0.28, 0, 0.41, -0.02,
-R_CUBIC_TO, 0.13, -0.01, 0.26, -0.04, 0.39, -0.07,
-LINE_TO, 6.77, 14.06,
-R_CUBIC_TO, -1.65, -0.19, -3.04, -0.89, -4.15, -2.12,
-CUBIC_TO, 1.5, 10.71, 0.94, 9.24, 0.94, 7.55,
-R_CUBIC_TO, 0, -0.46, 0.05, -0.9, 0.13, -1.33,
-R_CUBIC_TO, 0.08, -0.44, 0.22, -0.85, 0.39, -1.25,
-R_LINE_TO, 2.63, 4.55,
-R_CUBIC_TO, 0.34, 0.59, 0.81, 1.07, 1.41, 1.43,
-R_CUBIC_TO, 0.6, 0.36, 1.26, 0.54, 2.01, 0.54,
+MOVE_TO, 9, 6,
+ARC_TO, 1, 1, 0, 0, 0, 6, 9,
+LINE_TO, 47, 50,
+R_ARC_TO, 1, 1, 0, 0, 0, 3, -3,
CLOSE,
-R_MOVE_TO, 0, -7.87,
-R_CUBIC_TO, -0.87, 0, -1.65, 0.25, -2.33, 0.77,
-R_ARC_TO, 3.95, 3.95, 0, 0, 0, -1.42, 1.94,
-LINE_TO, 2.21, 3.66,
-R_ARC_TO, 6.79, 6.79, 0, 0, 1, 2.27, -1.94,
-CUBIC_TO, 5.4, 1.22, 6.4, 0.98, 7.5, 0.98,
-R_CUBIC_TO, 1.1, 0, 2.08, 0.24, 2.99, 0.72,
-ARC_TO, 6.66, 6.66, 0, 0, 1, 12.76, 3.6,
-H_LINE_TO, 7.51,
-R_LINE_TO, -0.01, 0.01,
+MOVE_TO, 5, 26,
+R_ARC_TO, 1, 1, 0, 0, 0, 0, 4,
+H_LINE_TO, 51,
+R_ARC_TO, 1, 1, 0, 0, 0, 0, -4,
CLOSE,
-R_MOVE_TO, 6.01, 1.31,
-R_CUBIC_TO, 0.19, 0.4, 0.32, 0.83, 0.41, 1.27,
-R_CUBIC_TO, 0.09, 0.44, 0.15, 0.89, 0.15, 1.36,
-R_CUBIC_TO, 0, 1.7, -0.55, 3.16, -1.68, 4.38,
-R_CUBIC_TO, -1.11, 1.23, -2.47, 1.93, -4.1, 2.13,
-R_LINE_TO, 2.63, -4.55,
-R_CUBIC_TO, 0.17, -0.28, 0.29, -0.59, 0.38, -0.92,
-R_CUBIC_TO, 0.09, -0.34, 0.15, -0.69, 0.15, -1.05,
-R_CUBIC_TO, 0, -0.52, -0.09, -0.99, -0.28, -1.42,
-R_ARC_TO, 3.96, 3.96, 0, 0, 0, -0.74, -1.2,
-R_H_LINE_TO, 3.08,
-R_V_LINE_TO, 0.01,
+MOVE_TO, 6, 47,
+R_ARC_TO, 1, 1, 0, 0, 0, 3, 3,
+LINE_TO, 50, 9,
+ARC_TO, 1, 1, 0, 0, 0, 47, 6,
CLOSE
--- a/ui/webui/resources/cr_elements/icons.html.ts
+++ b/ui/webui/resources/cr_elements/icons.html.ts
@@ -114,9 +114,8 @@ div.innerHTML = getTrustedHTML`
+16 -7
View File
@@ -1,5 +1,14 @@
--- a/chrome/browser/ui/layout_constants.cc
+++ b/chrome/browser/ui/layout_constants.cc
@@ -29,7 +29,7 @@ int GetLayoutConstant(LayoutConstant con
case BOOKMARK_BAR_HEIGHT: {
// The fixed margin ensures the bookmark buttons appear centered relative
// to the white space above and below.
- const int bookmark_bar_attached_vertical_margin = 6;
+ const int bookmark_bar_attached_vertical_margin = 3;
return GetLayoutConstant(BOOKMARK_BAR_BUTTON_HEIGHT) +
bookmark_bar_attached_vertical_margin;
}
@@ -52,7 +52,7 @@ int GetLayoutConstant(LayoutConstant con
case LOCATION_BAR_CHILD_INTERIOR_PADDING:
return 3;
@@ -28,7 +37,7 @@
return touch_ui ? 3 : 8;
case LOCATION_BAR_HEIGHT:
- return touch_ui ? 36 : 34;
+ return touch_ui ? 36 : 32;
+ return touch_ui ? 36 : 30;
case LOCATION_BAR_ICON_SIZE:
return touch_ui ? 20 : 16;
case LOCATION_BAR_LEADING_ICON_SIZE:
@@ -37,13 +46,13 @@
return touch_ui ? 24 : 16;
case TAB_HEIGHT:
- return 34 + GetLayoutConstant(TABSTRIP_TOOLBAR_OVERLAP);
+ return 34;
+ return 33;
case TAB_STRIP_HEIGHT:
return GetLayoutConstant(TAB_HEIGHT) +
GetLayoutConstant(TAB_STRIP_PADDING);
case TAB_STRIP_PADDING:
- return 6;
+ return 4;
+ return 3;
case TAB_SEPARATOR_HEIGHT:
return touch_ui ? 24 : 20;
case TAB_PRE_TITLE_PADDING:
@@ -60,7 +69,7 @@
+ return 0;
case TOOLBAR_BUTTON_HEIGHT:
- return touch_ui ? 48 : 34;
+ return touch_ui ? 48 : 32;
+ return touch_ui ? 48 : 28;
case TOOLBAR_DIVIDER_CORNER_RADIUS:
return 1;
case TOOLBAR_DIVIDER_HEIGHT:
@@ -86,11 +95,11 @@
case LOCATION_BAR_PAGE_INFO_ICON_PADDING:
- return touch_ui ? gfx::Insets::VH(5, 10) : gfx::Insets::VH(4, 4);
+ return touch_ui ? gfx::Insets::VH(5, 10) : gfx::Insets::VH(4, 6);
+ return touch_ui ? gfx::Insets::VH(5, 10) : gfx::Insets::VH(4, 5);
case LOCATION_BAR_PAGE_ACTION_ICON_PADDING:
- return touch_ui ? gfx::Insets::VH(5, 10) : gfx::Insets::VH(2, 2);
+ return touch_ui ? gfx::Insets::VH(5, 10) : gfx::Insets::VH(2, 4);
+ return touch_ui ? gfx::Insets::VH(5, 10) : gfx::Insets::VH(2, 3);
case TOOLBAR_ACTION_VIEW: {
// TODO(afakhry): Unify all toolbar button sizes on all platforms.
@@ -99,7 +108,7 @@
case TOOLBAR_BUTTON:
- return gfx::Insets(touch_ui ? 12 : 7);
+ return gfx::Insets(touch_ui ? 12 : 5);
+ return gfx::Insets(touch_ui ? 12 : 4);
case BROWSER_APP_MENU_CHIP_PADDING:
if (touch_ui) {
+2 -2
View File
@@ -128,8 +128,8 @@
// Indentation to match the suggestion icons & texts when in keyword mode.
- int icon_keyword_indent = 9;
- int text_keyword_indent = -9;
+ int icon_keyword_indent = 4;
+ int text_keyword_indent = -2;
+ int icon_keyword_indent = 3;
+ int text_keyword_indent = 0;
// Indentation add padding when the permission chip is visible and replacing
// the LHS icon.
int text_overriding_permission_chip_indent = 0;
+30 -2
View File
@@ -1,11 +1,20 @@
--- a/ui/views/layout/layout_provider.cc
+++ b/ui/views/layout/layout_provider.cc
@@ -86,7 +86,7 @@ int LayoutProvider::GetDistanceMetric(in
case DISTANCE_BUBBLE_PREFERRED_WIDTH:
return kSmallDialogWidth;
case DISTANCE_BUTTON_HORIZONTAL_PADDING:
- return 16;
+ return 14;
case DISTANCE_BUTTON_MAX_LINKABLE_WIDTH:
return 112;
case DISTANCE_CLOSE_BUTTON_MARGIN:
@@ -201,19 +201,19 @@ ShapeSysTokens GetShapeSysToken(ShapeCon
static constexpr auto shape_token_map =
base::MakeFixedFlatMap<ShapeContextTokens, ShapeSysTokens>({
{ShapeContextTokens::kBadgeRadius, ShapeSysTokens::kXSmall},
- {ShapeContextTokens::kButtonRadius, ShapeSysTokens::kFull},
+ {ShapeContextTokens::kButtonRadius, ShapeSysTokens::kSmall},
+ {ShapeContextTokens::kButtonRadius, ShapeSysTokens::kMSmall},
{ShapeContextTokens::kComboboxRadius, ShapeSysTokens::kSmall},
- {ShapeContextTokens::kDialogRadius, ShapeSysTokens::kMediumSmall},
+ {ShapeContextTokens::kDialogRadius, ShapeSysTokens::kSmall},
@@ -22,7 +31,26 @@
{ShapeContextTokens::kTextfieldRadius, ShapeSysTokens::kSmall},
{ShapeContextTokens::kSidePanelContentRadius,
- ShapeSysTokens::kMedium},
+ ShapeSysTokens::kXSmall},
+ ShapeSysTokens::kMediumSmall},
{ShapeContextTokens::kSidePanelPageContentRadius,
ShapeSysTokens::kSmall},
});
@@ -229,6 +229,8 @@ int LayoutProvider::GetCornerRadiusMetri
switch (token) {
case ShapeSysTokens::kXSmall:
return 4;
+ case ShapeSysTokens::kMSmall:
+ return 7;
case ShapeSysTokens::kSmall:
return 8;
case ShapeSysTokens::kMediumSmall:
--- a/ui/views/layout/layout_provider.h
+++ b/ui/views/layout/layout_provider.h
@@ -183,6 +183,7 @@ enum class ShapeSysTokens {
// mapping.
kDefault,
kXSmall,
+ kMSmall,
kSmall,
kMediumSmall,
kMedium,
+33 -8
View File
@@ -19,8 +19,12 @@
contents_host_->layer()->SetRoundedCornerRadius(
gfx::RoundedCornersF(corner_radius));
contents_host_->layer()->SetIsFastRoundedCorner(true);
@@ -287,7 +286,7 @@ gfx::Insets RoundedOmniboxResultsFrame::
if (ui::TouchUiController::Get()->touch_ui()) {
@@ -284,10 +283,10 @@ int RoundedOmniboxResultsFrame::GetNonRe
// static
gfx::Insets RoundedOmniboxResultsFrame::GetLocationBarAlignmentInsets() {
- if (ui::TouchUiController::Get()->touch_ui()) {
+ if ((false)) {
return gfx::Insets::TLBR(6, 1, 5, 1);
}
- return gfx::Insets::VH(5, 6);
@@ -54,7 +58,7 @@
OmniboxPopupSelection::FOCUSED_BUTTON_REMOVE_SUGGESTION)));
remove_suggestion_button_->SetProperty(views::kMarginsKey,
- gfx::Insets::TLBR(0, 0, 0, 16));
+ gfx::Insets::TLBR(0, 0, 0, 8));
+ gfx::Insets::TLBR(0, 0, 0, 4));
views::InstallCircleHighlightPathGenerator(remove_suggestion_button_);
auto* const remove_focus_ring =
views::FocusRing::Get(remove_suggestion_button_);
@@ -128,13 +132,13 @@
// c) Regardless of the state of those other features and their widths.
// This applies to both touch-UI and non-touch-UI.
- int indent = 16 + kUniformRowHeightIconSize / 2 - kImageBoundsWidth / 2;
+ int indent = 6.5f + kUniformRowHeightIconSize / 2 - kImageBoundsWidth / 2;
+ int indent = 5 + kUniformRowHeightIconSize / 2 - kImageBoundsWidth / 2;
return indent;
}
int OmniboxMatchCellView::GetTextIndent() const {
+ return 35;
+ return 33;
// Text indent is added to the `OmniboxMatchCellView::GetInsets()`. It is not
// added to the image position & size.
@@ -145,7 +149,7 @@
// The height of the standard 1-line match row. Multiline & IPH matches have
// larger heights.
- static constexpr int kRowHeight = 40;
+ static constexpr int kRowHeight = 32;
+ static constexpr int kRowHeight = 30;
// The width of icon, answer, and entity image bounds. These images are
// smaller than this bounds; they'll be centered within the bounds.
@@ -162,7 +166,28 @@
--- a/chrome/browser/ui/views/omnibox/omnibox_suggestion_button_row_view.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_suggestion_button_row_view.cc
@@ -152,6 +152,7 @@ class OmniboxSuggestionRowButton : publi
@@ -70,7 +70,7 @@ class OmniboxSuggestionRowChip : public
views::DISTANCE_RELATED_BUTTON_HORIZONTAL)));
SetImageLabelSpacing(5);
- SetCustomPadding(gfx::Insets::VH(0, 7));
+ SetCustomPadding(gfx::Insets::VH(0, 6));
SetCornerRadius(100); // Large number to ensure 100% rounded.
views::InkDrop::Get(this)->GetInkDrop()->SetShowHighlightOnHover(false);
@@ -137,9 +137,8 @@ class OmniboxSuggestionRowButton : publi
ui::EF_MIDDLE_MOUSE_BUTTON);
views::InstallPillHighlightPathGenerator(this);
- SetImageLabelSpacing(8);
- SetCustomPadding(ChromeLayoutProvider::Get()->GetInsetsMetric(
- INSETS_OMNIBOX_PILL_BUTTON));
+ SetImageLabelSpacing(6);
+ SetCustomPadding(gfx::Insets::VH(3, 8));
SetCornerRadius(GetLayoutConstant(TOOLBAR_CORNER_RADIUS));
auto* const ink_drop = views::InkDrop::Get(this);
@@ -152,6 +151,7 @@ class OmniboxSuggestionRowButton : publi
CHECK(v);
return v->GetVisible() && v->popup_view_->GetSelection() == v->selection_;
}));
@@ -170,7 +195,7 @@
focus_ring->SetColorId(kColorOmniboxResultsFocusIndicator);
GetViewAccessibility().SetRole(ax::mojom::Role::kListBoxOption);
@@ -235,7 +236,7 @@ OmniboxSuggestionButtonRowView::OmniboxS
@@ -235,7 +235,7 @@ OmniboxSuggestionButtonRowView::OmniboxS
OmniboxPopupViewViews* popup_view,
int model_index)
: popup_view_(popup_view), model_index_(model_index) {
@@ -0,0 +1,35 @@
--- a/chrome/browser/resources/signin/profile_customization/profile_customization_app.css
+++ b/chrome/browser/resources/signin/profile_customization/profile_customization_app.css
@@ -30,9 +30,8 @@
}
.in-dialog-design #header {
- background: center 18px no-repeat
- url(./images/profile_customization_illustration.svg);
- height: 170px;
+ background: none;
+ height: 130px;
}
#avatarContainer {
@@ -47,7 +46,7 @@
.in-dialog-design #avatarContainer {
--avatar-size: 76px;
- top: 91px;
+ top: 60px;
}
#avatar {
@@ -233,11 +232,6 @@ cr-profile-avatar-selector {
border: 1px solid var(--google-grey-500);
}
- .in-dialog-design #header {
- background-image:
- url(./images/profile_customization_illustration_dark.svg);
- }
-
#nameInput {
--cr-input-placeholder-color: rgba(var(--google-grey-200-rgb), .5);
}
@@ -0,0 +1,51 @@
--- a/chrome/browser/resources/signin/profile_picker/profile_picker_app.html.ts
+++ b/chrome/browser/resources/signin/profile_picker/profile_picker_app.html.ts
@@ -8,8 +8,6 @@ import type {ProfilePickerAppElement} fr
export function getHtml(this: ProfilePickerAppElement) {
return html`<!--_html_template_start_-->
-<img id="banner-right" alt="">
-<img id="banner-left" alt="">
<cr-view-manager id="viewManager">
<profile-picker-main-view id="mainView" slot="view">
--- a/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.css
+++ b/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.css
@@ -146,11 +146,6 @@ cr-icon[icon='profiles:add'] {
--iron-icon-stroke-color: var(--google-grey-700);
}
-#browseAsGuestButton {
- margin-inline-start: var(--footer-spacing);
- padding: 8px 16px;
-}
-
#browseAsGuestButton > cr-icon {
margin-inline-end: 0;
--iron-icon-height: 24px;
@@ -161,10 +156,10 @@ cr-checkbox {
--cr-checkbox-label-color: var(--cr-secondary-text-color);
--cr-checkbox-label-padding-start: 8px;
justify-content: flex-end;
- margin-inline-end: var(--footer-spacing);
- margin-inline-start: auto;
- padding-inline-end: 5px;
- padding-inline-start: 5px;
+}
+
+.footer {
+ justify-content: space-evenly;
}
#button-sign-in {
--- a/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.html.ts
+++ b/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.html.ts
@@ -20,7 +20,7 @@ ${function() {
<div class="flex-container">
<div class="title-container">
<div id="images-container">
- <img id="product-logo" @click="${this.onProductLogoClick_}"
+ <img id="product-logo"
src="product_logo.svg" role="presentation">
<img id="glic-logo" ?hidden="${!isGlicVersion()}" role="presentation">
</div>
@@ -0,0 +1,14 @@
--- a/ui/views/controls/button/md_text_button.cc
+++ b/ui/views/controls/button/md_text_button.cc
@@ -265,9 +265,8 @@ gfx::Insets MdTextButton::CalculateDefau
int label_height = label()->GetPreferredSize({}).height();
DCHECK_GE(target_height, label_height);
- int top_padding = (target_height - label_height) / 2;
- int bottom_padding = (target_height - label_height + 1) / 2;
- DCHECK_EQ(target_height, label_height + top_padding + bottom_padding);
+ int top_padding = ((target_height - label_height) / 2) - 1;
+ int bottom_padding = ((target_height - label_height + 1) / 2) - 1;
// TODO(estade): can we get rid of the platform style border hoopla if
// we apply the MD treatment to all buttons, even GTK buttons?
@@ -9,6 +9,14 @@
BuildSyncInfo();
BuildAutofillButtons();
}
@@ -901,6 +901,7 @@ void ProfileMenuView::BuildIdentityWithC
}
void ProfileMenuView::BuildAutofillSettingsButton() {
+ return;
CHECK(!browser()->profile()->IsGuestSession());
AddFeatureButton(
l10n_util::GetStringUTF16(IDS_PROFILE_MENU_AUTOFILL_SETTINGS_BUTTON),
--- a/chrome/browser/ui/views/profiles/profile_menu_view_base.cc
+++ b/chrome/browser/ui/views/profiles/profile_menu_view_base.cc
@@ -690,8 +690,6 @@ void ProfileMenuViewBase::SetProfileIden
@@ -0,0 +1,37 @@
--- a/third_party/devtools-frontend/src/front_end/panels/recorder/RecorderController.ts
+++ b/third_party/devtools-frontend/src/front_end/panels/recorder/RecorderController.ts
@@ -1449,9 +1449,11 @@ export class RecorderController extends
}
></devtools-button>
<div class="feedback">
+ <!--
<x-link class="x-link" href=${
FEEDBACK_URL
} jslog=${VisualLogging.link('feedback').track({click: true})}>${i18nString(UIStrings.sendFeedback)}</x-link>
+ -->
</div>
<div class="separator"></div>
<devtools-shortcut-dialog
--- a/third_party/devtools-frontend/src/front_end/entrypoints/devtools_app/devtools_app.ts
+++ b/third_party/devtools-frontend/src/front_end/entrypoints/devtools_app/devtools_app.ts
@@ -26,7 +26,6 @@ import '../../panels/web_audio/web_audio
import '../../panels/webauthn/webauthn-meta.js';
import '../../panels/layer_viewer/layer_viewer-meta.js';
import '../../panels/recorder/recorder-meta.js';
-import '../../panels/whats_new/whats_new-meta.js';
import * as Root from '../../core/root/root.js';
import * as Main from '../main/main.js';
--- a/third_party/devtools-frontend/src/front_end/entrypoints/main/MainImpl.ts
+++ b/third_party/devtools-frontend/src/front_end/entrypoints/main/MainImpl.ts
@@ -959,8 +959,10 @@ export class MainMenuItem implements UI.
}, {jslogContext: id});
}
+ /*
const helpSubMenu = contextMenu.footerSection().appendSubMenuItem(i18nString(UIStrings.help), false, 'help');
helpSubMenu.appendItemsAtLocation('mainMenuHelp');
+ */
}
}
@@ -1,48 +0,0 @@
--- a/chrome/browser/resources/side_panel/customize_chrome/customize_toolbar/toolbar.html.ts
+++ b/chrome/browser/resources/side_panel/customize_chrome/customize_toolbar/toolbar.html.ts
@@ -14,11 +14,6 @@ export function getHtml(this: ToolbarEle
back-button-title="$i18n{backButton}">
<h2 slot="heading">$i18n{toolbarHeader}</h2>
</sp-heading>
- <div id="miniToolbarBackground">
- <svg id="miniToolbar" src="icons/mini_toolbar.svg">
- <use href="icons/mini_toolbar.svg#miniToolbar"></use>
- </svg>
- </div>
<div class="intro-text">$i18n{chooseToolbarIconsLabel}</div>
<cr-button id="resetToDefaultButton" class="floating-button"
@click="${this.onResetToDefaultClicked_}"
--- a/chrome/browser/resources/side_panel/customize_chrome/theme_snapshot.html.ts
+++ b/chrome/browser/resources/side_panel/customize_chrome/theme_snapshot.html.ts
@@ -13,15 +13,6 @@ export function getHtml(this: ThemeSnaps
${this.themeType_ === CustomizeThemeType.CUSTOM_THEME ? html`
<div class="snapshot-container"
theme-type="${CustomizeThemeType.CUSTOM_THEME}">
- <div class="image-background" id="customThemeImageBackground"
- @click="${this.onThemeSnapshotClick_}">
- <img class="image" id="customThemeImage" is="cr-auto-img"
- .autoSrc="${this.theme_!.backgroundImage!.snapshotUrl.url}"
- draggable="false"
- aria-labelledby="customThemeTitle">
- <div class="overlay"></div>
- <cr-ripple></cr-ripple>
- </div>
<div id="customThemeTitle" class="theme-title">
${this.theme_!.backgroundImage!.title}
</div>
@@ -30,15 +21,6 @@ ${this.themeType_ === CustomizeThemeType
${this.themeType_ === CustomizeThemeType.CLASSIC_CHROME ? html`
<div class="snapshot-container"
theme-type="${CustomizeThemeType.CLASSIC_CHROME}">
- <div class="image-background image" id="classicChromeBackground"
- @click="${this.onThemeSnapshotClick_}">
- <svg id="miniNewTabPage" aria-labelledby="classicChromeThemeTitle"
- viewBox="0 0 240 126" preserveAspectRatio="xMidYMid meet">
- <use href="icons/mini_new_tab_page.svg#miniNewTabPage"></use>
- </svg>
- <div class="overlay"></div>
- <cr-ripple></cr-ripple>
- </div>
<div id="classicChromeThemeTitle" class="theme-title">
$i18n{classicChrome}
</div>
@@ -19,7 +19,7 @@
auto location_bar = std::make_unique<LocationBarView>(
browser_, browser_->profile(), browser_->command_controller(), this,
display_mode_ != DisplayMode::NORMAL);
@@ -813,13 +801,6 @@ void ToolbarView::Layout(PassKey) {
@@ -831,13 +819,6 @@ void ToolbarView::Layout(PassKey) {
// The container view should be the exact same size/position as ToolbarView.
container_view_->SetSize(size());
@@ -33,7 +33,7 @@
if (display_mode_ == DisplayMode::CUSTOM_TAB) {
custom_tab_bar_->SetBounds(0, 0, width(),
custom_tab_bar_->GetPreferredSize().height());
@@ -829,7 +810,6 @@ void ToolbarView::Layout(PassKey) {
@@ -847,7 +828,6 @@ void ToolbarView::Layout(PassKey) {
if (display_mode_ == DisplayMode::NORMAL) {
LayoutCommon();
@@ -41,7 +41,7 @@
}
if (toolbar_controller_) {
@@ -867,37 +847,6 @@ void ToolbarView::OnThemeChanged() {
@@ -885,37 +865,6 @@ void ToolbarView::OnThemeChanged() {
SchedulePaint();
}
+418
View File
@@ -0,0 +1,418 @@
--- a/chrome/browser/resources/side_panel/customize_chrome/customize_toolbar/toolbar.html.ts
+++ b/chrome/browser/resources/side_panel/customize_chrome/customize_toolbar/toolbar.html.ts
@@ -8,31 +8,15 @@ import type {ToolbarElement} from './too
export function getHtml(this: ToolbarElement) {
return html`<!--_html_template_start_-->
-<div class="sp-card">
- <sp-heading id="heading" @back-button-click="${this.onBackClick_}"
+<div class="sp-card" id="pinningSelectionCard">
+ <sp-heading id="heading" class="separator" @back-button-click="${this.onBackClick_}"
back-button-aria-label="$i18n{backButton}"
back-button-title="$i18n{backButton}">
<h2 slot="heading">$i18n{toolbarHeader}</h2>
</sp-heading>
- <div id="miniToolbarBackground">
- <svg id="miniToolbar" src="icons/mini_toolbar.svg">
- <use href="icons/mini_toolbar.svg#miniToolbar"></use>
- </svg>
- </div>
- <div class="intro-text">$i18n{chooseToolbarIconsLabel}</div>
- <cr-button id="resetToDefaultButton" class="floating-button"
- @click="${this.onResetToDefaultClicked_}"
- ?disabled="${this.resetToDefaultDisabled_}">
- <div id="resetToDefaultIcon" class="cr-icon" slot="prefix-icon"></div>
- $i18n{resetToDefaultButtonLabel}
- </cr-button>
-</div>
-<hr class="sp-cards-separator">
-<div class="sp-card" id="pinningSelectionCard">
${
this.categories_.map(
(category, categoryIndex) => html`
- <h3 class="choose-icons-row category-title">${category.displayName}</h3>
${
this.actions_.map(
(action) => action.category === category.id ?
@@ -76,6 +60,13 @@ export function getHtml(this: ToolbarEle
html`<hr class="sp-hr">` :
''}
`)}
+ <hr class="sp-hr">
+ <cr-button id="resetToDefaultButton"
+ @click="${this.onResetToDefaultClicked_}"
+ ?disabled="${this.resetToDefaultDisabled_}">
+ <div id="resetToDefaultIcon" class="cr-icon" slot="prefix-icon"></div>
+ $i18n{resetToDefaultButtonLabel}
+ </cr-button>
</div>
<hr class="sp-cards-separator">
<div class="sp-card" id="tipCard">
--- a/chrome/browser/resources/side_panel/customize_chrome/theme_snapshot.html.ts
+++ b/chrome/browser/resources/side_panel/customize_chrome/theme_snapshot.html.ts
@@ -13,15 +13,6 @@ export function getHtml(this: ThemeSnaps
${this.themeType_ === CustomizeThemeType.CUSTOM_THEME ? html`
<div class="snapshot-container"
theme-type="${CustomizeThemeType.CUSTOM_THEME}">
- <div class="image-background" id="customThemeImageBackground"
- @click="${this.onThemeSnapshotClick_}">
- <img class="image" id="customThemeImage" is="cr-auto-img"
- .autoSrc="${this.theme_!.backgroundImage!.snapshotUrl.url}"
- draggable="false"
- aria-labelledby="customThemeTitle">
- <div class="overlay"></div>
- <cr-ripple></cr-ripple>
- </div>
<div id="customThemeTitle" class="theme-title">
${this.theme_!.backgroundImage!.title}
</div>
@@ -30,15 +21,6 @@ ${this.themeType_ === CustomizeThemeType
${this.themeType_ === CustomizeThemeType.CLASSIC_CHROME ? html`
<div class="snapshot-container"
theme-type="${CustomizeThemeType.CLASSIC_CHROME}">
- <div class="image-background image" id="classicChromeBackground"
- @click="${this.onThemeSnapshotClick_}">
- <svg id="miniNewTabPage" aria-labelledby="classicChromeThemeTitle"
- viewBox="0 0 240 126" preserveAspectRatio="xMidYMid meet">
- <use href="icons/mini_new_tab_page.svg#miniNewTabPage"></use>
- </svg>
- <div class="overlay"></div>
- <cr-ripple></cr-ripple>
- </div>
<div id="classicChromeThemeTitle" class="theme-title">
$i18n{classicChrome}
</div>
--- a/chrome/browser/resources/side_panel/customize_chrome/app.css
+++ b/chrome/browser/resources/side_panel/customize_chrome/app.css
@@ -23,22 +23,18 @@
display: block;
}
-sp-heading {
- margin: 8px 16px;
-}
-
.sp-card {
font-size: 12px;
font-weight: 500;
line-height: 16px;
- max-width: calc(360px - 2 * var(--sp-body-padding));
+ max-width: calc(360px - var(--sp-body-padding));
}
#toolbarButton {
border: none;
color: var(--cr-primary-text-color);
display: flex;
- height: 52px;
+ height: 48px;
justify-content: space-between;
padding: 8px 16px;
}
--- a/chrome/browser/resources/side_panel/customize_chrome/app.html.ts
+++ b/chrome/browser/resources/side_panel/customize_chrome/app.html.ts
@@ -14,7 +14,7 @@ export function getHtml(this: AppElement
selected="${this.page_}" attr-for-selected="page-name">
<div page-name="overview" id="overviewPage">
<div id="appearance" class="section sp-card">
- <sp-heading hide-back-button>
+ <sp-heading hide-back-button class="separator">
<h2 slot="heading">$i18n{appearanceHeader}</h2>
</sp-heading>
<customize-chrome-appearance @edit-theme-click="${this.onEditThemeClick_}"
@@ -35,9 +35,6 @@ export function getHtml(this: AppElement
</cr-button>
${this.isSourceTabFirstPartyNtp_ ? html`<hr class="sp-cards-separator">
<div id="shortcuts" class="section sp-card">
- <sp-heading hide-back-button>
- <h2 slot="heading">$i18n{shortcutsHeader}</h2>
- </sp-heading>
<customize-chrome-shortcuts></customize-chrome-shortcuts>
</div>`: ''}
${(this.modulesEnabled_ && this.isSourceTabFirstPartyNtp_) ? html`
--- a/chrome/browser/resources/side_panel/customize_chrome/appearance.css
+++ b/chrome/browser/resources/side_panel/customize_chrome/appearance.css
@@ -25,7 +25,8 @@
}
#editThemeButton {
- flex-grow: 1;
+ width: calc(100% - 32px);
+ margin: 12px 16px 8px 16px;
}
#wallpaperSearchButton {
@@ -80,6 +81,7 @@ customize-color-scheme-mode,
customize-color-scheme-mode {
display: block;
margin: 16px;
+ margin-top: 0;
}
cr-theme-color-picker {
--- a/chrome/browser/resources/side_panel/customize_chrome/appearance.html.ts
+++ b/chrome/browser/resources/side_panel/customize_chrome/appearance.html.ts
@@ -11,8 +11,20 @@ export function getHtml(this: Appearance
return html`<!--_html_template_start_-->
<customize-chrome-theme-snapshot id="themeSnapshot"
@edit-theme-click="${this.onEditThemeClicked_}"
- ?hidden="${!this.showThemeSnapshot_}">
+ ?hidden="${true}">
</customize-chrome-theme-snapshot>
+<customize-color-scheme-mode></customize-color-scheme-mode>
+<cr-theme-color-picker id="chromeColors" ?hidden="${!this.showColorPicker_}">
+</cr-theme-color-picker>
+<hr class="sp-hr">
+<div id="followThemeToggle" class="sp-card-content"
+ ?hidden="${!this.showDeviceThemeToggle_}">
+ <div id="followThemeToggleTitle">$i18n{followThemeToggle}</div>
+ <cr-toggle id="followThemeToggleControl" title="$i18n{followThemeToggle}"
+ ?checked="${!!this.theme_ && this.theme_.followDeviceTheme}"
+ @change="${this.onFollowThemeToggleChange_}">
+ </cr-toggle>
+</div>
<customize-chrome-hover-button id="thirdPartyThemeLinkButton"
class="link-out-button theme-button"
?hidden="${!this.thirdPartyThemeId_}"
@@ -26,56 +38,16 @@ export function getHtml(this: Appearance
label="$i18n{yourUploadedImage}"
label-description="$i18n{currentTheme}">
</customize-chrome-hover-button>
-<customize-chrome-hover-button id="searchedImageButton" class="theme-button"
- ?hidden="${!this.showSearchedImageButton_}"
- @click="${this.onSearchedImageButtonClick_}"
- label="$i18n{yourSearchedImage}"
- label-description="$i18n{currentTheme}">
-</customize-chrome-hover-button>
-${(!this.isSourceTabFirstPartyNtp_ && !!this.ntpManagedByName_) ? html`
- <customize-chrome-hover-button id="thirdPartyManageLinkButton"
- aria-button-label="${this.i18n('newTabPageManagedByA11yLabel',
- this.ntpManagedByName_)}"
- class="link-out-button theme-button"
- @click="${this.onNewTabPageManageByButtonClicked_}"
- label-description="${this.i18n('newTabPageManagedBy',
- this.ntpManagedByName_)}">
- </customize-chrome-hover-button>
- `: ''}
-<div id="editButtonsContainer" ?hidden="${!this.showEditTheme_}">
- <cr-button id="editThemeButton" @click="${this.onEditThemeClicked_}"
- class="floating-button">
- <div id="editThemeIcon" class="cr-icon edit-theme-icon" slot="prefix-icon"
- ?hidden="${this.wallpaperSearchButtonEnabled_}"></div>
- ${this.editThemeButtonText_}
- </cr-button>
- ${this.wallpaperSearchButtonEnabled_ ? html`
- <cr-button id="wallpaperSearchButton"
- @click="${this.onWallpaperSearchClicked_}" class="floating-button">
- <div id="wallpaperSearchIcon" class="cr-icon edit-theme-icon"
- slot="prefix-icon"></div>
- $i18n{wallpaperSearchTileLabel}
- </cr-button>
- ` : ''}
-</div>
-<hr class="sp-hr" ?hidden="${!this.showEditTheme_}">
-<customize-color-scheme-mode></customize-color-scheme-mode>
-<cr-theme-color-picker id="chromeColors" ?hidden="${!this.showColorPicker_}">
-</cr-theme-color-picker>
-<hr class="sp-hr" ?hidden="${!this.showBottomDivider_}">
-<div id="followThemeToggle" class="sp-card-content"
- ?hidden="${!this.showDeviceThemeToggle_}">
- <div id="followThemeToggleTitle">$i18n{followThemeToggle}</div>
- <cr-toggle id="followThemeToggleControl" title="$i18n{followThemeToggle}"
- ?checked="${!!this.theme_ && this.theme_.followDeviceTheme}"
- @change="${this.onFollowThemeToggleChange_}">
- </cr-toggle>
-</div>
<customize-chrome-hover-button id="setClassicChromeButton"
?hidden="${!this.showClassicChromeButton_}"
label="$i18n{resetToClassicChrome}"
@click="${this.onSetClassicChromeClicked_}">
</customize-chrome-hover-button>
+<cr-button id="editThemeButton" @click="${this.onEditThemeClicked_}">
+ <div id="editThemeIcon" class="cr-icon edit-theme-icon" slot="prefix-icon"
+ ?hidden="${this.wallpaperSearchButtonEnabled_}"></div>
+ ${this.editThemeButtonText_}
+</cr-button>
${this.showManagedDialog_ ? html`
<managed-dialog @close="${this.onManagedDialogClosed_}"
title="$i18n{managedColorsTitle}"
--- a/chrome/browser/resources/side_panel/customize_chrome/customize_toolbar/toolbar.css
+++ b/chrome/browser/resources/side_panel/customize_chrome/customize_toolbar/toolbar.css
@@ -15,21 +15,14 @@
font-weight: 500;
line-height: 16px;
padding: var(--sp-card-padding);
- max-width: calc(360px - 2 * var(--sp-body-padding) - 2 * var(
- --sp-card-inline-padding));
}
#pinningSelectionCard {
/* Remove horizontal padding for highlight */
- padding: 16px 0px 0px 0px;
- max-width: calc(360px - 2 * var(--sp-body-padding));
+ padding: 8px 0;
overflow: hidden;
}
-.sp-card sp-heading {
- padding: 0;
-}
-
.choose-icons-row-container {
align-items: center;
display: flex;
@@ -49,7 +42,7 @@
.sp-hr {
width: auto;
- margin: 8px 16px;
+ margin: 6px 16px;
}
.choose-icons-row {
@@ -87,8 +80,8 @@
}
#resetToDefaultButton {
- margin: 0 0 8px 0;
- width: 100%;
+ margin: 8px 16px;
+ width: calc(100% - 32px);
}
#resetToDefaultIcon {
@@ -105,7 +98,7 @@
color: var(--cr-secondary-text-color);
font-weight: 400;
text-align: center;
- padding: 0 0 16px;
+ padding: 8px 0 16px 0;
}
#tipCard {
--- a/chrome/browser/resources/side_panel/customize_chrome/shortcuts.css
+++ b/chrome/browser/resources/side_panel/customize_chrome/shortcuts.css
@@ -29,10 +29,9 @@ cr-radio-group {
.option {
display: flex;
- align-items: flex-start;
+ align-items: center;
gap: 16px;
padding: var(--sp-card-padding);
- padding-inline-start: 32px;
}
.option:hover {
--- a/chrome/browser/resources/side_panel/shared/sp_shared_style_lit.css
+++ b/chrome/browser/resources/side_panel/shared/sp_shared_style_lit.css
@@ -10,7 +10,7 @@
.sp-card {
background: var(--color-side-panel-card-background);
- border-radius: 12px;
+ border-radius: 9px;
display: block;
margin: 0 var(--sp-body-padding);
padding: var(--sp-card-block-padding) 0;
@@ -21,6 +21,15 @@
padding: 0 var(--sp-card-inline-padding);
}
+.sp-card sp-heading.separator {
+ margin-bottom: 8px;
+}
+
+.option {
+ align-items: center;
+ padding-inline-start: 0;
+}
+
.sp-scroller {
display: block;
overflow-x: hidden;
@@ -77,7 +86,7 @@
.sp-cards-separator {
border: 0;
flex-shrink: 0;
- height: 8px;
+ height: 6px;
margin: 0;
width: 100%;
}
@@ -97,3 +106,7 @@ cr-dialog::part(dialog) {
border-radius: 12px;
box-shadow: var(--cr-elevation-3);
}
+
+cr-toolbar-search-field {
+ border-radius: 9px;
+}
--- a/chrome/browser/resources/side_panel/shared/sp_shared_vars.css
+++ b/chrome/browser/resources/side_panel/shared/sp_shared_vars.css
@@ -8,11 +8,11 @@
* #css_wrapper_metadata_end */
html {
- --sp-body-padding: 8px;
+ --sp-body-padding: 4px;
--sp-card-block-padding: 8px;
--sp-card-inline-padding: 16px;
--sp-card-padding: var(--sp-card-block-padding) var(--sp-card-inline-padding);
- --sp-card-gap: 12px;
+ --sp-card-gap: 8px;
/* Override default WebUI vars from cr_shared_vars. */
--cr-primary-text-color: var(--color-side-panel-card-primary-foreground);
--- a/chrome/browser/resources/side_panel/shared/sp_heading.css
+++ b/chrome/browser/resources/side_panel/shared/sp_heading.css
@@ -15,12 +15,8 @@
align-items: center;
display: flex;
flex-shrink: 0;
- gap: 4px;
- height: 36px;
-}
-
-:host([compact]) {
- height: 36px;
+ gap: 12px;
+ height: 28px;
}
#backButton,
--- a/chrome/browser/resources/side_panel/customize_chrome/categories.html.ts
+++ b/chrome/browser/resources/side_panel/customize_chrome/categories.html.ts
@@ -10,7 +10,7 @@ export function getHtml(this: Categories
// clang-format off
return html`<!--_html_template_start_-->
<div class="sp-card">
- <sp-heading id="heading" @back-button-click="${this.onBackClick_}"
+ <sp-heading id="heading" class="separator" @back-button-click="${this.onBackClick_}"
back-button-aria-label="$i18n{backButton}"
back-button-title="$i18n{backButton}">
<h2 slot="heading">$i18n{categoriesHeader}</h2>
--- a/chrome/browser/resources/side_panel/customize_chrome/hover_button.css
+++ b/chrome/browser/resources/side_panel/customize_chrome/hover_button.css
@@ -20,6 +20,7 @@
margin-top: 8px;
padding: 8px 16px;
width: 100%;
+ align-items: center;
}
#hoverButton:hover {
--- a/chrome/browser/resources/side_panel/customize_chrome/icons/reset.svg
+++ b/chrome/browser/resources/side_panel/customize_chrome/icons/reset.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none"><path d="m7.898 12.5 1.704-1.7-1.684-1.698-.566.566.699.715c-.324 0-.637-.055-.942-.168a2.168 2.168 0 0 1-.808-.516 2.355 2.355 0 0 1-.516-.773A2.359 2.359 0 0 1 5.602 8c0-.18.015-.352.046-.516.036-.168.086-.328.153-.484l-.586-.582a3.419 3.419 0 0 0-.305.758A3 3 0 0 0 4.8 8c0 .422.079.832.243 1.227.16.394.39.738.691 1.039.32.324.68.558 1.075.71.394.149.812.223 1.257.223l-.734.735Zm2.887-2.918c.133-.242.235-.496.305-.758A3 3 0 0 0 11.2 8c0-.422-.083-.832-.25-1.227a3.185 3.185 0 0 0-.7-1.039 2.916 2.916 0 0 0-1.082-.691 3.376 3.376 0 0 0-1.27-.211l.77-.766-.566-.566-1.704 1.7 1.704 1.698.566-.566-.734-.73c.343 0 .664.054.957.164.296.113.566.289.808.535.223.222.395.48.516.773.125.297.183.606.183.926 0 .18-.015.352-.046.516a2.585 2.585 0 0 1-.153.484ZM8 14.398a6.192 6.192 0 0 1-2.484-.5 6.366 6.366 0 0 1-2.04-1.375 6.366 6.366 0 0 1-1.374-2.039A6.192 6.192 0 0 1 1.602 8c0-.89.164-1.719.5-2.492.332-.774.789-1.45 1.375-2.031a6.366 6.366 0 0 1 2.039-1.375A6.192 6.192 0 0 1 8 1.602c.89 0 1.719.164 2.492.5.774.332 1.45.789 2.031 1.375a6.375 6.375 0 0 1 1.375 2.03c.336.774.5 1.602.5 2.493 0 .879-.164 1.707-.5 2.484a6.366 6.366 0 0 1-1.375 2.04 6.375 6.375 0 0 1-2.03 1.374c-.774.336-1.602.5-2.493.5ZM8 13.2c1.445 0 2.672-.504 3.684-1.515 1.011-1.012 1.515-2.239 1.515-3.684 0-1.445-.504-2.672-1.515-3.684C10.672 3.305 9.445 2.801 8 2.801c-1.445 0-2.672.504-3.684 1.515C3.305 5.328 2.801 6.555 2.801 8c0 1.445.504 2.672 1.515 3.684C5.328 12.695 6.555 13.199 8 13.199ZM8 8Zm0 0" fill="#5F6368"/></svg>
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="#1f1f1f"><path d="M480-192q-120 0-204-84t-84-204q0-120 84-204t204-84q65 0 120.5 27t95.5 72v-99h72v240H528v-72h131q-29-44-76-70t-103-26q-90 0-153 63t-63 153q0 90 63 153t153 63q84 0 144-55.5T693-456h74q-9 112-91 188t-196 76Z"/></svg>
\ No newline at end of file
--- a/chrome/browser/resources/side_panel/customize_chrome/icons/upload.svg
+++ b/chrome/browser/resources/side_panel/customize_chrome/icons/upload.svg
@@ -1 +1 @@
-<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.666 5.44 6.213 8.88 4.333 7 11 .335l6.666 6.667-1.88 1.893-3.453-3.453v10.893H9.666V5.441ZM3 15H.333v4c0 1.467 1.2 2.667 2.667 2.667h16c1.466 0 2.666-1.2 2.666-2.666v-4H19v4H3v-4Z" fill="#5F6368"/></svg>
\ No newline at end of file
+<svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="#1f1f1f"><path d="M444-336v-342L339-573l-51-51 192-192 192 192-51 51-105-105v342h-72ZM263.72-192Q234-192 213-213.15T192-264v-72h72v72h432v-72h72v72q0 29.7-21.16 50.85Q725.68-192 695.96-192H263.72Z"/></svg>
\ No newline at end of file
+23
View File
@@ -0,0 +1,23 @@
--- a/chrome/browser/ui/views/chrome_layout_provider.cc
+++ b/chrome/browser/ui/views/chrome_layout_provider.cc
@@ -164,7 +164,7 @@ int ChromeLayoutProvider::GetDistanceMet
case DISTANCE_INFOBAR_HEIGHT:
// Spec says height of button should be 36dp, vertical padding on both
// top and bottom should be 8dp.
- return 36 + 2 * 8;
+ return 36 + 2 * 3;
case DISTANCE_PERMISSION_PROMPT_HORIZONTAL_ICON_LABEL_PADDING:
return 8;
case DISTANCE_RICH_HOVER_BUTTON_ICON_HORIZONTAL:
--- a/chrome/browser/ui/views/infobars/infobar_container_view.cc
+++ b/chrome/browser/ui/views/infobars/infobar_container_view.cc
@@ -112,8 +112,7 @@ void InfoBarContainerView::Layout(PassKe
// there drawn by the shadow code (so we don't have to extend our bounds out
// to be able to draw it; see comments in CalculatePreferredSize() on why the
// shadow is drawn outside the container bounds).
- content_shadow_->SetBounds(0, top, width(),
- content_shadow_->GetPreferredSize().height());
+ content_shadow_->SetBounds(0, top, width(), 1);
}
gfx::Size InfoBarContainerView::CalculatePreferredSize(
+59 -1
View File
@@ -218,7 +218,15 @@
display: block;
--- a/ui/webui/resources/cr_components/theme_color_picker/theme_color_picker.css
+++ b/ui/webui/resources/cr_components/theme_color_picker/theme_color_picker.css
@@ -50,6 +50,6 @@ cr-theme-color {
@@ -25,6 +25,7 @@ cr-grid {
#customColorContainer {
position: relative;
+ border-radius: 16px;
}
#colorPickerIcon {
@@ -50,6 +51,6 @@ cr-theme-color {
background-color: var(
--color-theme-color-picker-option-background,
var(--cr-fallback-color-neutral-container));
@@ -256,3 +264,53 @@
min-width: 288px;
opacity: 0;
padding: 0 16px;
--- a/ui/webui/resources/cr_components/customize_color_scheme_mode/segmented_button.css
+++ b/ui/webui/resources/cr_components/customize_color_scheme_mode/segmented_button.css
@@ -9,15 +9,17 @@
* #css_wrapper_metadata_end */
:host {
- --segmented-button-height: 44px;
+ --segmented-button-height: 40px;
--segmented-button-width: 100%;
--segmented-button-padding: 2px;
+ --segmented-button-radius: 11px;
+ --segmented-button-child-radius: 8px;
}
cr-radio-group {
border: 1px var(--color-segmented-button-border,
var(--cr-fallback-color-tonal-outline)) solid;
- border-radius: var(--segmented-button-height);
+ border-radius: var(--segmented-button-radius);
box-sizing: border-box;
display: grid;
grid-auto-columns: 1fr;
@@ -25,6 +27,7 @@ cr-radio-group {
height: var(--segmented-button-height);
padding: var(--segmented-button-padding);
width: var(--segmented-button-width);
+ gap: var(--segmented-button-padding);
}
:host ::slotted(*) {
--- a/ui/webui/resources/cr_components/customize_color_scheme_mode/segmented_button_option.css
+++ b/ui/webui/resources/cr_components/customize_color_scheme_mode/segmented_button_option.css
@@ -9,7 +9,7 @@
* #css_wrapper_metadata_end */
#button {
- border-radius: var(--segmented-button-height);
+ border-radius: var(--segmented-button-child-radius);
box-sizing: border-box;
color: var(--color-segmented-button-foreground-unchecked,
var(--cr-fallback-color-on-surface-subtle));
@@ -32,7 +32,7 @@
}
#button #overlay {
- border-radius: var(--segmented-button-height);
+ border-radius: var(--segmented-button-child-radius);
box-sizing: border-box;
height: 100%;
left: 0;
+16 -3
View File
@@ -96,7 +96,7 @@ extra/ungoogled-chromium/add-flag-for-incognito-themes.patch
extra/ungoogled-chromium/add-flags-for-referrer-customization.patch
extra/ungoogled-chromium/default-webrtc-ip-handling-policy.patch
extra/ungoogled-chromium/add-flags-for-existing-switches.patch
extra/ungoogled-chromium/disable-capture-all-screens.patch
extra/ungoogled-chromium/add-flag-to-reduce-system-info.patch
extra/ungoogled-chromium/add-flag-to-remove-client-hints.patch
extra/ungoogled-chromium/disable-downloads-page-referrer-url.patch
@@ -141,12 +141,16 @@ helium/core/remove-read-anything-context-menu-entry.patch
helium/core/unthemify-onboarding-favicon.patch
helium/core/spoof-extension-downloader-platform.patch
helium/core/add-helium-versioning.patch
helium/core/enable-tab-search-toolbar-button.patch
helium/core/hide-avatar-via-toolbar-prefs.patch
helium/core/hide-extensions-via-toolbar-prefs.patch
helium/settings/move-search-suggest.patch
helium/settings/remove-autofill.patch
helium/settings/fix-page-names.patch
helium/settings/disable-safety-hub-page.patch
helium/settings/remove-results-help-link.patch
helium/settings/about-page-tweaks.patch
helium/hop/setup.patch
helium/hop/disable-password-manager.patch
@@ -167,14 +171,14 @@ helium/ui/fix-customize-side-panel.patch
helium/ui/adjust-immersive-padding.patch
helium/ui/adjust-side-panel-padding.patch
helium/ui/narrow-layout-provider.patch
helium/ui/clean-app-menu-model.patch
helium/ui/app-menu-model.patch
helium/ui/remove-dead-toolbar-actions.patch
helium/ui/remove-dead-profile-actions.patch
helium/ui/clean-up-installed-extension-bubble.patch
helium/ui/adjust-selected-keyword-view.patch
helium/ui/bookmark-button-bg-fix.patch
helium/ui/restyle-ntp-tiles.patch
helium/ui/remove-preview-from-sidepanels.patch
helium/ui/restyle-sidepanels.patch
helium/ui/helium-logo-icons.patch
helium/ui/settings-page-icons.patch
helium/ui/square-ntp-monograms.patch
@@ -183,3 +187,12 @@ helium/ui/improve-toast.patch
helium/ui/square-interstitial-buttons.patch
helium/ui/remove-reading-list-from-app-menu.patch
helium/ui/center-window-on-launch.patch
helium/ui/remove-devtools-annoyances.patch
helium/ui/bookmarks-bar-padding.patch
helium/ui/profile-picker-cleanup.patch
helium/ui/disable-tab-group-editor-footer.patch
helium/ui/profile-customization-cleanup.patch
helium/ui/bangs-ui.patch
helium/ui/thinner-infobar.patch
helium/ui/reduce-text-button-height.patch
helium/ui/fix-omnibox-tabs-icon.patch
+1 -1
View File
@@ -3,7 +3,7 @@
# This removes the remaining references needed to build
--- a/base/allocator/partition_allocator/partition_alloc.gni
+++ b/base/allocator/partition_allocator/partition_alloc.gni
@@ -252,9 +252,6 @@ declare_args() {
@@ -257,9 +257,6 @@ declare_args() {
force_enable_raw_ptr_exclusion = false
}
@@ -1,6 +1,16 @@
--- a/chrome/browser/enterprise/signals/context_info_fetcher.cc
+++ b/chrome/browser/enterprise/signals/context_info_fetcher.cc
@@ -21,6 +21,7 @@
#include "components/device_signals/core/browser/browser_utils.h"
#include "components/enterprise/browser/identifiers/profile_id_service.h"
#include "components/policy/content/policy_blocklist_service.h"
+#include "components/prefs/pref_service.h"
#include "components/version_info/version_info.h"
#include "device_management_backend.pb.h"
--- a/chrome/browser/extensions/BUILD.gn
+++ b/chrome/browser/extensions/BUILD.gn
@@ -957,6 +957,7 @@ source_set("extensions") {
@@ -958,6 +958,7 @@ source_set("extensions") {
"//components/resources",
"//components/safe_browsing:buildflags",
"//components/safe_browsing/content/browser/web_ui:web_ui",
@@ -8,9 +18,19 @@
"//components/safe_browsing/core/common/proto:csd_proto",
"//components/search_engines",
"//components/services/app_service",
--- a/chrome/browser/ui/safety_hub/revoked_permissions_service.cc
+++ b/chrome/browser/ui/safety_hub/revoked_permissions_service.cc
@@ -28,6 +28,7 @@
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/engagement/site_engagement_service_factory.h"
+#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/safety_hub/safety_hub_prefs.h"
#include "chrome/browser/ui/safety_hub/safety_hub_service.h"
#include "chrome/browser/ui/safety_hub/safety_hub_util.h"
--- a/chrome/common/BUILD.gn
+++ b/chrome/common/BUILD.gn
@@ -544,6 +544,7 @@ static_library("url_constants") {
@@ -545,6 +545,7 @@ static_library("url_constants") {
"//components/optimization_guide/optimization_guide_internals/webui:url_constants",
"//components/password_manager/content/common",
"//components/safe_browsing/core/common",
@@ -40,7 +60,7 @@
public_deps = [
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -111,6 +111,7 @@ source_set("browser") {
@@ -112,6 +112,7 @@ source_set("browser") {
"//components/filename_generation",
"//components/fingerprinting_protection_filter/interventions/common:features",
"//components/input",
+115 -39
View File
@@ -91,6 +91,34 @@ chrome/browser/resources/chromeos/accessibility/chromevox/mv2/earcons/selection_
chrome/browser/resources/chromeos/accessibility/chromevox/mv2/earcons/skip.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv2/earcons/wrap.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv2/earcons/wrap_edge.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/alert_modal.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/alert_nonmodal.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/button.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/check_off.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/check_on.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/chromevox_loaded.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/chromevox_loading.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/editable_text.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/ellipsis.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/invalid_keypress.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/link.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/list_item.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/listbox.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/long_desc.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/math.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/object_close.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/object_enter.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/object_exit.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/object_open.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/object_select.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/page_finish_loading.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/page_start_loading.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/recover_focus.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/selection.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/selection_reverse.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/skip.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/wrap.ogg
chrome/browser/resources/chromeos/accessibility/chromevox/mv3/earcons/wrap_edge.ogg
chrome/browser/resources/chromeos/accessibility/common/testing/fake_facegaze_assets_dlc.tar.xz
chrome/browser/resources/chromeos/accessibility/common/testing/fake_pumpkin_dlc.tar.xz
chrome/browser/resources/chromeos/accessibility/select_to_speak/mv2/earcons/null_selection.ogg
@@ -290,6 +318,8 @@ content/test/data/interest_group/auction_only.wbn
content/test/data/interest_group/auction_only_both_new_and_old_names.wbn
content/test/data/interest_group/auction_only_new_name.wbn
content/test/data/interest_group/multiply.wasm
content/test/data/loader/compressed.html.gz
content/test/data/loader/compressed.js.gz
content/test/data/shared_dictionary/path/compressed.data
content/test/data/site_isolation/nosniff.png.octet-stream
content/test/data/sxg/127.0.0.1.public.pem.cbor
@@ -1600,6 +1630,7 @@ third_party/abseil-cpp/absl/time/internal/cctz/testdata/zoneinfo/America/Ciudad_
third_party/abseil-cpp/absl/time/internal/cctz/testdata/zoneinfo/America/Coral_Harbour
third_party/abseil-cpp/absl/time/internal/cctz/testdata/zoneinfo/America/Cordoba
third_party/abseil-cpp/absl/time/internal/cctz/testdata/zoneinfo/America/Costa_Rica
third_party/abseil-cpp/absl/time/internal/cctz/testdata/zoneinfo/America/Coyhaique
third_party/abseil-cpp/absl/time/internal/cctz/testdata/zoneinfo/America/Creston
third_party/abseil-cpp/absl/time/internal/cctz/testdata/zoneinfo/America/Cuiaba
third_party/abseil-cpp/absl/time/internal/cctz/testdata/zoneinfo/America/Curacao
@@ -2142,9 +2173,6 @@ third_party/anonymous_tokens/src/anonymous_tokens/testdata/strong_rsa_modulus204
third_party/anonymous_tokens/src/anonymous_tokens/testdata/strong_rsa_modulus2048_example_2.binarypb
third_party/anonymous_tokens/src/anonymous_tokens/testdata/strong_rsa_modulus3072_example.binarypb
third_party/anonymous_tokens/src/anonymous_tokens/testdata/strong_rsa_modulus4096_example.binarypb
third_party/beto-core/src/nearby/connections/ukey2/ukey2_jni/java/gradle/wrapper/gradle-wrapper.jar
third_party/beto-core/src/nearby/presence/ldt_np_jni/java/LdtNpJni/gradle/wrapper/gradle-wrapper.jar
third_party/beto-core/src/nearby/presence/np_java_ffi/gradle/wrapper/gradle-wrapper.jar
third_party/blink/renderer/bindings/core/v8/serialization/fuzz_corpus/blink-0bb59816-x86
third_party/blink/renderer/bindings/core/v8/serialization/fuzz_corpus/blink-10205257-x86
third_party/blink/renderer/bindings/core/v8/serialization/fuzz_corpus/blink-12221360-x86
@@ -2822,6 +2850,13 @@ third_party/boringssl/src/crypto/fipsmodule/policydocs/BoringCrypto-Android-Secu
third_party/boringssl/src/crypto/fipsmodule/policydocs/BoringCrypto-Security-Policy-20170615.docx
third_party/boringssl/src/crypto/fipsmodule/policydocs/BoringCrypto-Security-Policy-20180730.docx
third_party/boringssl/src/crypto/fipsmodule/policydocs/BoringCrypto-Security-Policy-20190808.docx
third_party/boringssl/src/crypto/pkcs7/test/nss.p7c
third_party/boringssl/src/crypto/pkcs7/test/openssl_crl.p7c
third_party/boringssl/src/crypto/pkcs7/test/sign_sha1.p7s
third_party/boringssl/src/crypto/pkcs7/test/sign_sha1_key_id.p7s
third_party/boringssl/src/crypto/pkcs7/test/sign_sha256.p7s
third_party/boringssl/src/crypto/pkcs7/test/sign_sha256_key_id.p7s
third_party/boringssl/src/crypto/pkcs7/test/windows.p7c
third_party/boringssl/src/crypto/pkcs8/test/bad1.p12
third_party/boringssl/src/crypto/pkcs8/test/bad2.p12
third_party/boringssl/src/crypto/pkcs8/test/bad3.p12
@@ -7805,6 +7840,9 @@ third_party/dawn/third_party/dxc/test/tools/llvm-symbolizer/pdb/Inputs/test.exe
third_party/dawn/third_party/dxc/test/tools/llvm-symbolizer/pdb/Inputs/test.pdb
third_party/dawn/third_party/dxc/tools/clang/test/DXC/Inputs/bom-inc-utf16le.hlsli
third_party/dawn/third_party/dxc/tools/clang/test/DXC/Inputs/bom-main-utf16le.hlsl
third_party/dawn/third_party/dxc/tools/clang/test/LitDXILValidation/ser_hitobject_accessors_failing.ll
third_party/dawn/third_party/dxc/tools/clang/test/LitDXILValidation/ser_hitobject_make_failing.ll
third_party/dawn/third_party/dxc/tools/clang/test/LitDXILValidation/ser_maybereorder_failing.ll
third_party/dawn/third_party/dxc/tools/clang/test/Misc/Inputs/serialized-diags-stable.dia
third_party/dawn/third_party/dxc/tools/clang/test/Preprocessor/Inputs/headermap-rel/foo.hmap
third_party/dawn/third_party/dxc/tools/clang/test/Preprocessor/Inputs/headermap-rel2/project-headers.hmap
@@ -8028,6 +8066,7 @@ third_party/devtools-frontend/src/front_end/panels/timeline/fixtures/traces/lant
third_party/devtools-frontend/src/front_end/panels/timeline/fixtures/traces/large-layout-small-recalc.json.gz
third_party/devtools-frontend/src/front_end/panels/timeline/fixtures/traces/large-profile.cpuprofile.gz
third_party/devtools-frontend/src/front_end/panels/timeline/fixtures/traces/large-recalc-style.json.gz
third_party/devtools-frontend/src/front_end/panels/timeline/fixtures/traces/layout-shifts-root-causes.json.gz
third_party/devtools-frontend/src/front_end/panels/timeline/fixtures/traces/lcp-discovery-delay.json.gz
third_party/devtools-frontend/src/front_end/panels/timeline/fixtures/traces/lcp-fetchpriority-high.json.gz
third_party/devtools-frontend/src/front_end/panels/timeline/fixtures/traces/lcp-images-rasterizer.json.gz
@@ -8061,6 +8100,7 @@ third_party/devtools-frontend/src/front_end/panels/timeline/fixtures/traces/over
third_party/devtools-frontend/src/front_end/panels/timeline/fixtures/traces/parser-blocking-after-paint.json.gz
third_party/devtools-frontend/src/front_end/panels/timeline/fixtures/traces/postmessage-initiators.json.gz
third_party/devtools-frontend/src/front_end/panels/timeline/fixtures/traces/primary-page-frame.json.gz
third_party/devtools-frontend/src/front_end/panels/timeline/fixtures/traces/react-console-timestamp.json.gz
third_party/devtools-frontend/src/front_end/panels/timeline/fixtures/traces/react-hello-world.json.gz
third_party/devtools-frontend/src/front_end/panels/timeline/fixtures/traces/recursive-blocking-js.json.gz
third_party/devtools-frontend/src/front_end/panels/timeline/fixtures/traces/recursive-counting-js.json.gz
@@ -10843,16 +10883,20 @@ third_party/mediapipe/src/mediapipe/modules/face_geometry/data/canonical_face_mo
third_party/nasm/test/br3392667.asm
third_party/nasm/test/br3392668-3.asm
third_party/nasm/test/br3392669-57.asm
third_party/nasm/test/br3392708.asm
third_party/nasm/travis/test/_file_.bin.t
third_party/nasm/travis/test/a64.bin.t
third_party/nasm/travis/test/absolute.bin.t
third_party/nasm/travis/test/addr64x.bin.t
third_party/nasm/travis/test/alonesym-obj.obj.t
third_party/nasm/travis/test/amx.bin.t
third_party/nasm/travis/test/aoutso-o0.o.t
third_party/nasm/travis/test/aoutso-ox.o.t
third_party/nasm/travis/test/aouttest-o0.o.t
third_party/nasm/travis/test/aouttest-ox.o.t
third_party/nasm/travis/test/avx.bin.t
third_party/nasm/travis/test/avx005.bin.t
third_party/nasm/travis/test/avx2.bin.t
third_party/nasm/travis/test/avx512cd.bin.t
third_party/nasm/travis/test/avx512er.bin.t
third_party/nasm/travis/test/avx512f.bin.t
@@ -10875,10 +10919,26 @@ third_party/nasm/travis/test/br3189064.bin.t
third_party/nasm/travis/test/br3385573.bin.t
third_party/nasm/travis/test/br3392252.bin.t
third_party/nasm/travis/test/br3392259.o.t
third_party/nasm/travis/test/br3392275.bin.t
third_party/nasm/travis/test/br3392278.o.t
third_party/nasm/travis/test/br3392392.bin.t
third_party/nasm/travis/test/br3392396.bin.t
third_party/nasm/travis/test/br3392411.out.t
third_party/nasm/travis/test/br3392442.bin.t
third_party/nasm/travis/test/br3392531.asm
third_party/nasm/travis/test/br3392637.o.t
third_party/nasm/travis/test/br3392643.obj.t
third_party/nasm/travis/test/br3392707.bin.t
third_party/nasm/travis/test/br3392711.o.t
third_party/nasm/travis/test/br3392716.asm
third_party/nasm/travis/test/br890790.bin.t
third_party/nasm/travis/test/br978756.o.t
third_party/nasm/travis/test/clzero.bin.t
third_party/nasm/travis/test/coffalign.obj.t
third_party/nasm/travis/test/cofftest.obj.t
third_party/nasm/travis/test/crc32.bin.t
third_party/nasm/travis/test/ctxlocal.o.t
third_party/nasm/travis/test/dbxsize.o.t
third_party/nasm/travis/test/elfso-o0.o.t
third_party/nasm/travis/test/elfso-ox.o.t
third_party/nasm/travis/test/elif.o.t
@@ -10893,11 +10953,17 @@ third_party/nasm/travis/test/floatexp-o0.bin.t
third_party/nasm/travis/test/floatexp-ox.bin.t
third_party/nasm/travis/test/floatize.bin.t
third_party/nasm/travis/test/floattest.o.t
third_party/nasm/travis/test/floatx.bin.t
third_party/nasm/travis/test/fwdopt.bin.t
third_party/nasm/travis/test/fwdoptpp.bin.t
third_party/nasm/travis/test/fwdoptpp.warning.bin.t
third_party/nasm/travis/test/gather.bin.t
third_party/nasm/travis/test/gotoff64.o.t
third_party/nasm/travis/test/hexfp.bin.t
third_party/nasm/travis/test/hle.bin.t
third_party/nasm/travis/test/ifelse.bin.t
third_party/nasm/travis/test/ilog.bin.t
third_party/nasm/travis/test/imm.o.t
third_party/nasm/travis/test/imm64-o0.bin.t
third_party/nasm/travis/test/imm64-o1.bin.t
third_party/nasm/travis/test/imm64-ox.bin.t
@@ -10908,6 +10974,7 @@ third_party/nasm/travis/test/immwarn.bin.t
third_party/nasm/travis/test/imul-nowarn.bin.t
third_party/nasm/travis/test/imul-warn.bin.t
third_party/nasm/travis/test/inctest.com.t
third_party/nasm/travis/test/insertps.bin.t
third_party/nasm/travis/test/insnlbl.bin.t
third_party/nasm/travis/test/invlpga.bin.t
third_party/nasm/travis/test/jmp64.bin.t
@@ -10915,8 +10982,11 @@ third_party/nasm/travis/test/lar_lsl.bin.t
third_party/nasm/travis/test/larlsl.bin.t
third_party/nasm/travis/test/lnxhello.o.t
third_party/nasm/travis/test/local.bin.t
third_party/nasm/travis/test/lwp.bin.t
third_party/nasm/travis/test/mmxsize.bin.t
third_party/nasm/travis/test/movd.bin.t
third_party/nasm/travis/test/movd64.bin.t
third_party/nasm/travis/test/movhpd.bin.t
third_party/nasm/travis/test/movimm-o0.bin.t
third_party/nasm/travis/test/movimm-ox.bin.t
third_party/nasm/travis/test/movnti.bin.t
@@ -10925,12 +10995,9 @@ third_party/nasm/travis/test/mpx.o.t
third_party/nasm/travis/test/multisection-elf32.o.t
third_party/nasm/travis/test/multisection-elf64.o.t
third_party/nasm/travis/test/multisection.bin.t
third_party/nasm/travis/test/nasmformat-elf32.o.t
third_party/nasm/travis/test/nasmformat-elf64.o.t
third_party/nasm/travis/test/nasmformat-macho32.o.t
third_party/nasm/travis/test/nasmformat-macho64.o.t
third_party/nasm/travis/test/newrdwr.bin.t
third_party/nasm/travis/test/obj.o.t
third_party/nasm/travis/test/objexe.obj.t
third_party/nasm/travis/test/optimization-o0.bin.t
third_party/nasm/travis/test/optimization-o1.bin.t
third_party/nasm/travis/test/optimization-ox.bin.t
@@ -10942,6 +11009,7 @@ third_party/nasm/travis/test/prefix66.bin.t
third_party/nasm/travis/test/pushseg.bin.t
third_party/nasm/travis/test/r13.bin.t
third_party/nasm/travis/test/radix.bin.t
third_party/nasm/travis/test/rdpid.bin.t
third_party/nasm/travis/test/riprel.bin.t
third_party/nasm/travis/test/riprel2.bin.t
third_party/nasm/travis/test/sha-64.o.t
@@ -10949,6 +11017,9 @@ third_party/nasm/travis/test/sha.o.t
third_party/nasm/travis/test/smartalign16.bin.t
third_party/nasm/travis/test/smartalign32.bin.t
third_party/nasm/travis/test/smartalign64.bin.t
third_party/nasm/travis/test/splitea.bin.t
third_party/nasm/travis/test/sreg.bin.t
third_party/nasm/travis/test/ssesize.o.t
third_party/nasm/travis/test/struc.bin.t
third_party/nasm/travis/test/test67.bin.t
third_party/nasm/travis/test/testdos.bin.t
@@ -10956,9 +11027,17 @@ third_party/nasm/travis/test/testnos3.bin.t
third_party/nasm/travis/test/tmap.o.t
third_party/nasm/travis/test/uscore.bin.t
third_party/nasm/travis/test/utf.bin.t
third_party/nasm/travis/test/v4.bin.t
third_party/nasm/travis/test/vaesenc.bin.t
third_party/nasm/travis/test/vex.bin.t
third_party/nasm/travis/test/vgather.bin.t
third_party/nasm/travis/test/vmread.bin.t
third_party/nasm/travis/test/vmx.o.t
third_party/nasm/travis/test/vpcmp.bin.t
third_party/nasm/travis/test/weirdpaste.bin.t
third_party/nasm/travis/test/winalign.obj.t
third_party/nasm/travis/test/xcrypt.bin.t
third_party/nasm/travis/test/xpaste.bin.t
third_party/nasm/travis/test/zerobyte.bin.t
third_party/node/node_modules/node_modules.tar.gz
third_party/openh264/src/autotest/performanceTest/ios/fruitstrap
@@ -11152,35 +11231,35 @@ third_party/quic_trace/src/examples/example.json.gz
third_party/quic_trace/src/examples/example.qtr
third_party/r8/custom_d8.jar
third_party/r8/custom_r8.jar
third_party/rust/chromium_crates_io/vendor/fdeflate-0.3.7/tests/input-chunking-sensitivity-example1.zz
third_party/rust/chromium_crates_io/vendor/fdeflate-0.3.7/tests/input-chunking-sensitivity-example2.zz
third_party/rust/chromium_crates_io/vendor/fdeflate-0.3.7/tests/input-chunking-sensitivity-example3.zz
third_party/rust/chromium_crates_io/vendor/flate2-1.1.0/examples/hello_world.txt.gz
third_party/rust/chromium_crates_io/vendor/flate2-1.1.0/tests/corrupt-gz-file.bin
third_party/rust/chromium_crates_io/vendor/flate2-1.1.0/tests/good-file.gz
third_party/rust/chromium_crates_io/vendor/flate2-1.1.0/tests/multi.gz
third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.9/tests/fuzz/testdata/deserialize_dense_crash-9486fb7c8a93b12c12a62166b43d31640c0208a9
third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.9/tests/fuzz/testdata/deserialize_dense_minimized-from-9486fb7c8a93b12c12a62166b43d31640c0208a9
third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.9/tests/fuzz/testdata/deserialize_sparse_crash-0da59c0434eaf35e5a6b470fa9244bb79c72b000
third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.9/tests/fuzz/testdata/deserialize_sparse_crash-18cfc246f2ddfc3dfc92b0c7893178c7cf65efa9
third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.9/tests/fuzz/testdata/deserialize_sparse_crash-61fd8e3003bf9d99f6c1e5a8488727eefd234b98
third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.9/tests/fuzz/testdata/deserialize_sparse_crash-a1b839d899ced76d5d7d0f78f9edb7a421505838
third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.9/tests/fuzz/testdata/deserialize_sparse_crash-c383ae07ec5e191422eadc492117439011816570
third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.9/tests/fuzz/testdata/deserialize_sparse_crash-d07703ceb94b10dcd9e4acb809f2051420449e2b
third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.9/tests/fuzz/testdata/deserialize_sparse_crash-dbb8172d3984e7e7d03f4b5f8bb86ecd1460eff9
third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.9/tests/gen/dense/multi_pattern_v2_fwd.bigendian.dfa
third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.9/tests/gen/dense/multi_pattern_v2_fwd.littleendian.dfa
third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.9/tests/gen/dense/multi_pattern_v2_rev.bigendian.dfa
third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.9/tests/gen/dense/multi_pattern_v2_rev.littleendian.dfa
third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.9/tests/gen/sparse/multi_pattern_v2_fwd.bigendian.dfa
third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.9/tests/gen/sparse/multi_pattern_v2_fwd.littleendian.dfa
third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.9/tests/gen/sparse/multi_pattern_v2_rev.bigendian.dfa
third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.9/tests/gen/sparse/multi_pattern_v2_rev.littleendian.dfa
third_party/rust/chromium_crates_io/vendor/unicode-ident-1.0.18/tests/fst/xid_continue.fst
third_party/rust/chromium_crates_io/vendor/unicode-ident-1.0.18/tests/fst/xid_start.fst
third_party/rust/chromium_crates_io/vendor/windows_aarch64_msvc-0.52.6/lib/windows.0.52.0.lib
third_party/rust/chromium_crates_io/vendor/windows_i686_msvc-0.52.6/lib/windows.0.52.0.lib
third_party/rust/chromium_crates_io/vendor/windows_x86_64_msvc-0.52.6/lib/windows.0.52.0.lib
third_party/rust/chromium_crates_io/vendor/fdeflate-v0_3/tests/input-chunking-sensitivity-example1.zz
third_party/rust/chromium_crates_io/vendor/fdeflate-v0_3/tests/input-chunking-sensitivity-example2.zz
third_party/rust/chromium_crates_io/vendor/fdeflate-v0_3/tests/input-chunking-sensitivity-example3.zz
third_party/rust/chromium_crates_io/vendor/flate2-v1/examples/hello_world.txt.gz
third_party/rust/chromium_crates_io/vendor/flate2-v1/tests/corrupt-gz-file.bin
third_party/rust/chromium_crates_io/vendor/flate2-v1/tests/good-file.gz
third_party/rust/chromium_crates_io/vendor/flate2-v1/tests/multi.gz
third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/tests/fuzz/testdata/deserialize_dense_crash-9486fb7c8a93b12c12a62166b43d31640c0208a9
third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/tests/fuzz/testdata/deserialize_dense_minimized-from-9486fb7c8a93b12c12a62166b43d31640c0208a9
third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/tests/fuzz/testdata/deserialize_sparse_crash-0da59c0434eaf35e5a6b470fa9244bb79c72b000
third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/tests/fuzz/testdata/deserialize_sparse_crash-18cfc246f2ddfc3dfc92b0c7893178c7cf65efa9
third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/tests/fuzz/testdata/deserialize_sparse_crash-61fd8e3003bf9d99f6c1e5a8488727eefd234b98
third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/tests/fuzz/testdata/deserialize_sparse_crash-a1b839d899ced76d5d7d0f78f9edb7a421505838
third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/tests/fuzz/testdata/deserialize_sparse_crash-c383ae07ec5e191422eadc492117439011816570
third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/tests/fuzz/testdata/deserialize_sparse_crash-d07703ceb94b10dcd9e4acb809f2051420449e2b
third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/tests/fuzz/testdata/deserialize_sparse_crash-dbb8172d3984e7e7d03f4b5f8bb86ecd1460eff9
third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/tests/gen/dense/multi_pattern_v2_fwd.bigendian.dfa
third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/tests/gen/dense/multi_pattern_v2_fwd.littleendian.dfa
third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/tests/gen/dense/multi_pattern_v2_rev.bigendian.dfa
third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/tests/gen/dense/multi_pattern_v2_rev.littleendian.dfa
third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/tests/gen/sparse/multi_pattern_v2_fwd.bigendian.dfa
third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/tests/gen/sparse/multi_pattern_v2_fwd.littleendian.dfa
third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/tests/gen/sparse/multi_pattern_v2_rev.bigendian.dfa
third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/tests/gen/sparse/multi_pattern_v2_rev.littleendian.dfa
third_party/rust/chromium_crates_io/vendor/unicode-ident-v1/tests/fst/xid_continue.fst
third_party/rust/chromium_crates_io/vendor/unicode-ident-v1/tests/fst/xid_start.fst
third_party/rust/chromium_crates_io/vendor/windows_aarch64_msvc-v0_52/lib/windows.0.52.0.lib
third_party/rust/chromium_crates_io/vendor/windows_i686_msvc-v0_52/lib/windows.0.52.0.lib
third_party/rust/chromium_crates_io/vendor/windows_x86_64_msvc-v0_52/lib/windows.0.52.0.lib
third_party/skia/demos.skia.org/demos/mesh2d/canvaskit.wasm
third_party/skia/modules/canvaskit/tests/assets/Roboto-Regular.otf
third_party/skia/modules/canvaskit/tests/assets/red_line.skp
@@ -11809,9 +11888,6 @@ third_party/tflite/src/tensorflow/lite/experimental/acceleration/mini_benchmark/
third_party/tflite/src/tensorflow/lite/experimental/acceleration/mini_benchmark/data/toys_192_192_3.jpeg
third_party/tflite/src/tensorflow/lite/experimental/acceleration/mini_benchmark/models/blazeface_mlkit_v1.tfl
third_party/tflite/src/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes/add.bytes
third_party/tflite/src/tensorflow/lite/experimental/litert/test/testdata/simple_model_google_tensor.bin
third_party/tflite/src/tensorflow/lite/experimental/litert/test/testdata/simple_model_mtk.bin
third_party/tflite/src/tensorflow/lite/experimental/litert/test/testdata/simple_model_qualcomm.bin
third_party/tflite/src/tensorflow/lite/ios/testdata/extended_filename/input.a
third_party/tflite/src/tensorflow/lite/java/demo/gradle/wrapper/gradle-wrapper.jar
third_party/tflite/src/tensorflow/lite/java/ovic/demo/gradle/wrapper/gradle-wrapper.jar
+26
View File
@@ -0,0 +1,26 @@
// 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.
CANVAS_DIMENSIONS, 56,
FILL_RULE_NONZERO,
MOVE_TO, 26, 51,
R_ARC_TO, 1, 1, 0, 0, 0, 4, 0,
V_LINE_TO, 5,
ARC_TO, 1, 1, 0, 0, 0, 26, 5,
CLOSE,
MOVE_TO, 9, 6,
ARC_TO, 1, 1, 0, 0, 0, 6, 9,
LINE_TO, 47, 50,
R_ARC_TO, 1, 1, 0, 0, 0, 3, -3,
CLOSE,
MOVE_TO, 5, 26,
R_ARC_TO, 1, 1, 0, 0, 0, 0, 4,
H_LINE_TO, 51,
R_ARC_TO, 1, 1, 0, 0, 0, 0, -4,
CLOSE,
MOVE_TO, 6, 47,
R_ARC_TO, 1, 1, 0, 0, 0, 3, 3,
LINE_TO, 50, 9,
ARC_TO, 1, 1, 0, 0, 0, 47, 6,
CLOSE
+1
View File
@@ -0,0 +1 @@
<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M256 79.7288C256 76.6897 256.001 73.6504 255.983 70.611C255.967 68.0507 255.938 65.491 255.868 62.932C255.718 57.3544 255.389 51.7289 254.397 46.2134C253.391 40.6184 251.748 35.4111 249.159 30.3275C246.614 25.3309 243.29 20.7586 239.323 16.7947C235.357 12.8307 230.784 9.50832 225.785 6.96479C220.696 4.37529 215.483 2.73304 209.882 1.72737C204.366 0.736929 198.739 0.408542 193.161 0.257863C190.601 0.188582 188.04 0.159378 185.478 0.143533C182.437 0.124893 179.396 0.126446 176.355 0.126446L141.048 0H114.64L79.9568 0.126446C76.91 0.126446 73.8632 0.124893 70.8164 0.143533C68.2496 0.159378 65.684 0.188582 63.1181 0.257863C57.5275 0.408542 51.8878 0.73724 46.3586 1.72893C40.75 2.73428 35.5294 4.37591 30.4336 6.96355C25.4246 9.50738 20.8412 12.8301 16.867 16.7947C12.8934 20.7583 9.56265 25.3296 7.01292 30.3253C4.4169 35.4114 2.77093 40.6218 1.76247 46.2199C0.769548 51.7333 0.44054 57.3568 0.289241 62.932C0.22027 65.4913 0.190445 68.051 0.174911 70.611C0.156271 73.6507 0 77.4264 0 80.4657L0.000932032 114.668L0 141.359L0.157824 176.288C0.157824 179.331 0.156581 182.375 0.174911 185.418C0.190445 187.982 0.22027 190.545 0.289551 193.108C0.44054 198.693 0.770169 204.326 1.76403 209.849C2.77217 215.451 4.41783 220.666 7.01168 225.756C9.56172 230.76 12.8931 235.338 16.867 239.308C20.8409 243.277 25.423 246.604 30.4312 249.151C35.53 251.744 40.7531 253.389 46.3652 254.396C51.8918 255.388 57.5297 255.717 63.1181 255.867C65.684 255.937 68.2499 255.966 70.8167 255.982C73.8635 256 76.91 255.999 79.9568 255.999L114.953 256H141.427L176.355 255.999C179.396 255.999 182.437 256 185.478 255.982C188.04 255.966 190.601 255.937 193.161 255.867C198.741 255.716 204.37 255.387 209.889 254.394C215.486 253.388 220.697 251.744 225.783 249.152C230.782 246.605 235.357 243.278 239.323 239.308C243.289 235.339 246.613 230.761 249.158 225.759C251.749 220.666 253.392 215.449 254.398 209.843C255.389 204.322 255.718 198.69 255.869 193.108C255.938 190.545 255.967 187.982 255.983 185.418C256.002 182.375 256 179.331 256 176.288C256 176.288 255.998 141.975 255.998 141.359V114.64C255.998 114.185 256 79.7288 256 79.7288Z" fill="#5566B1"/><path d="M122.494 51.4321C122.494 48.6035 124.787 46.3105 127.615 46.3105C130.444 46.3105 132.737 48.6035 132.737 51.4321V203.797C132.737 206.625 130.444 208.918 127.615 208.918C124.787 208.918 122.494 206.625 122.494 203.797V51.4321Z" fill="white"/><path d="M56.1719 63.3416C54.1719 61.3415 54.1719 58.0987 56.1719 56.0987C58.172 54.0986 61.4148 54.0986 63.4148 56.0987L199.899 192.582C201.899 194.582 201.899 197.825 199.899 199.825C197.899 201.825 194.656 201.825 192.656 199.825L56.1719 63.3416Z" fill="white"/><path d="M192.655 56.0977C194.655 54.0976 197.898 54.0976 199.898 56.0977C201.898 58.0978 201.898 61.3405 199.898 63.3406L63.4148 199.825C61.4147 201.825 58.172 201.825 56.1719 199.825C54.1718 197.824 54.1718 194.582 56.1719 192.582L192.655 56.0977Z" fill="white"/><path d="M204.182 122.876C207.01 122.876 209.303 125.169 209.303 127.998C209.303 130.826 207.01 133.119 204.182 133.119H51.8168C48.9883 133.119 46.6953 130.826 46.6953 127.998C46.6953 125.169 48.9883 122.876 51.8168 122.876H204.182Z" fill="white"/></svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

@@ -0,0 +1,99 @@
// 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.
CANVAS_DIMENSIONS, 256,
MOVE_TO, 256, 79.73f,
CUBIC_TO, 256, 76.69f, 256, 73.65f, 255.98f, 70.61f,
CUBIC_TO, 255.97f, 68.05f, 255.94f, 65.49f, 255.87f, 62.93f,
CUBIC_TO, 255.72f, 57.35f, 255.39f, 51.73f, 254.4f, 46.21f,
CUBIC_TO, 253.39f, 40.62f, 251.75f, 35.41f, 249.16f, 30.33f,
CUBIC_TO, 246.61f, 25.33f, 243.29f, 20.76f, 239.32f, 16.79f,
CUBIC_TO, 235.36f, 12.83f, 230.78f, 9.51f, 225.79f, 6.96f,
CUBIC_TO, 220.7f, 4.38f, 215.48f, 2.73f, 209.88f, 1.73f,
CUBIC_TO, 204.37f, 0.74f, 198.74f, 0.41f, 193.16f, 0.26f,
CUBIC_TO, 190.6f, 0.19f, 188.04f, 0.16f, 185.48f, 0.14f,
CUBIC_TO, 182.44f, 0.12f, 179.4f, 0.13f, 176.36f, 0.13f,
LINE_TO, 141.05f, 0,
H_LINE_TO, 114.64f,
LINE_TO, 79.96f, 0.13f,
CUBIC_TO, 76.91f, 0.13f, 73.86f, 0.12f, 70.82f, 0.14f,
CUBIC_TO, 68.25f, 0.16f, 65.68f, 0.19f, 63.12f, 0.26f,
CUBIC_TO, 57.53f, 0.41f, 51.89f, 0.74f, 46.36f, 1.73f,
CUBIC_TO, 40.75f, 2.73f, 35.53f, 4.38f, 30.43f, 6.96f,
CUBIC_TO, 25.42f, 9.51f, 20.84f, 12.83f, 16.87f, 16.79f,
CUBIC_TO, 12.89f, 20.76f, 9.56f, 25.33f, 7.01f, 30.33f,
CUBIC_TO, 4.42f, 35.41f, 2.77f, 40.62f, 1.76f, 46.22f,
CUBIC_TO, 0.77f, 51.73f, 0.44f, 57.36f, 0.29f, 62.93f,
CUBIC_TO, 0.22f, 65.49f, 0.19f, 68.05f, 0.17f, 70.61f,
CUBIC_TO, 0.16f, 73.65f, 0, 77.43f, 0, 80.47f,
LINE_TO, 0, 114.67f,
LINE_TO, 0, 141.36f,
LINE_TO, 0.16f, 176.29f,
CUBIC_TO, 0.16f, 179.33f, 0.16f, 182.38f, 0.17f, 185.42f,
CUBIC_TO, 0.19f, 187.98f, 0.22f, 190.55f, 0.29f, 193.11f,
CUBIC_TO, 0.44f, 198.69f, 0.77f, 204.33f, 1.76f, 209.85f,
CUBIC_TO, 2.77f, 215.45f, 4.42f, 220.67f, 7.01f, 225.76f,
CUBIC_TO, 9.56f, 230.76f, 12.89f, 235.34f, 16.87f, 239.31f,
CUBIC_TO, 20.84f, 243.28f, 25.42f, 246.6f, 30.43f, 249.15f,
CUBIC_TO, 35.53f, 251.74f, 40.75f, 253.39f, 46.37f, 254.4f,
CUBIC_TO, 51.89f, 255.39f, 57.53f, 255.72f, 63.12f, 255.87f,
CUBIC_TO, 65.68f, 255.94f, 68.25f, 255.97f, 70.82f, 255.98f,
CUBIC_TO, 73.86f, 256, 76.91f, 256, 79.96f, 256,
LINE_TO, 114.95f, 256,
H_LINE_TO, 141.43f,
LINE_TO, 176.36f, 256,
CUBIC_TO, 179.4f, 256, 182.44f, 256, 185.48f, 255.98f,
CUBIC_TO, 188.04f, 255.97f, 190.6f, 255.94f, 193.16f, 255.87f,
CUBIC_TO, 198.74f, 255.72f, 204.37f, 255.39f, 209.89f, 254.39f,
CUBIC_TO, 215.49f, 253.39f, 220.7f, 251.74f, 225.78f, 249.15f,
CUBIC_TO, 230.78f, 246.61f, 235.36f, 243.28f, 239.32f, 239.31f,
CUBIC_TO, 243.29f, 235.34f, 246.61f, 230.76f, 249.16f, 225.76f,
CUBIC_TO, 251.75f, 220.67f, 253.39f, 215.45f, 254.4f, 209.84f,
CUBIC_TO, 255.39f, 204.32f, 255.72f, 198.69f, 255.87f, 193.11f,
CUBIC_TO, 255.94f, 190.55f, 255.97f, 187.98f, 255.98f, 185.42f,
CUBIC_TO, 256, 182.38f, 256, 179.33f, 256, 176.29f,
CUBIC_TO, 256, 176.29f, 256, 141.98f, 256, 141.36f,
V_LINE_TO, 114.64f,
CUBIC_TO, 256, 114.19f, 256, 79.73f, 256, 79.73f,
CLOSE,
NEW_PATH,
FILL_RULE_NONZERO,
MOVE_TO, 122.49f, 51.43f,
CUBIC_TO, 122.49f, 48.6f, 124.79f, 46.31f, 127.62f, 46.31f,
CUBIC_TO, 130.44f, 46.31f, 132.74f, 48.6f, 132.74f, 51.43f,
V_LINE_TO, 203.8f,
CUBIC_TO, 132.74f, 206.63f, 130.44f, 208.92f, 127.62f, 208.92f,
CUBIC_TO, 124.79f, 208.92f, 122.49f, 206.63f, 122.49f, 203.8f,
V_LINE_TO, 51.43f,
CLOSE,
NEW_PATH,
FILL_RULE_NONZERO,
MOVE_TO, 56.17f, 63.34f,
CUBIC_TO, 54.17f, 61.34f, 54.17f, 58.1f, 56.17f, 56.1f,
CUBIC_TO, 58.17f, 54.1f, 61.41f, 54.1f, 63.41f, 56.1f,
LINE_TO, 199.9f, 192.58f,
CUBIC_TO, 201.9f, 194.58f, 201.9f, 197.83f, 199.9f, 199.83f,
CUBIC_TO, 197.9f, 201.83f, 194.66f, 201.83f, 192.66f, 199.83f,
LINE_TO, 56.17f, 63.34f,
CLOSE,
NEW_PATH,
FILL_RULE_NONZERO,
MOVE_TO, 192.66f, 56.1f,
CUBIC_TO, 194.66f, 54.1f, 197.9f, 54.1f, 199.9f, 56.1f,
CUBIC_TO, 201.9f, 58.1f, 201.9f, 61.34f, 199.9f, 63.34f,
LINE_TO, 63.41f, 199.83f,
CUBIC_TO, 61.41f, 201.83f, 58.17f, 201.83f, 56.17f, 199.83f,
CUBIC_TO, 54.17f, 197.82f, 54.17f, 194.58f, 56.17f, 192.58f,
LINE_TO, 192.66f, 56.1f,
CLOSE,
NEW_PATH,
FILL_RULE_NONZERO,
MOVE_TO, 204.18f, 122.88f,
CUBIC_TO, 207.01f, 122.88f, 209.3f, 125.17f, 209.3f, 128,
CUBIC_TO, 209.3f, 130.83f, 207.01f, 133.12f, 204.18f, 133.12f,
H_LINE_TO, 51.82f,
CUBIC_TO, 48.99f, 133.12f, 46.7f, 130.83f, 46.7f, 128,
CUBIC_TO, 46.7f, 125.17f, 48.99f, 122.88f, 51.82f, 122.88f,
H_LINE_TO, 204.18f,
CLOSE
+7
View File
@@ -53,3 +53,10 @@ branding/product_icon/256x256.png chrome/app/theme/chromium/linux/product_logo_2
branding/product_icon/16x16.png chrome/app/theme/default_100_percent/chromium/linux/product_logo_16.png
branding/product_icon/32x32.png chrome/app/theme/default_100_percent/chromium/linux/product_logo_32.png
branding/product_logo.svg chrome/app/theme/chromium/product_logo.svg
branding/product_logo.icon chrome/app/vector_icons/browser_logo.icon
branding/product_logo.icon components/omnibox/browser/vector_icons/product_chrome_refresh.icon
branding/product_logo.icon components/vector_icons/chromium/product.icon
branding/product_logo_color.icon components/vector_icons/chromium/product_refresh.icon
+1 -1
View File
@@ -1 +1 @@
2
1
+7 -7
View File
@@ -66,17 +66,17 @@
self._gn_args = local_scope.get('gclient_gn_args', [])
# It doesn't make sense to set all of these, since setting gn_args_from
# to another DEPS will make gclient ignore any other local gn_args*
@@ -3977,6 +3987,7 @@ def CMDsync(parser, args):
dest='experiments',
@@ -3983,6 +3993,7 @@ def CMDsync(parser, args):
default=[],
help='Which experiments should be enabled.')
help='Specify to skip processing of a certain type of '
'dep.')
+ parser.add_option('--sysroot')
(options, args) = parser.parse_args(args)
client = GClient.LoadCurrentConfig(options)
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -971,8 +971,7 @@ class GitWrapper(SCMWrapper):
@@ -979,8 +979,7 @@ class GitWrapper(SCMWrapper):
self._SetFetchConfig(options)
# Fetch upstream if we don't already have |revision|.
@@ -86,7 +86,7 @@
self._Fetch(options, prune=options.force)
if not scm.GIT.IsValidRevision(
@@ -988,7 +987,7 @@ class GitWrapper(SCMWrapper):
@@ -996,7 +995,7 @@ class GitWrapper(SCMWrapper):
# This is a big hammer, debatable if it should even be here...
if options.force or options.reset:
@@ -95,7 +95,7 @@
if options.upstream and upstream_branch:
target = upstream_branch
self._Scrub(target, options)
@@ -1003,7 +1002,6 @@ class GitWrapper(SCMWrapper):
@@ -1011,7 +1010,6 @@ class GitWrapper(SCMWrapper):
# to the checkout step.
if not (options.force or options.reset):
self._CheckClean(revision)
@@ -103,7 +103,7 @@
if not current_revision:
current_revision = self._Capture(
@@ -1691,8 +1689,7 @@ class GitWrapper(SCMWrapper):
@@ -1702,8 +1700,7 @@ class GitWrapper(SCMWrapper):
fetch_cmd.append('--no-tags')
elif quiet:
fetch_cmd.append('--quiet')

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