fix: remove the guard against remote

This commit is contained in:
Nikhil Sonti
2026-04-03 10:41:08 -07:00
parent e6aea8421c
commit 28ccbf70d4

View File

@@ -1,9 +1,9 @@
diff --git a/chrome/browser/browseros/extensions/browseros_extension_maintainer.cc b/chrome/browser/browseros/extensions/browseros_extension_maintainer.cc
new file mode 100644
index 0000000000000..c02cdfb887a7f
index 0000000000000..5804d54696e8f
--- /dev/null
+++ b/chrome/browser/browseros/extensions/browseros_extension_maintainer.cc
@@ -0,0 +1,407 @@
@@ -0,0 +1,395 @@
+// Copyright 2024 The Chromium Authors
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
@@ -206,18 +206,6 @@ index 0000000000000..c02cdfb887a7f
+ server_ids.insert(id);
+ }
+
+ // Guard: Require ALL registered BrowserOS extensions to be present in the
+ // config before allowing deprecation uninstalls. A partial config likely
+ // indicates a CDN issue, not an intentional deprecation.
+ for (const std::string& registered_id : GetBrowserOSExtensionIds()) {
+ if (!server_ids.contains(registered_id)) {
+ LOG(WARNING) << "browseros: Config missing registered extension "
+ << registered_id
+ << ", skipping deprecation check (possible CDN issue)";
+ return;
+ }
+ }
+
+ for (const std::string& id : GetBrowserOSExtensionIds()) {
+ if (server_ids.contains(id)) {
+ continue;