mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a8f0ed3382 | |||
| 4c8f19152a | |||
| fd840637d0 | |||
| fab928a47d | |||
| 4ab4dc360d | |||
| 2faa7811ca | |||
| 3e38464b94 | |||
| d842e99049 | |||
| 894352c8d5 | |||
| e88afce78d | |||
| 3777d75236 | |||
| a3d44e6cc1 | |||
| 55438d5cbc | |||
| 1135b4aa89 |
@@ -1 +1 @@
|
||||
144.0.7559.59
|
||||
144.0.7559.96
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -34,7 +34,7 @@ approach to change color components.
|
||||
#endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
|
||||
--- a/content/browser/renderer_host/render_process_host_impl.cc
|
||||
+++ b/content/browser/renderer_host/render_process_host_impl.cc
|
||||
@@ -3729,6 +3729,7 @@ void RenderProcessHostImpl::PropagateBro
|
||||
@@ -3723,6 +3723,7 @@ void RenderProcessHostImpl::PropagateBro
|
||||
switches::kFileUrlPathAlias,
|
||||
switches::kFingerprintingClientRectsNoise,
|
||||
switches::kFingerprintingCanvasMeasureTextNoise,
|
||||
|
||||
@@ -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.";
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -1203,7 +1203,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",
|
||||
|
||||
@@ -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_ */
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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_(
|
||||
@@ -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 @@
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -28,3 +28,29 @@
|
||||
label()->SetTextStyle(views::style::STYLE_BODY_4_EMPHASIS);
|
||||
SetCornerRadius(GetLayoutConstant(LOCATION_BAR_CHILD_CORNER_RADIUS));
|
||||
animation_ = std::make_unique<gfx::SlideAnimation>(this);
|
||||
--- 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();
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
- }
|
||||
- }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -461,7 +461,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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
2
|
||||
3
|
||||
|
||||
Reference in New Issue
Block a user