Compare commits

...

35 Commits

Author SHA1 Message Date
wukko 985688b9a9 revision: bump to 4 (#834) 2026-01-28 20:05:28 +00:00
jj 50167df4d4 deps: use helium ublock fork, update to 1.69.0-2 2026-01-28 19:56:05 +00:00
jj 24c34d93f7 utils/extraction: add support for .zip relative path stripping 2026-01-28 15:17:21 +00:00
wukko e00d3ef9e3 merge: update to chromium 144.0.7559.109 (#831) 2026-01-28 21:07:15 +06:00
wukko 6325cb4b30 patches: refresh for 144.0.7559.109 2026-01-28 16:41:01 +06:00
wukko 84dbbf159c merge: update to ungoogled-chromium 144.0.7559.109 2026-01-28 13:02:02 +06:00
Blaise d006f5961a Update to Chromium 144.0.7559.109 2026-01-27 21:42:07 -06:00
PF4Public 1031fdae23 Update copyright year in LICENSE file (#3627) 2026-01-27 21:34:12 -06:00
wukko 6a97b1949d patches: remove bromite's canvas noise patch (#825)
superseded by helium noise
2026-01-26 15:38:41 +00:00
wukko efd166b84f helium/ui/location-bar: shrink page action and fix its colors (#824)
disabled tonal coloring, forced the minimized state, and removed
leftover code from intent chip -> page action migration in M144
2026-01-26 15:34:52 +00:00
wukko 8d8052b9d5 helium/core/search: use default search icon in omnibox (#823)
reduces visual noise and prevents ugly search engine favicons from
breaking the visual uniformity and contrast. there's enough indication
to tell what search engine you're using without the favicon.
2026-01-26 15:30:54 +00:00
wukko cbcffd188c helium/core/component-updates: allow WidevineCdm installer (#822)
this allows for the widevine component to be sideloaded on some
platforms
2026-01-26 15:20:31 +00:00
wukko b1c7c7ec55 helium/core/search: break default search engine favicons (#821)
prevents unnecessary favicon requests when opening the search engines
page in settings. we use our own offline assets on that page, so this
has no visual impact.
2026-01-26 21:15:37 +06:00
wukko 53d84da528 helium/ui/pdf-viewer: adaptive sidenav width (#815)
fixes awkwardly narrow navigation view
2026-01-25 13:12:14 +00:00
jj effc1998db helium/ublock: remove migration logic from webstore uBlock (#810)
we introduced component-based uB0 in 0.4.8, and so had to migrate any
existing prefs from the webstore extension to our component-based
extension

4 milestones and 4 months later, I think we can safely drop this logic,
since the vast majority of users should have their preferences already
migrated
2026-01-25 11:10:48 +01:00
jj a59d037abf github/templates: specify issue prerequisite for PRs (#802) 2026-01-23 12:06:08 +00:00
wukko 99df2f5ce0 helium/ui/toolbar: don't show split controls if not pinned (#801)
i assume this button is shown in chromium because there's no clear
indication of what tab is focused, but helium shows it directly in the
tab strip (#800). if the user wants the toolbar button for split
controls to be visible, it can be pinned, and it'll behave just like it
used to.
2026-01-23 12:02:37 +00:00
wukko 43a4670139 helium/ui/tabs: improve split tabs ux (#800)
- show a selection stroke around the currently selected half
- allow tabs to be clicked & focused individually
- space out tabs for cleaner visuals
2026-01-23 11:58:20 +00:00
wukko 9fa95f14d5 helium/core/shortcuts: add "new split view" to mac app menu (#799)
surfaces the existing keyboard shortcut in a familiar place
2026-01-23 11:46:51 +00:00
jj 1fffbef8d8 helium/ui: hide live caption button in PiP (#787)
Fixes #272
2026-01-23 17:31:28 +06:00
wukko d69044982f helium/ui/cat: fix extra margin between window controls & toolbar (#795) 2026-01-23 12:45:32 +06:00
wukko a8f0ed3382 revision: bump to 3 (#792) 2026-01-21 15:19:40 +00:00
wukko 4c8f19152a update: chromium 144.0.7559.96 (#788) 2026-01-21 21:13:02 +06:00
wukko fd840637d0 patches: refresh for chromium 144.0.7559.96 2026-01-21 14:00:22 +06:00
wukko fab928a47d merge: update to ungoogled-chromium 144.0.7559.96 2026-01-21 13:04:38 +06:00
Blaise 4ab4dc360d Update to Chromium 144.0.7559.96 2026-01-20 17:05:22 -06:00
jj 2faa7811ca helium/bangs: only replace user_text if the result is longer (#786)
The intent of this `if` is to allow the user to select a suggested query
from bang history, but it previously always overwrote |user_text_| even
if it was longer (which is not possible if the user is selecting a
suggestion, as it will always be longer than currently-typed text).

Because |fill_into_edit| is trimmed, it also removed the trailing space
that is desired if the user was inputting a completely new query.

Make it so that |user_text_| is only replaced if it will result in an
expansion.

Fixes #726
2026-01-20 19:28:49 +00:00
jj 3e38464b94 helium/bangs: remove strict match check in MaybeStripKeyword (#785)
i can't remember what this was added for, and bangs seem to be working
fine even without it. so let's just yank it out since it seems to be
causing problems.

Fixes #146
Fixes #784
2026-01-20 19:43:24 +01:00
wukko d842e99049 helium/ui: fix caption button bounds on macos (#779)
also removed a patch for old layout which is no longer used
2026-01-20 14:06:21 +00:00
jj 894352c8d5 helium/core: don't expose mv3-only features to ublock component (#778)
fixes #677
2026-01-19 15:59:50 +00:00
wukko e88afce78d helium/core/exclude-flags: exclude new layout kill switches (#777)
related: #776 

we don't patch the old layout, so disabling the new one could have
unpredicted consequences
2026-01-19 15:56:20 +00:00
wukko 3777d75236 helium/ui: remove patches for the old browser layout (#776)
it's no longer used (as of 144) and was removed in upstream's main.
patching dead code makes no sense.
2026-01-19 21:52:17 +06:00
jj a3d44e6cc1 helium/core: add component to remove webstore nags (#772)
this component can be also used later for compatibility fixes with
alternative extension stores like opera/edge store

fixes #551
2026-01-19 12:18:35 +06:00
jj 55438d5cbc helium/settings: add "add search engine" button (#769) 2026-01-18 14:52:07 +01:00
jj 1135b4aa89 helium/ui: fix zoom and pwa action behavior (#771)
should work as expected once again
2026-01-18 10:52:38 +00:00
50 changed files with 1104 additions and 694 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
For your pull request to not get closed without review, please confirm that:
- [ ] An issue exists where the maintainers agreed that this should be implemented.
If such issue did not exist before, I opened one.
- [ ] An issue exists where the maintainers agreed that this should be implemented
(an approved feature request, or confirmed bug).
- [ ] I tested that my contribution works locally, and does not break anything,
otherwise I have marked my PR as draft.
- [ ] If my contribution is non-trivial, I did not use AI to write most of it.
+1 -1
View File
@@ -1,6 +1,6 @@
BSD 3-Clause License
Copyright (c) 2015-2023, The ungoogled-chromium Authors
Copyright (c) 2015-2026, The ungoogled-chromium Authors
All rights reserved.
Redistribution and use in source and binary forms, with or without
+1 -1
View File
@@ -1 +1 @@
144.0.7559.59
144.0.7559.109
+4 -3
View File
@@ -16,8 +16,9 @@ output_path = ./components/helium_onboarding
# If you are bumping this, you *NEED* to re-strip the assets.json
# file *every time* by using `devutils/clear-ublock-assets.js`.
[ublock_origin]
version = 1.67.0
url = https://github.com/imputnet/ublock-origin-crx/releases/download/%(version)s/uBlock0_%(version)s.crx
sha256 = 969eaaa4e0b1893a35e1c5767c33bcfcc62737667644c97f644ff3c84677aff7
version = 1.69.0-2
url = https://github.com/imputnet/uBlock/releases/download/%(version)s/uBlock0_%(version)s.chromium.zip
sha256 = fdc0607538082b409833acd2a80f3a2d657b2af70813a9a8e8e5c7a9938f7e29
download_filename = ublock-origin-%(version)s.zip
output_path = third_party/ublock
strip_leading_dirs = uBlock0.chromium
@@ -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"
@@ -3726,6 +3727,8 @@ void RenderProcessHostImpl::PropagateBro
@@ -3720,6 +3721,8 @@ void RenderProcessHostImpl::PropagateBro
switches::kEnableWebGLImageChromium,
switches::kEnableWebGPUDeveloperFeatures,
switches::kFileUrlPathAlias,
@@ -1,326 +0,0 @@
# NOTE: Changes made:
# * Added flag --fingerprinting-canvas-image-data-noise to enable/disable
# Canvas image data fingerprinting deception
# * Removed WebGLDebugRendererInfo disabling in favor of an alternative
# implementation in ungoogled-chromium/disable-webgl-renderer-info.patch
# * Tweak subchannel noise generation to require fewer random number generation
From: csagan5 <32685696+csagan5@users.noreply.github.com>
Date: Sat, 24 Mar 2018 05:18:03 +0100
Subject: Canvas: fingerprinting mitigations for image data and webGL
Disable webGL renderer info and modify the color data returned by ToBlob,
ToDataURL and getImageData so that it will contain randomly manipulated
pixels (maximum 10) that slightly change the color of the R,G,B components
without a visible effect.
Credits to Slaviro (https://github.com/Slaviro) for coming up with a better
approach to change color components.
---
.../platform/graphics/image_data_buffer.cc | 5 +
.../platform/graphics/static_bitmap_image.cc | 154 +++++++++++++++++++++
.../platform/graphics/static_bitmap_image.h | 2 +
4 files changed, 163 insertions(+), 2 deletions(-)
--- a/chrome/browser/bromite_flag_entries.h
+++ b/chrome/browser/bromite_flag_entries.h
@@ -16,4 +16,8 @@
flag_descriptions::kMaxConnectionsPerHostName,
flag_descriptions::kMaxConnectionsPerHostDescription,
kOsAll, MULTI_VALUE_TYPE(kMaxConnectionsPerHostChoices)},
+ {"fingerprinting-canvas-image-data-noise",
+ "Enable Canvas image data fingerprint deception",
+ "Slightly modifies at most 10 pixels in Canvas image data extracted via JS APIs. ungoogled-chromium flag, Bromite feature.",
+ kOsAll, SINGLE_VALUE_TYPE(switches::kFingerprintingCanvasImageDataNoise)},
#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
@@ -3729,6 +3729,7 @@ void RenderProcessHostImpl::PropagateBro
switches::kFileUrlPathAlias,
switches::kFingerprintingClientRectsNoise,
switches::kFingerprintingCanvasMeasureTextNoise,
+ switches::kFingerprintingCanvasImageDataNoise,
switches::kForceDeviceScaleFactor,
switches::kForceDisplayColorProfile,
switches::kForceHighContrast,
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -490,6 +490,8 @@ void SetRuntimeFeaturesFromCommandLine(c
switches::kFingerprintingClientRectsNoise, true},
{wrf::EnableFingerprintingCanvasMeasureTextNoise,
switches::kFingerprintingCanvasMeasureTextNoise, true},
+ {wrf::EnableFingerprintingCanvasImageDataNoise,
+ switches::kFingerprintingCanvasImageDataNoise, true},
};
for (const auto& mapping : switchToFeatureMapping) {
--- a/third_party/blink/public/platform/web_runtime_features.h
+++ b/third_party/blink/public/platform/web_runtime_features.h
@@ -73,6 +73,7 @@ class BLINK_PLATFORM_EXPORT WebRuntimeFe
static void EnableFingerprintingClientRectsNoise(bool);
static void EnableFingerprintingCanvasMeasureTextNoise(bool);
+ static void EnableFingerprintingCanvasImageDataNoise(bool);
WebRuntimeFeatures() = delete;
};
--- 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
@@ -526,6 +526,9 @@ ImageData* BaseRenderingContext2D::getIm
snapshot->PaintImageForCurrentFrame().GetSkImageInfo().bounds();
DCHECK(!bounds.intersect(SkIRect::MakeXYWH(sx, sy, sw, sh)));
}
+ if (read_pixels_successful && RuntimeEnabledFeatures::FingerprintingCanvasImageDataNoiseEnabled()) {
+ StaticBitmapImage::ShuffleSubchannelColorData(image_data_pixmap.addr(), image_data_pixmap.info(), sx, sy);
+ }
}
return image_data;
--- a/third_party/blink/renderer/platform/BUILD.gn
+++ b/third_party/blink/renderer/platform/BUILD.gn
@@ -1752,7 +1752,9 @@ component("platform") {
"//third_party/blink/renderer:non_test_config",
]
- include_dirs = []
+ include_dirs = [
+ "//third_party/skia/include/private", # For shuffler in graphics/static_bitmap_image.cc
+ ]
allow_circular_includes_from = [
"//third_party/blink/renderer/platform/blob",
--- a/third_party/blink/renderer/platform/exported/web_runtime_features.cc
+++ b/third_party/blink/renderer/platform/exported/web_runtime_features.cc
@@ -81,4 +81,8 @@ void WebRuntimeFeatures::EnableFingerpri
RuntimeEnabledFeatures::SetFingerprintingCanvasMeasureTextNoiseEnabled(enable);
}
+void WebRuntimeFeatures::EnableFingerprintingCanvasImageDataNoise(bool enable) {
+ RuntimeEnabledFeatures::SetFingerprintingCanvasImageDataNoiseEnabled(enable);
+}
+
} // namespace blink
--- a/third_party/blink/renderer/platform/graphics/static_bitmap_image.cc
+++ b/third_party/blink/renderer/platform/graphics/static_bitmap_image.cc
@@ -4,6 +4,8 @@
#include "third_party/blink/renderer/platform/graphics/static_bitmap_image.h"
+#include "base/rand_util.h"
+#include "base/logging.h"
#include "base/numerics/checked_math.h"
#include "gpu/command_buffer/client/gles2_interface.h"
#include "third_party/blink/renderer/platform/graphics/accelerated_static_bitmap_image.h"
@@ -11,11 +13,13 @@
#include "third_party/blink/renderer/platform/graphics/image_observer.h"
#include "third_party/blink/renderer/platform/graphics/paint/paint_image.h"
#include "third_party/blink/renderer/platform/graphics/unaccelerated_static_bitmap_image.h"
+#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "third_party/blink/renderer/platform/transforms/affine_transform.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkImage.h"
#include "third_party/skia/include/core/SkPaint.h"
#include "third_party/skia/include/core/SkSurface.h"
+#include "third_party/skia/src/core/SkColorData.h"
#include "ui/gfx/geometry/skia_conversions.h"
#include "v8/include/v8.h"
@@ -114,4 +118,154 @@ void StaticBitmapImage::DrawHelper(cc::P
ToSkiaRectConstraint(draw_options.clamping_mode));
}
+// set the component to maximum-delta if it is >= maximum, or add to existing color component (color + delta)
+#define shuffleComponent(color, max, delta) ( (color) >= (max) ? ((max)-(delta)) : ((color)+(delta)) )
+
+#define writable_addr(T, p, stride, x, y) (T*)((const char *)p + y * stride + x * sizeof(T))
+
+void StaticBitmapImage::ShuffleSubchannelColorData(const void *addr, const SkImageInfo& info, int srcX, int srcY) {
+ auto w = info.width() - srcX, h = info.height() - srcY;
+
+ // skip tiny images; info.width()/height() can also be 0
+ if ((w < 8) || (h < 8)) {
+ return;
+ }
+
+ // generate the first random number here
+ double shuffleX = base::RandDouble();
+
+ // cap maximum pixels to change
+ auto pixels = (w + h) / 128;
+ if (pixels > 10) {
+ pixels = 10;
+ } else if (pixels < 2) {
+ pixels = 2;
+ }
+
+ auto colorType = info.colorType();
+ auto fRowBytes = info.minRowBytes(); // stride
+
+ DLOG(INFO) << "BRM: ShuffleSubchannelColorData() w=" << w << " h=" << h << " colorType=" << colorType << " fRowBytes=" << fRowBytes;
+
+ // second random number (for y/height)
+ double shuffleY = base::RandDouble();
+
+ // calculate random coordinates using bisection
+ auto currentW = w, currentH = h;
+ for(;pixels >= 0; pixels--) {
+ int x = currentW * shuffleX, y = currentH * shuffleY;
+
+ // calculate randomisation amounts for each RGB component
+ uint8_t shuffleR = base::RandInt(0, 4);
+ uint8_t shuffleG = (shuffleR + x) % 4;
+ uint8_t shuffleB = (shuffleG + y) % 4;
+
+ // manipulate pixel data to slightly change the R, G, B components
+ switch (colorType) {
+ case kAlpha_8_SkColorType:
+ {
+ auto *pixel = writable_addr(uint8_t, addr, fRowBytes, x, y);
+ auto r = SkColorGetR(*pixel), g = SkColorGetG(*pixel), b = SkColorGetB(*pixel), a = SkColorGetA(*pixel);
+
+ r = shuffleComponent(r, UINT8_MAX-1, shuffleR);
+ g = shuffleComponent(g, UINT8_MAX-1, shuffleG);
+ b = shuffleComponent(b, UINT8_MAX-1, shuffleB);
+ // alpha is left unchanged
+
+ *pixel = SkColorSetARGB(a, r, g, b);
+ }
+ break;
+ case kGray_8_SkColorType:
+ {
+ auto *pixel = writable_addr(uint8_t, addr, fRowBytes, x, y);
+ *pixel = shuffleComponent(*pixel, UINT8_MAX-1, shuffleB);
+ }
+ break;
+ case kRGB_565_SkColorType:
+ {
+ auto *pixel = writable_addr(uint16_t, addr, fRowBytes, x, y);
+ unsigned r = SkPacked16ToR32(*pixel);
+ unsigned g = SkPacked16ToG32(*pixel);
+ unsigned b = SkPacked16ToB32(*pixel);
+
+ r = shuffleComponent(r, 31, shuffleR);
+ g = shuffleComponent(g, 63, shuffleG);
+ b = shuffleComponent(b, 31, shuffleB);
+
+ unsigned r16 = (r & SK_R16_MASK) << SK_R16_SHIFT;
+ unsigned g16 = (g & SK_G16_MASK) << SK_G16_SHIFT;
+ unsigned b16 = (b & SK_B16_MASK) << SK_B16_SHIFT;
+
+ *pixel = r16 | g16 | b16;
+ }
+ break;
+ case kARGB_4444_SkColorType:
+ {
+ auto *pixel = writable_addr(uint16_t, addr, fRowBytes, x, y);
+ auto a = SkGetPackedA4444(*pixel), r = SkGetPackedR4444(*pixel), g = SkGetPackedG4444(*pixel), b = SkGetPackedB4444(*pixel);
+
+ r = shuffleComponent(r, 15, shuffleR);
+ g = shuffleComponent(g, 15, shuffleG);
+ b = shuffleComponent(b, 15, shuffleB);
+ // alpha is left unchanged
+
+ unsigned a4 = (a & 0xF) << SK_A4444_SHIFT;
+ unsigned r4 = (r & 0xF) << SK_R4444_SHIFT;
+ unsigned g4 = (g & 0xF) << SK_G4444_SHIFT;
+ unsigned b4 = (b & 0xF) << SK_B4444_SHIFT;
+
+ *pixel = r4 | b4 | g4 | a4;
+ }
+ break;
+ case kRGBA_8888_SkColorType:
+ {
+ auto *pixel = writable_addr(uint32_t, addr, fRowBytes, x, y);
+ auto a = SkGetPackedA32(*pixel), r = SkGetPackedR32(*pixel), g = SkGetPackedG32(*pixel), b = SkGetPackedB32(*pixel);
+
+ r = shuffleComponent(r, UINT8_MAX-1, shuffleR);
+ g = shuffleComponent(g, UINT8_MAX-1, shuffleG);
+ b = shuffleComponent(b, UINT8_MAX-1, shuffleB);
+ // alpha is left unchanged
+
+ *pixel = (a << SK_A32_SHIFT) | (r << SK_R32_SHIFT) |
+ (g << SK_G32_SHIFT) | (b << SK_B32_SHIFT);
+ }
+ break;
+ case kBGRA_8888_SkColorType:
+ {
+ auto *pixel = writable_addr(uint32_t, addr, fRowBytes, x, y);
+ auto a = SkGetPackedA32(*pixel), b = SkGetPackedR32(*pixel), g = SkGetPackedG32(*pixel), r = SkGetPackedB32(*pixel);
+
+ r = shuffleComponent(r, UINT8_MAX-1, shuffleR);
+ g = shuffleComponent(g, UINT8_MAX-1, shuffleG);
+ b = shuffleComponent(b, UINT8_MAX-1, shuffleB);
+ // alpha is left unchanged
+
+ *pixel = (a << SK_BGRA_A32_SHIFT) | (r << SK_BGRA_R32_SHIFT) |
+ (g << SK_BGRA_G32_SHIFT) | (b << SK_BGRA_B32_SHIFT);
+ }
+ break;
+ default:
+ // the remaining formats are not expected to be used in Chromium
+ LOG(WARNING) << "BRM: ShuffleSubchannelColorData(): Ignoring pixel format";
+ return;
+ }
+
+ // keep bisecting or reset current width/height as needed
+ if (x == 0) {
+ currentW = w;
+ } else {
+ currentW = x;
+ }
+ if (y == 0) {
+ currentH = h;
+ } else {
+ currentH = y;
+ }
+ }
+}
+
+#undef writable_addr
+#undef shuffleComponent
+
} // namespace blink
--- a/third_party/blink/renderer/platform/graphics/static_bitmap_image.h
+++ b/third_party/blink/renderer/platform/graphics/static_bitmap_image.h
@@ -38,6 +38,8 @@ class PLATFORM_EXPORT StaticBitmapImage
StaticBitmapImage(ImageOrientation orientation) : orientation_(orientation) {}
+ static void ShuffleSubchannelColorData(const void *addr, const SkImageInfo& info, int srcX, int srcY);
+
bool IsStaticBitmapImage() const override { return true; }
// Methods overridden by all sub-classes
--- a/third_party/blink/renderer/platform/image-encoders/image_encoder.cc
+++ b/third_party/blink/renderer/platform/image-encoders/image_encoder.cc
@@ -13,6 +13,8 @@
#include <stdio.h> // Needed by jpeglib.h
#include "jpeglib.h" // for JPEG_MAX_DIMENSION
+#include "third_party/blink/renderer/platform/graphics/static_bitmap_image.h"
+#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "third_party/libwebp/src/src/webp/encode.h" // for WEBP_MAX_DIMENSION
namespace blink {
@@ -44,6 +46,10 @@ bool ImageEncoder::Encode(Vector<unsigne
const SkPixmap& src,
ImageEncodingMimeType mime_type,
double quality) {
+ if (RuntimeEnabledFeatures::FingerprintingCanvasImageDataNoiseEnabled()) {
+ // shuffle subchannel color data within the pixmap
+ StaticBitmapImage::ShuffleSubchannelColorData(src.writable_addr(), src.info(), 0, 0);
+ }
switch (mime_type) {
case kMimeTypeJpeg: {
SkJpegEncoder::Options options;
--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
@@ -2517,6 +2517,9 @@
name: "FingerprintingCanvasMeasureTextNoise",
},
{
+ name: "FingerprintingCanvasImageDataNoise",
+ },
+ {
name: "Fledge",
status: "stable",
base_feature: "none",
@@ -102,7 +102,7 @@ with limited CPU/memory resources and it is disabled by default.
--- a/chrome/browser/flag_descriptions.h
+++ b/chrome/browser/flag_descriptions.h
@@ -2759,6 +2759,10 @@ inline constexpr char kLogJsConsoleMessa
@@ -2763,6 +2763,10 @@ inline constexpr char kLogJsConsoleMessa
"Enable logging JS console messages in system logs, please note that they "
"may contain PII.";
+6 -21
View File
@@ -832,7 +832,7 @@
// - youtube| -> youtube | (a space was appended to a keyword)
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
@@ -885,6 +885,24 @@ void OmniboxEditModel::OpenSelectionForT
@@ -888,6 +888,24 @@ void OmniboxEditModel::OpenSelectionForT
OpenSelection(popup_selection_, timestamp, disposition, via_keyboard);
}
@@ -857,7 +857,7 @@
void OmniboxEditModel::AcceptKeyword(
OmniboxEventProto::KeywordModeEntryMethod entry_method) {
TRACE_EVENT0("omnibox", "OmniboxEditModel::AcceptKeyword");
@@ -893,6 +911,17 @@ void OmniboxEditModel::AcceptKeyword(
@@ -896,6 +914,17 @@ void OmniboxEditModel::AcceptKeyword(
controller_->StopAutocomplete(/*clear_result=*/false);
@@ -867,7 +867,7 @@
+
+ if (turl && turl->bang_id() > 0 && !user_text_.starts_with(u'!')) {
+ AutocompleteMatch match = CurrentMatch();
+ if (!match.fill_into_edit.empty()) {
+ if (match.fill_into_edit.length() > user_text_.length()) {
+ user_text_ = match.fill_into_edit;
+ }
+ }
@@ -875,7 +875,7 @@
SetIsKeywordHint(false);
keyword_mode_entry_method_ = entry_method;
if (original_user_text_with_keyword_.empty()) {
@@ -935,9 +964,6 @@ void OmniboxEditModel::AcceptKeyword(
@@ -938,9 +967,6 @@ void OmniboxEditModel::AcceptKeyword(
}
base::RecordAction(base::UserMetricsAction("AcceptedKeywordHint"));
@@ -885,22 +885,7 @@
EmitEnteredKeywordModeHistogram(entry_method, turl, !user_text_.empty());
}
@@ -1601,7 +1627,13 @@ void OmniboxEditModel::InternalSetUserTe
std::u16string OmniboxEditModel::MaybeStripKeyword(
const std::u16string& text) const {
- return is_keyword_selected()
+ std::u16string trimmed_text;
+ base::TrimWhitespace(text, base::TRIM_LEADING, &trimmed_text);
+
+ std::u16string actual_keyword = base::ToLowerASCII(
+ AutocompleteInput::SplitKeywordFromInput(trimmed_text, false, nullptr));
+
+ return is_keyword_selected() && actual_keyword == keyword_
? AutocompleteInput::SplitReplacementStringFromInput(text, false)
: text;
}
@@ -2795,6 +2827,21 @@ bool OmniboxEditModel::AllowKeywordSpace
@@ -2804,6 +2830,21 @@ bool OmniboxEditModel::AllowKeywordSpace
return GetPrefService()->GetBoolean(omnibox::kKeywordSpaceTriggeringEnabled);
}
@@ -922,7 +907,7 @@
bool OmniboxEditModel::ShouldAcceptKeywordAfterInsertingSpaceAtEnd(
const std::u16string& new_text) {
// Check if the user has disabled space triggering.
@@ -2818,16 +2865,20 @@ bool OmniboxEditModel::ShouldAcceptKeywo
@@ -2827,16 +2868,20 @@ bool OmniboxEditModel::ShouldAcceptKeywo
return false;
}
+2 -1
View File
@@ -137,7 +137,7 @@
#include "base/files/file_enumerator.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
@@ -111,7 +112,21 @@ void ComponentInstaller::Register(Compon
@@ -111,7 +112,22 @@ void ComponentInstaller::Register(Compon
std::vector<uint8_t> public_key_hash;
installer_policy_->GetHash(&public_key_hash);
@@ -147,6 +147,7 @@
+ base::sorted_unique,
+ {
+ "hfnkpimlhhgieaddgfemjhofmfblmnib", // CRLSet
+ "oimompecagnajdejgnnjijobebaeigek", // WidevineCdm
+ }
+ );
+
@@ -1,6 +1,6 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -13778,11 +13778,381 @@ const FeatureEntry kFeatureEntries[] = {
@@ -13832,11 +13832,387 @@ const FeatureEntry kFeatureEntries[] = {
// AboutFlagsHistogramTest unit test to verify this process).
};
@@ -295,6 +295,12 @@
+ "chrome-web-store-navigation-throttle",
+ "supervised-user-block-interstitial-v3",
+
+ // New layout kill switches
+ // (old layout is disabled in 144 and removed in 146)
+ "app-browser-use-new-layout",
+ "popup-browser-use-new-layout",
+ "tabbed-browser-use-new-layout",
+
+ // Autofill
+ "reintroduce-hybrid-passkey-entry-point",
+ "fill-on-account-select",
@@ -383,7 +389,7 @@
FlagsStateSingleton(const FlagsStateSingleton&) = delete;
FlagsStateSingleton& operator=(const FlagsStateSingleton&) = delete;
~FlagsStateSingleton() override = default;
@@ -13801,7 +14171,7 @@ class FlagsStateSingleton : public flags
@@ -13855,7 +14231,7 @@ class FlagsStateSingleton : public flags
void RestoreDefaultState() {
flags_state_ =
@@ -392,7 +398,7 @@
}
private:
@@ -14128,7 +14498,7 @@ base::span<const FeatureEntry> GetFeatur
@@ -14182,7 +14558,7 @@ base::span<const FeatureEntry> GetFeatur
!entries_for_testing->empty()) {
return *entries_for_testing;
}
@@ -0,0 +1,89 @@
--- a/components/extstore_fixups/BUILD.gn
+++ b/components/extstore_fixups/BUILD.gn
@@ -16,6 +16,7 @@ generate_grd("extstore_fixups_grd") {
input_files_base_dir = rebase_path(".", "//")
input_files = [
"manifest.json",
+ "chrome-webstore.js",
]
}
--- a/components/extstore_fixups/manifest.json
+++ b/components/extstore_fixups/manifest.json
@@ -9,5 +9,10 @@
"version": "0.0.0",
"manifest_version": 3,
"content_scripts": [
+ {
+ "matches": [ "https://chromewebstore.google.com/*" ],
+ "run_at": "document_start",
+ "js": [ "chrome-webstore.js" ]
+ }
]
}
--- /dev/null
+++ b/components/extstore_fixups/chrome-webstore.js
@@ -0,0 +1,63 @@
+// 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.
+
+(() => {
+ const PROMO_POPUP_SELECTOR = 'header > [aria-labelledby=promo-header]';
+ const SWITCH_NAG_SELECTOR = 'main section [aria-label=Info]';
+ const SWITCH_BTN_SELECTOR = 'button[aria-label^=\'Switch to Chrome\']';
+ const removeChromeNags = () => {
+ const promoPopup = document.querySelector(PROMO_POPUP_SELECTOR);
+ if (promoPopup) {
+ promoPopup.remove();
+ }
+
+ const switchNag = document.querySelector(SWITCH_NAG_SELECTOR);
+ if (switchNag && switchNag.querySelector(SWITCH_BTN_SELECTOR)) {
+ switchNag.remove();
+ }
+ };
+
+ const replaceDownloadButtonText = (el) => {
+ if (el.nodeType === Node.TEXT_NODE) {
+ if (!el.nodeValue?.includes('Chrome')) {
+ return false;
+ }
+
+ el.nodeValue = el.nodeValue.replace('Chrome', 'Helium');
+ return true;
+ } else if (el.childNodes) {
+ for (const node of el.childNodes) {
+ if (replaceDownloadButtonText(node)) {
+ return true;
+ }
+ }
+ }
+
+ return false;
+ };
+
+ const changeDownloadButtonText = () => {
+ const mainTitles = document.querySelectorAll('main section h1');
+
+ for (const mainTitleEl of mainTitles) {
+ const downloadButton =
+ mainTitleEl?.parentElement?.parentElement?.querySelector('button');
+ if (!downloadButton || !downloadButton.textContent?.includes('Chrome')) {
+ continue;
+ }
+
+ if (replaceDownloadButtonText(downloadButton)) {
+ break;
+ }
+ }
+ };
+
+ const handleChanges = () => {
+ removeChromeNags();
+ changeDownloadButtonText();
+ };
+
+ const observer = new MutationObserver(handleChanges);
+ observer.observe(document, {childList: true, subtree: true});
+})();
@@ -0,0 +1,198 @@
--- /dev/null
+++ b/components/extstore_fixups/BUILD.gn
@@ -0,0 +1,37 @@
+# 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.
+
+import("//ui/webui/resources/tools/generate_grd.gni")
+import("//tools/grit/grit_rule.gni")
+
+generated_grd = "$target_gen_dir/resources.grd"
+
+generate_grd("extstore_fixups_grd") {
+ out_grd = generated_grd
+
+ grd_prefix = "extstore_fixups"
+ resource_path_prefix = "extstore_fixups"
+
+ input_files_base_dir = rebase_path(".", "//")
+ input_files = [
+ "manifest.json",
+ ]
+}
+
+grit("extstore_fixups") {
+ source = generated_grd
+
+ # Required because the .grd is generated.
+ enable_input_discovery_for_gn_analyze = false
+ output_dir = "$target_gen_dir/resources"
+
+ outputs = [
+ "grit/extstore_fixups_resources.h",
+ "grit/extstore_fixups_resources_map.cc",
+ "grit/extstore_fixups_resources_map.h",
+ "extstore_fixups_resources.pak"
+ ]
+
+ deps = [":extstore_fixups_grd"]
+}
--- /dev/null
+++ b/components/extstore_fixups/manifest.json
@@ -0,0 +1,13 @@
+// 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.
+
+{
+ "name": "extstore-fixups",
+ // chrome-extension://jfnekidfgkhnfagaabpddmioknbjglgp
+ "key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDGyNfoa6gmayvnBUHaYz2fNyPT7CIj6e5VccAZcIbpM/w9bhshiU0zxe0Ci+oLzHy3E/mObNM1IrXhHAQZno7H3frUxTH+m2eIGiwcqLfJkaQFkXvSoInpsG2N3Q74W6YN3mKk7rBAE8PQT1Nyh5H8AmIaWRvLz1+vcowpPNjU/QIDAQAB",
+ "version": "0.0.0",
+ "manifest_version": 3,
+ "content_scripts": [
+ ]
+}
--- /dev/null
+++ b/components/extstore_fixups/extension_ids.h
@@ -0,0 +1,15 @@
+// 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.
+
+#ifndef COMPONENTS_EXTSTORE_FIXUPS_EXTENSION_IDS_H_
+#define COMPONENTS_EXTSTORE_FIXUPS_EXTENSION_IDS_H_
+
+namespace helium {
+
+inline constexpr char kExtstoreFixupsExtensionId[] =
+ "jfnekidfgkhnfagaabpddmioknbjglgp";
+
+} // namespace helium
+
+#endif /* COMPONENTS_EXTSTORE_FIXUPS_EXTENSION_IDS_H_ */
--- a/tools/gritsettings/resource_ids.spec
+++ b/tools/gritsettings/resource_ids.spec
@@ -205,7 +205,7 @@
"META": {"sizes": {"includes": [20]}},
"includes": [2820],
},
- "<(SHARED_INTERMEDIATE_DIR)/chrome/browser/resources/ash/inline_login/resources.grd": {
+ "<(SHARED_INTERMEDIATE_DIR)/components/extstore_fixups/resources.grd": {
"META": {"sizes": {"includes": [20]}},
"includes": [2840],
},
--- a/chrome/chrome_paks.gni
+++ b/chrome/chrome_paks.gni
@@ -141,6 +141,7 @@ template("chrome_extra_paks") {
"$root_gen_dir/components/translate_internals_resources.pak",
"$root_gen_dir/components/user_actions_ui_resources.pak",
"$root_gen_dir/components/version_ui_resources.pak",
+ "$root_gen_dir/components/extstore_fixups/resources/extstore_fixups_resources.pak",
"$root_gen_dir/content/attribution_internals_resources.pak",
"$root_gen_dir/content/content_resources.pak",
"$root_gen_dir/content/histograms_resources.pak",
@@ -169,6 +170,7 @@ template("chrome_extra_paks") {
"//components/autofill/core/browser:autofill_alternative_state_name_map_resources",
"//components/metrics:server_urls_grd",
"//components/resources",
+ "//components/extstore_fixups",
"//content:content_resources",
"//content/browser/resources",
"//mojo/public/js:resources",
--- a/chrome/browser/extensions/BUILD.gn
+++ b/chrome/browser/extensions/BUILD.gn
@@ -585,6 +585,7 @@ source_set("extensions") {
"//components/update_client:common_impl",
"//components/user_prefs",
"//components/vector_icons",
+ "//components/extstore_fixups",
"//content/public/browser",
"//extensions/browser",
"//extensions/browser/api/storage:settings_namespace",
--- a/chrome/browser/extensions/chrome_component_extension_resource_manager.cc
+++ b/chrome/browser/extensions/chrome_component_extension_resource_manager.cc
@@ -19,6 +19,7 @@
#include "chrome/grit/chrome_unscaled_resources.h"
#include "chrome/grit/component_extension_resources_map.h"
#include "chrome/grit/theme_resources.h"
+#include "components/extstore_fixups/resources/grit/extstore_fixups_resources_map.h"
#include "content/public/browser/browser_thread.h"
#include "extensions/buildflags/buildflags.h"
#include "extensions/common/constants.h"
@@ -97,6 +98,7 @@ ChromeComponentExtensionResourceManager:
AddComponentResourceEntries(kComponentExtensionResources);
AddComponentResourceEntries(kExtraComponentExtensionResources);
AddComponentResourceEntries(kUblockResources);
+ AddComponentResourceEntries(kExtstoreFixupsResources);
#if BUILDFLAG(IS_CHROMEOS)
// Add Files app JS modules resources.
--- a/chrome/browser/extensions/component_loader.h
+++ b/chrome/browser/extensions/component_loader.h
@@ -216,6 +216,7 @@ class ComponentLoader : public KeyedServ
const std::string& description_string);
void AddWebStoreApp();
void AddUBlock();
+ void AddExtstoreFixups();
#if BUILDFLAG(IS_CHROMEOS)
void AddChromeApp();
--- a/chrome/browser/extensions/component_loader.cc
+++ b/chrome/browser/extensions/component_loader.cc
@@ -38,6 +38,7 @@
#include "chrome/grit/generated_resources.h"
#include "components/crx_file/id_util.h"
#include "components/version_info/version_info.h"
+#include "components/extstore_fixups/resources/grit/extstore_fixups_resources.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/common/content_switches.h"
#include "extensions/browser/extension_file_task_runner.h"
@@ -446,6 +447,11 @@ void ComponentLoader::AddUBlock() {
}
}
+void ComponentLoader::AddExtstoreFixups() {
+ Add(IDR_EXTSTORE_FIXUPS_MANIFEST_JSON,
+ base::FilePath(FILE_PATH_LITERAL("extstore_fixups")));
+}
+
#if BUILDFLAG(IS_CHROMEOS)
void ComponentLoader::AddChromeApp() {
AddWithNameAndDescription(
@@ -524,6 +530,7 @@ void ComponentLoader::AddDefaultComponen
if (!skip_session_components) {
AddWebStoreApp();
AddUBlock();
+ AddExtstoreFixups();
#if BUILDFLAG(IS_CHROMEOS)
AddChromeApp();
#endif // BUILDFLAG(IS_CHROMEOS)
--- a/chrome/browser/extensions/component_extensions_allowlist/allowlist.cc
+++ b/chrome/browser/extensions/component_extensions_allowlist/allowlist.cc
@@ -16,6 +16,8 @@
#include "chrome/common/extensions/extension_constants.h"
#include "chrome/grit/browser_resources.h"
#include "components/helium_services/extension_ids.h"
+#include "components/extstore_fixups/extension_ids.h"
+#include "components/extstore_fixups/resources/grit/extstore_fixups_resources.h"
#include "extensions/buildflags/buildflags.h"
#include "extensions/common/constants.h"
#include "printing/buildflags/buildflags.h"
@@ -37,6 +39,7 @@ bool IsComponentExtensionAllowlisted(con
extension_misc::kInAppPaymentsSupportAppId,
extension_misc::kPdfExtensionId,
helium::kUBlockOriginComponentId,
+ helium::kExtstoreFixupsExtensionId,
#if BUILDFLAG(IS_CHROMEOS)
extension_misc::kAssessmentAssistantExtensionId,
extension_misc::kAccessibilityCommonExtensionId,
@@ -93,6 +96,7 @@ bool IsComponentExtensionAllowlisted(int
case IDR_READING_MODE_GDOCS_HELPER_MANIFEST:
case IDR_WEBSTORE_MANIFEST:
case IDR_UBLOCK_MANIFEST_JSON:
+ case IDR_EXTSTORE_FIXUPS_MANIFEST_JSON:
#if BUILDFLAG(IS_CHROMEOS)
// Separate ChromeOS list, as it is quite large.
+1 -1
View File
@@ -15,7 +15,7 @@
#endif // USE_AURA
#if defined(USE_AURA)
@@ -5266,11 +5266,13 @@ const FeatureEntry::Choice kOmniboxAutof
@@ -5315,11 +5315,13 @@ const FeatureEntry::Choice kOmniboxAutof
// calculate and verify checksum.
//
// When adding a new choice, add it to the end of the list.
+12 -2
View File
@@ -108,17 +108,18 @@
{true, false, false, true, kVK_UpArrow, IDC_FOCUS_PREVIOUS_PANE},
--- a/chrome/browser/ui/cocoa/accelerators_cocoa.mm
+++ b/chrome/browser/ui/cocoa/accelerators_cocoa.mm
@@ -37,7 +37,8 @@ const struct AcceleratorMapping {
@@ -37,7 +37,9 @@ const struct AcceleratorMapping {
{IDC_CUT, ui::EF_COMMAND_DOWN, ui::VKEY_X},
{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_DEV_TOOLS_INSPECT, ui::EF_COMMAND_DOWN | ui::EF_ALT_DOWN, ui::VKEY_E},
+ {IDC_COPY_OR_INSPECT_SHORTCUT, ui::EF_COMMAND_DOWN | ui::EF_SHIFT_DOWN, ui::VKEY_C},
+ {IDC_NEW_SPLIT_TAB, ui::EF_COMMAND_DOWN | ui::EF_ALT_DOWN, ui::VKEY_N},
{IDC_FIND, ui::EF_COMMAND_DOWN, ui::VKEY_F},
{IDC_NEW_INCOGNITO_WINDOW, ui::EF_COMMAND_DOWN | ui::EF_SHIFT_DOWN,
ui::VKEY_N},
@@ -73,9 +74,6 @@ const struct AcceleratorMapping {
@@ -73,9 +75,6 @@ const struct AcceleratorMapping {
// We used to define IDC_CLOSE_WINDOW here. Instead, see
// AcceleratorForCloseWindow().
{IDC_CLOSE_TAB, ui::EF_COMMAND_DOWN, ui::VKEY_W},
@@ -221,6 +222,15 @@
Item(IDS_PASTE_MAC)
.tag(IDC_CONTENT_CONTEXT_PASTE)
.action(@selector(paste:)),
@@ -525,6 +527,8 @@ NSMenuItem* BuildTabMenu(NSApplication*
.submenu({
Item(IDS_TAB_CXMENU_NEWTABTORIGHT)
.command_id(IDC_NEW_TAB_TO_RIGHT),
+ Item(IDS_TAB_CXMENU_ADD_TAB_TO_NEW_SPLIT)
+ .command_id(IDC_NEW_SPLIT_TAB),
Item(IDS_NEXT_TAB_MAC)
.command_id(IDC_SELECT_NEXT_TAB),
Item(IDS_PREV_TAB_MAC)
--- a/chrome/browser/ui/cocoa/share_menu_controller.mm
+++ b/chrome/browser/ui/cocoa/share_menu_controller.mm
@@ -98,12 +98,6 @@ bool CanShare() {
+3 -3
View File
@@ -649,7 +649,7 @@
#include "third_party/blink/public/common/tokens/tokens.h"
#include "third_party/blink/public/common/user_agent/user_agent_metadata.h"
#include "third_party/blink/public/mojom/frame/lifecycle.mojom-blink-forward.h"
@@ -512,6 +513,23 @@ class CORE_EXPORT ExecutionContext : pub
@@ -513,6 +514,23 @@ class CORE_EXPORT ExecutionContext : pub
return net::StorageAccessApiStatus::kNone;
}
@@ -673,7 +673,7 @@
const std::optional<NoiseToken>& CanvasNoiseToken() const {
return canvas_noise_token_;
}
@@ -863,6 +881,8 @@ class CORE_EXPORT ExecutionContext : pub
@@ -872,6 +890,8 @@ class CORE_EXPORT ExecutionContext : pub
bool require_trusted_types_ = false;
@@ -979,7 +979,7 @@
#include "content/browser/interest_group/ad_auction_headers_util.h"
#include "content/browser/loader/browser_initiated_resource_request.h"
#include "content/browser/loader/cached_navigation_url_loader.h"
@@ -8803,6 +8804,22 @@ void NavigationRequest::ReadyToCommitNav
@@ -8813,6 +8814,22 @@ void NavigationRequest::ReadyToCommitNav
}
}
+1 -1
View File
@@ -73,7 +73,7 @@
# START ios/ section.
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -8598,6 +8598,7 @@ static_library("browser_generated_files"
@@ -8600,6 +8600,7 @@ static_library("browser_generated_files"
"//chrome/browser/v8_compile_hints/proto",
"//chrome/browser/web_applications/mojom:mojom_web_apps_enum",
"//chrome/common/request_header_integrity:buildflags",
@@ -1,6 +1,6 @@
--- a/chrome/common/chrome_features.cc
+++ b/chrome/common/chrome_features.cc
@@ -1198,7 +1198,7 @@ BASE_FEATURE(kHttpsFirstBalancedMode, ba
@@ -1207,7 +1207,7 @@ BASE_FEATURE(kHttpsFirstBalancedMode, ba
// Automatically enables HTTPS-First Mode in a balanced configuration when
// possible.
BASE_FEATURE(kHttpsFirstBalancedModeAutoEnable,
@@ -96,7 +96,7 @@
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -8266,6 +8266,8 @@ static_library("browser") {
@@ -8268,6 +8268,8 @@ static_library("browser") {
deps += [
"//components/spellcheck/browser",
"//components/spellcheck/common",
@@ -0,0 +1,56 @@
--- a/third_party/search_engines_data/resources/definitions/prepopulated_engines.json
+++ b/third_party/search_engines_data/resources/definitions/prepopulated_engines.json
@@ -52,7 +52,7 @@
"bing": {
"name": "Microsoft Bing",
"keyword": "bing.com",
- "favicon_url": "https://www.bing.com/sa/simg/bing_p_rr_teal_min.ico",
+ "favicon_url": "",
"base_builtin_resource_id": "SEARCH_ENGINE_BING",
"logo_url": "https://cdn.sapphire.microsoftapp.net/icons/bing_144.png",
"search_url": "https://www.bing.com/search?q={searchTerms}",
@@ -120,7 +120,7 @@
"duckduckgo": {
"name": "DuckDuckGo",
"keyword": "duckduckgo.com",
- "favicon_url": "https://duckduckgo.com/favicon.ico",
+ "favicon_url": "",
"base_builtin_resource_id": "SEARCH_ENGINE_DUCKDUCKGO",
"logo_url": "https://staticcdn.duckduckgo.com/android/DuckDuckGoLogo.png",
"search_url": "https://duckduckgo.com/?q={searchTerms}",
@@ -139,7 +139,7 @@
"ecosia": {
"name": "Ecosia",
"keyword": "ecosia.org",
- "favicon_url": "https://cdn.ecosia.org/assets/images/ico/favicon.ico",
+ "favicon_url": "",
"base_builtin_resource_id": "SEARCH_ENGINE_ECOSIA",
"logo_url": "https://cdn.ecosia.org/static/icons/japan-choice-screen-logo.png",
"search_url": "https://www.ecosia.org/search?q={searchTerms}",
@@ -173,7 +173,7 @@
"break_stuff_google": {
"name": "Google",
"keyword": "google.com",
- "favicon_url": "https://www.google.com/images/branding/product/ico/googleg_alldp.ico",
+ "favicon_url": "",
"base_builtin_resource_id": "SEARCH_ENGINE_GOOGLE",
"search_url": "https://www.google.com/search?q={searchTerms}",
"suggest_url": "https://www.google.com/complete/search?client=chrome&q={searchTerms}",
@@ -197,7 +197,7 @@
"search_url": "https://kagi.com/search?q={searchTerms}",
"suggest_url": "https://kagisuggest.com/api/autosuggest?q={searchTerms}",
"new_tab_url": "https://kagi.com/",
- "favicon_url": "https://kagi.com/favicon.ico",
+ "favicon_url": "",
"base_builtin_resource_id": "SEARCH_ENGINE_KAGI",
"type": "SEARCH_ENGINE_KAGI",
"id": 115
@@ -339,7 +339,7 @@
"qwant": {
"name": "Qwant",
"keyword": "qwant.com",
- "favicon_url": "https://www.qwant.com/favicon.ico",
+ "favicon_url": "",
"base_builtin_resource_id": "SEARCH_ENGINE_QWANT",
"search_url": "https://www.qwant.com/?q={searchTerms}",
"suggest_url": "https://api.qwant.com/api/suggest/?q={searchTerms}",
@@ -0,0 +1,13 @@
--- a/chrome/browser/ui/omnibox/omnibox_view.cc
+++ b/chrome/browser/ui/omnibox/omnibox_view.cc
@@ -135,10 +135,6 @@ ui::ImageModel OmniboxView::GetIcon(int
return ui::ImageModel::FromImage(icon);
}
}
- favicon = turl ? controller()->client()->GetFaviconForKeywordSearchProvider(
- turl, std::move(on_icon_fetched))
- : controller()->client()->GetFaviconForDefaultSearchProvider(
- std::move(on_icon_fetched));
} else if (match.type != AutocompleteMatchType::HISTORY_CLUSTER) {
// The starter pack suggestions are a unique case. These suggestions
@@ -1,6 +1,6 @@
--- /dev/null
+++ b/components/helium_services/extension_ids.h
@@ -0,0 +1,18 @@
@@ -0,0 +1,22 @@
+// 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.
@@ -16,6 +16,10 @@
+inline constexpr char kUBlockOriginComponentId[] =
+ "blockjmkbacgjkknlgpkjjiijinjdanf";
+
+inline constexpr char kUblockOriginComponentIdHashed[] =
+ // SHA1(kUBlockOriginComponentId)
+ "70C2895ED505C532A80761F0928B821B103D0786";
+
+} // namespace helium
+
+#endif /* COMPONENTS_HELIUM_SERVICES_EXTENSION_IDS_H_ */
@@ -1,129 +0,0 @@
--- a/chrome/browser/extensions/chrome_extension_registrar_delegate.cc
+++ b/chrome/browser/extensions/chrome_extension_registrar_delegate.cc
@@ -12,6 +12,7 @@
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "base/notimplemented.h"
+#include "base/task/thread_pool.h"
#include "chrome/browser/extensions/component_loader.h"
#include "chrome/browser/extensions/corrupted_extension_reinstaller.h"
#include "chrome/browser/extensions/data_deleter.h"
@@ -30,6 +31,9 @@
#include "chrome/browser/ui/webui/favicon_source.h"
#include "chrome/common/webui_url_constants.h"
#include "components/favicon_base/favicon_url_parser.h"
+#include "components/helium_services/extension_ids.h"
+#include "components/value_store/value_store.h"
+#include "extensions/browser/api/storage/storage_frontend.h"
#include "extensions/browser/delayed_install_manager.h"
#include "extensions/browser/disable_reason.h"
#include "extensions/browser/extension_file_task_runner.h"
@@ -254,7 +258,85 @@ void ChromeExtensionRegistrarDelegate::P
}
}
- DataDeleter::StartDeleting(profile_, extension.get(), subtask_done_callback);
+ ChromeExtensionRegistrarDelegate::MaybeMigrateUBlockPrefs(
+ extension, base::BindOnce([](Profile* profile,
+ scoped_refptr<const Extension> extension,
+ base::OnceClosure cb) {
+ content::GetUIThreadTaskRunner({})->PostTask(FROM_HERE,
+ base::BindOnce(&DataDeleter::StartDeleting,
+ profile, base::RetainedRef(extension),
+ std::move(cb)));
+ }, profile_, extension, std::move(subtask_done_callback)));
+}
+
+void ChromeExtensionRegistrarDelegate::MaybeMigrateUBlockPrefs(
+ scoped_refptr<const Extension> extension,
+ base::OnceClosure callback) {
+ StorageFrontend* frontend = StorageFrontend::Get(profile_);
+ scoped_refptr<const Extension> component = registry_->GetExtensionById(
+ helium::kUBlockOriginComponentId, ExtensionRegistry::EVERYTHING);
+
+ if (!frontend || extension->id() != helium::kUBlockOriginWebstoreId || !component) {
+ if (!component) {
+ LOG(ERROR) << "component-based ublock is missing, skipping migration";
+ }
+ std::move(callback).Run();
+ return;
+ }
+
+ std::array namespaces = { settings_namespace::LOCAL,
+ settings_namespace::SYNC };
+ base::RepeatingClosure barrier_cb =
+ base::BarrierClosure(namespaces.size(), std::move(callback));
+
+ for (settings_namespace::Namespace ns : namespaces) {
+ ValueStoreCache* store_cache = frontend->GetValueStoreCache(ns);
+ if (!store_cache) {
+ continue;
+ }
+
+ GetExtensionFileTaskRunner()->PostTask(FROM_HERE,
+ base::BindOnce(
+ &ValueStoreCache::RunWithValueStoreForExtension,
+ base::Unretained(store_cache),
+ base::BindOnce([] (base::WeakPtr<ChromeExtensionRegistrarDelegate> weak_ptr,
+ scoped_refptr<const Extension> component,
+ ValueStoreCache* store_cache,
+ base::RepeatingClosure cb,
+ value_store::ValueStore* old) {
+ store_cache->RunWithValueStoreForExtension(
+ base::BindOnce(
+ &ChromeExtensionRegistrarDelegate::HandleUblockPrefsMigration,
+ weak_ptr, old).Then(std::move(cb)), component);
+ }, weak_factory_.GetWeakPtr(), component, store_cache, barrier_cb),
+ extension));
+ }
+}
+
+void ChromeExtensionRegistrarDelegate::HandleUblockPrefsMigration(
+ value_store::ValueStore* old_, value_store::ValueStore* new_) {
+ if (!old_ || !new_) {
+ LOG(ERROR) << "missing old/new";
+ return;
+ }
+
+ auto oldValues = old_->Get();
+ if (!oldValues.status().ok()) {
+ LOG(ERROR) << "failed getting webstore uBlock prefs";
+ return;
+ }
+
+ auto getKeysResult = new_->GetKeys();
+ CHECK(getKeysResult.status().ok());
+
+ auto existingKeys = getKeysResult.PassSettings();
+ for (const auto [ key, value ] : oldValues.PassSettings()) {
+ if (existingKeys.Find(key)) {
+ continue;
+ }
+
+ new_->Set(value_store::ValueStore::DEFAULTS, key, value);
+ }
}
void ChromeExtensionRegistrarDelegate::DoLoadExtensionForReload(
--- a/chrome/browser/extensions/chrome_extension_registrar_delegate.h
+++ b/chrome/browser/extensions/chrome_extension_registrar_delegate.h
@@ -7,6 +7,7 @@
#include "base/memory/raw_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "components/value_store/value_store.h"
#include "extensions/browser/extension_registrar.h"
#include "extensions/buildflags/buildflags.h"
@@ -51,6 +52,11 @@ class ChromeExtensionRegistrarDelegate :
void PreUninstallExtension(scoped_refptr<const Extension> extension) override;
void PostUninstallExtension(scoped_refptr<const Extension> extension,
base::OnceClosure done_callback) override;
+ void MaybeMigrateUBlockPrefs(scoped_refptr<const Extension> extension,
+ base::OnceClosure callback);
+ void HandleUblockPrefsMigration(value_store::ValueStore* old_,
+ value_store::ValueStore* new_);
+
void LoadExtensionForReload(const ExtensionId& extension_id,
const base::FilePath& path) override;
void LoadExtensionForReloadWithQuietFailure(
@@ -8,13 +8,17 @@
namespace extensions {
struct InstallWarning;
@@ -104,6 +105,10 @@ class Manifest final {
@@ -104,6 +105,14 @@ class Manifest final {
location == mojom::ManifestLocation::kExternalComponent;
}
+ static inline bool IsUBlockComponent(std::string_view extension_id) {
+ return extension_id == helium::kUBlockOriginComponentId;
+ }
+
+ static inline bool IsUblockComponentHashed(const HashedExtensionId& id) {
+ return id.value() == helium::kUblockOriginComponentIdHashed;
+ }
+
static inline bool IsValidLocation(mojom::ManifestLocation location) {
return location > mojom::ManifestLocation::kInvalidLocation &&
@@ -223,3 +227,13 @@
if (!entry.is_string()) {
NOTREACHED();
}
--- a/extensions/common/features/simple_feature.cc
+++ b/extensions/common/features/simple_feature.cc
@@ -698,6 +698,7 @@ Feature::Availability SimpleFeature::Get
// Component extensions can access any feature.
// NOTE: Deliberately does not match EXTERNAL_COMPONENT.
if (component_extensions_auto_granted_ &&
+ !Manifest::IsUblockComponentHashed(hashed_id) &&
location == ManifestLocation::kComponent)
return CreateAvailability(AvailabilityResult::kIsAvailable);
+134 -25
View File
@@ -150,30 +150,25 @@
// Add Files app JS modules resources.
--- a/third_party/ublock/manifest.json
+++ b/third_party/ublock/manifest.json
@@ -115,5 +115,5 @@
@@ -114,5 +114,6 @@
"version": "1.69.0",
"web_accessible_resources": [
"/web_accessible_resources/*"
],
- "update_url": "https://raw.githubusercontent.com/imputnet/ublock-origin-crx/refs/heads/main/update.xml"
-}
\ No newline at end of file
- ]
+ ],
+ "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyqQYDhKkM6NlQjOgb11DpHQHsqvK4IMPDIDhvmR47JDGOrf/UyI6+wmx9MfMuqzUBFigip+57UUr+mWoWtI4eNga1zKb8wEphTDmm0Oo0NHInSlN5t8FmUEPjJ0WVf+CiwA3ucf32OAe+1akOLtMAgHqe4jax7k/b69miKDz3gvi7lEPmP+H4XDoQ3dOSgEHyjyP4Nf7QgPPrvK2zkB+8q17T0w2bTApETDDkr45K563pxBqb7i9JmYPP+sXQEB8qDevA5BlPAYBAINFZPOO+SOPpMUguOSA/eb1mjNcfLMGwJs1Zn5ejxqT3RgceqjrN86AgpQvCVeqFtcal/LZFwIDAQAB"
+}
}
--- a/third_party/ublock/assets/assets.json
+++ b/third_party/ublock/assets/assets.json
@@ -3,10 +3,9 @@
@@ -3,7 +3,6 @@
"content": "internal",
"updateAfter": 13,
"contentURL": [
- "https://raw.githubusercontent.com/gorhill/uBlock/master/assets/assets.json",
- "https://raw.githubusercontent.com/imputnet/uBlock/refs/heads/main/assets/assets.json",
"assets/assets.json"
],
- "cdnURLs": [
+ "^cdnURLs": [
"https://ublockorigin.github.io/uAssetsCDN/ublock/assets.json",
"https://ublockorigin.pages.dev/ublock/assets.json",
"https://cdn.jsdelivr.net/gh/gorhill/uBlock@master/assets/assets.json",
@@ -17,7 +16,6 @@
]
},
@@ -11,7 +10,6 @@
"content": "internal",
"updateAfter": 19,
"contentURL": [
@@ -181,7 +176,7 @@
"assets/thirdparties/publicsuffix.org/list/effective_tld_names.dat"
]
},
@@ -25,10 +23,9 @@
@@ -19,10 +17,9 @@
"content": "internal",
"updateAfter": 29,
"contentURL": [
@@ -193,7 +188,23 @@
"https://ublockorigin.github.io/uAssetsCDN/filters/badlists.txt",
"https://ublockorigin.pages.dev/filters/badlists.txt",
"https://cdn.jsdelivr.net/gh/uBlockOrigin/uAssetsCDN@main/filters/badlists.txt",
@@ -42,17 +39,16 @@
@@ -36,7 +33,6 @@
"title": "Helium filters – Annoyances",
"tags": "annoyances",
"contentURL": [
- "https://raw.githubusercontent.com/imputnet/helium-services/main/filters/helium-annoyances.txt",
"assets/helium/annoyances.txt"
]
},
@@ -46,7 +42,6 @@
"parent": "Helium filters",
"title": "Helium filters – Unbreak",
"contentURL": [
- "https://raw.githubusercontent.com/imputnet/helium-services/main/filters/helium-unbreak.txt",
"assets/helium/unbreak.txt"
]
},
@@ -57,17 +52,16 @@
"title": "uBlock filters – Ads",
"tags": "ads",
"contentURL": [
@@ -213,7 +224,7 @@
"https://ublockorigin.github.io/uAssetsCDN/filters/",
"https://ublockorigin.pages.dev/filters/"
],
@@ -65,17 +61,16 @@
@@ -80,17 +74,16 @@
"title": "uBlock filters – Badware risks",
"tags": "malware security",
"contentURL": [
@@ -233,7 +244,7 @@
"https://ublockorigin.github.io/uAssetsCDN/filters/",
"https://ublockorigin.pages.dev/filters/"
],
@@ -89,17 +84,16 @@
@@ -104,17 +97,16 @@
"title": "uBlock filters – Privacy",
"tags": "privacy",
"contentURL": [
@@ -253,7 +264,7 @@
"https://ublockorigin.github.io/uAssetsCDN/filters/",
"https://ublockorigin.pages.dev/filters/"
],
@@ -111,17 +105,16 @@
@@ -126,17 +118,16 @@
"parent": "uBlock filters",
"title": "uBlock filters – Unbreak",
"contentURL": [
@@ -273,7 +284,7 @@
"https://ublockorigin.github.io/uAssetsCDN/filters/",
"https://ublockorigin.pages.dev/filters/"
],
@@ -133,17 +126,16 @@
@@ -148,17 +139,16 @@
"parent": "uBlock filters",
"title": "uBlock filters – Quick fixes",
"contentURL": [
@@ -293,7 +304,16 @@
"https://ublockorigin.github.io/uAssetsCDN/filters/",
"https://ublockorigin.pages.dev/filters/"
],
@@ -193,15 +185,14 @@
@@ -187,7 +177,7 @@
"group": "ads",
"title": "AdGuard – Ads",
"tags": "ads",
- "contentURL": "https://filters.adtidy.org/extension/ublock/filters/2_without_easylist.txt",
+ "contentURL": [],
"supportURL": "https://github.com/AdguardTeam/AdguardFilters#adguard-filters"
},
"adguard-mobile": {
@@ -207,15 +197,14 @@
"tags": "ads",
"preferred": true,
"contentURL": [
@@ -311,7 +331,18 @@
"https://ublockorigin.github.io/uAssetsCDN/filters/",
"https://ublockorigin.pages.dev/filters/"
],
@@ -238,15 +229,14 @@
@@ -226,8 +215,8 @@
"group": "privacy",
"title": "AdGuard/uBO – URL Tracking Protection",
"tags": "privacy",
- "contentURL": "https://ublockorigin.github.io/uAssets/filters/privacy-removeparam.txt",
- "cdnURLs": [
+ "contentURL": [],
+ "^cdnURLs": [
"https://ublockorigin.github.io/uAssetsCDN/filters/privacy-removeparam.txt",
"https://ublockorigin.pages.dev/filters/privacy-removeparam.txt",
"https://cdn.jsdelivr.net/gh/uBlockOrigin/uAssetsCDN@main/filters/privacy-removeparam.txt",
@@ -257,15 +246,14 @@
"tags": "privacy",
"preferred": true,
"contentURL": [
@@ -329,7 +360,7 @@
"https://ublockorigin.github.io/uAssetsCDN/filters/",
"https://ublockorigin.pages.dev/filters/"
],
@@ -257,10 +247,9 @@
@@ -276,10 +264,9 @@
"group": "malware",
"title": "Online Malicious URL Blocklist",
"contentURL": [
@@ -341,7 +372,85 @@
"https://curbengh.github.io/malware-filter/urlhaus-filter-ag-online.txt",
"https://malware-filter.gitlab.io/urlhaus-filter/urlhaus-filter-ag-online.txt",
"https://malware-filter.pages.dev/urlhaus-filter-ag-online.txt"
@@ -540,7 +529,6 @@
@@ -306,7 +293,7 @@
"parent": "AdGuard/uBO – Cookie Notices",
"title": "AdGuard – Cookie Notices",
"tags": "annoyances cookies",
- "contentURL": "https://filters.adtidy.org/extension/ublock/filters/18.txt",
+ "contentURL": [],
"supportURL": "https://github.com/AdguardTeam/AdguardFilters#adguard-filters"
},
"ublock-cookies-adguard": {
@@ -334,11 +321,8 @@
"title": "EasyList – Cookie Notices",
"tags": "annoyances cookies",
"preferred": true,
- "contentURL": [
- "https://ublockorigin.github.io/uAssets/thirdparties/easylist-cookies.txt",
- "https://secure.fanboy.co.nz/fanboy-cookiemonster_ubo.txt"
- ],
- "cdnURLs": [
+ "contentURL": [],
+ "^cdnURLs": [
"https://ublockorigin.github.io/uAssetsCDN/thirdparties/easylist-cookies.txt",
"https://ublockorigin.pages.dev/thirdparties/easylist-cookies.txt",
"https://cdn.jsdelivr.net/gh/uBlockOrigin/uAssetsCDN@main/thirdparties/easylist-cookies.txt",
@@ -355,8 +339,8 @@
"title": "uBlock filters – Cookie Notices",
"tags": "annoyances cookies",
"preferred": true,
- "contentURL": "https://ublockorigin.github.io/uAssets/filters/annoyances-cookies.txt",
- "cdnURLs": [
+ "contentURL": [],
+ "^cdnURLs": [
"https://ublockorigin.github.io/uAssetsCDN/filters/annoyances-cookies.txt",
"https://ublockorigin.pages.dev/filters/annoyances-cookies.txt",
"https://cdn.jsdelivr.net/gh/uBlockOrigin/uAssetsCDN@main/filters/annoyances-cookies.txt",
@@ -505,10 +489,8 @@
"title": "EasyList – Newsletter Notices",
"tags": "annoyances",
"preferred": true,
- "contentURL": [
- "https://ublockorigin.github.io/uAssets/thirdparties/easylist-newsletters.txt"
- ],
- "cdnURLs": [
+ "contentURL": [],
+ "^cdnURLs": [
"https://ublockorigin.github.io/uAssetsCDN/thirdparties/easylist-newsletters.txt",
"https://ublockorigin.pages.dev/thirdparties/easylist-newsletters.txt",
"https://cdn.jsdelivr.net/gh/uBlockOrigin/uAssetsCDN@main/thirdparties/easylist-newsletters.txt",
@@ -523,10 +505,8 @@
"title": "EasyList – Notifications",
"tags": "annoyances",
"preferred": true,
- "contentURL": [
- "https://ublockorigin.github.io/uAssets/thirdparties/easylist-notifications.txt"
- ],
- "cdnURLs": [
+ "contentURL": [],
+ "^cdnURLs": [
"https://ublockorigin.github.io/uAssetsCDN/thirdparties/easylist-notifications.txt",
"https://ublockorigin.pages.dev/thirdparties/easylist-notifications.txt",
"https://cdn.jsdelivr.net/gh/uBlockOrigin/uAssetsCDN@main/thirdparties/easylist-notifications.txt",
@@ -539,14 +519,14 @@
"group": "annoyances",
"title": "uBlock filters – Annoyances",
"tags": "annoyances",
- "contentURL": "https://ublockorigin.github.io/uAssets/filters/annoyances.txt",
- "cdnURLs": [
+ "contentURL": [],
+ "^cdnURLs": [
"https://ublockorigin.github.io/uAssetsCDN/filters/annoyances.min.txt",
"https://ublockorigin.pages.dev/filters/annoyances.min.txt",
"https://cdn.jsdelivr.net/gh/uBlockOrigin/uAssetsCDN@main/filters/annoyances.min.txt",
"https://cdn.statically.io/gh/uBlockOrigin/uAssetsCDN/main/filters/annoyances.min.txt"
],
- "patchURLs": [
+ "^patchURLs": [
"https://ublockorigin.github.io/uAssetsCDN/filters/",
"https://ublockorigin.pages.dev/filters/"
],
@@ -570,7 +550,6 @@
"tags": "ads privacy security",
"preferred": true,
"contentURL": [
@@ -0,0 +1,183 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -2389,6 +2389,9 @@
<message name="IDS_SETTINGS_SEARCH_ENGINES_ADD_SITE_SEARCH" desc="Title for a dialog that allows adding a new site search engine.">
Add site search
</message>
+ <message name="IDS_SETTINGS_SEARCH_ENGINES_ADD_SEARCH_ENGINE" desc="Title for a dialog that allows adding a new search engine.">
+ Add search engine
+ </message>
<message name="IDS_SETTINGS_SEARCH_ENGINES_EDIT_SEARCH_ENGINE" desc="Title for a dialog that allows editing an existing search engine.">
Edit search engine
</message>
--- a/components/components_strings.grd
+++ b/components/components_strings.grd
@@ -391,6 +391,9 @@
<message name="IDS_ADD" desc="Used for Add on buttons">
Add
</message>
+ <message name="IDS_ADD_AS_DEFAULT" desc="Used on a button to add information and then set it as default.">
+ Add as default
+ </message>
<message name="IDS_MOVE" desc="Used for Move on buttons" formatter_data="android_java">
Move
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -172,6 +172,7 @@ namespace {
void AddCommonStrings(content::WebUIDataSource* html_source, Profile* profile) {
static constexpr webui::LocalizedString kLocalizedStrings[] = {
{"add", IDS_ADD},
+ {"addAsDefault", IDS_ADD_AS_DEFAULT},
{"advancedPageTitle", IDS_SETTINGS_ADVANCED},
{"back", IDS_ACCNAME_BACK},
{"basicPageTitle", IDS_SETTINGS_BASIC},
@@ -2747,6 +2748,8 @@ void AddSearchEnginesStrings(content::We
IDS_SETTINGS_SEARCH_ENGINES_PAGE_EXPLANATION},
{"searchEnginesAddSiteSearch",
IDS_SETTINGS_SEARCH_ENGINES_ADD_SITE_SEARCH},
+ {"searchEnginesAddSearchEngine",
+ IDS_SETTINGS_SEARCH_ENGINES_ADD_SEARCH_ENGINE},
{"searchEnginesEditSearchEngine",
IDS_SETTINGS_SEARCH_ENGINES_EDIT_SEARCH_ENGINE},
{"searchEnginesViewSearchEngine",
--- a/chrome/browser/resources/settings/search_page/search_engine_edit_dialog.ts
+++ b/chrome/browser/resources/settings/search_page/search_engine_edit_dialog.ts
@@ -21,7 +21,7 @@ import {loadTimeData} from '../i18n_setu
import {getTemplate} from './search_engine_edit_dialog.html.js';
import type {SearchEngine, SearchEnginesBrowserProxy, SearchEnginesInfo} from './search_engines_browser_proxy.js';
-import {SearchEnginesBrowserProxyImpl} from './search_engines_browser_proxy.js';
+import {ChoiceMadeLocation, SearchEnginesBrowserProxyImpl} from './search_engines_browser_proxy.js';
/**
* The |modelIndex| to use when a new search engine is added. Must match
@@ -62,6 +62,7 @@ export class SettingsSearchEngineEditDia
* should be added.
*/
model: Object,
+ isNewPrimary: Boolean,
searchEngine_: String,
keyword_: String,
@@ -79,6 +80,7 @@ export class SettingsSearchEngineEditDia
}
declare model: SearchEngine|null;
+ declare isNewPrimary: boolean;
declare private searchEngine_: string;
declare private keyword_: string;
declare private queryUrl_: string;
@@ -116,8 +118,10 @@ export class SettingsSearchEngineEditDia
this.queryUrl_ = this.model.url;
this.suggestionsUrl_ = this.model.suggestionsUrl;
} else {
- this.dialogTitle_ = loadTimeData.getString('searchEnginesAddSiteSearch');
- this.actionButtonText_ = loadTimeData.getString('add');
+ this.dialogTitle_ = loadTimeData.getString(
+ this.isNewPrimary ? 'searchEnginesAddSearchEngine' : 'searchEnginesAddSiteSearch');
+ this.actionButtonText_ = loadTimeData.getString(
+ this.isNewPrimary ? 'addAsDefault' : 'add');
this.readonly_ = false;
this.showPolicySubtitle_ = false;
}
@@ -167,7 +171,28 @@ export class SettingsSearchEngineEditDia
this.browserProxy_.searchEngineEditCompleted(
this.searchEngine_, this.keyword_, this.queryUrl_,
this.suggestionsUrl_);
- this.$.dialog.close();
+ const done = () => this.$.dialog.close();
+ if (!this.isNewPrimary) {
+ return done();
+ }
+
+ this.browserProxy_.getSearchEnginesList()
+ .then(engines => {
+ const engine = engines.actives.find(
+ e => e.keyword === this.keyword_
+ );
+
+ if (!engine) {
+ return;
+ }
+
+ this.browserProxy_.setDefaultSearchEngine(
+ engine.modelIndex,
+ ChoiceMadeLocation.SEARCH_ENGINE_SETTINGS,
+ null
+ );
+ })
+ .finally(done);
}
private validateElement_(inputElement: CrInputElement) {
--- a/chrome/browser/resources/settings/search_page/search_engines_page.html
+++ b/chrome/browser/resources/settings/search_page/search_engines_page.html
@@ -47,6 +47,11 @@
$i18n{searchEnginesSearchEnginesExplanation}
</div>
</div>
+ <cr-button class="secondary-button header-aligned-button"
+ aria-label="$i18n{searchEnginesAddButtonAriaLabel}"
+ on-click="onAddPrimarySearchEngineClick_" id="addPrimarySearchEngine">
+ $i18n{add}
+ </cr-button>
</div>
<settings-search-engines-list hidden="[[!matchingDefaultEngines_.length]]"
engines="[[matchingDefaultEngines_]]" show-shortcut>
@@ -59,6 +64,7 @@
<template is="dom-if" if="[[showEditDialog_]]" restamp>
<settings-search-engine-edit-dialog model="[[dialogModel_]]"
+ is-new-primary="[[isNewPrimary_]]"
on-close="onCloseEditDialog_">
</settings-search-engine-edit-dialog>
</template>
--- a/chrome/browser/resources/settings/search_page/search_engines_page.ts
+++ b/chrome/browser/resources/settings/search_page/search_engines_page.ts
@@ -135,6 +135,11 @@ export class SettingsSearchEnginesPageEl
value: null,
},
+ isNewPrimary_: {
+ type: Boolean,
+ value: false,
+ },
+
showEditDialog_: {
type: Boolean,
value: false,
@@ -167,6 +172,7 @@ export class SettingsSearchEnginesPageEl
declare private omniboxExtensionListBlurred_: boolean;
declare private dialogModel_: SearchEngine|null;
declare private dialogAnchorElement_: HTMLElement|null;
+ declare private isNewPrimary_: boolean;
declare private showEditDialog_: boolean;
declare private showDeleteConfirmationDialog_: boolean;
private browserProxy_: SearchEnginesBrowserProxy =
@@ -190,9 +196,11 @@ export class SettingsSearchEnginesPageEl
}
private openEditDialog_(
- searchEngine: SearchEngine|null, anchorElement: HTMLElement) {
+ searchEngine: SearchEngine|null,
+ anchorElement: HTMLElement, primary = false) {
this.dialogModel_ = searchEngine;
this.dialogAnchorElement_ = anchorElement;
+ this.isNewPrimary_ = primary;
this.showEditDialog_ = true;
}
@@ -256,6 +264,12 @@ export class SettingsSearchEnginesPageEl
this.extensions = searchEnginesInfo.extensions;
}
+ private onAddPrimarySearchEngineClick_(e: Event) {
+ e.preventDefault();
+ this.openEditDialog_(
+ null, this.shadowRoot!.querySelector('#addPrimarySearchEngine')!, true);
+ }
+
private onAddSearchEngineClick_(e: Event) {
e.preventDefault();
this.openEditDialog_(
+1 -1
View File
@@ -58,7 +58,7 @@
#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"
@@ -1919,7 +1920,21 @@ void AutocompleteController::UpdateKeywo
@@ -1920,7 +1921,21 @@ void AutocompleteController::UpdateKeywo
// - For contextual search matches, the description indicates the
// alternative UX because they're opened in the side panel.
i->description = template_url->AdjustedShortNameForLocaleDirection();
+5 -3
View File
@@ -10,7 +10,7 @@
padding-top: var(--ntp-one-google-bar-height);
--- a/chrome/browser/resources/new_tab_page/app.html
+++ b/chrome/browser/resources/new_tab_page/app.html
@@ -1,113 +1,4 @@
@@ -1,115 +1,4 @@
-<!-- #html_wrapper_imports_start
-import {nothing} from '//resources/lit/v3_0/lit.rollup.js';
-#html_wrapper_imports_end -->
@@ -79,6 +79,7 @@
- <cr-composebox id="composebox"
- ?ntp-realbox-next-enabled="${this.ntpRealboxNextEnabled_}"
- ?searchbox-next-enabled="${this.ntpRealboxNextEnabled_}"
- ?disable-caret-color-animation="${true}"
- @composebox-initialized="${this.onComposeboxInitialized_}"
- @close-composebox="${this.closeComposebox_}"
- @composebox-input-focus-changed="${this.onInputFocusChanged_}"
@@ -91,6 +92,7 @@
- <cr-composebox id="composebox"
- ?ntp-realbox-next-enabled="${this.ntpRealboxNextEnabled_}"
- ?searchbox-next-enabled="${this.ntpRealboxNextEnabled_}"
- ?disable-caret-color-animation="${true}"
- @composebox-initialized="${this.onComposeboxInitialized_}"
- @close-composebox="${this.closeComposebox_}"
- @composebox-input-focus-changed="${this.onInputFocusChanged_}"
@@ -124,7 +126,7 @@
${this.lazyRender_ ? html`
${this.shortcutsEnabled_ ? html`
<cr-most-visited id="mostVisited" .theme="${this.theme_?.mostVisited || null}"
@@ -117,65 +8,7 @@ import {nothing} from '//resources/lit/v
@@ -119,65 +8,7 @@ import {nothing} from '//resources/lit/v
@most-visited-auto-removed="${this.showAutoRemovedToast_}">
</cr-most-visited>
` : ''}
@@ -190,7 +192,7 @@
<ntp-customize-buttons id="customizeButtons"
?modules-shown-to-user="${this.modulesShownToUser}"
?show-background-image="${this.showBackgroundImage_}"
@@ -197,23 +30,3 @@ import {nothing} from '//resources/lit/v
@@ -199,23 +30,3 @@ import {nothing} from '//resources/lit/v
` : ''}
<div id="contentBottomSpacer"></div>
</div>
@@ -120,40 +120,6 @@
UpdateTabSearchBubbleHost();
// TODO(pbos): Investigate whether the side panels should be creatable when
--- a/chrome/browser/ui/views/frame/layout/browser_view_layout_impl_old.cc
+++ b/chrome/browser/ui/views/frame/layout/browser_view_layout_impl_old.cc
@@ -396,6 +396,15 @@ void BrowserViewLayoutImplOld::LayoutVer
void BrowserViewLayoutImplOld::LayoutTabStripRegion(
gfx::Rect& available_bounds) {
TRACE_EVENT0("ui", "BrowserViewLayout::LayoutTabStripRegion");
+
+ // If the CAT feature is enabled and we're in a normal browser,
+ // skip laying out the tab strip region. It's laid out in the toolbar.
+ // The tab strip isn't drawn in other browser types, so the next
+ // if statement will hide it.
+ if (features::IsHeliumCatEnabled() && browser()->is_type_normal()) {
+ return;
+ }
+
if (!delegate().ShouldDrawTabStrip()) {
SetViewVisibility(views().tab_strip_region_view, false);
views().tab_strip_region_view->SetBounds(0, 0, 0, 0);
@@ -449,6 +458,15 @@ void BrowserViewLayoutImplOld::LayoutToo
toolbar_bounds.set_width(toolbar_bounds.width() -
kMinVerticalTabStripWidth);
views().toolbar->SetBoundsRect(toolbar_bounds);
+ } else if (features::IsHeliumCatEnabled() && delegate().ShouldDrawTabStrip()) {
+ // If CAT is enabled and the tab strip should be drawn, then we're most
+ // likely layered under window controls, so we accommodate space for
+ // them like a tab strip would.
+ gfx::Rect tab_strip_region_bounds(
+ delegate().GetBoundsForTabStripRegionInBrowserView());
+ int height = toolbar_visible ? views().toolbar->GetPreferredSize().height() : 0;
+ views().toolbar->SetBounds(tab_strip_region_bounds.x(), available_bounds.y(),
+ tab_strip_region_bounds.width(), height);
} else {
int height =
toolbar_visible ? views().toolbar->GetPreferredSize().height() : 0;
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
@@ -58,6 +58,7 @@
@@ -402,3 +368,26 @@
return elements;
}
--- a/chrome/browser/ui/views/frame/layout/browser_view_tabbed_layout_impl.cc
+++ b/chrome/browser/ui/views/frame/layout/browser_view_tabbed_layout_impl.cc
@@ -13,6 +13,7 @@
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"
#include "chrome/browser/ui/layout_constants.h"
+#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/ui/views/bookmarks/bookmark_bar_view.h"
#include "chrome/browser/ui/views/frame/immersive_mode_controller.h"
#include "chrome/browser/ui/views/frame/layout/browser_view_layout_delegate.h"
@@ -634,9 +635,11 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
if (IsParentedTo(views().toolbar, views().top_container)) {
gfx::Rect toolbar_bounds;
if (toolbar_visible) {
+ // Visually clamp two conflicting margins: window controls & toolbar
+ const int exclusion = features::IsHeliumCatEnabled() ? 10 : 0;
toolbar_bounds =
needs_exclusion
- ? GetBoundsWithExclusion(params, views().toolbar)
+ ? GetBoundsWithExclusion(params, views().toolbar, exclusion)
: gfx::Rect(params.visual_client_area.x(),
params.visual_client_area.y(),
params.visual_client_area.width(),
@@ -1,14 +1,3 @@
--- a/chrome/browser/ui/views/frame/layout/browser_view_layout_delegate_impl.cc
+++ b/chrome/browser/ui/views/frame/layout/browser_view_layout_delegate_impl.cc
@@ -236,7 +236,7 @@ BrowserViewLayoutDelegateImpl::GetBounds
layout.trailing_exclusion.vertical_padding);
bounds_f.set_height(
std::max(max_bound, static_cast<float>(tabstrip_minimum_size.height())));
- const int tab_margin = TabStyle::Get()->GetBottomCornerRadius();
+ const int tab_margin = TabStyle::Get()->GetBottomCornerRadius() / 2;
bounds_f.Inset(gfx::InsetsF::TLBR(
0.0f,
layout.leading_exclusion.content.width() +
--- a/components/remote_cocoa/app_shim/browser_native_widget_window_mac.mm
+++ b/components/remote_cocoa/app_shim/browser_native_widget_window_mac.mm
@@ -63,13 +63,10 @@ const double kThinControllerHeight = 0.5
@@ -40,17 +29,23 @@
// Don't mess with the window radius before macOS 26, as concentricity was not
--- a/chrome/browser/ui/views/frame/browser_frame_view_mac.mm
+++ b/chrome/browser/ui/views/frame/browser_frame_view_mac.mm
@@ -465,10 +465,10 @@ BrowserFrameViewMac::GetCaptionButtonBou
// not precise.
@@ -461,14 +461,13 @@ BrowserFrameViewMac::BoundsAndMargins
BrowserFrameViewMac::GetCaptionButtonBounds() const {
BoundsAndMargins result;
- // These are empirically determined; feel free to change them if they're
- // not precise.
+ // Bounds determined via manual measurements
if (@available(macOS 26, *)) {
result.bounds = gfx::RectF(12, 10, 62, 18);
- result.bounds = gfx::RectF(12, 10, 62, 18);
- result.margins = gfx::OutsetsF::VH(10, 12);
+ result.margins = gfx::OutsetsF::VH(0, 6);
+ result.bounds = gfx::RectF(10, 10, 60, 14);
+ result.margins = gfx::OutsetsF::VH(0, 14);
} else {
- result.bounds = gfx::RectF(20, 11, 54, 16);
- result.margins = gfx::OutsetsF::VH(11, 20);
+ result.bounds = gfx::RectF(20, 11, 40, 16);
+ result.margins = gfx::OutsetsF::VH(0, 14);
+ result.bounds = gfx::RectF(11, 11, 52, 12);
+ result.margins = gfx::OutsetsF::VH(0, 15);
}
// Mirror for when caption buttons are on the "wrong" side.
@@ -0,0 +1,21 @@
--- a/chrome/browser/ui/views/overlay/video_overlay_window_views.cc
+++ b/chrome/browser/ui/views/overlay/video_overlay_window_views.cc
@@ -1233,6 +1233,7 @@ void VideoOverlayWindowViews::SetUpViews
base::Unretained(this)));
live_caption_button->SetSize(kActionButtonSize);
live_caption_button->SetIsLiveCaptionDialogOpen(false);
+ live_caption_button->SetVisible(false);
auto live_caption_dialog = std::make_unique<OverlayWindowLiveCaptionDialog>(
Profile::FromBrowserContext(
@@ -2333,8 +2334,8 @@ void VideoOverlayWindowViews::OnLiveCapt
SetLiveCaptionDialogVisibility(!live_caption_dialog_->GetVisible());
}
-void VideoOverlayWindowViews::SetLiveCaptionDialogVisibility(
- bool wanted_visibility) {
+void VideoOverlayWindowViews::SetLiveCaptionDialogVisibility(bool) {
+ const bool wanted_visibility = false;
if (wanted_visibility == live_caption_dialog_->GetVisible()) {
return;
}
@@ -1,30 +0,0 @@
--- a/chrome/browser/ui/views/location_bar/intent_chip_button.cc
+++ b/chrome/browser/ui/views/location_bar/intent_chip_button.cc
@@ -87,14 +87,10 @@ bool IntentChipButton::GetShowChip() con
}
bool IntentChipButton::GetChipExpanded() const {
- auto* tab_helper = GetTabHelper();
- return tab_helper && tab_helper->ShouldShowExpandedChip();
+ return false;
}
ui::ImageModel IntentChipButton::GetAppIcon() const {
- if (auto* tab_helper = GetTabHelper()) {
- return tab_helper->app_icon();
- }
return ui::ImageModel();
}
--- a/chrome/browser/ui/views/location_bar/omnibox_chip_button.cc
+++ b/chrome/browser/ui/views/location_bar/omnibox_chip_button.cc
@@ -56,8 +56,7 @@ OmniboxChipButton::OmniboxChipButton(Pre
SetFocusBehavior(views::View::FocusBehavior::ALWAYS);
// Equalizing padding on the left, right and between icon and label.
SetImageLabelSpacing(kChipImagePadding);
- SetCustomPadding(
- gfx::Insets::VH(kChipVerticalPadding, kChipHorizontalPadding));
+ SetCustomPadding(GetLayoutInsets(LOCATION_BAR_PAGE_ACTION_ICON_PADDING));
label()->SetTextStyle(views::style::STYLE_BODY_4_EMPHASIS);
SetCornerRadius(GetLayoutConstant(LOCATION_BAR_CHILD_CORNER_RADIUS));
animation_ = std::make_unique<gfx::SlideAnimation>(this);
@@ -0,0 +1,58 @@
--- a/chrome/browser/ui/views/intent_picker/intent_picker_view_page_action_controller.cc
+++ b/chrome/browser/ui/views/intent_picker/intent_picker_view_page_action_controller.cc
@@ -35,23 +35,7 @@ void IntentPickerViewPageActionControlle
tab_interface_->GetTabFeatures()->page_action_controller();
CHECK(page_action_controller);
if (should_show_icon) {
- if (apps::features::ShouldShowLinkCapturingUX()) {
- // If link capturing is enabled, override the icon, text and tooltip
- // based upon the navigated website.
- page_action_controller->OverrideImage(kActionShowIntentPicker, app_icon);
- page_action_controller->OverrideText(
- kActionShowIntentPicker,
- l10n_util::GetStringUTF16(IDS_INTENT_CHIP_OPEN_IN_APP));
- page_action_controller->OverrideTooltip(
- kActionShowIntentPicker,
- l10n_util::GetStringUTF16(IDS_INTENT_CHIP_OPEN_IN_APP));
page_action_controller->Show(kActionShowIntentPicker);
- page_action_controller->ShowSuggestionChip(kActionShowIntentPicker, {
- .should_animate = false,
- });
- } else {
- page_action_controller->Show(kActionShowIntentPicker);
- }
} else {
HideIcon();
}
--- a/chrome/browser/ui/views/page_action/page_action_view.cc
+++ b/chrome/browser/ui/views/page_action/page_action_view.cc
@@ -51,7 +51,7 @@ PageActionView::PageActionView(actions::
SetVisible(false);
label()->SetVisible(false);
- SetUseTonalColorsWhenExpanded(true);
+ SetUseTonalColorsWhenExpanded(false);
SetBackgroundVisibility(BackgroundVisibility::kWithLabel);
UpdateBorder();
SetExpandedLabelAdditionalInsets(views::Inset1D(4, 8));
@@ -179,6 +179,10 @@ void PageActionView::UpdateBorder() {
SetBorder(views::CreateEmptyBorder(border_insets));
}
+bool PageActionView::ShouldShowLabel() const {
+ return false;
+}
+
bool PageActionView::ShouldShowSeparator() const {
return false;
}
--- a/chrome/browser/ui/views/page_action/page_action_view.h
+++ b/chrome/browser/ui/views/page_action/page_action_view.h
@@ -75,6 +75,7 @@ class PageActionView : public IconLabelB
void OnThemeChanged() override;
void OnTouchUiChanged() override;
void UpdateBorder() override;
+ bool ShouldShowLabel() const override;
bool ShouldShowLabelAfterAnimation() const override;
bool ShouldShowSeparator() const override;
bool ShouldUpdateInkDropOnClickCanceled() const override;
+12 -20
View File
@@ -148,7 +148,7 @@
if (!apps::features::ShouldShowLinkCapturingUX()) {
params.types_enabled.push_back(PageActionIconType::kIntentPicker);
}
@@ -503,64 +496,8 @@ void LocationBarView::Init() {
@@ -503,56 +496,8 @@ void LocationBarView::Init() {
params.types_enabled.push_back(PageActionIconType::kZoom);
params.types_enabled.push_back(PageActionIconType::kFileSystemAccess);
@@ -186,18 +186,10 @@
- PageActionIconType::kLensOverlayHomework);
- }
-
- // Because the AIM eligibility service might not be ready on startup,
- // the AI Mode page action type is always added. Unless the main AIM
- // omnibox entrypoint Feature is explicitly disabled, which can be used
- // as a kill switch in case of any unanticipated issues with this
- // approach.
- auto* feature_list = base::FeatureList::GetInstance();
- bool aim_omnibox_entrypoint_explicitly_disabled =
- feature_list &&
- feature_list->IsFeatureOverridden(
- omnibox::kAiModeOmniboxEntryPoint.name) &&
- !base::FeatureList::IsEnabled(omnibox::kAiModeOmniboxEntryPoint);
- if (!aim_omnibox_entrypoint_explicitly_disabled) {
- // Because AIM eligibility can change during the lifecycle of the
- // `LocationBarView`, the AI Mode page action is added regardless of
- // eligibility, but its visibility is toggled to match eligibility.
- if (base::FeatureList::IsEnabled(omnibox::kAiModeOmniboxEntryPoint)) {
- // Position in the leading position, like the entrypoint for
- // kLensOverlayHomework above. While both chips may be enabled, they will
- // not appear at the same time due to different focus behavior. The
@@ -213,12 +205,12 @@
if (browser_ && !is_popup_mode_) {
params.types_enabled.push_back(PageActionIconType::kBookmarkStar);
@@ -577,17 +514,6 @@ void LocationBarView::Init() {
@@ -569,17 +514,6 @@ void LocationBarView::Init() {
AddChildView(std::make_unique<PageActionIconContainerView>(params));
page_action_icon_controller_ = page_action_icon_container_->controller();
- if (!page_action_icon_container_->children().empty() &&
- !aim_omnibox_entrypoint_explicitly_disabled &&
- base::FeatureList::IsEnabled(omnibox::kAiModeOmniboxEntryPoint) &&
- !IsPageActionMigrated(PageActionIconType::kAiMode)) {
- auto* first_page_action_icon_view = static_cast<PageActionIconView*>(
- page_action_icon_container_->children().front());
@@ -231,7 +223,7 @@
auto clear_all_button = views::CreateVectorImageButton(base::BindRepeating(
static_cast<void (OmniboxView::*)(const std::u16string&)>(
&OmniboxView::SetUserText),
@@ -612,7 +538,7 @@ bool LocationBarView::IsInitialized() co
@@ -604,7 +538,7 @@ bool LocationBarView::IsInitialized() co
int LocationBarView::GetBorderRadius() const {
return ChromeLayoutProvider::Get()->GetCornerRadiusMetric(
@@ -240,7 +232,7 @@
}
std::unique_ptr<views::Background> LocationBarView::CreateRoundRectBackground(
@@ -820,9 +746,9 @@ void LocationBarView::Layout(PassKey) {
@@ -812,9 +746,9 @@ void LocationBarView::Layout(PassKey) {
// TODO(manukh): Move constants to layout_constants.cc.
// The padding between the left edges of the location bar and the LHS icon,
// e.g. the page info icon, the google G icon, the selected suggestion icon.
@@ -252,7 +244,7 @@
// Apply indentation to align the omnibox input icon and the text with those
// of the suggestions in the popup. However, there are two exceptions where
@@ -841,22 +767,22 @@ void LocationBarView::Layout(PassKey) {
@@ -833,22 +767,22 @@ void LocationBarView::Layout(PassKey) {
!location_icon_view_->ShouldShowLabel() &&
!ShouldShowKeywordBubble();
if (should_indent) {
@@ -279,7 +271,7 @@
}
LocationBarLayout leading_decorations(LocationBarLayout::Position::kLeftEdge,
@@ -1455,7 +1381,7 @@ int LocationBarView::GetMinimumTrailingW
@@ -1447,7 +1381,7 @@ int LocationBarView::GetMinimumTrailingW
}
gfx::Rect LocationBarView::GetLocalBoundsWithoutEndcaps() const {
@@ -288,7 +280,7 @@
gfx::Rect bounds_without_endcaps(GetLocalBounds());
bounds_without_endcaps.Inset(gfx::Insets::VH(0, border_radius));
return bounds_without_endcaps;
@@ -1471,9 +1397,9 @@ void LocationBarView::RefreshBackground(
@@ -1463,9 +1397,9 @@ void LocationBarView::RefreshBackground(
ui::NativeTheme::PreferredContrast::kMore;
const auto* const color_provider = GetColorProvider();
+35 -2
View File
@@ -83,15 +83,26 @@
#fit {
--- a/chrome/browser/resources/pdf/pdf_viewer.css
+++ b/chrome/browser/resources/pdf/pdf_viewer.css
@@ -13,7 +13,7 @@
@@ -13,7 +13,8 @@
* #css_wrapper_metadata_end */
:host {
- --viewer-pdf-sidenav-width: 300px;
+ --viewer-pdf-sidenav-width: 180px;
+ --viewer-pdf-sidenav-width: 350px;
+ --viewer-pdf-sidenav-min-width: 180px;
display: flex;
flex-direction: column;
height: 100%;
@@ -53,7 +54,8 @@ viewer-toolbar {
overflow: hidden;
transition: transform 250ms cubic-bezier(.6, 0, 0, 1), visibility 250ms;
visibility: visible;
- width: var(--viewer-pdf-sidenav-width);
+ max-width: var(--viewer-pdf-sidenav-width);
+ min-width: var(--viewer-pdf-sidenav-min-width);
}
#sidenav-container.floating {
--- a/chrome/browser/resources/pdf/elements/viewer_thumbnail_bar.css
+++ b/chrome/browser/resources/pdf/elements/viewer_thumbnail_bar.css
@@ -14,11 +14,11 @@
@@ -108,3 +119,25 @@
- padding-top: 24px;
+ padding-top: 18px;
}
--- a/chrome/browser/resources/pdf/elements/viewer_pdf_sidenav.css
+++ b/chrome/browser/resources/pdf/elements/viewer_pdf_sidenav.css
@@ -17,9 +17,9 @@
background-color: var(--viewer-side-background-color);
display: flex;
height: 100%;
- min-width: var(--viewer-pdf-sidenav-width);
overflow: hidden;
- width: var(--viewer-pdf-sidenav-width);
+ max-width: var(--viewer-pdf-sidenav-width);
+ min-width: var(--viewer-pdf-sidenav-min-width);
}
#icons {
@@ -33,6 +33,7 @@
color: white;
flex: 1;
overflow-x: hidden;
+ min-width: var(--viewer-pdf-sidenav-min-width);
}
#icons:not([hidden]) + #content {
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/browser_actions.cc
+++ b/chrome/browser/ui/browser_actions.cc
@@ -51,8 +51,6 @@
@@ -50,8 +50,6 @@
#include "chrome/browser/ui/qrcode_generator/qrcode_generator_bubble_controller.h"
#include "chrome/browser/ui/read_anything/read_anything_entry_point_controller.h"
#include "chrome/browser/ui/search/omnibox_utils.h"
@@ -9,7 +9,7 @@
#include "chrome/browser/ui/tabs/features.h"
#include "chrome/browser/ui/tabs/public/tab_features.h"
#include "chrome/browser/ui/tabs/saved_tab_groups/saved_tab_group_utils.h"
@@ -234,10 +232,6 @@ void BrowserActions::InitializeBrowserAc
@@ -233,10 +231,6 @@ void BrowserActions::InitializeBrowserAc
SidePanelEntryId::kBookmarks, IDS_BOOKMARK_MANAGER_TITLE,
IDS_BOOKMARK_MANAGER_TITLE, kBookmarksSidePanelRefreshIcon,
kActionSidePanelShowBookmarks, bwi, true),
@@ -20,7 +20,7 @@
SidePanelAction(SidePanelEntryId::kAboutThisSite,
IDS_PAGE_INFO_ABOUT_THIS_PAGE_TITLE,
IDS_PAGE_INFO_ABOUT_THIS_PAGE_TITLE,
@@ -247,17 +241,7 @@ void BrowserActions::InitializeBrowserAc
@@ -246,17 +240,7 @@ void BrowserActions::InitializeBrowserAc
IDS_SIDE_PANEL_CUSTOMIZE_CHROME_TITLE,
IDS_SIDE_PANEL_CUSTOMIZE_CHROME_TITLE,
vector_icons::kEditChromeRefreshIcon,
@@ -39,7 +39,7 @@
.Build());
if (side_panel::history_clusters::
@@ -314,40 +298,6 @@ void BrowserActions::InitializeBrowserAc
@@ -313,40 +297,6 @@ void BrowserActions::InitializeBrowserAc
.Build());
}
@@ -80,7 +80,7 @@
root_action_item_->AddChild(
actions::ActionItem::Builder(
base::BindRepeating(
@@ -739,44 +689,6 @@ void BrowserActions::InitializeBrowserAc
@@ -738,44 +688,6 @@ void BrowserActions::InitializeBrowserAc
kActionDevTools, IDS_DEV_TOOLS, IDS_DEV_TOOLS, kDeveloperToolsIcon)
.Build());
@@ -125,7 +125,7 @@
root_action_item_->AddChild(
actions::ActionItem::Builder(
base::BindRepeating(
@@ -830,76 +742,6 @@ void BrowserActions::InitializeBrowserAc
@@ -829,76 +741,6 @@ void BrowserActions::InitializeBrowserAc
.SetVisible(!sharing_hub::SharingIsDisabledByPolicy(profile))
.Build());
@@ -202,7 +202,7 @@
// TODO(crbug.com/435220196): Ideally this action would have
// ChromeLabsCoordinator passed in as a dependency directly.
if (IsChromeLabsEnabled() && !web_app::AppBrowserController::IsWebApp(bwi)) {
@@ -917,35 +759,6 @@ void BrowserActions::InitializeBrowserAc
@@ -916,35 +758,6 @@ void BrowserActions::InitializeBrowserAc
}
root_action_item_->AddChild(
@@ -18,3 +18,58 @@
types_enabled.push_back(PageActionIconType::kFileSystemAccess);
return types_enabled;
--- a/chrome/browser/ui/views/zoom/zoom_view_controller.cc
+++ b/chrome/browser/ui/views/zoom/zoom_view_controller.cc
@@ -52,42 +52,7 @@ void ZoomViewController::UpdatePageActio
}
void ZoomViewController::UpdatePageActionIcon(bool is_bubble_visible) {
- zoom::ZoomController* zoom_controller =
- zoom::ZoomController::FromWebContents(GetWebContents());
- CHECK(zoom_controller);
-
- // Update the tooltip with the current zoom percentage.
- page_action_controller_->OverrideTooltip(
- kActionZoomNormal,
- l10n_util::GetStringFUTF16(
- IDS_TOOLTIP_ZOOM,
- base::FormatPercent(zoom_controller->GetZoomPercent())));
-
- switch (zoom_controller->GetZoomRelativeToDefault()) {
- case ZoomController::ZOOM_BELOW_DEFAULT_ZOOM:
- page_action_controller_->OverrideImage(
- kActionZoomNormal,
- ui::ImageModel::FromVectorIcon(kZoomMinusChromeRefreshIcon));
- break;
- case ZoomController::ZOOM_AT_DEFAULT_ZOOM:
- // Default and above share the “zoom plus” icon for simplicity.
- case ZoomController::ZOOM_ABOVE_DEFAULT_ZOOM:
- page_action_controller_->OverrideImage(
- kActionZoomNormal,
- ui::ImageModel::FromVectorIcon(kZoomPlusChromeRefreshIcon));
- break;
- default:
- NOTREACHED();
- }
-
- // Show or hide the page action icon. Hide it if at default zoom and no
- // bubble.
- const bool is_at_default_zoom = zoom_controller->IsAtDefaultZoom();
- if (is_at_default_zoom && !is_bubble_visible) {
page_action_controller_->Hide(kActionZoomNormal);
- } else {
- page_action_controller_->Show(kActionZoomNormal);
- }
}
void ZoomViewController::UpdateBubbleVisibility(bool prefer_to_show_bubble,
@@ -131,8 +96,7 @@ bool ZoomViewController::CanBubbleBeVisi
// If neither of these is true, we only show the bubble if the zoom level
// is not at the default (`!is_zoom_at_default`), indicating that zoom is
// active.
- return (prefer_to_show_bubble || IsBubbleVisible()) ? true
- : !is_zoom_at_default;
+ return false;
}
content::WebContents* ZoomViewController::GetWebContents() const {
-30
View File
@@ -34,33 +34,3 @@
SetProperty(views::kMarginsKey,
gfx::Insets().set_left(resize_handle_left_margin));
} else {
--- a/chrome/browser/ui/views/frame/layout/browser_view_layout_impl_old.cc
+++ b/chrome/browser/ui/views/frame/layout/browser_view_layout_impl_old.cc
@@ -613,27 +613,6 @@ void BrowserViewLayoutImplOld::LayoutCon
!layout_result.side_panel_right_aligned);
views().left_aligned_side_panel_separator->SetBoundsRect(
layout_result.separator_bounds);
-
- SetViewVisibility(views().side_panel_rounded_corner,
- layout_result.side_panel_visible);
- if (layout_result.side_panel_visible) {
- // Adjust the rounded corner bounds based on the side panel bounds.
- const int corner_size =
- views().side_panel_rounded_corner->GetPreferredSize().width();
-
- const int top_separator_height = views::Separator::kThickness;
- if (layout_result.contents_container_after_side_panel) {
- views().side_panel_rounded_corner->SetBounds(
- layout_result.side_panel_bounds.right(),
- layout_result.side_panel_bounds.y() - top_separator_height,
- corner_size, corner_size);
- } else {
- views().side_panel_rounded_corner->SetBounds(
- layout_result.side_panel_bounds.x() - corner_size,
- layout_result.side_panel_bounds.y() - top_separator_height,
- corner_size, corner_size);
- }
- }
}
}
+95 -7
View File
@@ -80,15 +80,85 @@
float top_left_corner_radius = content_corner_radius;
float top_right_corner_radius = content_corner_radius;
float bottom_left_corner_radius = content_corner_radius;
@@ -849,6 +843,8 @@ float TabStyleViewsImpl::GetHoverOpacity
@@ -271,31 +265,6 @@ SkPath TabStyleViewsImpl::GetPath(TabSty
top_right_corner_radius = 0;
}
- // If the size of the space for the path is smaller than the size of a
- // favicon, if we are building a path for the hit test, or if we are
- // building a path for a split tab, expand to take the entire width of the
- // separator margins AND the separator.
- const bool limited_tab_space = (right - left) < (gfx::kFaviconSize * scale);
- const bool expand_into_previous_separator =
- limited_tab_space || path_type == TabStyle::PathType::kHitTest ||
- IsRightSplitTab(tab());
- const bool expand_into_next_separator =
- limited_tab_space || path_type == TabStyle::PathType::kHitTest ||
- IsLeftSplitTab(tab());
- if (expand_into_previous_separator || expand_into_next_separator) {
- // If there is a tab before this one, then expand into its overlap.
- const Tab* const previous_tab = GetLeftTab(tab());
- if (expand_into_previous_separator && previous_tab) {
- left -= separator_overlap / 2.0;
- }
-
- // If there is a tab after this one, then expand into its overlap.
- const Tab* const next_tab = GetRightTab(tab());
- if (expand_into_next_separator && next_tab) {
- right += separator_overlap / 2.0;
- }
- }
-
if (tab()->split().has_value()) {
if (IsLeftSplitTab(tab())) {
top_right_corner_radius = 0;
@@ -502,19 +471,6 @@ gfx::Insets TabStyleViewsImpl::GetConten
gfx::Insets base_style_insets = tab_style()->GetContentsInsets();
gfx::Insets split_insets = gfx::Insets(0);
- // For split tabs, remove insets equal to the total separator width between
- // them.
- const float total_separator_width =
- tab_style()->GetSeparatorMargins().left() +
- tab_style()->GetSeparatorSize().width() +
- tab_style()->GetSeparatorMargins().right();
- if (IsRightSplitTab(tab())) {
- split_insets.set_left(total_separator_width / -2);
- }
- if (IsLeftSplitTab(tab())) {
- split_insets.set_right(total_separator_width / -2);
- }
-
return gfx::Insets::TLBR(0, 0, GetLayoutConstant(TABSTRIP_TOOLBAR_OVERLAP),
0) +
base_style_insets + split_insets;
@@ -849,13 +805,9 @@ float TabStyleViewsImpl::GetHoverOpacity
}
int TabStyleViewsImpl::GetStrokeThickness(bool should_paint_as_active) const {
+ return 0;
+
std::optional<tab_groups::TabGroupId> group = tab_->group();
if (group.has_value() && tab_->IsActive()) {
return TabGroupUnderline::kStrokeThickness;
- std::optional<tab_groups::TabGroupId> group = tab_->group();
- if (group.has_value() && tab_->IsActive()) {
- return TabGroupUnderline::kStrokeThickness;
- }
-
- if (tab_->IsActive() || should_paint_as_active) {
- return tab_->controller()->GetStrokeThickness();
+ const bool is_split = IsLeftSplitTab(tab_) || IsRightSplitTab(tab_);
+ if (is_split && tab_->controller()->IsActiveTab(tab_)) {
+ return 1;
}
return 0;
@@ -955,8 +907,7 @@ void TabStyleViewsImpl::PaintTabBackgrou
const auto* widget = tab_->GetWidget();
DCHECK(widget);
const SkColor tab_stroke_color = widget->GetColorProvider()->GetColor(
- tab_->GetWidget()->ShouldPaintAsActive() ? kColorTabStrokeFrameActive
- : kColorTabStrokeFrameInactive);
+ kColorToolbarActionItemEngaged);
PaintBackgroundStroke(canvas, selection_state,
group_color.value_or(tab_stroke_color));
--- a/chrome/browser/ui/views/tabs/tab.cc
+++ b/chrome/browser/ui/views/tabs/tab.cc
@@ -131,6 +131,8 @@ constexpr int kTabAlertIndicatorCloseBut
@@ -461,7 +531,7 @@
alert_state_ = next_state;
if (previous_alert_showing_state != showing_alert_state_) {
@@ -428,20 +409,7 @@ bool AlertIndicatorButton::IsTriggerable
@@ -429,20 +410,7 @@ bool AlertIndicatorButton::IsTriggerable
}
void AlertIndicatorButton::PaintButtonContents(gfx::Canvas* canvas) {
@@ -482,3 +552,21 @@
}
gfx::ImageSkia AlertIndicatorButton::GetImageToPaint() {
--- a/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc
+++ b/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc
@@ -247,15 +247,6 @@ bool BrowserTabStripController::IsBrowse
void BrowserTabStripController::SelectTab(int model_index,
const ui::Event& event) {
- // When selecting a split tab, activate the most recently focused tab in the
- // split.
- std::optional<split_tabs::SplitTabId> split_id =
- tabstrip_->tab_at(model_index)->split();
- if (split_id.has_value()) {
- model_index = split_tabs::GetIndexOfLastActiveTab(
- browser()->tab_strip_model(), split_id.value());
- }
-
std::unique_ptr<viz::PeakGpuMemoryTracker> tracker =
content::PeakGpuMemoryTrackerFactory::Create(
viz::PeakGpuMemoryTracker::Usage::CHANGE_TAB);
+11
View File
@@ -53,3 +53,14 @@
toolbar_divider_->SetBackground(views::CreateRoundedRectBackground(
toolbar_divider_color, GetLayoutConstant(TOOLBAR_DIVIDER_CORNER_RADIUS)));
ToolbarIconContainerView::OnThemeChanged();
--- a/chrome/browser/ui/views/toolbar/split_tabs_button.cc
+++ b/chrome/browser/ui/views/toolbar/split_tabs_button.cc
@@ -168,7 +168,7 @@ void SplitTabsToolbarButton::UpdateButto
const bool is_active_tab_in_split = IsActiveTabInSplit();
UpdateButtonIcon();
UpdateStatusIndicator(is_active_tab_in_split);
- SetVisible(pin_state_.GetValue() || is_active_tab_in_split);
+ SetVisible(pin_state_.GetValue());
UpdateAccessibilityRole(is_active_tab_in_split);
UpdateAccessibilityLabel(is_active_tab_in_split);
}
+7 -3
View File
@@ -47,7 +47,6 @@ iridium-browser/browser-disable-profile-auto-import-on-first-run.patch
bromite/fingerprinting-flags-client-rects-and-measuretext.patch
bromite/flag-max-connections-per-host.patch
bromite/flag-fingerprinting-canvas-image-data-noise.patch
ungoogled-chromium/add-components-ungoogled.patch
ungoogled-chromium/add-ipv6-probing-option.patch
@@ -116,6 +115,8 @@ helium/core/search/engine-defaults.patch
helium/core/search/fix-search-engine-icons.patch
helium/core/search/force-eu-search-features.patch
helium/core/search/remove-description-snippet-deps.patch
helium/core/search/break-favicons.patch
helium/core/search/omnibox-default-search-icon.patch
helium/settings/setup-behavior-settings-page.patch
helium/core/keyboard-shortcuts.patch
@@ -159,7 +160,6 @@ helium/core/fix-component-extension-reenablement.patch
helium/core/ublock-setup-sources.patch
helium/core/ublock-install-as-component.patch
helium/core/ublock-reconfigure-defaults.patch
helium/core/ublock-migrate-prefs.patch
helium/core/ublock-helium-services.patch
helium/core/clean-omnibox-suggestions.patch
helium/core/increase-incognito-storage-quota.patch
@@ -182,6 +182,8 @@ helium/core/browser-window-context-menu.patch
helium/core/disable-ntp-footer.patch
helium/core/tab-cycling-mru.patch
helium/core/component-updates.patch
helium/core/fixups-component-setup.patch
helium/core/fixups-chrome-webstore-script.patch
helium/settings/settings-page-icons.patch
helium/settings/move-search-suggest.patch
@@ -201,6 +203,7 @@ helium/settings/update-search-suggest-text.patch
helium/settings/fix-appearance-page.patch
helium/settings/enable-quad9-doh-option.patch
helium/settings/reorder-settings-menu.patch
helium/settings/add-search-engine-button.patch
helium/hop/setup.patch
helium/hop/disable-password-manager.patch
@@ -212,7 +215,7 @@ helium/ui/always-use-better-ntp.patch
helium/ui/clean-new-tab-page.patch
helium/ui/remove-toolbar-corners.patch
helium/ui/location-bar.patch
helium/ui/location-bar-intent-chip.patch
helium/ui/location-bar-page-action.patch
helium/ui/tabs.patch
helium/ui/tab-strip-controls.patch
helium/ui/toolbar.patch
@@ -263,3 +266,4 @@ helium/ui/find-bar.patch
helium/ui/remove-zoom-action.patch
helium/ui/experiments/compact-action-toolbar.patch
helium/ui/pdf-viewer.patch
helium/ui/hide-pip-live-caption-button.patch
@@ -1,6 +1,6 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -5269,10 +5269,12 @@ const FeatureEntry::Choice kOmniboxAutof
@@ -5318,10 +5318,12 @@ const FeatureEntry::Choice kOmniboxAutof
#include "chrome/browser/ungoogled_flag_choices.h"
#include "chrome/browser/bromite_flag_choices.h"
#include "chrome/browser/ungoogled_platform_flag_choices.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"
@@ -4505,10 +4506,13 @@ void RenderFrameImpl::FinalizeRequestInt
@@ -4514,10 +4515,13 @@ void RenderFrameImpl::FinalizeRequestInt
request.SetHasUserGesture(frame_->HasTransientUserActivation());
@@ -1,6 +1,6 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -5265,7 +5265,13 @@ const FeatureEntry::Choice kOmniboxAutof
@@ -5314,7 +5314,13 @@ const FeatureEntry::Choice kOmniboxAutof
// calculate and verify checksum.
//
// When adding a new choice, add it to the end of the list.
@@ -612,7 +612,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"
@@ -1575,9 +1574,6 @@ void ProfileManager::DoFinalInitForServi
@@ -1576,9 +1575,6 @@ void ProfileManager::DoFinalInitForServi
// Ensure NavigationPredictorKeyedService is started.
NavigationPredictorKeyedServiceFactory::GetForProfile(profile);
@@ -737,7 +737,7 @@
"//components/safety_check:features",
--- a/chrome/browser/ui/views/user_education/browser_user_education_service.cc
+++ b/chrome/browser/ui/views/user_education/browser_user_education_service.cc
@@ -835,39 +835,6 @@ void MaybeRegisterChromeFeaturePromos(
@@ -843,39 +843,6 @@ void MaybeRegisterChromeFeaturePromos(
"Triggered when the PDF Viewer opens.")));
#endif
@@ -1019,7 +1019,7 @@
"//components/safe_browsing/content/browser/password_protection",
"//components/safe_browsing/content/browser/password_protection:mock_password_protection",
"//components/safe_browsing/content/browser/web_ui",
@@ -8614,7 +8606,6 @@ test("unit_tests") {
@@ -8615,7 +8607,6 @@ test("unit_tests") {
#
# TODO(crbug.com/417513088): Maybe merge with the non-android `deps` declaration above?
deps += [
@@ -1027,7 +1027,7 @@
"//chrome:packed_resources_integrity_header",
"//chrome/browser/apps:icon_standardizer",
"//chrome/browser/apps/app_service",
@@ -8650,7 +8641,6 @@ test("unit_tests") {
@@ -8651,7 +8642,6 @@ test("unit_tests") {
"//chrome/browser/profile_resetter:fake_profile_resetter",
"//chrome/browser/resource_coordinator:tab_manager_features",
"//chrome/browser/resources/new_tab_page_instant:resources_grit",
@@ -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",
@@ -8620,7 +8613,6 @@ static_library("browser_generated_files"
@@ -8622,7 +8615,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",
@@ -9089,8 +9081,6 @@ static_library("test_support") {
@@ -9091,8 +9083,6 @@ static_library("test_support") {
"//components/reporting/util:status",
"//components/reporting/util:status_macros",
"//components/reporting/util:task_runner_context",
@@ -2,7 +2,7 @@
#
--- a/components/omnibox/common/omnibox_features.cc
+++ b/components/omnibox/common/omnibox_features.cc
@@ -251,7 +251,7 @@ BASE_FEATURE(kOmniboxTouchDownTriggerFor
@@ -246,7 +246,7 @@ BASE_FEATURE(kOmniboxTouchDownTriggerFor
BASE_FEATURE(kOmniboxSiteSearch, DISABLED);
// Enables additional site search providers for the Site search Starter Pack.
@@ -456,7 +456,7 @@
////////////////////////////////////////////////////////////////////////////////
--- a/chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc
@@ -1283,12 +1283,14 @@ void BookmarkMenuDelegate::BuildOtherNod
@@ -1298,13 +1298,15 @@ void BookmarkMenuDelegate::BuildOtherNod
menu->AppendMenuItem(
IDC_SHOW_BOOKMARK_SIDE_PANEL,
l10n_util::GetStringUTF16(IDS_BOOKMARKS_ALL_BOOKMARKS_OPEN_SIDE_PANEL),
@@ -472,6 +472,7 @@
+ other_node_menu_separator_->SetVisible(false);
}
}
--- 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
@@ -158,14 +158,7 @@ void CookieControlsContentView::SetEnfor
@@ -1277,7 +1277,7 @@
// If this is a kiosk profile, reset some of its prefs which should not
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -92,7 +92,6 @@
@@ -93,7 +93,6 @@
#include "components/signin/public/base/consent_level.h"
#include "components/signin/public/base/signin_buildflags.h"
#include "components/signin/public/base/signin_metrics.h"
@@ -1285,7 +1285,7 @@
#include "components/signin/public/identity_manager/identity_manager.h"
#include "components/signin/public/identity_manager/primary_account_mutator.h"
#include "components/signin/public/identity_manager/tribool.h"
@@ -1982,8 +1981,7 @@ void ProfileManager::AddProfileToStorage
@@ -1983,8 +1982,7 @@ void ProfileManager::AddProfileToStorage
entry->SetAuthInfo(account_info.gaia, username,
is_consented_primary_account);
@@ -1295,7 +1295,7 @@
#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_CHROMEOS)
// Sign out if force-sign-in policy is enabled and profile is not signed
@@ -2032,14 +2030,13 @@ void ProfileManager::AddProfileToStorage
@@ -2033,14 +2031,13 @@ void ProfileManager::AddProfileToStorage
init_params.is_ephemeral = IsForceEphemeralProfilesEnabled(profile);
init_params.is_signed_in_with_credential_provider =
+1 -1
View File
@@ -1 +1 @@
2
4
+7
View File
@@ -252,6 +252,11 @@ def extract_zip_file(archive_path, output_dir, relative_to, extractors=None):
"""
get_logger().debug('Using pure Python zip extractor')
if relative_to is not None and (output_dir / relative_to).exists():
get_logger().error('Temporary unpacking directory already exists: %s',
output_dir / relative_to)
raise FileExistsError()
with zipfile.ZipFile(str(archive_path), 'r') as zip_file_obj:
for filename in zip_file_obj.namelist():
try:
@@ -261,6 +266,8 @@ def extract_zip_file(archive_path, output_dir, relative_to, extractors=None):
get_logger().exception('Exception thrown for zip member: %s', filename)
raise
_process_relative_to(output_dir, relative_to)
def extract_with_7z(archive_path, output_dir, relative_to, extractors=None):
"""