Compare commits

...

22 Commits

Author SHA1 Message Date
wukko 00501e2311 revision: bump to 9 (#699)
pretty embarrassing but i think the 2px diff in #698 makes a big
difference
2026-01-02 19:57:16 +00:00
wukko 114aca58c5 deps: update onboarding (#698) 2026-01-02 19:45:18 +00:00
wukko 8b563c0d01 revision: bump to 8 (#697) 2026-01-02 18:43:02 +00:00
wukko 824cf71ff3 deps: rename extras into deps & update onboarding (#696)
extras were never extra, so this fixes the possible confusion
2026-01-03 00:38:29 +06:00
wukko 63be29609d deps: update onboarding 2026-01-03 00:24:08 +06:00
wukko d1cdab8975 repo: extras.ini -> deps.ini 2026-01-03 00:21:37 +06:00
jj b5c22404c6 ci/bump-platform: export versions, add platform-specific hooks (#688) 2025-12-31 18:47:01 +01:00
wukko d6f4210a41 patches/ungoogled: remove irrelevant/outdated/duplicate patches (#680)
- `inox-patchset/disable-missing-key-warning.patch`: same behavior as
`debian/disable-google-api-warning.patch`, but one level lower. makes no
sense to keep both.
- `ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch`:
irrelevant to helium, and also it is a bad flag
- `ungoogled-chromium/enable-page-saving-on-more-pages.patch`: outdated
or initially useless
- `ungoogled-chromium/disable-download-quarantine.patch`: i understand
why ungoogled has this patch, but helium should allow the OS to
vet/quarantine downloaded files. this is not related to safe browsing.
- `ungoogled-chromium/fix-distilled-icons.patch`: weird workaround +
helium doesn't ship a reading mode, the only place where this could've
been potentially used
- `ungoogled-chromium/add-flag-for-tabsearch-button.patch`: helium hides
the tab search button by default, with an option to enable it in the
toolbar
- `ungoogled-chromium/add-flag-for-qr-generator.patch`: outdated and
irrelevant, the qr code generation entrypoint hasn't been in the address
bar for many years
- `ungoogled-chromium/add-flag-to-disable-sharing-hub.patch`: same as qr
code generator, the sharing hub entry point hasn't been in the address
bar for many years
- `ungoogled-chromium/enable-extra-locales.patch`: irrelevant to helium.
basically extra bloat, considering regular chrome doesn't ship these
2025-12-30 23:55:45 +06:00
jj a939d1d8b0 revision: bump to 7 (#651) 2025-12-20 17:03:53 +01:00
wukko 76fbefad51 merge: update to chromium 143.0.7499.169 (#644) 2025-12-19 13:18:55 +06:00
wukko 95a1030f70 merge: update to ungoogled-chromium 143.0.7499.169 2025-12-19 10:46:35 +06:00
Blaise 7375679377 Update to Chromium 143.0.7499.169 2025-12-18 14:54:01 -06:00
wukko 2ee49a1059 helium/ui: shrink pdf viewer's ui (#634)
- shrunk the toolbar padding
- shrunk the side panel with thumbnails
- fixed different font sizes in the toolbar
- made file title a bit smaller, reduced its margin
- remade the stroke of the selected thumbnail

as a result, a lot more content fits on the screen at once!
2025-12-18 23:58:34 +06:00
wukko 1be2432a9a revision: bump to 6 (#633)
bumping asap to get the security patch out fast
2025-12-17 14:27:41 +06:00
wukko 5d96434aa0 merge: update to chromium 143.0.7499.146 (#632) 2025-12-17 14:14:30 +06:00
wukko 56d1a136ab patches: refresh for chromium 143.0.7499.146 2025-12-17 12:07:35 +06:00
wukko 688af14009 merge: update to ungoogled-chromium 143.0.7499.146 2025-12-17 11:37:41 +06:00
Blaise 1341de3a37 Update to Chromium 143.0.7499.146 2025-12-16 14:14:37 -06:00
wukko 4e6eda294f revision: bump to 5 (#623) 2025-12-15 13:46:38 +00:00
wukko f32b04755e helium/ui: fix pwa toolbar & location bar layout (#620) 2025-12-15 08:56:28 +00:00
wukko 75d044b9a6 helium/ui/tabs: fix in-place pinned tab muting/unmuting (#619)
fixes #586
2025-12-15 14:53:17 +06:00
wukko 0ec967b7d6 helium/ui/cat: fix layout breakage when exiting fullscreen, again (#616) 2025-12-14 16:01:08 +06:00
53 changed files with 280 additions and 744 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ validate_with_source_task:
rm -rf chromium_download_cache
mkdir chromium_download_cache
# Attempt to download tarball
./utils/downloads.py retrieve -i extras.ini -c chromium_download_cache &
./utils/downloads.py retrieve -i deps.ini -c chromium_download_cache &
if ! ./utils/downloads.py retrieve -i downloads.ini -c chromium_download_cache ; then
# If tarball is not available, attempt a clone
./utils/clone.py -o chromium_src
@@ -48,7 +48,7 @@ validate_with_source_task:
wait
unpack_source_script: |
if [ ! -d chromium_src ]; then
for file in downloads extras; do
for file in downloads deps; do
./utils/downloads.py unpack -i $file.ini -c chromium_download_cache chromium_src
done
fi
+9 -1
View File
@@ -44,6 +44,7 @@ runs:
# get versions and compare them after submodule update
version_before=$(get_version)
export version_before
pushd "$HELIUM_DIR"
git fetch origin main
@@ -64,10 +65,11 @@ runs:
fi
version_after=$(get_version)
export version_after
mkdir -p build/{src,download_cache}
for file in "$HELIUM_DIR/downloads.ini" "$HELIUM_DIR/extras.ini" "$PLATFORM_DIR/downloads.ini"; do
for file in "$HELIUM_DIR/downloads.ini" "$HELIUM_DIR/deps.ini" "$PLATFORM_DIR/downloads.ini"; do
if ! [ -f "$file" ]; then continue; fi
run_upstream utils/downloads.py retrieve \
@@ -94,6 +96,12 @@ runs:
git config user.name "helium-bot"
git config user.email "helium-bot@imput.net"
git add -u patches helium-chromium revision.txt
PLATFORM_HOOK="$PLATFORM_DIR/.github/bump-hook.sh"
if [ -f "$PLATFORM_HOOK" ]; then
"$PLATFORM_HOOK";
fi
if ! git status | tail -1 | grep -q 'nothing to commit'; then
git commit -m "$TITLE"
git push origin update
+1 -1
View File
@@ -1 +1 @@
143.0.7499.109
143.0.7499.169
+2 -2
View File
@@ -7,10 +7,10 @@ sha256 = 00a87050fa3f941d04d67fb5763991e0b8ea399a88b505ab0e56dd263f06864c
output_path = ./third_party/search_engines_data/resources_internal
[onboarding]
version = 202512121537
version = 202601021937
url = https://github.com/imputnet/helium-onboarding/releases/download/%(version)s/helium-onboarding-%(version)s.tar.gz
download_filename = onboarding-page-%(version)s.tar.gz
sha256 = d9729e4d160a2425d8bce36ab2e77588ec85e0f7ce6f5bdb8325997f1b5315fa
sha256 = c8a1f906cf6461179d4fd311c529f0f8e01fb21b63ef179f593a24190c5dca80
output_path = ./components/helium_onboarding
# If you are bumping this, you *NEED* to re-strip the assets.json
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/ui_features.cc
+++ b/chrome/browser/ui/ui_features.cc
@@ -670,7 +670,7 @@ bool HasTabSearchToolbarButton() {
@@ -665,7 +665,7 @@ bool HasTabSearchToolbarButton() {
return is_tab_search_moving;
}
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/ui_features.cc
+++ b/chrome/browser/ui/ui_features.cc
@@ -307,13 +307,7 @@ bool IsTabGroupMenuMoreEntryPointsEnable
@@ -306,13 +306,7 @@ bool IsTabGroupMenuMoreEntryPointsEnable
// Enables preview images in tab-hover cards.
// https://crbug.com/928954
@@ -23,7 +23,7 @@
if (tab_search_action.has_value()) {
--- a/chrome/browser/ui/ui_features.cc
+++ b/chrome/browser/ui/ui_features.cc
@@ -620,7 +620,7 @@ BASE_FEATURE(kByDateHistoryInSidePanel,
@@ -619,7 +619,7 @@ BASE_FEATURE(kByDateHistoryInSidePanel,
BASE_FEATURE(kTabStripBrowserApi, base::FEATURE_DISABLED_BY_DEFAULT);
@@ -32,10 +32,10 @@
// This serves as a "kill-switch" for migrating the Tab Search feature to be a
// toolbar button for non-ChromeOS users in the US.
@@ -655,6 +655,8 @@ bool HasTabSearchToolbarButton() {
return false;
}
@@ -650,6 +650,8 @@ static std::string GetCountryCode() {
}
bool HasTabSearchToolbarButton() {
+ return true;
+
static const bool is_tab_search_moving = [] {
@@ -1,6 +1,6 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -13652,11 +13652,328 @@ const FeatureEntry kFeatureEntries[] = {
@@ -13667,11 +13667,328 @@ const FeatureEntry kFeatureEntries[] = {
// AboutFlagsHistogramTest unit test to verify this process).
};
@@ -330,7 +330,7 @@
FlagsStateSingleton(const FlagsStateSingleton&) = delete;
FlagsStateSingleton& operator=(const FlagsStateSingleton&) = delete;
~FlagsStateSingleton() override = default;
@@ -13675,7 +13992,7 @@ class FlagsStateSingleton : public flags
@@ -13690,7 +14007,7 @@ class FlagsStateSingleton : public flags
void RestoreDefaultState() {
flags_state_ =
@@ -339,7 +339,7 @@
}
private:
@@ -13999,7 +14316,7 @@ base::span<const FeatureEntry> GetFeatur
@@ -14014,7 +14331,7 @@ base::span<const FeatureEntry> GetFeatur
!entries_for_testing->empty()) {
return *entries_for_testing;
}
+1 -1
View File
@@ -15,7 +15,7 @@
#endif // USE_AURA
#if defined(USE_AURA)
@@ -5207,11 +5207,13 @@ const FeatureEntry::FeatureVariation kPr
@@ -5222,11 +5222,13 @@ const FeatureEntry::FeatureVariation kPr
// calculate and verify checksum.
//
// When adding a new choice, add it to the end of the list.
@@ -1,6 +1,6 @@
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -145,7 +145,7 @@
@@ -133,7 +133,7 @@
"Return generic values for WebGLDebugRendererInfo to remove a potential data leak while preventing potential website breakage. ungoogled-chromium flag.",
kOsAll, FEATURE_WITH_PARAMS_VALUE_TYPE(blink::features::kSpoofWebGLInfo, kSpoofWebGLChoices, "SpoofWebGLInfo")},
{"increase-incognito-storage-quota",
+1 -1
View File
@@ -66,7 +66,7 @@
// Hosted App commands
case IDC_COPY_URL:
CopyURL(browser_, browser_->tab_strip_model()->GetActiveWebContents());
@@ -1930,6 +1940,12 @@ void BrowserCommandController::UpdateCom
@@ -1929,6 +1939,12 @@ void BrowserCommandController::UpdateCom
bool dev_tools_enabled = DevToolsWindow::AllowDevToolsFor(
profile(), browser_->tab_strip_model()->GetActiveWebContents());
@@ -20,15 +20,15 @@
#if BUILDFLAG(IS_CHROMEOS)
--- a/content/common/url_schemes.cc
+++ b/content/common/url_schemes.cc
@@ -33,6 +33,7 @@ const char* const kDefaultSavableSchemes
@@ -30,6 +30,7 @@ const char* const kDefaultSavableSchemes
url::kFileSystemScheme,
kChromeDevToolsScheme,
kChromeUIScheme,
+ kHeliumUIScheme,
url::kDataScheme,
url::kJavaScriptScheme,
url::kMailToScheme,
@@ -68,6 +69,7 @@ void RegisterContentSchemes(bool should_
url::kDataScheme
};
@@ -60,6 +61,7 @@ void RegisterContentSchemes(bool should_
url::AddStandardScheme(kChromeDevToolsScheme, url::SCHEME_WITH_HOST);
url::AddStandardScheme(kChromeUIScheme, url::SCHEME_WITH_HOST);
@@ -36,7 +36,7 @@
url::AddStandardScheme(kChromeUIUntrustedScheme, url::SCHEME_WITH_HOST);
url::AddStandardScheme(kChromeErrorScheme, url::SCHEME_WITH_HOST);
for (auto& scheme : schemes.standard_schemes)
@@ -78,6 +80,7 @@ void RegisterContentSchemes(bool should_
@@ -70,6 +72,7 @@ void RegisterContentSchemes(bool should_
schemes.secure_schemes.push_back(kChromeDevToolsScheme);
schemes.secure_schemes.push_back(kChromeUIScheme);
@@ -44,7 +44,7 @@
schemes.secure_schemes.push_back(kChromeUIUntrustedScheme);
schemes.secure_schemes.push_back(kChromeErrorScheme);
for (auto& scheme : schemes.secure_schemes)
@@ -98,6 +101,7 @@ void RegisterContentSchemes(bool should_
@@ -90,6 +93,7 @@ void RegisterContentSchemes(bool should_
url::AddNoAccessScheme(scheme.c_str());
schemes.cors_enabled_schemes.push_back(kChromeUIScheme);
@@ -52,7 +52,7 @@
schemes.cors_enabled_schemes.push_back(kChromeUIUntrustedScheme);
for (auto& scheme : schemes.cors_enabled_schemes)
url::AddCorsEnabledScheme(scheme.c_str());
@@ -126,6 +130,7 @@ void RegisterContentSchemes(bool should_
@@ -118,6 +122,7 @@ void RegisterContentSchemes(bool should_
// service workers don't work for chrome[-untrusted]:// when the flag is not
// enabled.
schemes.service_worker_schemes.push_back(kChromeUIScheme);
@@ -350,7 +350,7 @@
#include "components/user_education/common/feature_promo/feature_promo_controller.h"
#include "components/web_modal/web_contents_modal_dialog_manager.h"
#include "components/webapps/common/web_app_id.h"
@@ -2441,7 +2442,12 @@ bool IsDebuggerAttachedToCurrentTab(Brow
@@ -2447,7 +2448,12 @@ bool IsDebuggerAttachedToCurrentTab(Brow
void CopyURL(BrowserWindowInterface* bwi, content::WebContents* web_contents) {
ui::ScopedClipboardWriter scw(ui::ClipboardBuffer::kCopyPaste);
@@ -1,8 +1,8 @@
--- a/build/config/chrome_build.gni
+++ b/build/config/chrome_build.gni
@@ -101,4 +101,4 @@ declare_args() {
@@ -92,4 +92,4 @@ declare_args() {
# Whether to enable built-in branding assets (logos & marketing snippets) for
# search providers in choice UIs.
-enable_builtin_search_provider_assets = is_internal_chrome_branded
-enable_builtin_search_provider_assets = is_chrome_branded
+enable_builtin_search_provider_assets = true
+4 -4
View File
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/ui_features.cc
+++ b/chrome/browser/ui/ui_features.cc
@@ -104,14 +104,14 @@ BASE_FEATURE(kReloadSelectionModel, base
@@ -103,14 +103,14 @@ BASE_FEATURE(kReloadSelectionModel, base
// Enforces close tab hotkey to only close the active view of a split tab,
// when it is the only tab in selection model.
BASE_FEATURE(kCloseActiveTabInSplitViewViaHotkey,
@@ -17,7 +17,7 @@
// The delay before showing the drop target for the side-by-side drag-and-drop
// entrypoint.
@@ -149,17 +149,17 @@ BASE_FEATURE_PARAM(int,
@@ -148,17 +148,17 @@ BASE_FEATURE_PARAM(int,
kSideBySideDropTargetMinWidth,
&kSideBySide,
"drop_target_min_width",
@@ -38,7 +38,7 @@
BASE_FEATURE_PARAM(int,
kSideBySideDropTargetForLinkTargetWidthPercentage,
&kSideBySide,
@@ -265,7 +265,7 @@ BASE_FEATURE_PARAM(int,
@@ -264,7 +264,7 @@ BASE_FEATURE_PARAM(int,
// When enabled along with SideBySide flag, split tabs will be restored on
// startup.
@@ -47,7 +47,7 @@
bool IsRestoringSplitViewEnabled() {
return base::FeatureList::IsEnabled(features::kSideBySide) &&
@@ -274,7 +274,7 @@ bool IsRestoringSplitViewEnabled() {
@@ -273,7 +273,7 @@ bool IsRestoringSplitViewEnabled() {
BASE_FEATURE(kSideBySideLinkMenuNewBadge, base::FEATURE_DISABLED_BY_DEFAULT);
+6 -5
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,91 +1,4 @@
@@ -1,92 +1,4 @@
-<!-- #html_wrapper_imports_start
-import {nothing} from '//resources/lit/v3_0/lit.rollup.js';
-#html_wrapper_imports_end -->
@@ -68,7 +68,7 @@
- ?ntp-realbox-next-enabled="${this.ntpRealboxNextEnabled_}"
- ?cycling-placeholders="${this.searchboxCyclingPlaceholders_}"
- @searchbox-input-focus-changed="${this.onInputFocusChanged_}"
- ?ntp-next-features-enabled="${this.ntpNextFeaturesEnabled_}">
- context-menu-glif-animation-state="${this.contextMenuGlifAnimationState_}">
- </cr-searchbox>
- ${this.showComposebox_ ? html`
- <cr-composebox id="composebox"
@@ -88,7 +88,8 @@
- ${this.lazyRender_
- && this.ntpNextFeaturesEnabled_ && this.isActionChipsVisible_ ? html`
- <ntp-action-chips
- @action-chip-click="${this.openComposebox_}">
- @action-chip-click="${this.openComposebox_}"
- @action-chips-retrieval-state-changed="${this.onActionChipsRetrievalStateChanged_}">
- </ntp-action-chips>
- ` : ''}
- ${this.lazyRender_ ? html`
@@ -102,7 +103,7 @@
${this.lazyRender_ ? html`
${this.shortcutsEnabled_ ? html`
<cr-most-visited id="mostVisited" .theme="${this.theme_?.mostVisited || null}"
@@ -94,54 +7,7 @@ import {nothing} from '//resources/lit/v
@@ -95,54 +7,7 @@ import {nothing} from '//resources/lit/v
max-tiles-before-show-more="${this.maxTilesBeforeShowMore_}">
</cr-most-visited>
` : ''}
@@ -157,7 +158,7 @@
<ntp-customize-buttons id="customizeButtons"
?modules-shown-to-user="${this.modulesShownToUser}"
?show-background-image="${this.showBackgroundImage_}"
@@ -163,23 +29,3 @@ import {nothing} from '//resources/lit/v
@@ -164,23 +29,3 @@ import {nothing} from '//resources/lit/v
` : ''}
<div id="contentBottomSpacer"></div>
</div>
@@ -27,7 +27,7 @@
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
--- a/chrome/browser/ui/ui_features.cc
+++ b/chrome/browser/ui/ui_features.cc
@@ -18,6 +18,22 @@
@@ -17,6 +17,22 @@
namespace features {
@@ -107,7 +107,7 @@
// Reparent PWA views that were moved for immersive mode.
if (web_app_frame_toolbar_) {
@@ -5197,6 +5203,12 @@ void BrowserView::AddedToWidget() {
@@ -5194,6 +5200,12 @@ void BrowserView::AddedToWidget() {
toolbar_->Init();
@@ -122,21 +122,23 @@
// 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
@@ -411,6 +411,13 @@ void BrowserViewLayoutImplOld::LayoutTab
views().tab_strip_region_view->SetBounds(0, 0, 0, 0);
return;
}
@@ -406,6 +406,15 @@ void BrowserViewLayoutImplOld::LayoutVer
void BrowserViewLayoutImplOld::LayoutTabStripRegion(
gfx::Rect& available_bounds) {
TRACE_EVENT0("ui", "BrowserViewLayout::LayoutTabStripRegion");
+
+ // If the CAT feature is enabled, then the tab strip is in the toolbar.
+ // We shouldn't layout it here.
+ if (features::IsHeliumCatEnabled()) {
+ // 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;
+ }
+
// This retrieves the bounds for the tab strip based on whether or not we show
// anything to the left of it, like the incognito avatar.
gfx::Rect tab_strip_region_bounds(
@@ -458,6 +465,15 @@ void BrowserViewLayoutImplOld::LayoutToo
if (!delegate().ShouldDrawTabStrip()) {
SetViewVisibility(views().tab_strip_region_view, false);
views().tab_strip_region_view->SetBounds(0, 0, 0, 0);
@@ -458,6 +467,15 @@ void BrowserViewLayoutImplOld::LayoutToo
toolbar_bounds.set_x(available_bounds.x());
toolbar_bounds.set_width(toolbar_bounds.width() - kVerticalTabStripWidth);
views().toolbar->SetBoundsRect(toolbar_bounds);
-22
View File
@@ -1,22 +0,0 @@
--- a/chrome/browser/ui/views/web_apps/frame_toolbar/web_app_frame_toolbar_utils.h
+++ b/chrome/browser/ui/views/web_apps/frame_toolbar/web_app_frame_toolbar_utils.h
@@ -11,7 +11,7 @@ class ToolbarButton;
class ToolbarButtonProvider;
#if BUILDFLAG(IS_MAC)
-inline constexpr int kWebAppMenuMargin = 7;
+inline constexpr int kWebAppMenuMargin = 4;
#endif
// Makes adjustments to |toolbar_button| for display in a web app frame.
--- a/chrome/browser/ui/views/web_apps/frame_toolbar/web_app_toolbar_button_container.cc
+++ b/chrome/browser/ui/views/web_apps/frame_toolbar/web_app_toolbar_button_container.cc
@@ -85,7 +85,7 @@ WebAppToolbarButtonContainer::WebAppTool
.SetDefault(
views::kMarginsKey,
gfx::Insets::VH(
- 0, HorizontalPaddingBetweenPageActionsAndAppMenuButtons()))
+ 0, 9))
.SetCollapseMargins(true)
.SetIgnoreDefaultMainAxisMargins(true)
.SetCrossAxisAlignment(views::LayoutAlignment::kCenter)
+3 -3
View File
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.cc
+++ b/chrome/browser/ui/views/omnibox/rounded_omnibox_results_frame.cc
@@ -43,7 +43,7 @@
@@ -42,7 +42,7 @@
namespace {
// Value from the spec controlling appearance of the shadow.
@@ -9,7 +9,7 @@
#if !defined(USE_AURA)
@@ -231,8 +231,7 @@ RoundedOmniboxResultsFrame::RoundedOmnib
@@ -230,8 +230,7 @@ RoundedOmniboxResultsFrame::RoundedOmnib
LocationBarView* location_bar,
bool forward_mouse_events)
: contents_(contents), forward_mouse_events_(forward_mouse_events) {
@@ -19,7 +19,7 @@
// Host the contents in its own View to simplify layout and customization.
auto contents_host_builder =
views::Builder<views::View>()
@@ -299,10 +298,10 @@ int RoundedOmniboxResultsFrame::GetNonRe
@@ -298,10 +297,10 @@ int RoundedOmniboxResultsFrame::GetNonRe
// static
gfx::Insets RoundedOmniboxResultsFrame::GetLocationBarAlignmentInsets() {
+110
View File
@@ -0,0 +1,110 @@
--- a/chrome/browser/resources/pdf/elements/viewer_page_selector.css
+++ b/chrome/browser/resources/pdf/elements/viewer_page_selector.css
@@ -14,7 +14,6 @@
color: #fff;
direction: ltr;
display: flex;
- font-size: 0.81rem;
text-align: center;
--page-selector-spacing: 4px;
@@ -46,3 +45,8 @@ input {
#divider {
margin: 0 var(--page-selector-spacing);
}
+
+#content,
+input {
+ font-size: 12px;
+}
--- a/chrome/browser/resources/pdf/elements/viewer_thumbnail.css
+++ b/chrome/browser/resources/pdf/elements/viewer_thumbnail.css
@@ -29,18 +29,22 @@
margin-inline-end: auto;
margin-inline-start: auto;
width: 108px;
+ outline-offset: 3px;
+ border-radius: 1px;
}
:host([is-active]) #thumbnail {
- box-shadow: 0 0 0 6px var(--focus-border-color);
+ outline: 2px solid var(--focus-border-color);
}
:host(:focus-visible) #thumbnail {
- box-shadow: 0 0 0 2px var(--focus-border-color);
+ outline: 2px solid var(--focus-border-color);
+ outline-offset: 4px;
}
:host([is-active]:focus-visible) #thumbnail {
- box-shadow: 0 0 0 8px var(--focus-border-color);
+ outline: 2px solid var(--focus-border-color);
+ outline-offset: 3px;
}
#canvas-container {
--- a/chrome/browser/resources/pdf/elements/viewer_toolbar.css
+++ b/chrome/browser/resources/pdf/elements/viewer_toolbar.css
@@ -10,7 +10,7 @@
* #css_wrapper_metadata_end */
:host {
- --viewer-pdf-toolbar-height: 56px;
+ --viewer-pdf-toolbar-height: 36px;
position: relative;
}
@@ -25,13 +25,13 @@
color: white;
display: flex;
height: var(--viewer-pdf-toolbar-height);
- padding: 0 16px;
+ padding: 0 8px;
}
#title {
- font-size: 0.87rem;
+ font-size: 13px;
font-weight: 500;
- margin-inline-start: 16px;
+ margin-inline-start: 7px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -130,6 +130,7 @@ input {
padding: 0 4px;
text-align: center;
width: 5ch;
+ font-size: 12px;
}
#fit {
--- a/chrome/browser/resources/pdf/pdf_viewer.css
+++ b/chrome/browser/resources/pdf/pdf_viewer.css
@@ -13,7 +13,7 @@
* #css_wrapper_metadata_end */
:host {
- --viewer-pdf-sidenav-width: 300px;
+ --viewer-pdf-sidenav-width: 180px;
display: flex;
flex-direction: column;
height: 100%;
--- a/chrome/browser/resources/pdf/elements/viewer_thumbnail_bar.css
+++ b/chrome/browser/resources/pdf/elements/viewer_thumbnail_bar.css
@@ -14,11 +14,11 @@
box-sizing: border-box;
height: 100%;
overflow: auto;
+ padding-top: 6px;
padding-bottom: 24px;
- padding-inline-end: var(--viewer-thumbnail-bar-padding-inline-end);
text-align: center;
}
viewer-thumbnail {
- padding-top: 24px;
+ padding-top: 18px;
}
+59
View File
@@ -0,0 +1,59 @@
--- a/chrome/browser/ui/views/web_apps/frame_toolbar/web_app_frame_toolbar_utils.h
+++ b/chrome/browser/ui/views/web_apps/frame_toolbar/web_app_frame_toolbar_utils.h
@@ -11,7 +11,7 @@ class ToolbarButton;
class ToolbarButtonProvider;
#if BUILDFLAG(IS_MAC)
-inline constexpr int kWebAppMenuMargin = 7;
+inline constexpr int kWebAppMenuMargin = 2;
#endif
// Makes adjustments to |toolbar_button| for display in a web app frame.
--- a/chrome/browser/ui/views/web_apps/frame_toolbar/web_app_toolbar_button_container.cc
+++ b/chrome/browser/ui/views/web_apps/frame_toolbar/web_app_toolbar_button_container.cc
@@ -85,7 +85,7 @@ WebAppToolbarButtonContainer::WebAppTool
.SetDefault(
views::kMarginsKey,
gfx::Insets::VH(
- 0, HorizontalPaddingBetweenPageActionsAndAppMenuButtons()))
+ 0, GetLayoutConstant(TOP_BAR_VERTICAL_PADDING) * 2))
.SetCollapseMargins(true)
.SetIgnoreDefaultMainAxisMargins(true)
.SetCrossAxisAlignment(views::LayoutAlignment::kCenter)
--- a/chrome/browser/ui/views/location_bar/custom_tab_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/custom_tab_bar_view.cc
@@ -145,7 +145,7 @@ class CustomTabBarTitleOriginView : publ
views::MaximumFlexSizeRule::kPreferred));
location_label_ = AddChildView(std::move(location_label));
- if (should_show_title) {
+ if ((false)) {
auto title_label = std::make_unique<views::Label>(
std::u16string(), views::style::CONTEXT_LABEL);
--- a/chrome/browser/ui/views/web_apps/frame_toolbar/web_app_frame_toolbar_utils.cc
+++ b/chrome/browser/ui/views/web_apps/frame_toolbar/web_app_frame_toolbar_utils.cc
@@ -25,7 +25,7 @@ void ConfigureWebAppToolbarButton(
int WebAppFrameRightMargin() {
#if BUILDFLAG(IS_MAC)
- return kWebAppMenuMargin;
+ return 10;
#else
return HorizontalPaddingBetweenPageActionsAndAppMenuButtons();
#endif
--- a/chrome/browser/ui/views/web_apps/frame_toolbar/web_app_navigation_button_container.cc
+++ b/chrome/browser/ui/views/web_apps/frame_toolbar/web_app_navigation_button_container.cc
@@ -31,12 +31,7 @@
namespace {
constexpr int kPaddingBetweenNavigationButtons = 5;
-
-#if BUILDFLAG(IS_CHROMEOS)
constexpr int kWebAppFrameLeftMargin = 2;
-#else
-constexpr int kWebAppFrameLeftMargin = 7;
-#endif
} // namespace
+5 -1
View File
@@ -186,7 +186,7 @@
}
bool Tab::ShouldRenderAsNormalTab() const {
@@ -1254,15 +1253,25 @@ void Tab::UpdateTabIconNeedsAttentionBlo
@@ -1254,15 +1253,29 @@ void Tab::UpdateTabIconNeedsAttentionBlo
}
int Tab::GetWidthOfLargestSelectableRegion() const {
@@ -209,6 +209,10 @@
+
+ int selectable_region = width();
+
+ if (!ShouldRenderAsNormalTab()) {
+ return selectable_region;
+ }
+
+ if (alert_indicator_button_->GetVisible()) {
+ selectable_region = alert_indicator_button_->bounds().right();
+ }
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -4967,6 +4967,18 @@ int BrowserView::NonClientHitTest(const
@@ -4964,6 +4964,18 @@ int BrowserView::NonClientHitTest(const
}
}
@@ -1,12 +0,0 @@
--- a/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc
+++ b/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc
@@ -17,9 +17,6 @@
// static
void GoogleApiKeysInfoBarDelegate::Create(
infobars::ContentInfoBarManager* infobar_manager) {
- infobar_manager->AddInfoBar(
- CreateConfirmInfoBar(std::unique_ptr<ConfirmInfoBarDelegate>(
- new GoogleApiKeysInfoBarDelegate())));
}
GoogleApiKeysInfoBarDelegate::GoogleApiKeysInfoBarDelegate() = default;
+1 -1
View File
@@ -2,7 +2,7 @@
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -459,14 +459,6 @@ group("gn_all") {
@@ -458,14 +458,6 @@ group("gn_all") {
]
}
+2 -10
View File
@@ -41,7 +41,6 @@ bromite/disable-fetching-field-trials.patch
ungoogled-chromium/add-ungoogled-flag-headers.patch
inox-patchset/modify-default-prefs.patch
inox-patchset/disable-missing-key-warning.patch
inox-patchset/disable-battery-status-service.patch
debian/disable-google-api-warning.patch
@@ -55,10 +54,7 @@ bromite/flag-fingerprinting-canvas-image-data-noise.patch
ungoogled-chromium/add-components-ungoogled.patch
ungoogled-chromium/add-ipv6-probing-option.patch
ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch
ungoogled-chromium/disable-intranet-redirect-detector.patch
ungoogled-chromium/enable-page-saving-on-more-pages.patch
ungoogled-chromium/disable-download-quarantine.patch
ungoogled-chromium/fix-building-without-mdns-and-service-discovery.patch
ungoogled-chromium/add-flag-to-configure-extension-downloading.patch
ungoogled-chromium/add-flag-for-search-engine-collection.patch
@@ -78,10 +74,7 @@ ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch
ungoogled-chromium/add-flag-to-convert-popups-to-tabs.patch
ungoogled-chromium/add-flag-to-disable-local-history-expiration.patch
ungoogled-chromium/prepopulated-search-engines.patch
ungoogled-chromium/fix-distilled-icons.patch
ungoogled-chromium/add-flag-to-clear-data-on-exit.patch
ungoogled-chromium/add-flag-for-tabsearch-button.patch
ungoogled-chromium/add-flag-for-qr-generator.patch
ungoogled-chromium/add-flag-for-grab-handle.patch
ungoogled-chromium/add-flag-for-close-confirmation.patch
ungoogled-chromium/add-flag-for-custom-ntp.patch
@@ -89,7 +82,6 @@ ungoogled-chromium/add-flag-for-tab-hover-cards.patch
ungoogled-chromium/add-flag-to-hide-tab-close-buttons.patch
ungoogled-chromium/add-flag-to-disable-tls-grease.patch
ungoogled-chromium/add-flag-to-change-http-accept-header.patch
ungoogled-chromium/add-flag-to-disable-sharing-hub.patch
ungoogled-chromium/add-flag-for-disabling-link-drag.patch
ungoogled-chromium/add-flag-to-hide-extensions-menu.patch
ungoogled-chromium/add-flag-to-hide-fullscreen-exit-ui.patch
@@ -99,7 +91,6 @@ ungoogled-chromium/add-flags-for-existing-switches.patch
ungoogled-chromium/add-flag-to-reduce-system-info.patch
ungoogled-chromium/add-flag-to-remove-client-hints.patch
ungoogled-chromium/disable-downloads-page-referrer-url.patch
ungoogled-chromium/enable-extra-locales.patch
ungoogled-chromium/disable-chromelabs.patch
ungoogled-chromium/remove-pac-size-limit.patch
ungoogled-chromium/enable-certificate-transparency-and-add-flag.patch
@@ -257,7 +248,7 @@ helium/ui/bangs-ui.patch
helium/ui/thinner-infobar.patch
helium/ui/reduce-text-button-height.patch
helium/ui/smaller-window-grab-handle.patch
helium/ui/fix-pwa-toolbar.patch
helium/ui/pwa-toolbar.patch
helium/ui/top-container.patch
helium/ui/status-bubble.patch
helium/ui/clean-incognito-guest-ntp.patch
@@ -271,3 +262,4 @@ helium/ui/fix-caption-button-bounds.patch
helium/ui/find-bar.patch
helium/ui/remove-zoom-action.patch
helium/ui/experiments/compact-action-toolbar.patch
helium/ui/pdf-viewer.patch
@@ -197,7 +197,7 @@
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -72,4 +72,8 @@
@@ -64,4 +64,8 @@
"Remove Grab Handle",
"Removes the reserved empty space in the tabstrip for moving the window. ungoogled-chromium flag",
kOsDesktop, SINGLE_VALUE_TYPE("remove-grab-handle")},
@@ -18,7 +18,7 @@
}
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -76,4 +76,8 @@
@@ -68,4 +68,8 @@
"Close Confirmation",
"Show a warning prompt when closing the browser window. ungoogled-chromium flag",
kOsDesktop, MULTI_VALUE_TYPE(kCloseConfirmation)},
@@ -1,10 +1,10 @@
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -100,4 +100,8 @@
"Disable Sharing Hub",
"Disables the sharing hub button. ungoogled-chromium flag.",
kOsDesktop, SINGLE_VALUE_TYPE("disable-sharing-hub")},
+ {"disable-link-drag",
@@ -88,4 +88,8 @@
"Custom HTTP Accept Header",
"Set a custom value for the Accept header which is sent by the browser with every HTTP request. (e.g. `text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8`). ungoogled-chromium flag.",
kOsAll, ORIGIN_LIST_VALUE_TYPE("http-accept-header", "")},
+ {"disable-link-drag",
+ "Disable link drag",
+ "Prevents dragging of links and selected text. ungoogled-chromium flag.",
+ kOsDesktop, FEATURE_VALUE_TYPE(blink::features::kDisableLinkDrag)},
@@ -1,6 +1,14 @@
--- a/chrome/browser/ui/views/frame/tab_strip_region_view.cc
+++ b/chrome/browser/ui/views/frame/tab_strip_region_view.cc
@@ -84,6 +84,7 @@ class FrameGrabHandle : public views::Vi
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/views/frame/tab_strip_region_view.h"
+#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/single_thread_task_runner.h"
@@ -83,6 +84,7 @@ class FrameGrabHandle : public views::Vi
// Reserve some space for the frame to be grabbed by, even if the tabstrip
// is full.
// TODO(tbergquist): Define this relative to the NTB insets again.
@@ -10,11 +18,11 @@
};
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -68,4 +68,8 @@
"Disable QR Generator",
"Disables the QR generator for sharing page links. ungoogled-chromium flag",
kOsDesktop, FEATURE_VALUE_TYPE(kDisableQRGenerator)},
+ {"remove-grab-handle",
@@ -60,4 +60,8 @@
"Clear data on exit",
"Clears all browsing data on exit. ungoogled-chromium flag",
kOsDesktop, FEATURE_VALUE_TYPE(features::kClearDataOnExit)},
+ {"remove-grab-handle",
+ "Remove Grab Handle",
+ "Removes the reserved empty space in the tabstrip for moving the window. ungoogled-chromium flag",
+ kOsDesktop, SINGLE_VALUE_TYPE("remove-grab-handle")},
@@ -31,7 +31,7 @@
substitutions["backgroundPosition"] = GetNewTabBackgroundPositionCSS(tp);
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -112,4 +112,8 @@
@@ -100,4 +100,8 @@
"Hide Fullscreen Exit UI",
"Hides the \"X\" that appears when the mouse cursor is moved towards the top of the window in fullscreen mode. Additionally, this hides the \"Press F11 to exit full screen\" popup. ungoogled-chromium flag.",
kOsDesktop, SINGLE_VALUE_TYPE("hide-fullscreen-exit-ui")},
@@ -1,49 +0,0 @@
--- a/chrome/browser/ui/qrcode_generator/qrcode_generator_bubble_controller.cc
+++ b/chrome/browser/ui/qrcode_generator/qrcode_generator_bubble_controller.cc
@@ -13,6 +13,7 @@
#include "chrome/common/pref_names.h"
#include "components/prefs/pref_change_registrar.h"
#include "components/prefs/pref_service.h"
+#include "components/sharing_message/features.h"
#include "content/public/browser/web_contents.h"
#include "url/gurl.h"
@@ -38,7 +39,7 @@ QRCodeGeneratorBubbleController::~QRCode
// static
bool QRCodeGeneratorBubbleController::IsGeneratorAvailable(const GURL& url) {
- if (!url.SchemeIsHTTPOrHTTPS()) {
+ if (!url.SchemeIsHTTPOrHTTPS() || base::FeatureList::IsEnabled(kDisableQRGenerator)) {
return false;
}
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -64,4 +64,8 @@
"Remove Tabsearch Button",
"Removes the tabsearch button from the tabstrip. ungoogled-chromium flag",
kOsDesktop, SINGLE_VALUE_TYPE("remove-tabsearch-button")},
+ {"disable-qr-generator",
+ "Disable QR Generator",
+ "Disables the QR generator for sharing page links. ungoogled-chromium flag",
+ kOsDesktop, FEATURE_VALUE_TYPE(kDisableQRGenerator)},
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
--- a/components/sharing_message/features.cc
+++ b/components/sharing_message/features.cc
@@ -7,6 +7,8 @@
#include "build/build_config.h"
#include "components/sync_preferences/features.h"
+BASE_FEATURE(kDisableQRGenerator, "DisableQRGenerator", base::FEATURE_DISABLED_BY_DEFAULT);
+
BASE_FEATURE(kClickToCall, base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kMobilePromoOnDesktop, base::FEATURE_DISABLED_BY_DEFAULT);
--- a/components/sharing_message/features.h
+++ b/components/sharing_message/features.h
@@ -34,4 +34,5 @@ MobilePromoOnDesktopPromoType MobileProm
// notification arm, false otherwise.
bool IsMobilePromoOnDesktopNotificationsEnabled();
+BASE_DECLARE_FEATURE(kDisableQRGenerator);
#endif // COMPONENTS_SHARING_MESSAGE_FEATURES_H_
@@ -69,7 +69,7 @@
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -80,4 +80,8 @@
@@ -72,4 +72,8 @@
"Custom New Tab Page",
"Allows setting a custom URL for the new tab page. Value can be internal (e.g. `about:blank` or `chrome://new-tab-page`), external (e.g. `example.com`), or local (e.g. `file:///tmp/startpage.html`). This applies for incognito windows as well when not set to a `chrome://` internal page. ungoogled-chromium flag",
kOsDesktop, ORIGIN_LIST_VALUE_TYPE("custom-ntp", "")},
@@ -1,74 +0,0 @@
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -1644,7 +1644,8 @@ void BrowserCommandController::InitComma
command_updater_.UpdateCommandEnabled(IDC_WINDOW_CLOSE_OTHER_TABS,
normal_window);
- const bool enable_tab_search_commands = browser_->is_type_normal();
+ const bool enable_tab_search_commands = browser_->is_type_normal() &&
+ !base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button");
command_updater_.UpdateCommandEnabled(IDC_TAB_SEARCH,
enable_tab_search_commands);
command_updater_.UpdateCommandEnabled(IDC_TAB_SEARCH_CLOSE,
--- a/chrome/browser/ui/ui_features.cc
+++ b/chrome/browser/ui/ui_features.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/ui_features.h"
+#include "base/command_line.h"
#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
#include "base/time/time.h"
@@ -656,6 +657,10 @@ static std::string GetCountryCode() {
}
bool HasTabSearchToolbarButton() {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button")) {
+ return false;
+ }
+
static const bool is_tab_search_moving = [] {
if (GetCountryCode() == "us" &&
base::FeatureList::IsEnabled(
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -4475,6 +4475,9 @@ BookmarkBar::State BrowserView::bookmark
}
void BrowserView::UpdateTabSearchBubbleHost() {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button")) {
+ return;
+ }
if (!GetIsNormalType()) {
return;
}
--- a/chrome/browser/ui/views/frame/tab_strip_region_view.cc
+++ b/chrome/browser/ui/views/frame/tab_strip_region_view.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/views/frame/tab_strip_region_view.h"
+#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/single_thread_task_runner.h"
@@ -209,6 +210,7 @@ TabStripRegionView::TabStripRegionView(s
std::unique_ptr<TabStripActionContainer> tab_strip_action_container;
std::unique_ptr<ProductSpecificationsButton> product_specifications_button;
if (browser &&
+ !base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button") &&
(browser->GetType() == BrowserWindowInterface::Type::TYPE_NORMAL)) {
if (features::HasTabSearchToolbarButton()) {
tab_strip_action_container = std::make_unique<TabStripActionContainer>(
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -60,4 +60,8 @@
"Clear data on exit",
"Clears all browsing data on exit. ungoogled-chromium flag",
kOsDesktop, FEATURE_VALUE_TYPE(features::kClearDataOnExit)},
+ {"remove-tabsearch-button",
+ "Remove Tabsearch Button",
+ "Removes the tabsearch button from the tabstrip. ungoogled-chromium flag",
+ kOsDesktop, SINGLE_VALUE_TYPE("remove-tabsearch-button")},
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
@@ -1,6 +1,6 @@
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -92,4 +92,8 @@
@@ -84,4 +84,8 @@
"Disable GREASE for TLS",
"Turn off GREASE (Generate Random Extensions And Sustain Extensibility) for TLS connections. ungoogled-chromium flag.",
kOsAll, SINGLE_VALUE_TYPE("disable-grease-tls")},
@@ -1,29 +0,0 @@
--- a/chrome/browser/sharing_hub/sharing_hub_features.cc
+++ b/chrome/browser/sharing_hub/sharing_hub_features.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/sharing_hub/sharing_hub_features.h"
+#include "base/command_line.h"
#include "build/build_config.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/pref_names.h"
@@ -36,6 +37,7 @@ bool ScreenshotsDisabledByPolicy(content
} // namespace
bool SharingHubOmniboxEnabled(content::BrowserContext* context) {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("disable-sharing-hub")) return false;
#if BUILDFLAG(IS_CHROMEOS)
return false;
#else
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -96,4 +96,8 @@
"Custom HTTP Accept Header",
"Set a custom value for the Accept header which is sent by the browser with every HTTP request. (e.g. `text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8`). ungoogled-chromium flag.",
kOsAll, ORIGIN_LIST_VALUE_TYPE("http-accept-header", "")},
+ {"disable-sharing-hub",
+ "Disable Sharing Hub",
+ "Disables the sharing hub button. ungoogled-chromium flag.",
+ kOsDesktop, SINGLE_VALUE_TYPE("disable-sharing-hub")},
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
@@ -1,6 +1,6 @@
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -88,4 +88,8 @@
@@ -80,4 +80,8 @@
"Hide tab close buttons",
"Hides the close buttons on tabs. ungoogled-chromium flag.",
kOsDesktop, SINGLE_VALUE_TYPE("hide-tab-close-buttons")},
@@ -46,7 +46,7 @@
if (!HasAnyExtensions()) {
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -104,4 +104,8 @@
@@ -92,4 +92,8 @@
"Disable link drag",
"Prevents dragging of links and selected text. ungoogled-chromium flag.",
kOsDesktop, FEATURE_VALUE_TYPE(blink::features::kDisableLinkDrag)},
@@ -25,7 +25,7 @@
return !IsRunningInAppMode();
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -108,4 +108,8 @@
@@ -96,4 +96,8 @@
"Hide Extensions Menu",
"Hides the extensions container. This includes the puzzle piece icon as well as any pinned extensions. ungoogled-chromium flag.",
kOsDesktop, SINGLE_VALUE_TYPE("hide-extensions-menu")},
@@ -23,7 +23,7 @@
}
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -84,4 +84,8 @@
@@ -76,4 +76,8 @@
"Tab Hover Cards",
"Allows removing the tab hover cards or using a tooltip as a replacement. ungoogled-chromium flag.",
kOsDesktop, MULTI_VALUE_TYPE(kTabHoverCards)},
@@ -1,6 +1,6 @@
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -144,4 +144,8 @@
@@ -132,4 +132,8 @@
"Spoof WebGL Info",
"Return generic values for WebGLDebugRendererInfo to remove a potential data leak while preventing potential website breakage. ungoogled-chromium flag.",
kOsAll, FEATURE_WITH_PARAMS_VALUE_TYPE(blink::features::kSpoofWebGLInfo, kSpoofWebGLChoices, "SpoofWebGLInfo")},
@@ -1,6 +1,6 @@
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -128,4 +128,8 @@
@@ -116,4 +116,8 @@
"Minimal Referrers",
"Removes all cross-origin referrers and strips same-origin referrers down to the origin. Has lower precedence than remove-cross-origin-referrers. ungoogled-chromium flag.",
kOsAll, FEATURE_VALUE_TYPE(network::features::kMinimalReferrers)},
@@ -1,6 +1,6 @@
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -132,4 +132,8 @@
@@ -120,4 +120,8 @@
"Reduced System Info",
"Reduces the amount of system information obatainable through headers and javascript, also causes hardwareConcurrency to respond with two cores. ungoogled-chromium flag.",
kOsAll, FEATURE_VALUE_TYPE(blink::features::kReducedSystemInfo)},
@@ -47,7 +47,7 @@
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -140,4 +140,8 @@
@@ -128,4 +128,8 @@
"Enforce Certificate Transparency",
"Enforce Certificate Transparency for certificates that sites present. This is enabled by default. ungoogled-chromium flag.",
kOsAll, FEATURE_VALUE_TYPE(features::kCertificateTransparencyAskBeforeEnabling)},
@@ -1,6 +1,6 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -5210,10 +5210,12 @@ const FeatureEntry::FeatureVariation kPr
@@ -5225,10 +5225,12 @@ const FeatureEntry::FeatureVariation kPr
#include "chrome/browser/ungoogled_flag_choices.h"
#include "chrome/browser/bromite_flag_choices.h"
#include "chrome/browser/ungoogled_platform_flag_choices.h"
@@ -1,6 +1,6 @@
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -116,4 +116,16 @@
@@ -104,4 +104,16 @@
"Enable themes in Incognito mode",
"Allows themes to override Google's built-in Incognito theming. ungoogled-chromium flag.",
kOsDesktop, SINGLE_VALUE_TYPE("enable-incognito-themes")},
@@ -1,6 +1,6 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -5206,7 +5206,13 @@ const FeatureEntry::FeatureVariation kPr
@@ -5221,7 +5221,13 @@ const FeatureEntry::FeatureVariation kPr
// calculate and verify checksum.
//
// When adding a new choice, add it to the end of the list.
@@ -1,247 +0,0 @@
# Disables file download quarantining
--- a/components/download/internal/common/base_file.cc
+++ b/components/download/internal/common/base_file.cc
@@ -26,7 +26,6 @@
#include "components/download/public/common/download_interrupt_reasons_utils.h"
#include "components/download/public/common/download_item.h"
#include "components/download/public/common/download_stats.h"
-#include "components/services/quarantine/quarantine.h"
#include "crypto/hash.h"
#include "crypto/secure_hash.h"
@@ -538,94 +537,10 @@ DownloadInterruptReason BaseFile::Publis
}
#endif // BUILDFLAG(IS_ANDROID)
-namespace {
-
-DownloadInterruptReason QuarantineFileResultToReason(
- quarantine::mojom::QuarantineFileResult result) {
- switch (result) {
- case quarantine::mojom::QuarantineFileResult::OK:
- return DOWNLOAD_INTERRUPT_REASON_NONE;
- case quarantine::mojom::QuarantineFileResult::VIRUS_INFECTED:
- return DOWNLOAD_INTERRUPT_REASON_FILE_VIRUS_INFECTED;
- case quarantine::mojom::QuarantineFileResult::SECURITY_CHECK_FAILED:
- return DOWNLOAD_INTERRUPT_REASON_FILE_SECURITY_CHECK_FAILED;
- case quarantine::mojom::QuarantineFileResult::BLOCKED_BY_POLICY:
- return DOWNLOAD_INTERRUPT_REASON_FILE_BLOCKED;
- case quarantine::mojom::QuarantineFileResult::ACCESS_DENIED:
- return DOWNLOAD_INTERRUPT_REASON_FILE_ACCESS_DENIED;
-
- case quarantine::mojom::QuarantineFileResult::FILE_MISSING:
- // Don't have a good interrupt reason here. This return code means that
- // the file at |full_path_| went missing before QuarantineFile got to
- // look at it. Not expected to happen, but we've seen instances where a
- // file goes missing immediately after BaseFile closes the handle.
- //
- // Intentionally using a different error message than
- // SECURITY_CHECK_FAILED in order to distinguish the two.
- return DOWNLOAD_INTERRUPT_REASON_FILE_FAILED;
-
- case quarantine::mojom::QuarantineFileResult::ANNOTATION_FAILED:
- // This means that the mark-of-the-web couldn't be applied. The file is
- // already on the file system under its final target name.
- //
- // Causes of failed annotations typically aren't transient. E.g. the
- // target file system may not support extended attributes or alternate
- // streams. We are going to allow these downloads to progress on the
- // assumption that failures to apply MOTW can't reliably be introduced
- // remotely.
- return DOWNLOAD_INTERRUPT_REASON_NONE;
- }
- return DOWNLOAD_INTERRUPT_REASON_FILE_FAILED;
-}
-
-} // namespace
-
// static
GURL BaseFile::GetEffectiveAuthorityURL(const GURL& source_url,
const GURL& referrer_url) {
- if (source_url.is_valid()) {
- // http{,s} has an authority and are supported.
- if (source_url.SchemeIsHTTPOrHTTPS())
- return source_url;
-
- // If the download source is file:// ideally we should copy the MOTW from
- // the original file, but given that Chrome/Chromium places strict
- // restrictions on which schemes can reference file:// URLs, this code is
- // going to assume that at this point it's okay to treat this download as
- // being from the local system.
- if (source_url.SchemeIsFile())
return source_url;
-
- // ftp:// has an authority.
- if (source_url.SchemeIs(url::kFtpScheme))
- return source_url;
-
- if (source_url.SchemeIs(url::kBlobScheme))
- return url::Origin::Create(source_url).GetURL();
- }
-
- if (referrer_url.is_valid() && referrer_url.SchemeIsHTTPOrHTTPS())
- return referrer_url;
-
- return GURL();
-}
-
-void BaseFile::OnFileQuarantined(
- quarantine::mojom::QuarantineFileResult result) {
- DCHECK(on_annotation_done_callback_);
- quarantine_service_.reset();
- std::move(on_annotation_done_callback_)
- .Run(QuarantineFileResultToReason(result));
-}
-
-void BaseFile::OnQuarantineServiceError(const GURL& source_url,
- const GURL& referrer_url) {
-#if BUILDFLAG(IS_WIN)
- OnFileQuarantined(quarantine::SetInternetZoneIdentifierDirectly(
- full_path_, source_url, referrer_url));
-#else // !BUILDFLAG(IS_WIN)
- NOTREACHED() << "In-process quarantine service should not have failed.";
-#endif // !BUILDFLAG(IS_WIN)
}
void BaseFile::AnnotateWithSourceInformation(
@@ -635,32 +550,8 @@ void BaseFile::AnnotateWithSourceInforma
const std::optional<url::Origin>& request_initiator,
mojo::PendingRemote<quarantine::mojom::Quarantine> remote_quarantine,
OnAnnotationDoneCallback on_annotation_done_callback) {
- GURL authority_url = GetEffectiveAuthorityURL(source_url, referrer_url);
- if (!remote_quarantine) {
-#if BUILDFLAG(IS_WIN)
- quarantine::mojom::QuarantineFileResult result =
- quarantine::SetInternetZoneIdentifierDirectly(full_path_, authority_url,
- referrer_url);
-#else
- quarantine::mojom::QuarantineFileResult result =
- quarantine::mojom::QuarantineFileResult::ANNOTATION_FAILED;
-#endif
- std::move(on_annotation_done_callback)
- .Run(QuarantineFileResultToReason(result));
- } else {
- quarantine_service_.Bind(std::move(remote_quarantine));
-
- on_annotation_done_callback_ = std::move(on_annotation_done_callback);
-
- quarantine_service_.set_disconnect_handler(base::BindOnce(
- &BaseFile::OnQuarantineServiceError, weak_factory_.GetWeakPtr(),
- authority_url, referrer_url));
-
- quarantine_service_->QuarantineFile(
- full_path_, authority_url, referrer_url, request_initiator, client_guid,
- base::BindOnce(&BaseFile::OnFileQuarantined,
- weak_factory_.GetWeakPtr()));
- }
+ std::move(on_annotation_done_callback)
+ .Run(DOWNLOAD_INTERRUPT_REASON_NONE);
}
} // namespace download
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -139,7 +139,6 @@ source_set("browser") {
"//components/persistent_cache",
"//components/power_monitor",
"//components/services/filesystem:lib",
- "//components/services/quarantine",
"//components/services/storage",
"//components/services/storage:filesystem_proxy_factory",
"//components/services/storage/dom_storage:local_storage_proto",
--- a/content/browser/file_system_access/file_system_access_safe_move_helper.cc
+++ b/content/browser/file_system_access/file_system_access_safe_move_helper.cc
@@ -14,7 +14,6 @@
#include "base/task/thread_pool.h"
#include "base/thread_annotations.h"
#include "build/build_config.h"
-#include "components/services/quarantine/quarantine.h"
#include "content/browser/file_system_access/features.h"
#include "content/browser/file_system_access/file_system_access_error.h"
#include "content/public/browser/content_browser_client.h"
@@ -231,22 +230,9 @@ void FileSystemAccessSafeMoveHelper::Did
// not exist anymore. In case of error, the source file URL will point to a
// valid filesystem location.
base::OnceCallback<void(base::File::Error)> result_callback;
- if (RequireQuarantine()) {
- GURL referrer_url = manager_->is_off_the_record() ? GURL() : context_.url;
- mojo::Remote<quarantine::mojom::Quarantine> quarantine_remote;
- if (quarantine_connection_callback_) {
- quarantine_connection_callback_.Run(
- quarantine_remote.BindNewPipeAndPassReceiver());
- }
- result_callback =
- base::BindOnce(&FileSystemAccessSafeMoveHelper::DidFileDoQuarantine,
- weak_factory_.GetWeakPtr(), dest_url(), referrer_url,
- std::move(quarantine_remote));
- } else {
result_callback =
base::BindOnce(&FileSystemAccessSafeMoveHelper::DidFileSkipQuarantine,
weak_factory_.GetWeakPtr());
- }
manager_->DoFileSystemOperation(
FROM_HERE, &storage::FileSystemOperationRunner::Move,
std::move(result_callback), source_url(), dest_url(), options_,
@@ -263,7 +249,6 @@ void FileSystemAccessSafeMoveHelper::Did
void FileSystemAccessSafeMoveHelper::DidFileDoQuarantine(
const storage::FileSystemURL& target_url,
const GURL& referrer_url,
- mojo::Remote<quarantine::mojom::Quarantine> quarantine_remote,
base::File::Error result) {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
@@ -294,40 +279,9 @@ void FileSystemAccessSafeMoveHelper::Did
referrer_url.is_valid() && referrer_url.SchemeIsHTTPOrHTTPS()
? referrer_url
: GURL();
-
- if (quarantine_remote) {
- quarantine::mojom::Quarantine* raw_quarantine = quarantine_remote.get();
- raw_quarantine->QuarantineFile(
- target_url.path(), authority_url, referrer_url,
- // TODO(crbug.com/351165321): Consider propagating request_initiator
- // information here.
- /*request_initiator=*/std::nullopt,
- GetContentClient()
- ->browser()
- ->GetApplicationClientGUIDForQuarantineCheck(),
- mojo::WrapCallbackWithDefaultInvokeIfNotRun(
- base::BindOnce(&FileSystemAccessSafeMoveHelper::DidAnnotateFile,
- weak_factory_.GetWeakPtr(),
- std::move(quarantine_remote)),
- quarantine::mojom::QuarantineFileResult::ANNOTATION_FAILED));
- } else {
-#if BUILDFLAG(IS_WIN)
- base::ThreadPool::PostTaskAndReplyWithResult(
- FROM_HERE, {base::MayBlock()},
- base::BindOnce(&quarantine::SetInternetZoneIdentifierDirectly,
- target_url.path(), authority_url, referrer_url),
- base::BindOnce(&FileSystemAccessSafeMoveHelper::DidAnnotateFile,
- weak_factory_.GetWeakPtr(),
- std::move(quarantine_remote)));
-#else
- DidAnnotateFile(std::move(quarantine_remote),
- quarantine::mojom::QuarantineFileResult::ANNOTATION_FAILED);
-#endif
- }
}
void FileSystemAccessSafeMoveHelper::DidAnnotateFile(
- mojo::Remote<quarantine::mojom::Quarantine> quarantine_remote,
quarantine::mojom::QuarantineFileResult result) {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
--- a/content/browser/file_system_access/file_system_access_safe_move_helper.h
+++ b/content/browser/file_system_access/file_system_access_safe_move_helper.h
@@ -66,10 +66,8 @@ class CONTENT_EXPORT FileSystemAccessSaf
void DidFileDoQuarantine(
const storage::FileSystemURL& target_url,
const GURL& referrer_url,
- mojo::Remote<quarantine::mojom::Quarantine> quarantine_remote,
base::File::Error result);
void DidAnnotateFile(
- mojo::Remote<quarantine::mojom::Quarantine> quarantine_remote,
quarantine::mojom::QuarantineFileResult result);
void ComputeHashForSourceFile(HashCallback callback);
@@ -11,7 +11,7 @@
base::FEATURE_DISABLED_BY_DEFAULT);
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -136,4 +136,8 @@
@@ -124,4 +124,8 @@
"Remove Client Hints",
"Removes client hints (information sent to servers about your system, similar to a user agent). ungoogled-chromium flag.",
kOsAll, FEATURE_VALUE_TYPE(blink::features::kRemoveClientHints)},
@@ -1,112 +0,0 @@
# Enable extra locales not normally shipped with Chromium on desktop
--- a/build/config/locales.gni
+++ b/build/config/locales.gni
@@ -186,12 +186,6 @@ _non_android_locales = [ "cy" ]
# Setup |platform_pak_locales| for each platform.
platform_pak_locales = all_chrome_locales
-if (is_android) {
- platform_pak_locales -= _non_android_locales
- extended_locales -= _non_android_locales
-} else {
- platform_pak_locales -= extended_locales
-}
# The base list for all platforms except Android excludes the extended locales.
# Add or subtract platform specific locales below.
--- a/chrome/app/resources/locale_settings_linux.grd
+++ b/chrome/app/resources/locale_settings_linux.grd
@@ -4,11 +4,11 @@
<output filename="grit/platform_locale_settings.h" type="rc_header">
<emit emit_type='prepend'></emit>
</output>
- <if expr="is_android">
<output filename="platform_locale_settings_as.pak" type="data_package" lang="as" />
<output filename="platform_locale_settings_az.pak" type="data_package" lang="az" />
<output filename="platform_locale_settings_be.pak" type="data_package" lang="be" />
<output filename="platform_locale_settings_bs.pak" type="data_package" lang="bs" />
+ <output filename="platform_locale_settings_cy.pak" type="data_package" lang="cy" />
<output filename="platform_locale_settings_eu.pak" type="data_package" lang="eu" />
<output filename="platform_locale_settings_fr-CA.pak" type="data_package" lang="fr-CA" />
<output filename="platform_locale_settings_gl.pak" type="data_package" lang="gl" />
@@ -31,7 +31,6 @@
<output filename="platform_locale_settings_uz.pak" type="data_package" lang="uz" />
<output filename="platform_locale_settings_zh-HK.pak" type="data_package" lang="zh-HK" />
<output filename="platform_locale_settings_zu.pak" type="data_package" lang="zu" />
- </if>
<output filename="platform_locale_settings_af.pak" type="data_package" lang="af" />
<output filename="platform_locale_settings_am.pak" type="data_package" lang="am" />
<output filename="platform_locale_settings_ar.pak" type="data_package" lang="ar" />
--- a/chrome/app/resources/locale_settings_mac.grd
+++ b/chrome/app/resources/locale_settings_mac.grd
@@ -4,6 +4,33 @@
<output filename="grit/platform_locale_settings.h" type="rc_header">
<emit emit_type='prepend'></emit>
</output>
+ <output filename="platform_locale_settings_as.pak" type="data_package" lang="as" />
+ <output filename="platform_locale_settings_az.pak" type="data_package" lang="az" />
+ <output filename="platform_locale_settings_be.pak" type="data_package" lang="be" />
+ <output filename="platform_locale_settings_bs.pak" type="data_package" lang="bs" />
+ <output filename="platform_locale_settings_cy.pak" type="data_package" lang="cy" />
+ <output filename="platform_locale_settings_eu.pak" type="data_package" lang="eu" />
+ <output filename="platform_locale_settings_fr-CA.pak" type="data_package" lang="fr-CA" />
+ <output filename="platform_locale_settings_gl.pak" type="data_package" lang="gl" />
+ <output filename="platform_locale_settings_hy.pak" type="data_package" lang="hy" />
+ <output filename="platform_locale_settings_is.pak" type="data_package" lang="is" />
+ <output filename="platform_locale_settings_ka.pak" type="data_package" lang="ka" />
+ <output filename="platform_locale_settings_kk.pak" type="data_package" lang="kk" />
+ <output filename="platform_locale_settings_km.pak" type="data_package" lang="km" />
+ <output filename="platform_locale_settings_ky.pak" type="data_package" lang="ky" />
+ <output filename="platform_locale_settings_lo.pak" type="data_package" lang="lo" />
+ <output filename="platform_locale_settings_mk.pak" type="data_package" lang="mk" />
+ <output filename="platform_locale_settings_mn.pak" type="data_package" lang="mn" />
+ <output filename="platform_locale_settings_my.pak" type="data_package" lang="my" />
+ <output filename="platform_locale_settings_ne.pak" type="data_package" lang="ne" />
+ <output filename="platform_locale_settings_or.pak" type="data_package" lang="or" />
+ <output filename="platform_locale_settings_pa.pak" type="data_package" lang="pa" />
+ <output filename="platform_locale_settings_si.pak" type="data_package" lang="si" />
+ <output filename="platform_locale_settings_sq.pak" type="data_package" lang="sq" />
+ <output filename="platform_locale_settings_sr-Latn.pak" type="data_package" lang="sr-Latn" />
+ <output filename="platform_locale_settings_uz.pak" type="data_package" lang="uz" />
+ <output filename="platform_locale_settings_zh-HK.pak" type="data_package" lang="zh-HK" />
+ <output filename="platform_locale_settings_zu.pak" type="data_package" lang="zu" />
<output filename="platform_locale_settings_af.pak" type="data_package" lang="af" />
<output filename="platform_locale_settings_am.pak" type="data_package" lang="am" />
<output filename="platform_locale_settings_ar.pak" type="data_package" lang="ar" />
--- a/chrome/app/resources/locale_settings_win.grd
+++ b/chrome/app/resources/locale_settings_win.grd
@@ -4,6 +4,33 @@
<output filename="grit/platform_locale_settings.h" type="rc_header">
<emit emit_type='prepend'></emit>
</output>
+ <output filename="platform_locale_settings_as.pak" type="data_package" lang="as" />
+ <output filename="platform_locale_settings_az.pak" type="data_package" lang="az" />
+ <output filename="platform_locale_settings_be.pak" type="data_package" lang="be" />
+ <output filename="platform_locale_settings_bs.pak" type="data_package" lang="bs" />
+ <output filename="platform_locale_settings_cy.pak" type="data_package" lang="cy" />
+ <output filename="platform_locale_settings_eu.pak" type="data_package" lang="eu" />
+ <output filename="platform_locale_settings_fr-CA.pak" type="data_package" lang="fr-CA" />
+ <output filename="platform_locale_settings_gl.pak" type="data_package" lang="gl" />
+ <output filename="platform_locale_settings_hy.pak" type="data_package" lang="hy" />
+ <output filename="platform_locale_settings_is.pak" type="data_package" lang="is" />
+ <output filename="platform_locale_settings_ka.pak" type="data_package" lang="ka" />
+ <output filename="platform_locale_settings_kk.pak" type="data_package" lang="kk" />
+ <output filename="platform_locale_settings_km.pak" type="data_package" lang="km" />
+ <output filename="platform_locale_settings_ky.pak" type="data_package" lang="ky" />
+ <output filename="platform_locale_settings_lo.pak" type="data_package" lang="lo" />
+ <output filename="platform_locale_settings_mk.pak" type="data_package" lang="mk" />
+ <output filename="platform_locale_settings_mn.pak" type="data_package" lang="mn" />
+ <output filename="platform_locale_settings_my.pak" type="data_package" lang="my" />
+ <output filename="platform_locale_settings_ne.pak" type="data_package" lang="ne" />
+ <output filename="platform_locale_settings_or.pak" type="data_package" lang="or" />
+ <output filename="platform_locale_settings_pa.pak" type="data_package" lang="pa" />
+ <output filename="platform_locale_settings_si.pak" type="data_package" lang="si" />
+ <output filename="platform_locale_settings_sq.pak" type="data_package" lang="sq" />
+ <output filename="platform_locale_settings_sr-Latn.pak" type="data_package" lang="sr-Latn" />
+ <output filename="platform_locale_settings_uz.pak" type="data_package" lang="uz" />
+ <output filename="platform_locale_settings_zh-HK.pak" type="data_package" lang="zh-HK" />
+ <output filename="platform_locale_settings_zu.pak" type="data_package" lang="zu" />
<output filename="platform_locale_settings_af.pak" type="data_package" lang="af" />
<output filename="platform_locale_settings_am.pak" type="data_package" lang="am" />
<output filename="platform_locale_settings_ar.pak" type="data_package" lang="ar" />
@@ -1,77 +0,0 @@
# Add more URL schemes allowed for saving
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -702,11 +702,6 @@ int GetContentRestrictions(const Browser
CoreTabHelper* core_tab_helper =
CoreTabHelper::FromWebContents(current_tab);
content_restrictions = core_tab_helper->content_restrictions();
- NavigationEntry* last_committed_entry =
- current_tab->GetController().GetLastCommittedEntry();
- if (!content::IsSavableURL(last_committed_entry->GetURL())) {
- content_restrictions |= CONTENT_RESTRICTION_SAVE;
- }
}
return content_restrictions;
}
@@ -2050,8 +2045,7 @@ bool CanSavePage(const Browser* browser)
policy::DownloadRestriction::ALL_FILES) {
return false;
}
- return !browser->is_type_devtools() &&
- !(GetContentRestrictions(browser) & CONTENT_RESTRICTION_SAVE);
+ return true;
}
void Print(BrowserWindowInterface* bwi) {
--- a/components/offline_pages/core/offline_page_model.cc
+++ b/components/offline_pages/core/offline_page_model.cc
@@ -21,7 +21,7 @@ OfflinePageModel::SavePageParams::~SaveP
// static
bool OfflinePageModel::CanSaveURL(const GURL& url) {
- return url.is_valid() && url.SchemeIsHTTPOrHTTPS();
+ return url.is_valid();
}
OfflinePageModel::OfflinePageModel() = default;
--- a/content/common/url_schemes.cc
+++ b/content/common/url_schemes.cc
@@ -24,13 +24,21 @@ namespace {
bool g_registered_url_schemes = false;
const char* const kDefaultSavableSchemes[] = {
+ url::kAboutScheme,
+ url::kBlobScheme,
+ url::kContentScheme,
url::kHttpScheme,
url::kHttpsScheme,
url::kFileScheme,
url::kFileSystemScheme,
kChromeDevToolsScheme,
kChromeUIScheme,
- url::kDataScheme
+ url::kDataScheme,
+ url::kJavaScriptScheme,
+ url::kMailToScheme,
+ url::kWsScheme,
+ url::kWssScheme,
+ kViewSourceScheme
};
// These lists are lazily initialized below and are leaked on shutdown to
--- a/content/public/common/url_utils.cc
+++ b/content/public/common/url_utils.cc
@@ -41,11 +41,7 @@ bool HasWebUIOrigin(const url::Origin& o
}
bool IsSavableURL(const GURL& url) {
- for (auto& scheme : GetSavableSchemes()) {
- if (url.SchemeIs(scheme))
- return true;
- }
- return false;
+ return true;
}
bool IsURLHandledByNetworkStack(const GURL& url) {
@@ -1,14 +0,0 @@
--- a/components/dom_distiller/core/css/distilledpage_common.css
+++ b/components/dom_distiller/core/css/distilledpage_common.css
@@ -26,6 +26,11 @@
box-sizing: border-box;
}
+.material-icons {
+ font-family: Material Icons;
+ font-style: normal !important;
+}
+
/* Remove all margins and padding from certain element and add word wrap. */
blockquote,
@@ -1,12 +0,0 @@
# Remove the "--disable-setuid-sandbox" command line flag as a bad flag
--- a/chrome/browser/ui/startup/bad_flags_prompt.cc
+++ b/chrome/browser/ui/startup/bad_flags_prompt.cc
@@ -84,7 +84,6 @@ const char* const kBadFlags[] = {
sandbox::policy::switches::kDisableGpuSandbox,
sandbox::policy::switches::kDisableLandlockSandbox,
sandbox::policy::switches::kDisableSeccompFilterSandbox,
- sandbox::policy::switches::kDisableSetuidSandbox,
sandbox::policy::switches::kNoSandbox,
#if BUILDFLAG(IS_WIN)
sandbox::policy::switches::kAllowThirdPartyModules,
+1 -1
View File
@@ -1 +1 @@
4
9