Compare commits

...

3 Commits

Author SHA1 Message Date
jj c50904a16e revision: bump to 3 2025-11-01 18:17:51 +00:00
jj 2300b0f239 patches/upstream-fixes: add fix for connectors_service_ CHECK 2025-11-01 18:17:21 +00:00
wukko 19d1c7fa61 helium/core/exclude-flags: remove irrelevant flags added in M142 (#372) 2025-10-31 21:23:50 +00:00
5 changed files with 102 additions and 5 deletions
@@ -619,7 +619,7 @@
bool site_isolation_enabled;
--- a/chrome/browser/enterprise/signals/profile_signals_collector.cc
+++ b/chrome/browser/enterprise/signals/profile_signals_collector.cc
@@ -70,12 +70,8 @@ void ProfileSignalsCollector::GetProfile
@@ -77,12 +77,8 @@ void ProfileSignalsCollector::GetProfile
signal_response.chrome_remote_desktop_app_blocked =
device_signals::GetChromeRemoteDesktopAppBlocked(
policy_blocklist_service_);
@@ -1,6 +1,6 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -13399,11 +13399,278 @@ const FeatureEntry kFeatureEntries[] = {
@@ -13399,11 +13399,295 @@ const FeatureEntry kFeatureEntries[] = {
// AboutFlagsHistogramTest unit test to verify this process).
};
@@ -39,6 +39,7 @@
+ "ntp-tab-groups-module",
+ "ntp-tab-groups-module-zero-state",
+ "ntp-microsoft-authentication-module",
+ "ntp-realbox-next",
+
+ // Google Account & Sync
+ "use-sync-sandbox",
@@ -73,6 +74,7 @@
+ "ntp-composebox",
+ "composebox-uses-chrome-compose-client",
+ "compose-selection-nudge",
+ "contextual-tasks",
+
+ // Shopping stuff
+ "product-specifications",
@@ -120,6 +122,10 @@
+ "enable-lens-overlay-straight-to-srp",
+ "enable-lens-overlay-force-empty-csb-query",
+ "contextual-search-open-lens-action-uses-thumbnail",
+ "lens-reinvocation-affordance",
+ "lens-search-zero-state-csb",
+ "lens-updated-feedback-entrypoint",
+ "lens-video-citations",
+
+ // Google Assistant
+ "enable-assistant-dsp",
@@ -159,6 +165,12 @@
+ "glic-fre-pre-warming",
+ "browsing-history-actor-integration-M1",
+
+ // Live captions
+ "enable-headless-live-caption",
+
+ // Google Wallet
+ "wallet-service-use-sandbox",
+
+ // Safety Hub
+ "safety-hub",
+ "safety-hub-magic-stack",
@@ -257,6 +269,11 @@
+ "autofill-enable-support-for-home-and-work",
+ "autofill-enable-support-for-name-and-email-profile",
+ "autofill-update-context-for-web-contents",
+ "autofill-prioritize-save-card-over-mandatory-reauth",
+ "autofill-enable-buy-now-pay-later-updated-suggestion-second-line-string",
+ "autofill-and-passwords-in-same-surface",
+ "autofill-enable-ai-based-amount-extraction",
+ "autofill-prefer-buy-now-pay-later-blocklists",
+
+ // Add new entries above this line and categorize them accordingly.
+});
@@ -280,7 +297,7 @@
FlagsStateSingleton(const FlagsStateSingleton&) = delete;
FlagsStateSingleton& operator=(const FlagsStateSingleton&) = delete;
~FlagsStateSingleton() override = default;
@@ -13422,7 +13689,7 @@ class FlagsStateSingleton : public flags
@@ -13422,7 +13706,7 @@ class FlagsStateSingleton : public flags
void RestoreDefaultState() {
flags_state_ =
@@ -289,7 +306,7 @@
}
private:
@@ -13747,7 +14014,7 @@ base::span<const FeatureEntry> GetFeatur
@@ -13747,7 +14031,7 @@ base::span<const FeatureEntry> GetFeatur
!entries_for_testing->empty()) {
return *entries_for_testing;
}
+1
View File
@@ -1,6 +1,7 @@
upstream-fixes/glue_core_pools.patch
upstream-fixes/hardware_destructive_interference_size.patch
upstream-fixes/missing-dependencies.patch
upstream-fixes/fix-crash-without-enterprise-cloud-content-analysis.patch
core/inox-patchset/0001-fix-building-without-safebrowsing.patch
core/inox-patchset/0003-disable-autofill-download-manager.patch
@@ -0,0 +1,79 @@
From ad7a79a81bde832c4c3e1ebac56c5072c5e23fbf Mon Sep 17 00:00:00 2001
From: jj <jj@imput.net>
Date: Sat, 01 Nov 2025 15:28:33 +0100
Subject: [PATCH] Fix failing CHECK on builds with enterprise_cloud_content_analysis=false
Adds additional compile guards to prevent a failing CHECK when Chromium
is built with enterprise_cloud_content_analysis=false, which causes
connectors_service_ to not be initialized.
Bug: 456770303
Change-Id: Iae2978f1faa463c318a2c0cf7c131746c5a399de
---
--- a/chrome/browser/enterprise/signals/profile_signals_collector.cc
+++ b/chrome/browser/enterprise/signals/profile_signals_collector.cc
@@ -22,7 +22,10 @@
#include "components/policy/core/common/cloud/cloud_policy_manager.h"
#include "components/prefs/pref_service.h"
#include "components/version_info/version_info.h"
+
+#if BUILDFLAG(ENTERPRISE_CLOUD_CONTENT_ANALYSIS) || BUILDFLAG(IS_ANDROID)
#include "chrome/browser/enterprise/connectors/connectors_service.h"
+#endif // BUILDFLAG(ENTERPRISE_CLOUD_CONTENT_ANALYSIS) || BUILDFLAG(IS_ANDROID)
namespace device_signals {
@@ -52,7 +55,11 @@ ProfileSignalsCollector::ProfileSignalsC
#endif // BUILDFLAG(ENTERPRISE_CLOUD_CONTENT_ANALYSIS) || BUILDFLAG(IS_ANDROID)
profile_id_service_(
enterprise::ProfileIdServiceFactory::GetForProfile(profile)) {
+
+#if BUILDFLAG(ENTERPRISE_CLOUD_CONTENT_ANALYSIS) || BUILDFLAG(IS_ANDROID)
CHECK(connectors_service_);
+#endif // BUILDFLAG(ENTERPRISE_CLOUD_CONTENT_ANALYSIS) || BUILDFLAG(IS_ANDROID)
+
CHECK(policy_blocklist_service_);
CHECK(profile_id_service_);
}
@@ -79,6 +86,8 @@ void ProfileSignalsCollector::GetProfile
signal_response.site_isolation_enabled =
device_signals::GetSiteIsolationEnabled();
signal_response.profile_id = profile_id_service_->GetProfileId();
+
+#if BUILDFLAG(ENTERPRISE_CLOUD_CONTENT_ANALYSIS) || BUILDFLAG(IS_ANDROID)
signal_response.realtime_url_check_mode =
connectors_service_->GetAppliedRealTimeUrlCheck();
signal_response.security_event_providers =
@@ -97,6 +106,7 @@ void ProfileSignalsCollector::GetProfile
connectors_service_->GetAnalysisServiceProviderNames(
enterprise_connectors::PRINT);
#endif // !BUILDFLAG(IS_ANDROID)
+#endif // BUILDFLAG(ENTERPRISE_CLOUD_CONTENT_ANALYSIS) || BUILDFLAG(IS_ANDROID)
response.profile_signals_response = std::move(signal_response);
--- a/chrome/browser/enterprise/signals/profile_signals_collector.h
+++ b/chrome/browser/enterprise/signals/profile_signals_collector.h
@@ -8,6 +8,7 @@
#include "base/memory/raw_ptr.h"
#include "base/memory/weak_ptr.h"
#include "components/device_signals/core/browser/base_signals_collector.h"
+#include "components/enterprise/buildflags/buildflags.h"
class PrefService;
class Profile;
@@ -45,8 +46,12 @@ class ProfileSignalsCollector : public B
const raw_ptr<PolicyBlocklistService> policy_blocklist_service_;
const raw_ptr<PrefService> profile_prefs_;
const raw_ptr<policy::CloudPolicyManager> policy_manager_;
- const raw_ptr<enterprise_connectors::ConnectorsService> connectors_service_;
const raw_ptr<enterprise::ProfileIdService> profile_id_service_;
+
+#if BUILDFLAG(ENTERPRISE_CLOUD_CONTENT_ANALYSIS) || BUILDFLAG(IS_ANDROID)
+ const raw_ptr<enterprise_connectors::ConnectorsService> connectors_service_;
+#endif
+
base::WeakPtrFactory<ProfileSignalsCollector> weak_factory_{this};
};
+1 -1
View File
@@ -1 +1 @@
2
3