This repository has been archived by the owner on Apr 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
20,337 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# chromium-android-extension | ||
|
||
Patches that make chromium on Android support extensions. | ||
Patches that add extension support to chromium on Android. | ||
|
||
To apply, go into the `src` folder of chromium source tree and run `patch -p1 --ignore-whitespace -i ../patches/Extensions/{name_of_the_patch} --no-backup-if-mismatch` following the order in `series`. | ||
|
||
The patches are last adapted to chromium version `88.0.4324.182`. Patches assume safe browsing is off and supervised user is disabled. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
From: Wengling Chen <[email protected]> | ||
Date: Thu, 21 Jan 2021 20:35:11 +0200 | ||
Subject: Add android to list of oses | ||
|
||
--- | ||
chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
--- a/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc | ||
+++ b/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc | ||
@@ -286,6 +286,8 @@ bool ChromeRuntimeAPIDelegate::GetPlatfo | ||
info->os = extensions::api::runtime::PLATFORM_OS_LINUX; | ||
} else if (strcmp(os, "openbsd") == 0) { | ||
info->os = extensions::api::runtime::PLATFORM_OS_OPENBSD; | ||
+ } else if (strcmp(os, "android") == 0) { | ||
+ info->os = extensions::api::runtime::PLATFORM_OS_ANDROID; | ||
} else { | ||
NOTREACHED(); | ||
return false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
From: Wengling Chen <[email protected]> | ||
Sun, 28 Jun 2020 03:51:18 -0400 | ||
Subject: bundle chromium-web-store | ||
|
||
|
||
--- | ||
chrome/browser/browser_resources.grd | 1 | ||
chrome/browser/extensions/component_extensions_allowlist/allowlist.cc | 1 | ||
chrome/browser/extensions/component_loader.cc | 3 + | ||
chrome/browser/resources/component_extension_resources.grd | 19 ++++++++++ | ||
4 files changed, 24 insertions(+) | ||
|
||
--- a/chrome/browser/browser_resources.grd | ||
+++ b/chrome/browser/browser_resources.grd | ||
@@ -223,6 +223,7 @@ | ||
<include name="IDR_WEB_FOOTER_EXPERIMENT_HTML" file="resources\web_footer_experiment\index.html" type="BINDATA" /> | ||
<include name="IDR_WEBSTORE_MANIFEST" file="resources\webstore_app\manifest.json" type="BINDATA" /> | ||
<include name="IDR_CRYPTOTOKEN_MANIFEST" file="resources\cryptotoken\manifest.json" type="BINDATA" /> | ||
+ <include name="IDR_CHROMIUM_WEB_STORE_MANIFEST" file="resources\chromium_web_store\manifest.json" type="BINDATA" /> | ||
<if expr="chromeos"> | ||
<!-- Edu account login resources --> | ||
<include name="IDR_EDU_LOGIN_EDU_LOGIN_HTML" file="resources\chromeos\edu_login\edu_login.html" allowexternalscript="true" type="BINDATA" /> | ||
--- a/chrome/browser/extensions/component_extensions_allowlist/allowlist.cc | ||
+++ b/chrome/browser/extensions/component_extensions_allowlist/allowlist.cc | ||
@@ -65,6 +65,7 @@ bool IsComponentExtensionAllowlisted(int | ||
case IDR_CLOUDPRINT_MANIFEST: | ||
#endif | ||
case IDR_CRYPTOTOKEN_MANIFEST: | ||
+ case IDR_CHROMIUM_WEB_STORE_MANIFEST: | ||
case IDR_FEEDBACK_MANIFEST: | ||
#if BUILDFLAG(ENABLE_HANGOUT_SERVICES_EXTENSION) | ||
case IDR_HANGOUT_SERVICES_MANIFEST: | ||
--- a/chrome/browser/extensions/component_loader.cc | ||
+++ b/chrome/browser/extensions/component_loader.cc | ||
@@ -571,6 +571,9 @@ void ComponentLoader::AddDefaultComponen | ||
|
||
Add(IDR_CRYPTOTOKEN_MANIFEST, | ||
base::FilePath(FILE_PATH_LITERAL("cryptotoken"))); | ||
+ | ||
+ Add(IDR_CHROMIUM_WEB_STORE_MANIFEST, | ||
+ base::FilePath(FILE_PATH_LITERAL("chromium_web_store"))); | ||
} | ||
|
||
void ComponentLoader:: | ||
--- a/chrome/browser/resources/component_extension_resources.grd | ||
+++ b/chrome/browser/resources/component_extension_resources.grd | ||
@@ -191,6 +191,25 @@ | ||
<include name="IDR_CRYPTOTOKEN_CRYPTOTOKENAPPROVEDORIGIN_JS" file="cryptotoken/cryptotokenapprovedorigins.js" type="BINDATA" /> | ||
<include name="IDR_CRYPTOTOKEN_CRYPTOTOKENORIGINCHECK_JS" file="cryptotoken/cryptotokenorigincheck.js" type="BINDATA" /> | ||
<include name="IDR_CRYPTOTOKEN_CRYPTOTOKENBACKGROUND_JS" file="cryptotoken/cryptotokenbackground.js" type="BINDATA" /> | ||
+ <include name="IDR_CHROMIUM_WEB_STORE_ASSETS_ICON_ICON_16_PNG" file="chromium_web_store/assets/icon/icon_16.png" type="BINDATA" /> | ||
+ <include name="IDR_CHROMIUM_WEB_STORE_ASSETS_ICON_ICON_24_PNG" file="chromium_web_store/assets/icon/icon_24.png" type="BINDATA" /> | ||
+ <include name="IDR_CHROMIUM_WEB_STORE_ASSETS_ICON_ICON_32_PNG" file="chromium_web_store/assets/icon/icon_32.png" type="BINDATA" /> | ||
+ <include name="IDR_CHROMIUM_WEB_STORE_ASSETS_ICON_ICON_48_PNG" file="chromium_web_store/assets/icon/icon_48.png" type="BINDATA" /> | ||
+ <include name="IDR_CHROMIUM_WEB_STORE_ASSETS_ICON_ICON_64_PNG" file="chromium_web_store/assets/icon/icon_64.png" type="BINDATA" /> | ||
+ <include name="IDR_CHROMIUM_WEB_STORE_ASSETS_ICON_ICON_128_PNG" file="chromium_web_store/assets/icon/icon_128.png" type="BINDATA" /> | ||
+ <include name="IDR_CHROMIUM_WEB_STORE_SCRIPTS_BACKGROUND_JS" file="chromium_web_store/scripts/background.js" type="BINDATA" /> | ||
+ <include name="IDR_CHROMIUM_WEB_STORE_SCRIPTS_INJECT_JS" file="chromium_web_store/scripts/inject.js" type="BINDATA" /> | ||
+ <include name="IDR_CHROMIUM_WEB_STORE_SCRIPTS_LOCALIZE_JS" file="chromium_web_store/scripts/localize.js" type="BINDATA" /> | ||
+ <include name="IDR_CHROMIUM_WEB_STORE_SCRIPTS_OPTIONS_JS" file="chromium_web_store/scripts/options.js" type="BINDATA" /> | ||
+ <include name="IDR_CHROMIUM_WEB_STORE_SCRIPTS_POPUP_JS" file="chromium_web_store/scripts/popup.js" type="BINDATA" /> | ||
+ <include name="IDR_CHROMIUM_WEB_STORE_SCRIPTS_UTIL_JS" file="chromium_web_store/scripts/util.js" type="BINDATA" /> | ||
+ <include name="IDR_CHROMIUM_WEB_STORE_SHEETS_BASE_CSS" file="chromium_web_store/sheets/base.css" type="BINDATA" /> | ||
+ <include name="IDR_CHROMIUM_WEB_STORE_SHEETS_OPTIONS_CSS" file="chromium_web_store/sheets/options.css" type="BINDATA" /> | ||
+ <include name="IDR_CHROMIUM_WEB_STORE_SHEETS_POPUP_CSS" file="chromium_web_store/sheets/popup.css" type="BINDATA" /> | ||
+ <include name="IDR_CHROMIUM_WEB_STORE_SHEETS_SCROLLBAR_CSS" file="chromium_web_store/sheets/scrollbar.css" type="BINDATA" /> | ||
+ <include name="IDR_CHROMIUM_WEB_STORE_MANAGED_STORAGE_JSON" file="chromium_web_store/managed_storage.json" flattenhtml="true" type="BINDATA" /> | ||
+ <include name="IDR_CHROMIUM_WEB_STORE_OPTIONS_HTML" file="chromium_web_store/options.html" flattenhtml="true" allowexternalscript="true" type="BINDATA" /> | ||
+ <include name="IDR_CHROMIUM_WEB_STORE_POPUP_HTML" file="chromium_web_store/popup.html" flattenhtml="true" allowexternalscript="true" type="BINDATA" /> | ||
</includes> | ||
</release> | ||
</grit> |
Oops, something went wrong.