Commit aab1a6dd authored by Klaus Wölfel's avatar Klaus Wölfel Committed by Lorenzo Martinico

Add chrome patch to increase storage quota in guest mode to support big offline apps

parent 780f2de3
......@@ -99,7 +99,7 @@ context =
recipe = slapos.recipe.template:jinja2
template = {{ software_dir }}/scripts/cros_full_build.in
rendered = ${directory:run}/cros_full_build
md5sum = 2a64b5cc0314ec2221a949928956f5c0
md5sum = 3c4d07d5519476f17790333bebee6a6d
mode = 0700
context =
key bash_path bin:bash
......@@ -112,6 +112,7 @@ context =
key ebuilds_dir nayuos-ebuilds:location
raw scripts_dir {{ software_dir }}/scripts
raw logo_dir {{ software_dir }}/logo
raw patch_dir {{ software_dir }}/patch
# packages to be copied from our overlay into ChromiuOS' overlay
# those packages will be marked as dependency of root filesystem
raw nayu_dev_rootfs_packages app-misc/nayuos-chromium-policy
......
--- a/src/storage/browser/quota/quota_settings.cc 2019-02-06 13:24:04.369171634 +0100
+++ b/src/storage/browser/quota/quota_settings.cc 2019-02-06 13:37:59.993187709 +0100
@@ -24,7 +24,7 @@
base::ScopedBlockingCall scoped_blocking_call(base::BlockingType::MAY_BLOCK);
const int64_t kMBytes = 1024 * 1024;
const int kRandomizedPercentage = 10;
- if (is_incognito) {
+ /*if (is_incognito) {
// The incognito pool size is a fraction of the amount of system memory,
// and the amount is capped to a hard limit.
const double kIncognitoPoolSizeRatio = 0.1; // 10%
@@ -38,7 +38,7 @@
settings.session_only_per_host_quota = settings.per_host_quota;
settings.refresh_interval = base::TimeDelta::Max();
return settings;
- }
+ }*/
// The fraction of the device's storage the browser is willing to
// use for temporary storage.
// Check Finch for an experimental value to use as temporary pool size ratio
......@@ -152,6 +152,10 @@ increase_revision_number ${CHROMIUM_OVERLAY}/chromeos-base/openssh-server-init/
sed -i -n '/src_install/q;p' $(latest_ebuild ${CHROMIUM_OVERLAY}/chromeos-base/chromeos-sshd-init)
increase_revision_number ${CHROMIUM_OVERLAY}/chromeos-base/chromeos-sshd-init/
# increase size of storage quota for chrome guest mode to make big offline apps work
CHROME_EBUILD_DIR="${CHROMIUM_OVERLAY}/chromeos-base/chromeos-chrome"
cp {{ patch_dir }}/0001-chrome-incognito-increase-storage-quota.patch "${CHROME_EBUILD_DIR}/files/"
sed -i 's|^PATCHES=()$|PATCHES=( "${FILESDIR}/0001-chrome-incognito-increase-storage-quota.patch" )|' ${CHROME_EBUILD_DIR}/chromeos-chrome*.ebuild
# bashrc modifications
BASH_EBUILD_DIR="${PORTAGE_STABLE}/app-shells/bash"
......
......@@ -26,7 +26,7 @@ recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg
rendered = ${buildout:directory}/instance.cfg
mode = 0644
md5sum = 73f964d73367dbf280d904e408a7f9b8
md5sum = 929d8614ce8d6f5b3edf2326446eaac5
context =
key software_dir :_profile_base_location_
key instance_dir buildout:directory
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment