mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Compare commits
22 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 50e0255fe2 | |||
| b735b3ae1d | |||
| 115cf2e55a | |||
| 7022a9e02e | |||
| 9fc0ab1720 | |||
| abb3c6628a | |||
| f62b1281a3 | |||
| f46cc85e7c | |||
| 6f6679d446 | |||
| 662041df27 | |||
| 86710deb6a | |||
| 8f51e9f904 | |||
| f01e2d502a | |||
| 5ed9e4cff3 | |||
| 0fbca2dcbd | |||
| 1da4771ecd | |||
| 7cc782cf18 | |||
| eff0437c87 | |||
| 6eaf98d1c5 | |||
| 739f2f2fd2 | |||
| 1fd0941818 | |||
| 12534c0398 |
@@ -83,8 +83,8 @@ runs:
|
||||
# commit, push, make pr
|
||||
TITLE="update: helium $version_after"
|
||||
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git config user.name "helium-bot"
|
||||
git config user.email "helium-bot@imput.net"
|
||||
git add -u patches helium-chromium revision.txt
|
||||
if ! git status | tail -1 | grep -q 'nothing to commit'; then
|
||||
git commit -m "$TITLE"
|
||||
|
||||
@@ -1 +1 @@
|
||||
141.0.7390.54
|
||||
141.0.7390.65
|
||||
|
||||
@@ -1158,6 +1158,7 @@ chrome/browser/flags/android/chrome_session_state.h
|
||||
chrome/browser/font_prewarmer_tab_helper_browsertest.cc
|
||||
chrome/browser/glic/e2e_test/glic_e2e_test.cc
|
||||
chrome/browser/glic/fre/glic_fre_controller.cc
|
||||
chrome/browser/glic/fre/glic_fre_controller_interactive_uitest.cc
|
||||
chrome/browser/glic/fre/glic_fre_controller_unittest.cc
|
||||
chrome/browser/glic/fre/glic_fre_page_handler.cc
|
||||
chrome/browser/glic/glic_metrics_unittest.cc
|
||||
@@ -1167,6 +1168,7 @@ chrome/browser/glic/host/glic_cookie_synchronizer.cc
|
||||
chrome/browser/glic/host/glic_cookie_synchronizer_unittest.cc
|
||||
chrome/browser/glic/host/glic_page_handler.cc
|
||||
chrome/browser/glic/host/glic_ui.cc
|
||||
chrome/browser/glic/host/glic_ui_interactive_uitest.cc
|
||||
chrome/browser/glic/host/guest_util_unittest.cc
|
||||
chrome/browser/glic/media/glic_media_integration.cc
|
||||
chrome/browser/glic/media/glic_media_integration_unittest.cc
|
||||
@@ -1564,6 +1566,7 @@ chrome/browser/resources/gaia_auth_host/PRESUBMIT.py
|
||||
chrome/browser/resources/gaia_auth_host/authenticator.js
|
||||
chrome/browser/resources/gaia_auth_host/saml_handler.js
|
||||
chrome/browser/resources/gaia_auth_host/saml_password_attributes.js
|
||||
chrome/browser/resources/glic/fre/fre_app_controller.ts
|
||||
chrome/browser/resources/glic/url_pattern.d.ts
|
||||
chrome/browser/resources/glic/webview.ts
|
||||
chrome/browser/resources/hangout_services/manifest_v2.json
|
||||
|
||||
@@ -448,7 +448,7 @@
|
||||
"//chrome/browser/search_engines",
|
||||
--- a/chrome/browser/prefs/browser_prefs.cc
|
||||
+++ b/chrome/browser/prefs/browser_prefs.cc
|
||||
@@ -1907,9 +1907,6 @@ void RegisterLocalState(PrefRegistrySimp
|
||||
@@ -1914,9 +1914,6 @@ void RegisterLocalState(PrefRegistrySimp
|
||||
DeviceOAuth2TokenStoreDesktop::RegisterPrefs(registry);
|
||||
#endif
|
||||
|
||||
@@ -494,7 +494,7 @@
|
||||
#include "chrome/browser/search/background/ntp_background_service_factory.h"
|
||||
#include "chrome/browser/search/background/ntp_custom_background_service_factory.h"
|
||||
#include "chrome/browser/search/instant_service_factory.h"
|
||||
@@ -1056,7 +1054,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
@@ -1060,7 +1058,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
#if BUILDFLAG(CHROME_ROOT_STORE_CERT_MANAGEMENT_UI)
|
||||
net::ServerCertificateDatabaseServiceFactory::GetInstance();
|
||||
#endif
|
||||
@@ -502,7 +502,7 @@
|
||||
#if BUILDFLAG(ENABLE_DICE_SUPPORT)
|
||||
ProfileManagementDisclaimerServiceFactory::GetInstance();
|
||||
#endif
|
||||
@@ -1105,9 +1102,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
@@ -1109,9 +1106,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
OneTimePermissionsTrackerFactory::GetInstance();
|
||||
#endif
|
||||
OpenerHeuristicServiceFactory::GetInstance();
|
||||
@@ -512,7 +512,7 @@
|
||||
OptimizationGuideKeyedServiceFactory::GetInstance();
|
||||
OriginKeyedPermissionActionServiceFactory::GetInstance();
|
||||
OriginTrialsFactory::GetInstance();
|
||||
@@ -1187,13 +1181,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
@@ -1191,13 +1185,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
policy::UserPolicySigninServiceFactory::GetInstance();
|
||||
#endif
|
||||
PolicyBlocklistFactory::GetInstance();
|
||||
@@ -526,7 +526,7 @@
|
||||
PredictionServiceFactory::GetInstance();
|
||||
predictors::AutocompleteActionPredictorFactory::GetInstance();
|
||||
predictors::LoadingPredictorFactory::GetInstance();
|
||||
@@ -1275,10 +1262,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
@@ -1279,10 +1266,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
SafetyHubMenuNotificationServiceFactory::GetInstance();
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
SafetyHubHatsServiceFactory::GetInstance();
|
||||
@@ -537,7 +537,7 @@
|
||||
#endif
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
if (ash::features::IsScannerEnabled()) {
|
||||
@@ -1399,7 +1382,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
@@ -1403,7 +1386,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
TrackingProtectionSettingsFactory::GetInstance();
|
||||
translate::TranslateRankerFactory::GetInstance();
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
|
||||
@@ -1165,7 +1165,7 @@
|
||||
#include "chrome/browser/new_tab_page/modules/v2/authentication/microsoft_auth_page_handler.h"
|
||||
#include "chrome/browser/new_tab_page/modules/v2/calendar/google_calendar_page_handler.h"
|
||||
#include "chrome/browser/new_tab_page/modules/v2/calendar/outlook_calendar_page_handler.h"
|
||||
@@ -2160,7 +2159,6 @@ void RegisterProfilePrefs(user_prefs::Pr
|
||||
@@ -2167,7 +2166,6 @@ void RegisterProfilePrefs(user_prefs::Pr
|
||||
NewTabFooterUI::RegisterProfilePrefs(registry);
|
||||
NewTabPageHandler::RegisterProfilePrefs(registry);
|
||||
NewTabPageUI::RegisterProfilePrefs(registry);
|
||||
@@ -1175,7 +1175,7 @@
|
||||
promos_utils::RegisterProfilePrefs(registry);
|
||||
--- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
|
||||
+++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
|
||||
@@ -878,9 +878,7 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
@@ -879,9 +879,7 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
enterprise_connectors::TelomereEventRouterFactory::GetInstance();
|
||||
}
|
||||
#endif
|
||||
@@ -2518,7 +2518,7 @@
|
||||
}
|
||||
--- a/extensions/browser/extension_registrar.cc
|
||||
+++ b/extensions/browser/extension_registrar.cc
|
||||
@@ -782,103 +782,27 @@ void ExtensionRegistrar::UnblockAllExten
|
||||
@@ -789,103 +789,27 @@ void ExtensionRegistrar::UnblockAllExten
|
||||
|
||||
void ExtensionRegistrar::OnBlocklistStateRemoved(
|
||||
const std::string& extension_id) {
|
||||
|
||||
@@ -1065,7 +1065,7 @@
|
||||
#include "components/signin/public/base/signin_prefs.h"
|
||||
#include "components/signin/public/identity_manager/identity_manager.h"
|
||||
#include "components/site_engagement/content/site_engagement_service.h"
|
||||
@@ -1712,7 +1710,6 @@ void RegisterLocalState(PrefRegistrySimp
|
||||
@@ -1719,7 +1717,6 @@ void RegisterLocalState(PrefRegistrySimp
|
||||
PushMessagingServiceImpl::RegisterPrefs(registry);
|
||||
#endif
|
||||
RegisterScreenshotPrefs(registry);
|
||||
@@ -1073,7 +1073,7 @@
|
||||
search_engines::SearchEngineChoiceService::RegisterLocalStatePrefs(registry);
|
||||
secure_origin_allowlist::RegisterPrefs(registry);
|
||||
segmentation_platform::SegmentationPlatformService::RegisterLocalStatePrefs(
|
||||
@@ -2048,7 +2045,6 @@ void RegisterProfilePrefs(user_prefs::Pr
|
||||
@@ -2055,7 +2052,6 @@ void RegisterProfilePrefs(user_prefs::Pr
|
||||
#if BUILDFLAG(SAFE_BROWSING_AVAILABLE)
|
||||
safe_browsing::file_type::RegisterProfilePrefs(registry);
|
||||
#endif
|
||||
@@ -7464,37 +7464,3 @@
|
||||
{tab_groups::prefs::kAutoPinNewTabGroups,
|
||||
{syncable_prefs_ids::kAutoPinNewTabGroups, syncer::PREFERENCES,
|
||||
PrefSensitivity::kNone, MergeBehavior::kNone}},
|
||||
--- a/content/browser/webid/request_service.cc
|
||||
+++ b/content/browser/webid/request_service.cc
|
||||
@@ -192,31 +192,6 @@ RequestService::~RequestService() {
|
||||
void RequestService::Create(
|
||||
RenderFrameHost* host,
|
||||
mojo::PendingReceiver<blink::mojom::FederatedAuthRequest> receiver) {
|
||||
- CHECK(host);
|
||||
-
|
||||
- BrowserContext* browser_context = host->GetBrowserContext();
|
||||
- raw_ptr<FederatedIdentityApiPermissionContextDelegate>
|
||||
- api_permission_context =
|
||||
- browser_context->GetFederatedIdentityApiPermissionContext();
|
||||
- raw_ptr<FederatedIdentityAutoReauthnPermissionContextDelegate>
|
||||
- auto_reauthn_permission_context =
|
||||
- browser_context->GetFederatedIdentityAutoReauthnPermissionContext();
|
||||
- raw_ptr<FederatedIdentityPermissionContextDelegate> permission_context =
|
||||
- browser_context->GetFederatedIdentityPermissionContext();
|
||||
- raw_ptr<IdentityRegistry> identity_registry =
|
||||
- IdentityRegistry::FromWebContents(WebContents::FromRenderFrameHost(host));
|
||||
-
|
||||
- if (!api_permission_context || !auto_reauthn_permission_context ||
|
||||
- !permission_context) {
|
||||
- return;
|
||||
- }
|
||||
-
|
||||
- // RequestService owns itself. It will self-destruct when a mojo
|
||||
- // interface error occurs, the RenderFrameHost is deleted, or the
|
||||
- // RenderFrameHost navigates to a new document.
|
||||
- new RequestService(*host, api_permission_context,
|
||||
- auto_reauthn_permission_context, permission_context,
|
||||
- identity_registry, std::move(receiver));
|
||||
}
|
||||
|
||||
RequestService& RequestService::CreateForTesting(
|
||||
|
||||
@@ -33,7 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "extensions/browser/blocklist_extension_prefs.h"
|
||||
#include "extensions/browser/delayed_install_manager.h"
|
||||
#include "extensions/browser/disable_reason.h"
|
||||
@@ -533,6 +534,22 @@ void ExtensionRegistrar::AddComponentExt
|
||||
@@ -540,6 +541,22 @@ void ExtensionRegistrar::AddComponentExt
|
||||
}
|
||||
|
||||
AddExtension(extension);
|
||||
|
||||
@@ -308,7 +308,7 @@
|
||||
String BaseRenderingContext2D::lang() const {
|
||||
--- a/third_party/blink/renderer/platform/BUILD.gn
|
||||
+++ b/third_party/blink/renderer/platform/BUILD.gn
|
||||
@@ -1813,6 +1813,7 @@ component("platform") {
|
||||
@@ -1814,6 +1814,7 @@ component("platform") {
|
||||
"//components/paint_preview/common",
|
||||
"//components/search_engines:search_engine_utils",
|
||||
"//components/translate/core/language_detection",
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/components/webui/flags/flags_state.cc
|
||||
+++ b/components/webui/flags/flags_state.cc
|
||||
@@ -234,6 +234,7 @@ std::string GetCombinedOriginListValue(c
|
||||
@@ -233,6 +233,7 @@ std::string GetCombinedOriginListValue(c
|
||||
command_line.GetSwitchValueASCII(command_line_switch);
|
||||
const std::string new_value =
|
||||
flags_storage.GetOriginListFlag(internal_entry_name);
|
||||
@@ -37,7 +37,7 @@
|
||||
return CombineAndSanitizeOriginLists(existing_value, new_value);
|
||||
}
|
||||
|
||||
@@ -484,6 +485,7 @@ void FlagsState::SetOriginListFlag(const
|
||||
@@ -483,6 +484,7 @@ void FlagsState::SetOriginListFlag(const
|
||||
const std::string& value,
|
||||
FlagsStorage* flags_storage) {
|
||||
const std::string new_value =
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|
||||
--- a/components/webui/flags/flags_state.cc
|
||||
+++ b/components/webui/flags/flags_state.cc
|
||||
@@ -235,6 +235,7 @@ std::string GetCombinedOriginListValue(c
|
||||
@@ -234,6 +234,7 @@ std::string GetCombinedOriginListValue(c
|
||||
const std::string new_value =
|
||||
flags_storage.GetOriginListFlag(internal_entry_name);
|
||||
if (command_line_switch == "custom-ntp") return existing_value.empty() ? new_value : existing_value;
|
||||
@@ -19,7 +19,7 @@
|
||||
return CombineAndSanitizeOriginLists(existing_value, new_value);
|
||||
}
|
||||
|
||||
@@ -486,6 +487,7 @@ void FlagsState::SetOriginListFlag(const
|
||||
@@ -485,6 +486,7 @@ void FlagsState::SetOriginListFlag(const
|
||||
FlagsStorage* flags_storage) {
|
||||
const std::string new_value =
|
||||
internal_name == "custom-ntp" ? value :
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
CloseTabs({GetWebContentsAt(index)}, close_types);
|
||||
}
|
||||
|
||||
@@ -3020,9 +3025,13 @@ TabStripModel::GetGroupsDestroyedFromRem
|
||||
@@ -3028,9 +3033,13 @@ TabStripModel::GetGroupsDestroyedFromRem
|
||||
void TabStripModel::ExecuteCloseTabsByIndices(
|
||||
base::RepeatingCallback<std::vector<int>()> get_indices_to_close,
|
||||
uint32_t close_types) {
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
--- a/components/webui/flags/flags_state.cc
|
||||
+++ b/components/webui/flags/flags_state.cc
|
||||
@@ -31,6 +31,7 @@
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
#include "base/values.h"
|
||||
#include "build/build_config.h"
|
||||
+#include "chrome/browser/unexpire_flags.h"
|
||||
#include "components/variations/field_trial_config/field_trial_util.h"
|
||||
#include "components/variations/variations_associated_data.h"
|
||||
#include "components/variations/variations_switches.h"
|
||||
@@ -686,14 +687,19 @@ void FlagsState::GetFlagFeatureEntries(
|
||||
int current_platform = GetCurrentPlatform();
|
||||
|
||||
for (const FeatureEntry& entry : feature_entries_) {
|
||||
+ std::string desc = entry.visible_description;
|
||||
if (skip_feature_entry.Run(entry)) {
|
||||
+ if (flags::IsFlagExpired(flags_storage, entry.internal_name)) {
|
||||
+ desc.insert(0, "!!! NOTE: THIS FLAG IS EXPIRED AND MAY STOP FUNCTIONING OR BE REMOVED SOON !!! ");
|
||||
+ } else {
|
||||
continue;
|
||||
+ }
|
||||
}
|
||||
|
||||
base::Value::Dict data;
|
||||
data.Set("internal_name", entry.internal_name);
|
||||
data.Set("name", entry.visible_name);
|
||||
- data.Set("description", entry.visible_description);
|
||||
+ data.Set("description", desc);
|
||||
|
||||
base::Value::List supported_platforms;
|
||||
AddOsStrings(entry.supported_platforms, &supported_platforms);
|
||||
@@ -1102,7 +1108,9 @@ bool FlagsState::IsSupportedFeature(cons
|
||||
continue;
|
||||
}
|
||||
if (delegate_ && delegate_->ShouldExcludeFlag(storage, entry)) {
|
||||
+ if (!flags::IsFlagExpired(storage, entry.internal_name)) {
|
||||
continue;
|
||||
+ }
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -558,15 +558,6 @@
|
||||
|
||||
html_source->AddString("discardRingTreatmentLearnMoreUrl",
|
||||
chrome::kDiscardRingTreatmentLearnMoreUrl);
|
||||
@@ -3533,7 +3508,7 @@ void AddSiteSettingsStrings(content::Web
|
||||
base::FeatureList::IsEnabled(blink::features::kWebPrinting));
|
||||
|
||||
html_source->AddBoolean("enableFederatedIdentityApiContentSetting",
|
||||
- base::FeatureList::IsEnabled(features::kFedCm));
|
||||
+ false);
|
||||
|
||||
base::CommandLine& cmd = *base::CommandLine::ForCurrentProcess();
|
||||
html_source->AddBoolean(
|
||||
--- a/chrome/browser/ui/webui/settings/settings_ui.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_ui.cc
|
||||
@@ -576,27 +576,20 @@ SettingsUI::SettingsUI(content::WebUI* w
|
||||
|
||||
@@ -0,0 +1,144 @@
|
||||
--- a/chrome/browser/extensions/api/storage/managed_value_store_cache.cc
|
||||
+++ b/chrome/browser/extensions/api/storage/managed_value_store_cache.cc
|
||||
@@ -94,9 +94,11 @@ class ManagedValueStoreCache::ExtensionT
|
||||
|
||||
// Loads the schemas of the |extensions| and passes a ComponentMap to
|
||||
// Register().
|
||||
+ void LoadSchemasOnUIThread(ExtensionSet extensions);
|
||||
static void LoadSchemasOnFileTaskRunner(ExtensionSet extensions,
|
||||
base::WeakPtr<ExtensionTracker> self);
|
||||
- void Register(const policy::ComponentMap* components);
|
||||
+ void Register(const policy::ComponentMap* components,
|
||||
+ ExtensionSet extensions);
|
||||
|
||||
raw_ptr<Profile> profile_;
|
||||
policy::PolicyDomain policy_domain_;
|
||||
@@ -175,6 +177,22 @@ bool ManagedValueStoreCache::ExtensionTr
|
||||
return extension->manifest()->FindPath(manifest_keys::kStorageManagedSchema);
|
||||
}
|
||||
|
||||
+void ManagedValueStoreCache::ExtensionTracker::LoadSchemasOnUIThread(ExtensionSet extensions) {
|
||||
+ auto components = std::make_unique<policy::ComponentMap>();
|
||||
+
|
||||
+ for (const auto& extension : extensions) {
|
||||
+ if (!Manifest::IsComponentLocation(extension->location())) {
|
||||
+ continue;
|
||||
+ }
|
||||
+
|
||||
+ (*components)[extension->id()] =
|
||||
+ StorageSchemaManifestHandler::GetComponentSchema(extension.get())
|
||||
+ .value_or(policy::Schema());
|
||||
+ }
|
||||
+
|
||||
+ schema_registry_->RegisterComponents(policy_domain_, *components);
|
||||
+}
|
||||
+
|
||||
// static
|
||||
void ManagedValueStoreCache::ExtensionTracker::LoadSchemasOnFileTaskRunner(
|
||||
ExtensionSet extensions,
|
||||
@@ -199,14 +217,21 @@ void ManagedValueStoreCache::ExtensionTr
|
||||
|
||||
content::GetUIThreadTaskRunner({})->PostTask(
|
||||
FROM_HERE, base::BindOnce(&ExtensionTracker::Register, self,
|
||||
- base::Owned(components.release())));
|
||||
+ base::Owned(components.release()),
|
||||
+ std::move(extensions)));
|
||||
}
|
||||
|
||||
void ManagedValueStoreCache::ExtensionTracker::Register(
|
||||
- const policy::ComponentMap* components) {
|
||||
+ const policy::ComponentMap* components,
|
||||
+ ExtensionSet extensions) {
|
||||
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
||||
schema_registry_->RegisterComponents(policy_domain_, *components);
|
||||
|
||||
+ // Our uBlock Origin component has a policy schema, but is
|
||||
+ // not anywhere on the actual filesystem - so we need to pull
|
||||
+ // it out on the UI thread from resources.
|
||||
+ LoadSchemasOnUIThread(std::move(extensions));
|
||||
+
|
||||
// The first SetExtensionsDomainsReady() call is performed after the
|
||||
// ExtensionSystem is ready, even if there are no managed extensions. It will
|
||||
// trigger a loading of the initial policy for any managed extensions, and
|
||||
--- a/chrome/common/extensions/api/storage/storage_schema_manifest_handler.cc
|
||||
+++ b/chrome/common/extensions/api/storage/storage_schema_manifest_handler.cc
|
||||
@@ -15,6 +15,8 @@
|
||||
#include "base/types/expected.h"
|
||||
#include "base/types/expected_macros.h"
|
||||
#include "components/policy/core/common/schema.h"
|
||||
+#include "extensions/browser/extensions_browser_client.h"
|
||||
+#include "extensions/browser/component_extension_resource_manager.h"
|
||||
#include "extensions/common/extension.h"
|
||||
#include "extensions/common/install_warning.h"
|
||||
#include "extensions/common/manifest.h"
|
||||
@@ -23,6 +25,7 @@
|
||||
#include "extensions/common/permissions/api_permission.h"
|
||||
#include "extensions/common/permissions/api_permission_set.h"
|
||||
#include "extensions/common/permissions/permissions_info.h"
|
||||
+#include "ui/base/resource/resource_bundle.h"
|
||||
|
||||
using extensions::manifest_keys::kStorageManagedSchema;
|
||||
|
||||
@@ -34,6 +37,33 @@ StorageSchemaManifestHandler::~StorageSc
|
||||
|
||||
// static
|
||||
base::expected<policy::Schema, std::string>
|
||||
+StorageSchemaManifestHandler::GetComponentSchema(const Extension* extension) {
|
||||
+ auto* manager =
|
||||
+ extensions::ExtensionsBrowserClient::Get()->GetComponentExtensionResourceManager();
|
||||
+ const ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
|
||||
+
|
||||
+ int resource_id;
|
||||
+ std::string path;
|
||||
+ if (const std::string* temp =
|
||||
+ extension->manifest()->FindStringPath(kStorageManagedSchema)) {
|
||||
+ path = *temp;
|
||||
+ } else {
|
||||
+ return base::unexpected(base::StringPrintf(
|
||||
+ "%s does not have a schema path", extension->id()));
|
||||
+ }
|
||||
+
|
||||
+ if (!manager->IsComponentExtensionResource(
|
||||
+ extension->path(), base::FilePath::FromUTF8Unsafe(path), &resource_id)) {
|
||||
+ return base::unexpected(base::StringPrintf(
|
||||
+ "%s/%s is not a component extension resource",
|
||||
+ base::UTF16ToUTF8(extension->path().LossyDisplayName()), path));
|
||||
+ }
|
||||
+
|
||||
+ return policy::Schema::Parse(rb.LoadDataResourceString(resource_id));
|
||||
+}
|
||||
+
|
||||
+// static
|
||||
+base::expected<policy::Schema, std::string>
|
||||
StorageSchemaManifestHandler::GetSchema(const Extension* extension) {
|
||||
std::string path;
|
||||
if (const std::string* temp =
|
||||
--- a/chrome/common/extensions/api/storage/storage_schema_manifest_handler.h
|
||||
+++ b/chrome/common/extensions/api/storage/storage_schema_manifest_handler.h
|
||||
@@ -29,6 +29,8 @@ class StorageSchemaManifestHandler : pub
|
||||
// If the schema is invalid then the Schema returned is invalid too, and
|
||||
// the failure reason is stored in |error|.
|
||||
// This function does file I/O and must be called on a thread that allows I/O.
|
||||
+ static base::expected<policy::Schema, std::string> GetComponentSchema(
|
||||
+ const Extension* extension);
|
||||
static base::expected<policy::Schema, std::string> GetSchema(
|
||||
const Extension* extension);
|
||||
|
||||
--- a/chrome/common/extensions/BUILD.gn
|
||||
+++ b/chrome/common/extensions/BUILD.gn
|
||||
@@ -83,6 +83,7 @@ source_set("extensions") {
|
||||
"//components/url_formatter",
|
||||
"//components/version_info",
|
||||
"//extensions:extensions_resources",
|
||||
+ "//extensions/browser",
|
||||
"//extensions/common",
|
||||
"//extensions/common:common_constants",
|
||||
"//extensions/common:core_api_provider",
|
||||
@@ -90,6 +91,7 @@ source_set("extensions") {
|
||||
"//extensions/strings",
|
||||
"//ui/gfx/geometry",
|
||||
"//ui/message_center/public/cpp",
|
||||
+ "//ui/base",
|
||||
"//url",
|
||||
]
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
--- a/third_party/search_engines_data/resources/definitions/regional_settings.json
|
||||
+++ b/third_party/search_engines_data/resources/definitions/regional_settings.json
|
||||
@@ -10,7 +10,8 @@
|
||||
"&ecosia",
|
||||
"&bing",
|
||||
"&break_stuff_google",
|
||||
- "&qwant"
|
||||
+ "&qwant",
|
||||
+ "&kagi"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -676,7 +676,7 @@
|
||||
|
||||
--- a/components/search_engines/template_url.cc
|
||||
+++ b/components/search_engines/template_url.cc
|
||||
@@ -1689,6 +1689,8 @@ bool TemplateURL::IsBetterThanConflictin
|
||||
@@ -1685,6 +1685,8 @@ bool TemplateURL::IsBetterThanConflictin
|
||||
: base::Time(),
|
||||
// Prefer engines that CANNOT be auto-replaced.
|
||||
!engine->safe_for_autoreplace(),
|
||||
@@ -722,7 +722,7 @@
|
||||
COMPONENT_EXPORT(HELIUM) GURL GetDummyURL();
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1958,6 +1958,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -1956,6 +1956,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"heliumServicesToggle", IDS_SETTINGS_HELIUM_SERVICES_TOGGLE},
|
||||
{"heliumServicesToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION},
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
--- a/ui/base/pointer/touch_ui_controller.cc
|
||||
+++ b/ui/base/pointer/touch_ui_controller.cc
|
||||
@@ -175,13 +175,7 @@ void TouchUiController::TouchUiScoperFor
|
||||
// static
|
||||
TouchUiController* TouchUiController::Get() {
|
||||
static base::NoDestructor<TouchUiController> instance([] {
|
||||
- const std::string switch_value =
|
||||
- base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
|
||||
- switches::kTopChromeTouchUi);
|
||||
- if (switch_value == switches::kTopChromeTouchUiDisabled)
|
||||
- return TouchUiState::kDisabled;
|
||||
- const bool enabled = switch_value == switches::kTopChromeTouchUiEnabled;
|
||||
- return enabled ? TouchUiState::kEnabled : TouchUiState::kAuto;
|
||||
+ return TouchUiState::kDisabled;
|
||||
}());
|
||||
return instance.get();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -724,7 +724,7 @@ bool HasTabSearchToolbarButton() {
|
||||
|
||||
BASE_FEATURE(kNonMilestoneUpdateToast,
|
||||
"NonMilestoneUpdateToast",
|
||||
- base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
+ base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
BASE_FEATURE(kBookmarkTabGroupConversion,
|
||||
"BookmarkTabGroupConversion",
|
||||
@@ -0,0 +1,300 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -13311,11 +13311,278 @@ const FeatureEntry kFeatureEntries[] = {
|
||||
// AboutFlagsHistogramTest unit test to verify this process).
|
||||
};
|
||||
|
||||
+// Flags that either break Helium functionality or are not relevant to Helium
|
||||
+constexpr auto kExcludedFlags = base::MakeFixedFlatSet<std::string_view>({
|
||||
+ // Misc UI features
|
||||
+ "enable-immersive-fullscreen-toolbar",
|
||||
+ "windows11-mica-titlebar",
|
||||
+ "omnibox-toolbelt",
|
||||
+ "webium",
|
||||
+ "webui-omnibox-popup",
|
||||
+ "top-chrome-touch-ui",
|
||||
+
|
||||
+ // Google's broken canvas noising flag,
|
||||
+ // replaced by Helium's fingerprinting-canvas-noise
|
||||
+ "enable-canvas-noise",
|
||||
+
|
||||
+ // Google's fingerprinting protection blocklist
|
||||
+ // Helium blocks fingerprinting by default, and these don't even work
|
||||
+ "enable-fingerprinting-protection-blocklist",
|
||||
+ "enable-fingerprinting-protection-blocklist-incognito",
|
||||
+
|
||||
+ // Google's experimental APIs that don't work in Helium
|
||||
+ // due to missing model binaries
|
||||
+ "translation-api",
|
||||
+
|
||||
+ // NTP
|
||||
+ "omnibox-zero-suggest-prefetching",
|
||||
+ "omnibox-mia-zps",
|
||||
+ "ntp-calendar-module",
|
||||
+ "ntp-drive-module-no-sync-requirement",
|
||||
+ "ntp-module-sign-in-requirement",
|
||||
+ "ntp-ogb-async-bar-parts",
|
||||
+ "ntp-outlook-calendar-module",
|
||||
+ "ntp-sharepoint-module",
|
||||
+ "ntp-tab-groups-module",
|
||||
+ "ntp-tab-groups-module-zero-state",
|
||||
+ "ntp-microsoft-authentication-module",
|
||||
+
|
||||
+ // Google Account & Sync
|
||||
+ "use-sync-sandbox",
|
||||
+ "offer-migration-to-dice-users",
|
||||
+ "web-signin-leads-to-implicitly-signed-in-state",
|
||||
+ "enable-extensions-explicit-browser-signin",
|
||||
+ "enable-history-sync-optin",
|
||||
+ "sync-enable-bookmarks-in-transport-mode",
|
||||
+ "reading-list-enable-sync-transport-mode-upon-sign-in",
|
||||
+ "enable-history-sync-optin-expansion-pill",
|
||||
+ "collaboration-shared-tab-group-account-data",
|
||||
+ "enable-bookmarks-selected-type-on-signin-for-testing",
|
||||
+ "enable-cross-device-pref-tracker",
|
||||
+ "pdf-save-to-drive",
|
||||
+
|
||||
+ // Gemini Nano
|
||||
+ "prompt-api-for-gemini-nano",
|
||||
+ "prompt-api-for-gemini-nano-multimodal-input",
|
||||
+ "summarization-api-for-gemini-nano",
|
||||
+ "writer-api-for-gemini-nano",
|
||||
+ "rewriter-api-for-gemini-nano",
|
||||
+ "proofreader-api-for-gemini-nano",
|
||||
+
|
||||
+ // AI Mode
|
||||
+ "ai-mode-omnibox-entry-point",
|
||||
+ "aim-server-eligibility",
|
||||
+ "hide-aim-omnibox-entrypoint-on-user-input",
|
||||
+ "omnibox-allow-ai-mode-matches",
|
||||
+ "omnibox-aim-shortcut-typed-state",
|
||||
+ "enable-lens-search-aim-m3",
|
||||
+ "ntp-compose-entrypoint",
|
||||
+ "ntp-composebox",
|
||||
+ "composebox-uses-chrome-compose-client",
|
||||
+ "compose-selection-nudge",
|
||||
+
|
||||
+ // Shopping stuff
|
||||
+ "product-specifications",
|
||||
+ "compare-confirmation-toast",
|
||||
+ "shopping-list",
|
||||
+ "shopping-alternate-server",
|
||||
+ "price-tracking-subscription-service-locale-key",
|
||||
+ "price-tracking-subscription-service-product-version",
|
||||
+ "track-by-default-mobile",
|
||||
+ "price-insights",
|
||||
+ "discount-on-navigation",
|
||||
+ "discount-autofill",
|
||||
+ "merchant-trust",
|
||||
+
|
||||
+ // History
|
||||
+ "history-embeddings",
|
||||
+ "history-embeddings-answers",
|
||||
+
|
||||
+ // Optimization Guide
|
||||
+ "optimization-guide-debug-logs",
|
||||
+ "optimization-guide-model-execution",
|
||||
+ "optimization-guide-on-device-model",
|
||||
+ "optimization-guide-personalized-fetching",
|
||||
+ "optimization-guide-push-notifications",
|
||||
+ "optimization-guide-enable-dogfood-logging",
|
||||
+ "privacy-policy-insights",
|
||||
+
|
||||
+ // Google Lens
|
||||
+ "enable-lens-overlay",
|
||||
+ "enable-lens-overlay-image-context-menu-actions",
|
||||
+ "enable-lens-overlay-updated-visuals",
|
||||
+ "enable-lens-overlay-edu-action-chip",
|
||||
+ "enable-lens-overlay-entrypoint-label-alt",
|
||||
+ "enable-lens-overlay-text-selection-context-menu-entrypoint",
|
||||
+ "lens-overlay-omnibox-entry-point",
|
||||
+ "lens-search-side-panel-default-width-change",
|
||||
+ "lens-overlay-permission-bubble-alt",
|
||||
+ "enable-lens-overlay-simplified-selection",
|
||||
+ "enable-lens-overlay-translate-button",
|
||||
+ "enable-lens-overlay-latency-optimizations",
|
||||
+ "enable-lens-overlay-translate-languages",
|
||||
+ "enable-lens-overlay-side-panel-open-in-new-tab",
|
||||
+ "enable-lens-search-side-panel-new-feedback",
|
||||
+ "enable-lens-overlay-back-to-page",
|
||||
+ "enable-lens-overlay-straight-to-srp",
|
||||
+ "enable-lens-overlay-force-empty-csb-query",
|
||||
+ "contextual-search-open-lens-action-uses-thumbnail",
|
||||
+
|
||||
+ // Google Assistant
|
||||
+ "enable-assistant-dsp",
|
||||
+ "enable-assistant-stereo-input",
|
||||
+ "enable-assistant-aec",
|
||||
+
|
||||
+ // User education
|
||||
+ "ntp-middle-slot-promo-dismissal",
|
||||
+ "ntp-mobile-promo",
|
||||
+ "force-ntp-mobile-promo",
|
||||
+ "enable-educational-tip-default-browser-promo-card",
|
||||
+ "force-startup-signin-promo",
|
||||
+ "group-promo-prototype",
|
||||
+ "group-promo-prototype-cpa",
|
||||
+ "avatar-button-sync-promo",
|
||||
+ "replace-sync-promos-with-sign-in-promos-desktop",
|
||||
+ "replace-sync-promos-with-sign-in-promos",
|
||||
+ "clank-default-browser-promo-role-manager",
|
||||
+ "clank-default-browser-promo2",
|
||||
+ "policy-promotion-banner-flag",
|
||||
+ "management-promotion-banner-flag",
|
||||
+ "enable-ntp-browser-promos",
|
||||
+ "mobile-promo-on-desktop",
|
||||
+ "in-product-help-demo-mode-choice",
|
||||
+
|
||||
+ // GLIC (AI agent stuff)
|
||||
+ "glic",
|
||||
+ "glic-z-order-changes",
|
||||
+ "glic-actor",
|
||||
+ "glic-detached",
|
||||
+ "glic-panel-reset-top-chrome-button",
|
||||
+ "glic-panel-reset-on-start",
|
||||
+ "glic-panel-set-position-on-drag",
|
||||
+ "glic-panel-reset-on-session-timeout",
|
||||
+ "glic-panel-reset-size-and-location-on-open",
|
||||
+ "glic-pre-warming",
|
||||
+ "glic-fre-pre-warming",
|
||||
+ "browsing-history-actor-integration-M1",
|
||||
+
|
||||
+ // Safety Hub
|
||||
+ "safety-hub",
|
||||
+ "safety-hub-magic-stack",
|
||||
+ "safety-hub-followup",
|
||||
+ "safety-hub-android-survey",
|
||||
+ "safety-hub-android-survey-v2",
|
||||
+ "safety-hub-weak-reused-passwords",
|
||||
+ "safety-hub-local-passwords-module",
|
||||
+ "safety-hub-unified-passwords-module",
|
||||
+ "safety-hub-one-off-survey",
|
||||
+ "safety-hub-services-on-start-up",
|
||||
+ "safety-hub-disruptive-notification-revocation",
|
||||
+ "safety-hub-unused-permission-revocation-for-all-surfaces",
|
||||
+
|
||||
+ // Privacy Sandbox
|
||||
+ "privacy-sandbox-internals",
|
||||
+ "privacy-sandbox-enrollment-overrides",
|
||||
+ "privacy-sandbox-ads-api-ux-enhancements",
|
||||
+ "privacy-sandbox-ad-topics-content-parity",
|
||||
+ "privacy-guide-ai-settings",
|
||||
+
|
||||
+ // Password Manager
|
||||
+ "biometric-reauth-password-filling",
|
||||
+ "password-manual-fallback-available",
|
||||
+ "save-passwords-contextual-ui",
|
||||
+ "password-form-grouped-affiliations",
|
||||
+ "password-form-clientside-classifier",
|
||||
+ "three-button-password-save-dialog",
|
||||
+ "improved-password-change-service",
|
||||
+ "fill-recovery-password",
|
||||
+ "apply-clientside-model-predictions-for-password-types",
|
||||
+ "enable-site-isolation-for-password-sites",
|
||||
+ "pwm-show-suggestions-on-autofocus",
|
||||
+
|
||||
+ // Reading Mode
|
||||
+ "read-anything-read-aloud",
|
||||
+ "read-anything-read-aloud-phrase-highlighting",
|
||||
+ "read-anything-images-via-algorithm",
|
||||
+ "read-anything-docs-integration",
|
||||
+ "read-anything-docs-load-more-button",
|
||||
+
|
||||
+ // Autofill
|
||||
+ "reintroduce-hybrid-passkey-entry-point",
|
||||
+ "fill-on-account-select",
|
||||
+ "show-autofill-type-predictions",
|
||||
+ "autofill-more-prominent-popup",
|
||||
+ "autofill-payments-field-swapping",
|
||||
+ "autofill-show-bubbles-based-on-priorities",
|
||||
+ "enable-show-autofill-signatures",
|
||||
+ "enable-autofill-credit-card-upload",
|
||||
+ "autofill-enable-offers-in-clank-keyboard-accessory",
|
||||
+ "fedcm-autofill",
|
||||
+ "autofill-enable-ranking-formula-address-profiles",
|
||||
+ "autofill-enable-ranking-formula-credit-cards",
|
||||
+ "sync-autofill-wallet-credential-data",
|
||||
+ "autofill-enable-cvc-storage-and-filling",
|
||||
+ "autofill-enable-prefetching-risk-data-for-retrieval",
|
||||
+ "autofill-enable-fpan-risk-based-authentication",
|
||||
+ "autofill-enable-email-or-loyalty-cards-filling",
|
||||
+ "autofill-enable-loyalty-cards-filling",
|
||||
+ "autofill-enable-syncing-of-loyalty-cards",
|
||||
+ "autofill-enable-vcn-3ds-authentication",
|
||||
+ "autofill-shared-storage-server-card-data",
|
||||
+ "autofill-enable-syncing-of-pix-bank-accounts",
|
||||
+ "autofill-enable-card-benefits-for-american-express",
|
||||
+ "autofill-enable-card-benefits-sync",
|
||||
+ "autofill-sync-ewallet-accounts",
|
||||
+ "autofill-unmask-card-request-timeout",
|
||||
+ "autofill-enable-cvc-storage-and-filling-enhancement",
|
||||
+ "autofill-enable-buy-now-pay-later",
|
||||
+ "autofill-enable-buy-now-pay-later-syncing",
|
||||
+ "autofill-enable-cvc-storage-and-filling-standalone-form-enhancement",
|
||||
+ "autofill-enable-card-benefits-iph",
|
||||
+ "autofill-enable-card-info-runtime-retrieval",
|
||||
+ "autofill-enable-save-and-fill",
|
||||
+ "autofill-improved-labels",
|
||||
+ "autofill-third-party-mode-content-provider",
|
||||
+ "autofill-enable-card-benefits-for-bmo",
|
||||
+ "autofill-enable-allowlist-for-bmo-card-category-benefits",
|
||||
+ "autofill-enable-amount-extraction",
|
||||
+ "autofill-enable-amount-extraction-allowlist",
|
||||
+ "third-party-disable-chrome-autofill-settings-screen",
|
||||
+ "iph-autofill-credit-card-benefit-feature",
|
||||
+ "autofill-enable-new-fop-display-desktop",
|
||||
+ "autofill-enable-amount-extraction-testing",
|
||||
+ "autofill-vcn-enroll-strike-expiry-time",
|
||||
+ "autofill-enable-flat-rate-card-benefits-from-curinos",
|
||||
+ "autofill-enable-multiple-request-in-virtual-card-downstream-enrollment",
|
||||
+ "autofill-require-cvc-for-possible-card-update",
|
||||
+ "disable-autofill-strike-system",
|
||||
+ "autofill-enable-buy-now-pay-later-for-klarna",
|
||||
+ "autofill-enable-downstream-card-awareness-iph",
|
||||
+ "autofill-enable-buy-now-pay-later-for-externally-linked",
|
||||
+ "autofill-enable-separate-pix-preference-item",
|
||||
+ "autofill-manual-testing-data",
|
||||
+ "autofill-enable-support-for-home-and-work",
|
||||
+ "autofill-enable-support-for-name-and-email-profile",
|
||||
+ "autofill-update-context-for-web-contents",
|
||||
+
|
||||
+ // Add new entries above this line and categorize them accordingly.
|
||||
+});
|
||||
+
|
||||
+const base::NoDestructor<std::vector<FeatureEntry>> kHeliumFeatureEntries([] {
|
||||
+ std::vector<FeatureEntry> filtered;
|
||||
+ for (const auto& entry : kFeatureEntries) {
|
||||
+ if (!kExcludedFlags.contains(entry.internal_name)) {
|
||||
+ filtered.push_back(entry);
|
||||
+ }
|
||||
+ }
|
||||
+ return filtered;
|
||||
+}());
|
||||
+
|
||||
class FlagsStateSingleton : public flags_ui::FlagsState::Delegate {
|
||||
public:
|
||||
FlagsStateSingleton()
|
||||
: flags_state_(
|
||||
- std::make_unique<flags_ui::FlagsState>(kFeatureEntries, this)) {}
|
||||
+ std::make_unique<flags_ui::FlagsState>(*kHeliumFeatureEntries, this)) {}
|
||||
FlagsStateSingleton(const FlagsStateSingleton&) = delete;
|
||||
FlagsStateSingleton& operator=(const FlagsStateSingleton&) = delete;
|
||||
~FlagsStateSingleton() override = default;
|
||||
@@ -13334,7 +13601,7 @@ class FlagsStateSingleton : public flags
|
||||
|
||||
void RestoreDefaultState() {
|
||||
flags_state_ =
|
||||
- std::make_unique<flags_ui::FlagsState>(kFeatureEntries, this);
|
||||
+ std::make_unique<flags_ui::FlagsState>(*kHeliumFeatureEntries, this);
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -13659,7 +13926,7 @@ base::span<const FeatureEntry> GetFeatur
|
||||
!entries_for_testing->empty()) {
|
||||
return *entries_for_testing;
|
||||
}
|
||||
- return kFeatureEntries;
|
||||
+ return *kHeliumFeatureEntries;
|
||||
}
|
||||
|
||||
} // namespace testing
|
||||
@@ -0,0 +1,103 @@
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -257,6 +257,9 @@
|
||||
<message name="IDS_SETTINGS_COLOR_SCHEME_MODE" desc="Text of the label for selecting a color scheme mode for the browser.">
|
||||
Mode
|
||||
</message>
|
||||
+ <message name="IDS_SETTINGS_NEW_TAB_NEXT_TO_ACTIVE_BUTTON" desc="Label for the checkbox which enables or disables behaviour of opening new tabs next to current active tab.">
|
||||
+ Open new tabs next to the active tab
|
||||
+ </message>
|
||||
<message name="IDS_SETTINGS_SHOW_HOME_BUTTON" desc="Label for the checkbox which enables or disables showing the home button in the toolbar.">
|
||||
Show home button
|
||||
</message>
|
||||
--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
|
||||
@@ -221,6 +221,10 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
|
||||
(*s_allowlist)[::prefs::kUseCustomChromeFrame] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
#endif
|
||||
+
|
||||
+ (*s_allowlist)[::prefs::kNewTabNextToActive] =
|
||||
+ settings_api::PrefType::kBoolean;
|
||||
+
|
||||
(*s_allowlist)[::prefs::kShowHomeButton] = settings_api::PrefType::kBoolean;
|
||||
(*s_allowlist)[::prefs::kShowForwardButton] =
|
||||
settings_api::PrefType::kBoolean;
|
||||
--- a/chrome/browser/resources/settings/appearance_page/appearance_page.html
|
||||
+++ b/chrome/browser/resources/settings/appearance_page/appearance_page.html
|
||||
@@ -173,6 +173,11 @@
|
||||
label="$i18n{showBookmarksBar}">
|
||||
</settings-toggle-button>
|
||||
|
||||
+ <settings-toggle-button class="hr" id="newTabNextToActive"
|
||||
+ pref="{{prefs.helium.browser.new_tab_next_to_active}}"
|
||||
+ label="$i18n{openNewTabNextToActive}">
|
||||
+ </settings-toggle-button>
|
||||
+
|
||||
<settings-toggle-button class="hr" id="showSavedTabGroups"
|
||||
pref="{{prefs.bookmark_bar.show_tab_groups}}"
|
||||
label="$i18n{showTabGroupsInBookmarksBar}">
|
||||
--- a/chrome/browser/ui/browser_ui_prefs.cc
|
||||
+++ b/chrome/browser/ui/browser_ui_prefs.cc
|
||||
@@ -104,6 +104,8 @@ void RegisterBrowserUserPrefs(user_prefs
|
||||
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF;
|
||||
#endif
|
||||
|
||||
+ registry->RegisterBooleanPref(prefs::kNewTabNextToActive, false);
|
||||
+
|
||||
registry->RegisterBooleanPref(prefs::kHomePageIsNewTabPage, true,
|
||||
pref_registration_flags);
|
||||
registry->RegisterBooleanPref(prefs::kShowHomeButton, false,
|
||||
--- a/chrome/browser/ui/tabs/tab_strip_model.cc
|
||||
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc
|
||||
@@ -81,12 +81,14 @@
|
||||
#include "chrome/browser/web_applications/policy/web_app_policy_manager.h"
|
||||
#include "chrome/browser/web_applications/web_app_provider.h"
|
||||
#include "chrome/browser/web_applications/web_app_tab_helper.h"
|
||||
+#include "chrome/common/pref_names.h"
|
||||
#include "chrome/common/webui_url_constants.h"
|
||||
#include "components/commerce/core/commerce_utils.h"
|
||||
#include "components/content_settings/core/browser/host_content_settings_map.h"
|
||||
#include "components/content_settings/core/common/content_settings.h"
|
||||
#include "components/content_settings/core/common/content_settings_types.h"
|
||||
#include "components/feature_engagement/public/feature_constants.h"
|
||||
+#include "components/prefs/pref_service.h"
|
||||
#include "components/reading_list/core/reading_list_model.h"
|
||||
#include "components/tab_groups/tab_group_id.h"
|
||||
#include "components/tab_groups/tab_group_visual_data.h"
|
||||
@@ -1545,7 +1547,11 @@ void TabStripModel::AddTab(std::unique_p
|
||||
// For all other types, respect what was passed to us, normalizing -1s and
|
||||
// values that are too large.
|
||||
if (index < 0 || index > count()) {
|
||||
- index = count();
|
||||
+ if (count() >= 1 && profile_->GetPrefs()->GetBoolean(prefs::kNewTabNextToActive)) {
|
||||
+ index = active_index() + 1;
|
||||
+ } else {
|
||||
+ index = count();
|
||||
+ }
|
||||
}
|
||||
}
|
||||
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -510,6 +510,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
{"lightMode", IDS_NTP_CUSTOMIZE_CHROME_COLOR_SCHEME_MODE_LIGHT_LABEL},
|
||||
{"darkMode", IDS_NTP_CUSTOMIZE_CHROME_COLOR_SCHEME_MODE_DARK_LABEL},
|
||||
{"systemMode", IDS_NTP_CUSTOMIZE_CHROME_COLOR_SCHEME_MODE_SYSTEM_LABEL},
|
||||
+ {"openNewTabNextToActive", IDS_SETTINGS_NEW_TAB_NEXT_TO_ACTIVE_BUTTON},
|
||||
{"showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON},
|
||||
{"showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR},
|
||||
{"allowSplitViewDragAndDrop",
|
||||
--- a/chrome/common/pref_names.h
|
||||
+++ b/chrome/common/pref_names.h
|
||||
@@ -1315,6 +1315,10 @@ inline constexpr char
|
||||
"restricted_managed_guest_session_extension_cleanup_exempt_list";
|
||||
#endif // BUILDFLAG(IS_CHROMEOS)
|
||||
|
||||
+// A boolean pref set to true if new tabs should be created to the next of current active one,
|
||||
+// instead of tab strip end.
|
||||
+inline constexpr char kNewTabNextToActive[] = "helium.browser.new_tab_next_to_active";
|
||||
+
|
||||
// A boolean pref set to true if a Home button to open the Home pages should be
|
||||
// visible on the toolbar.
|
||||
inline constexpr char kShowHomeButton[] = "browser.show_home_button";
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/common/chrome_features.cc
|
||||
+++ b/chrome/common/chrome_features.cc
|
||||
@@ -880,7 +880,7 @@ BASE_FEATURE(HttpsFirstBalancedMode, bas
|
||||
@@ -891,7 +891,7 @@ BASE_FEATURE(HttpsFirstBalancedMode, bas
|
||||
// Automatically enables HTTPS-First Mode in a balanced configuration when
|
||||
// possible.
|
||||
BASE_FEATURE(HttpsFirstBalancedModeAutoEnable,
|
||||
|
||||
@@ -201,7 +201,7 @@
|
||||
</div>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1958,6 +1958,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -1956,6 +1956,10 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"heliumServicesToggle", IDS_SETTINGS_HELIUM_SERVICES_TOGGLE},
|
||||
{"heliumServicesToggleDescription",
|
||||
IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION},
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
--- a/components/search_engines/template_url_prepopulate_data.cc
|
||||
+++ b/components/search_engines/template_url_prepopulate_data.cc
|
||||
@@ -235,7 +235,7 @@ std::unique_ptr<TemplateURLData> GetPrep
|
||||
std::vector<const TemplateURLPrepopulateData::PrepopulatedEngine*>
|
||||
regional_prepopulated_engines) {
|
||||
return FindPrepopulatedEngineInternal(prefs, regional_prepopulated_engines,
|
||||
- google.id,
|
||||
+ duckduckgo.id,
|
||||
/*use_first_as_fallback=*/true);
|
||||
}
|
||||
|
||||
--- a/third_party/search_engines_data/resources/definitions/regional_settings.json
|
||||
+++ b/third_party/search_engines_data/resources/definitions/regional_settings.json
|
||||
@@ -3,6 +3,19 @@
|
||||
// found in the LICENSE file.
|
||||
{
|
||||
"elements": {
|
||||
+ "ZZ": {
|
||||
+ // Default
|
||||
+ "search_engines": [
|
||||
+ "&duckduckgo",
|
||||
+ "&ecosia",
|
||||
+ "&bing",
|
||||
+ "&break_stuff_google",
|
||||
+ "&qwant",
|
||||
+ "&kagi"
|
||||
+ ]
|
||||
+ }
|
||||
+ },
|
||||
+ "elements_ignored": {
|
||||
"AE": {
|
||||
// United Arab Emirates
|
||||
"search_engines": [
|
||||
@@ -1183,7 +1196,8 @@
|
||||
"name": "kRegionalSettings",
|
||||
"export_items": false,
|
||||
"map_key_type": "country_codes::CountryId",
|
||||
- "map_aliases": {
|
||||
+ "map_aliases": {},
|
||||
+ "map_aliases_ignored": {
|
||||
"AD": "ES", // Andorra
|
||||
"AF": "ZZ", // Afghanistan
|
||||
"AG": "ZZ", // Antigua and Barbuda
|
||||
+1
-1
@@ -16,7 +16,7 @@
|
||||
#include "components/safe_browsing/core/common/features.h"
|
||||
#include "components/safe_browsing/core/common/hashprefix_realtime/hash_realtime_utils.h"
|
||||
#include "components/saved_tab_groups/public/features.h"
|
||||
@@ -2484,14 +2482,9 @@ void AddSearchStrings(content::WebUIData
|
||||
@@ -2477,14 +2475,9 @@ void AddSearchStrings(content::WebUIData
|
||||
html_source->AddString("searchExplanationLearnMoreURL",
|
||||
chrome::kOmniboxLearnMoreURL);
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@
|
||||
namespace {
|
||||
|
||||
const bool kEnableBuiltinSearchProviderAssets =
|
||||
@@ -1856,18 +1852,6 @@ std::string TemplateURL::GetBuiltinDescr
|
||||
@@ -1854,18 +1850,6 @@ std::string TemplateURL::GetBuiltinDescr
|
||||
}
|
||||
|
||||
std::optional<std::u16string> TemplateURL::GetBuiltinMarketingSnippet() const {
|
||||
-42
@@ -35,17 +35,6 @@
|
||||
"id": 1
|
||||
},
|
||||
|
||||
--- a/components/search_engines/template_url_prepopulate_data.cc
|
||||
+++ b/components/search_engines/template_url_prepopulate_data.cc
|
||||
@@ -235,7 +235,7 @@ std::unique_ptr<TemplateURLData> GetPrep
|
||||
std::vector<const TemplateURLPrepopulateData::PrepopulatedEngine*>
|
||||
regional_prepopulated_engines) {
|
||||
return FindPrepopulatedEngineInternal(prefs, regional_prepopulated_engines,
|
||||
- google.id,
|
||||
+ duckduckgo.id,
|
||||
/*use_first_as_fallback=*/true);
|
||||
}
|
||||
|
||||
--- a/components/search_engines/search_engine_utils.cc
|
||||
+++ b/components/search_engines/search_engine_utils.cc
|
||||
@@ -35,7 +35,7 @@ SearchEngineType GetEngineType(const GUR
|
||||
@@ -57,34 +46,3 @@
|
||||
|
||||
// Now check the rest of the prepopulate data.
|
||||
for (const auto* engine : TemplateURLPrepopulateData::kAllEngines) {
|
||||
--- a/third_party/search_engines_data/resources/definitions/regional_settings.json
|
||||
+++ b/third_party/search_engines_data/resources/definitions/regional_settings.json
|
||||
@@ -3,6 +3,18 @@
|
||||
// found in the LICENSE file.
|
||||
{
|
||||
"elements": {
|
||||
+ "ZZ": {
|
||||
+ // Default
|
||||
+ "search_engines": [
|
||||
+ "&duckduckgo",
|
||||
+ "&ecosia",
|
||||
+ "&bing",
|
||||
+ "&break_stuff_google",
|
||||
+ "&qwant"
|
||||
+ ]
|
||||
+ }
|
||||
+ },
|
||||
+ "elements_ignored": {
|
||||
"AE": {
|
||||
// United Arab Emirates
|
||||
"search_engines": [
|
||||
@@ -1183,7 +1195,8 @@
|
||||
"name": "kRegionalSettings",
|
||||
"export_items": false,
|
||||
"map_key_type": "country_codes::CountryId",
|
||||
- "map_aliases": {
|
||||
+ "map_aliases": {},
|
||||
+ "map_aliases_ignored": {
|
||||
"AD": "ES", // Andorra
|
||||
"AF": "ZZ", // Afghanistan
|
||||
"AG": "ZZ", // Antigua and Barbuda
|
||||
@@ -1,11 +1,14 @@
|
||||
--- a/components/policy/core/common/helium_opinionated_policy_provider.cc
|
||||
+++ b/components/policy/core/common/helium_opinionated_policy_provider.cc
|
||||
@@ -22,6 +22,9 @@ void HopProvider::RefreshPolicies(Policy
|
||||
@@ -22,6 +22,12 @@ void HopProvider::RefreshPolicies(Policy
|
||||
PolicyBundle bundle;
|
||||
PolicyMap& policy_map = bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string()));
|
||||
|
||||
+ Set(policy_map, policy::key::kPasswordManagerEnabled, POLICY_LEVEL_MANDATORY, base::Value(false));
|
||||
+ Set(policy_map, policy::key::kPasswordManagerPasskeysEnabled, POLICY_LEVEL_MANDATORY, base::Value(false));
|
||||
+ // Disable the password manager
|
||||
+ Set(policy_map, policy::key::kPasswordManagerEnabled,
|
||||
+ POLICY_LEVEL_MANDATORY, base::Value(false));
|
||||
+ Set(policy_map, policy::key::kPasswordManagerPasskeysEnabled,
|
||||
+ POLICY_LEVEL_MANDATORY, base::Value(false));
|
||||
+
|
||||
UpdatePolicy(std::move(bundle));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/net/dns/public/doh_provider_entry.cc
|
||||
+++ b/net/dns/public/doh_provider_entry.cc
|
||||
@@ -252,7 +252,7 @@ const DohProviderEntry::List& DohProvide
|
||||
LoggingLevel::kNormal},
|
||||
{"Quad9Secure",
|
||||
MAKE_BASE_FEATURE_WITH_STATIC_STORAGE(
|
||||
- DohProviderQuad9Secure, base::FEATURE_DISABLED_BY_DEFAULT),
|
||||
+ DohProviderQuad9Secure, base::FEATURE_ENABLED_BY_DEFAULT),
|
||||
{"9.9.9.9", "149.112.112.112", "2620:fe::fe", "2620:fe::9"},
|
||||
/*dns_over_tls_hostnames=*/{"dns.quad9.net", "dns9.quad9.net"},
|
||||
"https://dns.quad9.net/dns-query",
|
||||
@@ -9,7 +9,7 @@
|
||||
<message name="IDS_SETTINGS_RESET_TO_DEFAULT_THEME" desc="Accessibility label of the button which resets the browser theme back to the default value">
|
||||
Reset to default theme
|
||||
</message>
|
||||
@@ -272,6 +272,9 @@
|
||||
@@ -275,6 +275,9 @@
|
||||
<message name="IDS_SETTINGS_AUTO_PIN_NEW_TAB_GROUPS" desc="Label for the checkbox which enables or disables auto pin new tab groups.">
|
||||
Automatically pin new tab groups created on any device to the bookmarks bar
|
||||
</message>
|
||||
@@ -21,7 +21,7 @@
|
||||
</message>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -516,7 +516,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
@@ -517,7 +517,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
IDS_SETTINGS_ALLOW_SPLIT_VIEW_DRAG_AND_DROP},
|
||||
{"showTabGroupsInBookmarksBar",
|
||||
IDS_SETTINGS_SHOW_TAB_GROUPS_IN_BOOKMARKS_BAR},
|
||||
@@ -30,7 +30,7 @@
|
||||
{"hoverCardTitle", IDS_SETTINGS_HOVER_CARD_TITLE},
|
||||
{"showHoverCardImages", IDS_SETTINGS_SHOW_HOVER_CARD_IMAGES},
|
||||
{"showHoverCardMemoryUsage", IDS_SETTINGS_SHOW_HOVER_CARD_MEMORY_USAGE},
|
||||
@@ -548,9 +548,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
@@ -549,9 +549,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
{"classicTheme", IDS_SETTINGS_CLASSIC_THEME},
|
||||
{"useClassicTheme", IDS_SETTINGS_USE_CLASSIC_THEME},
|
||||
#endif
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
{"loading", IDS_HISTORY_LOADING},
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1795,7 +1795,7 @@ void AddSyncControlsStrings(content::Web
|
||||
@@ -1796,7 +1796,7 @@ void AddSyncControlsStrings(content::Web
|
||||
void AddPeopleStrings(content::WebUIDataSource* html_source, Profile* profile) {
|
||||
static constexpr webui::LocalizedString kLocalizedStrings[] = {
|
||||
// Top level people strings:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1887,6 +1887,9 @@
|
||||
@@ -1890,6 +1890,9 @@
|
||||
<message name="IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_TEXT" desc="The text of a confirmation dialog that confirms that the user want to send the 'Do Not Track' header">
|
||||
Enabling "Do Not Track" means that a request will be included with your browsing traffic. Any effect depends on whether a website responds to the request, and how the request is interpreted. For example, some websites may respond to this request by showing you ads that aren't based on other websites you've visited. Many websites will still collect and use your browsing data - for example to improve security, to provide content, services, ads and recommendations on their websites, and to generate reporting statistics.
|
||||
</message>
|
||||
@@ -10,7 +10,7 @@
|
||||
<message name="IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_LEARN_MORE_ACCESSIBILITY_LABEL" desc="The accessibility label for a link to learn more about Do Not Track">
|
||||
Learn more about Do Not Track
|
||||
</message>
|
||||
@@ -3088,6 +3091,9 @@
|
||||
@@ -3091,6 +3094,9 @@
|
||||
<message name="IDS_SETTINGS_TRACKING_PROTECTION_SITES_ALLOWED_COOKIES_DESCRIPTION" desc="Description of the section on the Tracking Protection settings page that lets users manage which sites are allowed to use third-party cookies. Explains how to use a wildcard to create an exception for an entire domain.">
|
||||
Affects the sites listed here. Inserting “[*.]” before a domain name creates an exception for the entire domain. For example, adding “[*.]google.com” means that third-party cookies can also be active for mail.google.com, because it’s part of google.com.
|
||||
</message>
|
||||
@@ -22,7 +22,7 @@
|
||||
</message>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1943,7 +1943,7 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -1944,7 +1944,7 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"privacyPageMore", IDS_SETTINGS_PRIVACY_MORE},
|
||||
{"doNotTrack", IDS_SETTINGS_ENABLE_DO_NOT_TRACK},
|
||||
{"doNotTrackDialogTitle", IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_TITLE},
|
||||
@@ -31,7 +31,7 @@
|
||||
{"doNotTrackDialogLearnMoreA11yLabel",
|
||||
IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_LEARN_MORE_ACCESSIBILITY_LABEL},
|
||||
// TODO(crbug.com/40122957): This string is no longer used. Remove.
|
||||
@@ -2638,7 +2638,7 @@ void AddSiteSettingsStrings(content::Web
|
||||
@@ -2639,7 +2639,7 @@ void AddSiteSettingsStrings(content::Web
|
||||
{"trackingProtectionSitesAllowedCookiesTitle",
|
||||
IDS_SETTINGS_TRACKING_PROTECTION_SITES_ALLOWED_COOKIES_TITLE},
|
||||
{"trackingProtectionSitesAllowedCookiesDescription",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1900,6 +1900,12 @@
|
||||
@@ -1903,6 +1903,12 @@
|
||||
users to manage security settings">
|
||||
Security
|
||||
</message>
|
||||
@@ -15,7 +15,7 @@
|
||||
</message>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1948,9 +1948,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
@@ -1949,9 +1949,9 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_LEARN_MORE_ACCESSIBILITY_LABEL},
|
||||
// TODO(crbug.com/40122957): This string is no longer used. Remove.
|
||||
{"permissionsPageTitle", IDS_SETTINGS_PERMISSIONS},
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
Signed in to <ph name="EMAIL">$1<ex>abcd@google.com</ex></ph>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1651,8 +1651,8 @@ void AddPersonalizationOptionsStrings(co
|
||||
@@ -1652,8 +1652,8 @@ void AddPersonalizationOptionsStrings(co
|
||||
{"enablePersonalizationLoggingDesc",
|
||||
IDS_SETTINGS_ENABLE_LOGGING_PREF_DESC},
|
||||
{"spellingDescription", IDS_SETTINGS_SPELLING_PREF_DESC},
|
||||
|
||||
@@ -392,6 +392,23 @@
|
||||
back-button-aria-label="$i18n{backButton}"
|
||||
back-button-title="$i18n{backButton}">
|
||||
<h2 slot="heading">$i18n{categoriesHeader}</h2>
|
||||
@@ -72,16 +72,6 @@ export function getHtml(this: Categories
|
||||
<div class="label">${item.label}</div>
|
||||
</div>
|
||||
`)}
|
||||
- <div class="tile" tabindex="0" role="button"
|
||||
- @click="${this.onChromeWebStoreClick_}" id="chromeWebStoreTile">
|
||||
- <div class="image-container">
|
||||
- <img id="chromeWebStore" src="icons/chrome_web_store.svg"></img>
|
||||
- </div>
|
||||
- <div class="label">
|
||||
- <div class="cr-icon icon-external"></div>
|
||||
- $i18n{chromeWebStore}
|
||||
- </div>
|
||||
- </div>
|
||||
</cr-grid>
|
||||
</div>
|
||||
<!--_html_template_end_-->`;
|
||||
--- a/chrome/browser/resources/side_panel/customize_chrome/hover_button.css
|
||||
+++ b/chrome/browser/resources/side_panel/customize_chrome/hover_button.css
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
@@ -72,6 +72,15 @@
|
||||
float top_left_corner_radius = content_corner_radius;
|
||||
float top_right_corner_radius = content_corner_radius;
|
||||
float bottom_left_corner_radius = content_corner_radius;
|
||||
@@ -839,6 +833,8 @@ float TabStyleViewsImpl::GetHoverOpacity
|
||||
}
|
||||
|
||||
int TabStyleViewsImpl::GetStrokeThickness(bool should_paint_as_active) const {
|
||||
+ return 0;
|
||||
+
|
||||
std::optional<tab_groups::TabGroupId> group = tab_->group();
|
||||
if (group.has_value() && tab_->IsActive()) {
|
||||
return TabGroupUnderline::kStrokeThickness;
|
||||
--- a/chrome/browser/ui/views/tabs/tab.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/tab.cc
|
||||
@@ -1164,7 +1164,7 @@ void Tab::UpdateIconVisibility() {
|
||||
@@ -94,6 +103,17 @@
|
||||
if (showing_close_button_) {
|
||||
available_width -= close_button_width;
|
||||
}
|
||||
@@ -1229,10 +1233,6 @@ void Tab::UpdateIconVisibility() {
|
||||
}
|
||||
}
|
||||
}
|
||||
-
|
||||
- extra_alert_indicator_padding_ = showing_alert_indicator_ &&
|
||||
- showing_close_button_ &&
|
||||
- large_enough_for_close_button;
|
||||
}
|
||||
|
||||
bool Tab::ShouldRenderAsNormalTab() const {
|
||||
--- a/chrome/browser/ui/views/tabs/tab.h
|
||||
+++ b/chrome/browser/ui/views/tabs/tab.h
|
||||
@@ -69,7 +69,7 @@ class Tab : public gfx::AnimationDelegat
|
||||
@@ -166,3 +186,53 @@
|
||||
ring_highlight_path->set_use_contents_bounds(true);
|
||||
views::FocusRing::Get(this)->SetPathGenerator(std::move(ring_highlight_path));
|
||||
|
||||
--- a/chrome/browser/ui/views/tabs/tab_group_style.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/tab_group_style.cc
|
||||
@@ -32,7 +32,7 @@ constexpr int kAttentionIndicatorWidth =
|
||||
// The size of the empty chip.
|
||||
constexpr int kEmptyChipSize = 20;
|
||||
constexpr int kCornerRadius = 6;
|
||||
-constexpr int kTabGroupOverlapAdjustment = 2;
|
||||
+constexpr int kTabGroupOverlapAdjustment = 3;
|
||||
|
||||
} // namespace
|
||||
|
||||
--- a/chrome/browser/ui/views/tabs/tab_group_underline.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/tab_group_underline.cc
|
||||
@@ -93,21 +93,17 @@ gfx::Insets TabGroupUnderline::GetInsets
|
||||
// the group, and may be the right boundary if the group is collapsed.
|
||||
const TabGroupHeader* const header =
|
||||
views::AsViewClass<TabGroupHeader>(sibling_view);
|
||||
+
|
||||
+ const int left_offset = 3;
|
||||
if (header) {
|
||||
- return gfx::Insets::TLBR(0, TabGroupUnderline::GetStrokeInset(), 0,
|
||||
- TabGroupUnderline::GetStrokeInset());
|
||||
+ return gfx::Insets::TLBR(0, TabGroupUnderline::GetStrokeInset() + left_offset,
|
||||
+ 0, TabGroupUnderline::GetStrokeInset());
|
||||
}
|
||||
|
||||
const Tab* const tab = views::AsViewClass<Tab>(sibling_view);
|
||||
DCHECK(tab);
|
||||
|
||||
- // Active tabs need the rounded bits of the underline poking out the sides.
|
||||
- if (tab->IsActive()) {
|
||||
- return gfx::Insets::TLBR(0, -kStrokeThickness, 0, -kStrokeThickness);
|
||||
- }
|
||||
-
|
||||
- // Inactive tabs are inset like group headers.
|
||||
- const int left_inset = TabGroupUnderline::GetStrokeInset();
|
||||
+ const int left_inset = TabGroupUnderline::GetStrokeInset() + left_offset;
|
||||
const int right_inset = TabGroupUnderline::GetStrokeInset();
|
||||
|
||||
return gfx::Insets::TLBR(0, left_inset, 0, right_inset);
|
||||
@@ -119,8 +115,7 @@ void TabGroupUnderline::MaybeSetVisible(
|
||||
|
||||
// static
|
||||
int TabGroupUnderline::GetStrokeInset() {
|
||||
- return TabStyle::Get()->GetTabOverlap() -
|
||||
- TabGroupStyle::GetTabGroupOverlapAdjustment() + kStrokeThickness;
|
||||
+ return TabStyle::Get()->GetTabOverlap() - 7 + kStrokeThickness;
|
||||
}
|
||||
|
||||
BEGIN_METADATA(TabGroupUnderline)
|
||||
|
||||
+15
-6
@@ -79,7 +79,6 @@ extra/ungoogled-chromium/add-flag-for-tabsearch-button.patch
|
||||
extra/ungoogled-chromium/add-flag-for-qr-generator.patch
|
||||
extra/ungoogled-chromium/add-flag-for-grab-handle.patch
|
||||
extra/ungoogled-chromium/add-flag-for-close-confirmation.patch
|
||||
extra/ungoogled-chromium/keep-expired-flags.patch
|
||||
extra/ungoogled-chromium/add-flag-for-custom-ntp.patch
|
||||
extra/ungoogled-chromium/add-flag-for-tab-hover-cards.patch
|
||||
extra/ungoogled-chromium/add-flag-to-hide-tab-close-buttons.patch
|
||||
@@ -117,15 +116,18 @@ helium/core/override-chrome-protocol.patch
|
||||
helium/core/onboarding-page.patch
|
||||
helium/core/change-chromium-branding.patch
|
||||
helium/core/scan-chrome-native-messaging-hosts.patch
|
||||
helium/core/make-ddg-default.patch
|
||||
helium/core/add-kagi-search.patch
|
||||
|
||||
helium/core/search/restore-google.patch
|
||||
helium/core/search/engine-defaults.patch
|
||||
helium/core/search/fix-search-engine-icons.patch
|
||||
helium/core/search/force-eu-search-features.patch
|
||||
helium/core/search/remove-description-snippet-deps.patch
|
||||
|
||||
helium/core/copy-page-url-shortcut.patch
|
||||
helium/core/update-default-browser-prefs.patch
|
||||
helium/core/proxy-extension-downloads.patch
|
||||
helium/core/reenable-update-checks.patch
|
||||
helium/core/fix-search-engine-icons.patch
|
||||
helium/core/add-native-bangs.patch
|
||||
helium/core/force-eu-search-features.patch
|
||||
helium/core/disable-bookmarks-bar.patch
|
||||
helium/core/reenable-spellcheck-downloads.patch
|
||||
helium/core/prefer-https-by-default.patch
|
||||
@@ -145,22 +147,25 @@ helium/core/hide-extensions-via-toolbar-prefs.patch
|
||||
helium/core/clean-context-menu.patch
|
||||
helium/core/split-view.patch
|
||||
helium/core/fix-tab-sync-unreached-error.patch
|
||||
|
||||
helium/core/flags-setup.patch
|
||||
helium/core/add-low-power-framerate-flag.patch
|
||||
helium/core/add-update-channel-flag.patch
|
||||
helium/core/add-updater-preference.patch
|
||||
helium/core/add-disable-ech-flag.patch
|
||||
helium/core/exclude-irrelevant-flags.patch
|
||||
|
||||
helium/core/disable-outdated-build-detector.patch
|
||||
helium/core/remove-dead-toolbar-actions.patch
|
||||
helium/core/protect-browser-keyboard-shortcuts.patch
|
||||
helium/core/add-component-l10n-support.patch
|
||||
helium/core/add-component-managed-schema-support.patch
|
||||
helium/core/ublock-setup-sources.patch
|
||||
helium/core/ublock-install-as-component.patch
|
||||
helium/core/ublock-reconfigure-defaults.patch
|
||||
helium/core/ublock-migrate-prefs.patch
|
||||
helium/core/ublock-helium-services.patch
|
||||
helium/core/clean-omnibox-suggestions.patch
|
||||
helium/core/remove-search-desc-snippet-deps.patch
|
||||
helium/core/increase-incognito-storage-quota.patch
|
||||
helium/core/mitigate-fingerprinting-canvas.patch
|
||||
helium/core/mitigate-fingerprinting-audio-context.patch
|
||||
@@ -168,6 +173,9 @@ helium/core/reduce-accept-language-headers.patch
|
||||
helium/core/disable-ad-topics-and-etc.patch
|
||||
helium/core/enable-parallel-downloading.patch
|
||||
helium/core/infinite-tab-freezing.patch
|
||||
helium/core/disable-touch-ui.patch
|
||||
helium/core/open-new-tabs-next-to-active-tab-option.patch
|
||||
helium/core/disable-update-toast.patch
|
||||
|
||||
helium/settings/move-search-suggest.patch
|
||||
helium/settings/remove-autofill.patch
|
||||
@@ -184,6 +192,7 @@ helium/settings/fix-text-on-cookies-page.patch
|
||||
helium/settings/update-search-suggest-text.patch
|
||||
helium/settings/fix-appearance-page.patch
|
||||
helium/settings/remove-dead-imports.patch
|
||||
helium/settings/enable-quad9-doh-option.patch
|
||||
|
||||
helium/hop/setup.patch
|
||||
helium/hop/disable-password-manager.patch
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
2
|
||||
5
|
||||
|
||||
Reference in New Issue
Block a user