patches: unbreak google web store, break default update url

This commit is contained in:
jj
2025-02-28 14:21:12 +00:00
parent f74065ccfb
commit 3d9421058f
6 changed files with 20 additions and 21 deletions

View File

@@ -111,9 +111,10 @@ DOMAIN_EXCLUDE_PREFIXES = [
# Exclusions for files covered with other patches/unnecessary
'components/search_engines/prepopulated_engines.json',
'third_party/blink/renderer/core/dom/document.cc',
# Google Web Store extension stuff
'tools/search_engine_choice/generate_search_engine_icons.py',
'chrome/common/extensions/api/_api_features.json',
'extensions/common/api/_api_features.json',
'extensions/common/extension_urls.cc',
]
# pylint: enable=line-too-long

View File

@@ -2180,6 +2180,7 @@ chrome/common/chrome_switches.cc
chrome/common/conflicts/module_watcher_win.cc
chrome/common/extensions/PRESUBMIT.py
chrome/common/extensions/api/PRESUBMIT.py
chrome/common/extensions/api/_api_features.json
chrome/common/extensions/api/common_extension_api_unittest.cc
chrome/common/extensions/api/content_settings.json
chrome/common/extensions/api/cookies.json
@@ -4157,7 +4158,6 @@ extensions/common/extension_builder_unittest.cc
extensions/common/extension_features.h
extensions/common/extension_l10n_util_unittest.cc
extensions/common/extension_set_unittest.cc
extensions/common/extension_urls.cc
extensions/common/extension_urls.h
extensions/common/extension_urls_unittest.cc
extensions/common/file_util_unittest.cc

View File

@@ -403,22 +403,6 @@ by default.
#if BUILDFLAG(IS_WIN)
GURL url(base::WideToUTF16(args[0]));
--- a/extensions/common/extension_urls.cc
+++ b/extensions/common/extension_urls.cc
@@ -38,10 +38,10 @@ const GURL* g_item_snippet_url_for_test_
} // namespace
-const char kChromeWebstoreBaseURL[] = "https://chrome.google.com/webstore";
-const char kNewChromeWebstoreBaseURL[] = "https://chromewebstore.google.com/";
+const char kChromeWebstoreBaseURL[] = "trk:09:https://chrome.google.com/webstore";
+const char kNewChromeWebstoreBaseURL[] = "trk:08:https://chromewebstore.google.com/";
const char kChromeWebstoreUpdateURL[] =
- "https://clients2.google.com/service/update2/crx";
+ "trk:05:https://clients2.google.com/service/update2/crx";
const char kAppMenuUtmSource[] = "ext_app_menu";
const char kExtensionsMenuUtmSource[] = "ext_extensions_menu";
--- a/google_apis/gaia/gaia_constants.cc
+++ b/google_apis/gaia/gaia_constants.cc
@@ -14,169 +14,169 @@ const char kChromeSource[] = "ChromiumBr

View File

@@ -0,0 +1,11 @@
--- a/extensions/common/extension_urls.cc
+++ b/extensions/common/extension_urls.cc
@@ -41,7 +41,7 @@ const GURL* g_item_snippet_url_for_test_
const char kChromeWebstoreBaseURL[] = "https://chrome.google.com/webstore";
const char kNewChromeWebstoreBaseURL[] = "https://chromewebstore.google.com/";
const char kChromeWebstoreUpdateURL[] =
- "https://clients2.google.com/service/update2/crx";
+ "https://clients2.9oo91e.qjz9zk/service/update2/crx";
const char kHeliumProxyWebstoreUpdateURL[] =
"https://services.helium.computer/ext/webstore";

View File

@@ -1,9 +1,11 @@
--- a/extensions/common/extension_urls.cc
+++ b/extensions/common/extension_urls.cc
@@ -42,6 +42,8 @@ const char kChromeWebstoreBaseURL[] = "t
const char kNewChromeWebstoreBaseURL[] = "trk:08:https://chromewebstore.google.com/";
@@ -41,7 +41,9 @@ const GURL* g_item_snippet_url_for_test_
const char kChromeWebstoreBaseURL[] = "https://chrome.google.com/webstore";
const char kNewChromeWebstoreBaseURL[] = "https://chromewebstore.google.com/";
const char kChromeWebstoreUpdateURL[] =
"trk:05:https://clients2.google.com/service/update2/crx";
- "https://clients2.google.com/service/update2/crx";
+ "invalid://clients2.google.com/service/update2/crx";
+const char kHeliumProxyWebstoreUpdateURL[] =
+ "https://services.helium.computer/ext/webstore";

View File

@@ -119,6 +119,7 @@ helium/clean-new-tab-page.patch
helium/proxy-extension-downloads.patch
helium/download-icons-from-source.patch
helium/regenerate-search_engine_choice_scaled_resources.patch
helium/break-chrome-webstore-update-url.patch
helium-ui/remove-toolbar-corners.patch
helium-ui/location-bar-style.patch