mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2cc325e3e2 | |||
| 857b3f7983 | |||
| b80e90ce89 | |||
| d2fae0fde2 | |||
| 4c778fcf49 | |||
| 6f09e99d9c | |||
| 0ae15ad649 | |||
| 3213f5ef95 | |||
| 63e8e1e19e | |||
| 5f6becbc1c | |||
| e2b538ad1d | |||
| 50f49b47bd | |||
| b53163d96e | |||
| 4ce588fe6c | |||
| 9e95fa429f | |||
| 57620ec7c7 | |||
| d1665c81be | |||
| 299be51690 |
@@ -101,13 +101,39 @@ jobs:
|
||||
- name: Validate patches
|
||||
run: ./devutils/validate_patches.py -l chromium_src -v
|
||||
|
||||
- name: Validate source file lists
|
||||
- name: Restore generated source file lists
|
||||
id: source-file-lists-cache
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: |
|
||||
pruning.list.gen
|
||||
domain_substitution.list.gen
|
||||
# Deliberately exclude the checked-in lists so changes to them are
|
||||
# still validated against the previously generated results.
|
||||
key: >-
|
||||
${{ runner.os }}-source-file-lists-v1-${{
|
||||
hashFiles(
|
||||
'.python-version',
|
||||
'chromium_version.txt',
|
||||
'downloads.ini',
|
||||
'deps.ini',
|
||||
'domain_regex.list',
|
||||
'devutils/update_lists.py',
|
||||
'utils/domain_substitution.py',
|
||||
'utils/prune_binaries.py'
|
||||
)
|
||||
}}
|
||||
|
||||
- name: Generate source file lists
|
||||
if: steps.source-file-lists-cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
set -e
|
||||
./devutils/update_lists.py \
|
||||
--tree chromium_src \
|
||||
--pruning pruning.list.gen \
|
||||
--domain-substitution domain_substitution.list.gen \
|
||||
--no-error-unused
|
||||
|
||||
- name: Validate source file lists
|
||||
run: |
|
||||
diff -u pruning.list pruning.list.gen
|
||||
diff -u domain_substitution.list domain_substitution.list.gen
|
||||
|
||||
@@ -1 +1 @@
|
||||
151.0.7922.137
|
||||
151.0.7922.169
|
||||
|
||||
@@ -17,9 +17,9 @@ output_path = ./components/helium_onboarding
|
||||
# If you are bumping this, you *NEED* to re-strip the assets.json
|
||||
# file *every time* by using `devutils/clear-ublock-assets.js`.
|
||||
[ublock_origin]
|
||||
version = 1.72.2
|
||||
version = 1.73.0
|
||||
url = https://github.com/imputnet/uBlock/releases/download/%(version)s/uBlock0_%(version)s.chromium.zip
|
||||
sha256 = 6ea10a863eb343ddcc317fdda9c65ccb2799c74d0de06ad75aded04d38d63dca
|
||||
sha256 = 28a2cfc06412cf6b0d2ec8dfbc40c7db731a3324d171497c919433c59c272ae9
|
||||
download_filename = ublock-origin-%(version)s.zip
|
||||
output_path = third_party/ublock
|
||||
strip_leading_dirs = uBlock0.chromium
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Wrapper for devutils and utils formatter, linter, and tester
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eu
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eu
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eu
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eu
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eu
|
||||
|
||||
|
||||
@@ -413,6 +413,30 @@
|
||||
"context": "Command name shown on the Settings shortcuts page for selecting a tab by number.",
|
||||
"message": "Tab <ph name=\"TAB_NUMBER\">$1<ex>1</ex></ph>"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SHORTCUT_COMMAND_DUPLICATE_TAB",
|
||||
"source": "chrome/app/generated_resources.grd",
|
||||
"context": "Command name shown on the Settings shortcuts page for duplicating the current tab.",
|
||||
"message": "Duplicate tab"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SHORTCUT_COMMAND_SWITCH_TO_CLASSIC_LAYOUT",
|
||||
"source": "chrome/app/generated_resources.grd",
|
||||
"context": "Command name shown on the Settings shortcuts page for switching to the Classic browser layout.",
|
||||
"message": "Switch to Classic layout"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SHORTCUT_COMMAND_SWITCH_TO_COMPACT_LAYOUT",
|
||||
"source": "chrome/app/generated_resources.grd",
|
||||
"context": "Command name shown on the Settings shortcuts page for switching to the Compact browser layout.",
|
||||
"message": "Switch to Compact layout"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SHORTCUT_COMMAND_SWITCH_TO_VERTICAL_LAYOUT",
|
||||
"source": "chrome/app/generated_resources.grd",
|
||||
"context": "Command name shown on the Settings shortcuts page for switching to the Vertical browser layout.",
|
||||
"message": "Switch to Vertical layout"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SHORTCUT_COMMAND_MOVE_TAB_NEXT",
|
||||
"source": "chrome/app/generated_resources.grd",
|
||||
@@ -527,6 +551,18 @@
|
||||
"context": "Command name shown on the Settings shortcuts page for toggling Developer Tools.",
|
||||
"message": "Toggle developer tools"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SHORTCUT_COMMAND_TOGGLE_PIN_TAB",
|
||||
"source": "chrome/app/generated_resources.grd",
|
||||
"context": "Command name shown on the Settings shortcuts page for pinning or unpinning the active tab.",
|
||||
"message": "Pin or unpin tab"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SHORTCUT_COMMAND_TOGGLE_MUTE_SITE",
|
||||
"source": "chrome/app/generated_resources.grd",
|
||||
"context": "Command name shown on the Settings shortcuts page for muting or unmuting the current site.",
|
||||
"message": "Mute or unmute site"
|
||||
},
|
||||
{
|
||||
"name": "IDS_APP_PLUS_KEY",
|
||||
"source": "ui/strings/ui_strings.grd",
|
||||
|
||||
+39
-39
@@ -2,7 +2,7 @@
|
||||
{
|
||||
"name": "IDS_SETTINGS_PERFORMANCE_MEMORY_SAVER_MODE_SETTING_DESCRIPTION",
|
||||
"source": "Helium frees up memory from inactive tabs. This gives active tabs and other apps more computer resources and keeps Helium fast. Your inactive tabs automatically become active again when you go back to them.",
|
||||
"message": "Helium จะคืนหน่วยความจำจากแท็บที่ไม่ได้ใช้งาน ทำให้แท็บที่ใช้งานอยู่และแอปอื่นๆ มีทรัพยากรคอมพิวเตอร์มากขึ้น และทำให้ Helium ทำงานได้เร็ว แท็บที่ไม่ได้ใช้งานจะกลับมาทำงานอีกครั้งโดยอัตโนมัติเมื่อคุณกลับไปที่แท็บนั้น"
|
||||
"message": "Helium จะคืนพื้นที่หน่วยความจำจากแท็บที่ไม่ได้ใช้งาน การกระทำนี้จะทำให้แท็บที่ใช้งานอยู่และแอปอื่นๆ มีทรัพยากรคอมพิวเตอร์มากขึ้น และทำให้ Helium ทำงานได้เร็วขึ้น แท็บที่ไม่ได้ใช้งานจะกลับมาทำงานอีกครั้งโดยอัตโนมัติเมื่อคุณกลับไปที่แท็บนั้น"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_PERFORMANCE_BATTERY_SAVER_MODE_SETTING_DESCRIPTION",
|
||||
@@ -17,7 +17,7 @@
|
||||
{
|
||||
"name": "IDS_SETTINGS_PERFORMANCE_TAB_DISCARDING_EXCEPTIONS_ADD_DIALOG_HELP",
|
||||
"source": "Sites you add will always stay active and memory won't be freed up from them.",
|
||||
"message": "เว็บไซต์ที่คุณเพิ่มจะยังคงทำงานอยู่เสมอและจะไม่มีการคืนหน่วยความจำจากเว็บไซต์เหล่านั้น"
|
||||
"message": "เว็บไซต์ที่คุณเพิ่มจะยังคงทำงานอยู่เสมอและจะไม่มีการคืนพื้นที่หน่วยความจำจากเว็บไซต์เหล่านั้น"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_PERFORMANCE_DISCARD_RING_TREATMENT_ENABLED_DESCRIPTION_WITH_LEARN_LINK",
|
||||
@@ -42,7 +42,7 @@
|
||||
{
|
||||
"name": "IDS_EXTENSIONS_IMPORTER_LOCK_TEXT",
|
||||
"source": "To continue importing data, first close the browser you're importing from.",
|
||||
"message": "หากต้องการนำเข้าข้อมูลต่อ ให้ปิดเบราว์เซอร์ที่คุณกำลังนำเข้าก่อน"
|
||||
"message": "หากต้องการนำเข้าข้อมูลต่อ ให้ปิดเบราว์เซอร์ที่มีโปรไฟล์ที่คุณกำลังนำเข้ามายัง Helium ก่อน"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_HELIUM_SERVICES",
|
||||
@@ -52,7 +52,7 @@
|
||||
{
|
||||
"name": "IDS_SETTINGS_HELIUM_SERVICES_DESCRIPTION",
|
||||
"source": "Manage what Helium services are allowed in your browser",
|
||||
"message": "จัดการบริการ Helium ที่อนุญาตในเบราว์เซอร์ของคุณ"
|
||||
"message": "จัดการบริการ Helium ที่คุณอนุญาตในเบราว์เซอร์ของคุณ"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_HELIUM_SCHEMA_NOTICE_TITLE",
|
||||
@@ -62,7 +62,7 @@
|
||||
{
|
||||
"name": "IDS_SETTINGS_HELIUM_SCHEMA_NOTICE_DESCRIPTION",
|
||||
"source": "These changes are not active until you dismiss this notice.",
|
||||
"message": "การเปลี่ยนแปลงเหล่านี้จะยังไม่มีผลจนกว่าคุณจะปิดข้อความแจ้งนี้"
|
||||
"message": "การเปลี่ยนแปลงเหล่านี้จะยังไม่มีผลจนกว่าคุณจะปิดข้อความแจ้งเตือนนี้"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_HELIUM_SCHEMA_IGNORE",
|
||||
@@ -87,12 +87,12 @@
|
||||
{
|
||||
"name": "IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION",
|
||||
"source": "You can host your own instance of Helium services and use it in your browser instead of the default one. HTTPS only.",
|
||||
"message": "คุณสามารถโฮสต์เซิร์ฟเวอร์บริการ Helium ของคุณเองและใช้ในเบราว์เซอร์แทนเซิร์ฟเวอร์เริ่มต้น HTTPS เท่านั้น"
|
||||
"message": "คุณสามารถโฮสต์เซิร์ฟเวอร์บริการ Helium ของคุณเองและใช้ในเบราว์เซอร์แทนเซิร์ฟเวอร์เริ่มต้น (หมายเหตุ: เซิร์ฟเวอร์บริการ Helium ที่คุณจะใช้แทนเซิร์ฟเวอร์เริ่มต้นต้องใช้การเชื่อมต่อ HTTPS เท่านั้น)"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION_WARNING",
|
||||
"source": "Do not use this field unless you know exactly what you are doing. Never paste URLs from other people here, they are trying to steal your data. We are not responsible for any damages caused by using a custom server and will not be able to help you.",
|
||||
"message": "อย่าใช้ฟิลด์นี้เว้นแต่คุณจะรู้ว่ากำลังทำอะไรอยู่ อย่าวาง URL จากผู้อื่นที่นี่เด็ดขาด เพราะพวกเขากำลังพยายามขโมยข้อมูลของคุณ เราไม่รับผิดชอบต่อความเสียหายใดๆ ที่เกิดจากการใช้เซิร์ฟเวอร์ที่กำหนดเอง และจะไม่สามารถช่วยเหลือคุณได้"
|
||||
"message": "อย่ากรอกอะไรลงไปในฟิลด์นี้เว้นแต่คุณจะรู้ว่ากำลังทำอะไรอยู่ อย่าวาง URL จากผู้อื่นที่นี่เด็ดขาด เพราะพวกเขากำลังพยายามขโมยข้อมูลของคุณ เราไม่รับผิดชอบต่อความเสียหายใดๆ ที่เกิดจากการใช้เซิร์ฟเวอร์ที่กำหนดเอง และจะไม่สามารถช่วยเหลือคุณได้"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_ARIA_LABEL",
|
||||
@@ -197,7 +197,7 @@
|
||||
{
|
||||
"name": "IDS_SETTINGS_HELIUM_SERVICES_UBO_DESCRIPTION",
|
||||
"source": "Helium will fetch fresh filter lists for uBlock Origin. All requests to lists are proxied to protect your privacy. When disabled, default filter lists will be loaded from local storage, which are only updated along with Helium. Optional filter lists will be requested without proxying.",
|
||||
"message": "Helium จะดึงรายการตัวกรองล่าสุดสำหรับ uBlock Origin คำขอไปยังรายการทั้งหมดจะผ่านพร็อกซีเพื่อปกป้องความเป็นส่วนตัวของคุณ เมื่อปิดใช้งาน รายการตัวกรองเริ่มต้นจะถูกโหลดจากที่จัดเก็บในเครื่อง ซึ่งจะอัปเดตเฉพาะพร้อมกับ Helium เท่านั้น รายการตัวกรองที่เลือกเพิ่มเติมจะถูกร้องขอโดยไม่ผ่านพร็อกซี"
|
||||
"message": "Helium จะดึงรายการตัวกรองล่าสุดสำหรับ uBlock Origin คำขอไปยังรายการทั้งหมดจะผ่านพร็อกซีเพื่อปกป้องความเป็นส่วนตัวของคุณ เมื่อปิดใช้งาน รายการตัวกรองเริ่มต้นจะถูกโหลดจากที่จัดเก็บในเครื่อง ซึ่งจะอัปเดตพร้อมกับ Helium เท่านั้น รายการตัวกรองที่เลือกเพิ่มเติมจะถูกร้องขอโดยไม่ผ่านพร็อกซี"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_NEW_TAB_NEXT_TO_ACTIVE_BUTTON",
|
||||
@@ -212,7 +212,7 @@
|
||||
{
|
||||
"name": "IDS_COMPONENTS_SVC_STATUS_ERROR_HELIUM_SERVICES",
|
||||
"source": "Component updates are disabled. See Helium services in settings.",
|
||||
"message": "การอัปเดตคอมโพเนนต์ถูกปิดใช้งาน ดู \"บริการ Helium\" ในการตั้งค่า"
|
||||
"message": "การอัปเดตส่วนประกอบของ Helium ถูกปิดใช้งาน ดู \"บริการ Helium\" ในการตั้งค่า"
|
||||
},
|
||||
{
|
||||
"name": "IDS_TAB_CXMENU_HIBERNATE",
|
||||
@@ -287,7 +287,7 @@
|
||||
{
|
||||
"name": "IDS_EXTENSIONS_INSTALL_LOCATION_HELIUM",
|
||||
"source": "Helium component",
|
||||
"message": "คอมโพเนนต์ Helium"
|
||||
"message": "ส่วนประกอบของ Helium"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_BROWSER_LAYOUT",
|
||||
@@ -472,7 +472,7 @@
|
||||
{
|
||||
"name": "IDS_SHORTCUT_COMMAND_FIND_PREVIOUS",
|
||||
"source": "Find previous",
|
||||
"message": "ค้นหาก่อนหน้า"
|
||||
"message": "ย้อนไปค้นหาที่คำก่อนหน้า"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SHORTCUT_COMMAND_BACK",
|
||||
@@ -482,7 +482,7 @@
|
||||
{
|
||||
"name": "IDS_SHORTCUT_COMMAND_FORWARD",
|
||||
"source": "Forward",
|
||||
"message": "ไปข้างหน้า"
|
||||
"message": "ไปหน้าถัดไป"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SHORTCUT_COMMAND_HOME",
|
||||
@@ -502,7 +502,7 @@
|
||||
{
|
||||
"name": "IDS_SHORTCUT_COMMAND_SELECT_TAB",
|
||||
"source": "Tab <ph name=\"TAB_NUMBER\">$1<ex>1</ex></ph>",
|
||||
"message": "แท็บ <ph name=\"TAB_NUMBER\">$1<ex>1</ex></ph>"
|
||||
"message": "แท็บที่ <ph name=\"TAB_NUMBER\">$1<ex>1</ex></ph>"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SHORTCUT_COMMAND_MOVE_TAB_NEXT",
|
||||
@@ -622,7 +622,7 @@
|
||||
{
|
||||
"name": "IDS_SETTINGS_SHORTCUTS_REMOVE_A11Y_LABEL",
|
||||
"source": "Remove <ph name=\"SHORTCUT\">$1<ex>Ctrl+T</ex></ph> from <ph name=\"COMMAND\">$2<ex>New tab</ex></ph>",
|
||||
"message": "นำ <ph name=\"SHORTCUT\">$1<ex>Ctrl+T</ex></ph> ออกจาก <ph name=\"COMMAND\">$2<ex>New tab</ex></ph>"
|
||||
"message": "นำปุ่มลัด <ph name=\"SHORTCUT\">$1<ex>Ctrl+T</ex></ph> ออกจาก <ph name=\"COMMAND\">$2<ex>New tab</ex></ph>"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_SHORTCUTS_RESET_ALL",
|
||||
@@ -637,7 +637,7 @@
|
||||
{
|
||||
"name": "IDS_SETTINGS_SHORTCUTS_RESET_DIALOG_DESCRIPTION",
|
||||
"source": "All keyboard shortcuts will be reset to their default values. Any custom shortcuts you've set will be lost.",
|
||||
"message": "แป้นพิมพ์ลัดทั้งหมดจะถูกรีเซ็ตเป็นค่าเริ่มต้น ปุ่มลัดแบบกำหนดเองที่คุณตั้งไว้จะถูกล้าง"
|
||||
"message": "ปุ่มลัดทั้งหมดจะถูกรีเซ็ตเป็นค่าเริ่มต้น ปุ่มลัดแบบกำหนดเองที่คุณตั้งไว้จะถูกล้าง"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_SHORTCUTS_PRESS_SHORTCUT",
|
||||
@@ -657,7 +657,7 @@
|
||||
{
|
||||
"name": "IDS_SETTINGS_SHORTCUTS_SYSTEM_CONFLICT",
|
||||
"source": "This shortcut is managed by <ph name=\"COMMAND\">$1<ex>Full screen</ex></ph> and cannot be changed.",
|
||||
"message": "ปุ่มลัดนี้จัดการโดย <ph name=\"COMMAND\">$1<ex>Full screen</ex></ph> และเปลี่ยนแปลงไม่ได้"
|
||||
"message": "ปุ่มลัดนี้ถูกจัดการโดย <ph name=\"COMMAND\">$1<ex>Full screen</ex></ph> และเปลี่ยนแปลงไม่ได้"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_SHORTCUTS_INVALID",
|
||||
@@ -687,17 +687,17 @@
|
||||
{
|
||||
"name": "IDS_SETTINGS_HELIUM_SERVICES_UPDATE_DESCRIPTION",
|
||||
"source": "Helium will automatically check for updates and install them. This includes browser and component updates. We recommend keeping this setting enabled to ensure you get the latest features and security updates.",
|
||||
"message": "Helium จะตรวจหาการอัปเดตและติดตั้งโดยอัตโนมัติ ซึ่งรวมถึงการอัปเดตเบราว์เซอร์และคอมโพเนนต์ เราขอแนะนำให้เปิดใช้การตั้งค่านี้ไว้เพื่อให้คุณได้รับฟีเจอร์ล่าสุดและการอัปเดตความปลอดภัย"
|
||||
"message": "Helium จะตรวจหาการอัปเดตและติดตั้งโดยอัตโนมัติ ซึ่งรวมถึงการอัปเดตเบราว์เซอร์และส่วนประกอบ เราขอแนะนำให้เปิดใช้การตั้งค่านี้ไว้เพื่อให้คุณได้รับฟีเจอร์ล่าสุดและการอัปเดตความปลอดภัย"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_HELIUM_SERVICES_UPDATE",
|
||||
"source": "Allow automatic component updates",
|
||||
"message": "อนุญาตให้อัปเดตคอมโพเนนต์โดยอัตโนมัติ"
|
||||
"message": "อนุญาตให้อัปเดตส่วนประกอบโดยอัตโนมัติ"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_HELIUM_SERVICES_UPDATE_DESCRIPTION",
|
||||
"source": "Helium will automatically check for component updates and install them. We recommend keeping this setting enabled. On Linux, browser updates are handled by your distro's package manager. Please check for Helium package updates at least every week.",
|
||||
"message": "Helium จะตรวจหาการอัปเดตคอมโพเนนต์และติดตั้งโดยอัตโนมัติ เราขอแนะนำให้เปิดใช้การตั้งค่านี้ไว้ บน Linux การอัปเดตเบราว์เซอร์จะจัดการโดยตัวจัดการแพ็กเกจของดิสโทรของคุณ โปรดตรวจสอบการอัปเดตแพ็กเกจ Helium อย่างน้อยทุกสัปดาห์"
|
||||
"message": "Helium จะตรวจหาการอัปเดตส่วนประกอบและติดตั้งโดยอัตโนมัติ เราขอแนะนำให้เปิดใช้การตั้งค่านี้ไว้ บน Linux การอัปเดตเบราว์เซอร์จะจัดการโดยตัวจัดการแพ็กเกจของดิสโทรของคุณ โปรดตรวจสอบการอัปเดตแพ็กเกจ Helium อย่างน้อยทุกสัปดาห์"
|
||||
},
|
||||
{
|
||||
"name": "IDS_TAB_CXMENU_HIBERNATE_OTHER_TABS",
|
||||
@@ -862,7 +862,7 @@
|
||||
{
|
||||
"name": "IDS_HELIUM_CRASH_REPORTING_DIALOG_OPTIONAL",
|
||||
"source": "Nothing has been sent yet. Sending a crash report is optional.",
|
||||
"message": "ยังไม่มีการส่งข้อมูลใดๆ การส่งรายงานข้อขัดข้องเป็นทางเลือก"
|
||||
"message": "ยังไม่มีการส่งข้อมูลใดๆ Helium จะไม่บังคับให้คุณส่งรายงานข้อขัดข้อง"
|
||||
},
|
||||
{
|
||||
"name": "IDS_HELIUM_CRASH_REPORTING_DIALOG_SEND_REPORT",
|
||||
@@ -922,12 +922,12 @@
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_PARTNER_TITLE",
|
||||
"source": "Helium Partner",
|
||||
"message": "พาร์ทเนอร์ Helium"
|
||||
"message": "พาร์ทเนอร์ของ Helium"
|
||||
},
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_PARTNER_TOOLTIP",
|
||||
"source": "Paying for this service will support the development of Helium.",
|
||||
"message": "การจ่ายเงินสำหรับบริการนี้จะสนับสนุน การพัฒนา Helium"
|
||||
"message": "การจ่ายเงินสำหรับบริการนี้จะสนับสนุนการพัฒนา Helium"
|
||||
},
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_WELCOME_GREETING",
|
||||
@@ -957,7 +957,7 @@
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SERVICES_CONNECTION_DESC",
|
||||
"source": "Helium services provide additional functionality, such as: extension downloads, native !bangs, filter list updates, and browser updates. When disabled, none of these features will work, but Helium will not make any web requests.",
|
||||
"message": "บริการ Helium มอบฟังก์ชันเพิ่มเติม เช่น การดาวน์โหลดส่วนขยาย, !bangs แบบเนทีฟ, การอัปเดตรายการตัวกรอง และการอัปเดตเบราว์เซอร์ เมื่อปิดใช้งาน คุณสมบัติเหล่านี้จะไม่ทำงาน แต่ Helium จะไม่ส่งคำขอทางเว็บใดๆ"
|
||||
"message": "บริการ Helium มอบฟังก์ชันเพิ่มเติม เช่น การดาวน์โหลดส่วนขยาย, คำลัด !bangs ในเบราว์เซอร์, การอัปเดตรายการตัวกรอง และการอัปเดตเบราว์เซอร์ เมื่อปิดใช้งาน คุณสมบัติเหล่านี้จะไม่ทำงาน แต่ Helium จะไม่ส่งคำขอทางเว็บใดๆ"
|
||||
},
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SERVICES_BANGS_TITLE",
|
||||
@@ -972,12 +972,12 @@
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SERVICES_EXTENSIONS_TITLE",
|
||||
"source": "Proxy extension downloads and updates",
|
||||
"message": "พร็อกซีการดาวน์โหลดและอัปเดตส่วนขยาย"
|
||||
"message": "ส่งคำขอการดาวน์โหลดและอัปเดตส่วนขยายผ่านพร็อกซี"
|
||||
},
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SERVICES_EXTENSIONS_DESC",
|
||||
"source": "When enabled, Helium will proxy extension downloads and updates to protect your privacy. When disabled, downloading and updating extensions will not work.",
|
||||
"message": "เมื่อเปิดใช้งาน Helium จะพร็อกซีการดาวน์โหลดและอัปเดตส่วนขยายเพื่อปกป้องความเป็นส่วนตัวของคุณ เมื่อปิดใช้งาน การดาวน์โหลดและอัปเดตส่วนขยายจะไม่ทำงาน"
|
||||
"message": "เมื่อเปิดใช้งาน Helium จะส่งคำขอการดาวน์โหลดและอัปเดตส่วนขยายผ่านพร็อกซีเพื่อปกป้องความเป็นส่วนตัวของคุณ เมื่อปิดใช้งาน การดาวน์โหลดและอัปเดตส่วนขยายจะไม่ทำงาน"
|
||||
},
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SERVICES_UBLOCK_TITLE",
|
||||
@@ -987,7 +987,7 @@
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SERVICES_UBLOCK_DESC",
|
||||
"source": "Helium will fetch fresh filter lists for uBlock Origin. All requests to lists are proxied to protect your privacy. When disabled, default filter lists will be loaded from local storage, which are only updated along with Helium. Optional filter lists will be requested without proxying.",
|
||||
"message": "Helium จะดึงรายการตัวกรองใหม่สำหรับ uBlock Origin คำขอไปยังรายการทั้งหมดจะถูกพร็อกซีเพื่อปกป้องความเป็นส่วนตัวของคุณ เมื่อปิดใช้งาน รายการตัวกรองเริ่มต้นจะถูกโหลดจากที่จัดเก็บในเครื่อง ซึ่งจะอัปเดตพร้อมกับ Helium เท่านั้น รายการตัวกรองเสริมจะถูกร้องขอโดยไม่มีการพร็อกซี"
|
||||
"message": "Helium จะดึงรายการตัวกรองใหม่สำหรับ uBlock Origin คำขอไปยังรายการทั้งหมดจะถูกพร็อกซีเพื่อปกป้องความเป็นส่วนตัวของคุณ เมื่อปิดใช้งาน รายการตัวกรองเริ่มต้นจะถูกโหลดจากที่จัดเก็บในเครื่อง ซึ่งจะอัปเดตพร้อมกับ Helium เท่านั้น รายการตัวกรองเสริมจะถูกร้องขอโดยไม่มีการส่งข้อมูลผ่านพร็อกซี"
|
||||
},
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SERVICES_AUTOUPDATES_TITLE",
|
||||
@@ -997,17 +997,17 @@
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SERVICES_AUTOUPDATES_DESC",
|
||||
"source": "Helium will automatically check for updates and install them. This includes browser and component updates. We recommend keeping this setting enabled to ensure you get the latest features and security updates.",
|
||||
"message": "Helium จะตรวจหาการอัปเดตและติดตั้งโดยอัตโนมัติ ซึ่งรวมถึงการอัปเดตเบราว์เซอร์และคอมโพเนนต์ เราแนะนำให้เปิดใช้งานการตั้งค่านี้ไว้เพื่อให้แน่ใจว่าคุณจะได้รับคุณสมบัติและการอัปเดตความปลอดภัยล่าสุด"
|
||||
"message": "Helium จะตรวจหาการอัปเดตและติดตั้งโดยอัตโนมัติ ซึ่งรวมถึงการอัปเดตเบราว์เซอร์และส่วนประกอบ เราแนะนำให้เปิดใช้งานการตั้งค่านี้ไว้เพื่อให้แน่ใจว่าคุณจะได้รับคุณสมบัติและการอัปเดตความปลอดภัยล่าสุด"
|
||||
},
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SERVICES_AUTOUPDATES_TITLE_LINUX",
|
||||
"source": "Allow automatic component updates",
|
||||
"message": "อนุญาตการอัปเดตคอมโพเนนต์อัตโนมัติ"
|
||||
"message": "อนุญาตการอัปเดตส่วนประกอบอัตโนมัติ"
|
||||
},
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SERVICES_AUTOUPDATES_DESC_LINUX",
|
||||
"source": "Helium will automatically check for component updates and install them. We recommend keeping this setting enabled. On Linux, browser updates are handled by your distro's package manager. Please check for Helium package updates at least every week.",
|
||||
"message": "Helium จะตรวจหาการอัปเดตคอมโพเนนต์และติดตั้งโดยอัตโนมัติ เราแนะนำให้เปิดใช้งานการตั้งค่านี้ไว้ บน Linux การอัปเดตเบราว์เซอร์จะจัดการโดยตัวจัดการแพ็กเกจของดิสโทรของคุณ โปรดตรวจหาการอัปเดตแพ็กเกจ Helium อย่างน้อยทุกสัปดาห์"
|
||||
"message": "Helium จะตรวจหาการอัปเดตส่วนประกอบและติดตั้งโดยอัตโนมัติ เราแนะนำให้เปิดใช้งานการตั้งค่านี้ไว้ บน Linux การอัปเดตเบราว์เซอร์จะจัดการโดยตัวจัดการแพ็กเกจของดิสโทรของคุณ โปรดตรวจหาการอัปเดตแพ็กเกจ Helium อย่างน้อยทุกสัปดาห์"
|
||||
},
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SERVICES_SPELLCHECK_TITLE",
|
||||
@@ -1022,32 +1022,32 @@
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SERVICES_INSTANCE_TITLE",
|
||||
"source": "Use your own instance of Helium services",
|
||||
"message": "ใช้อินสแตนซ์บริการ Helium ของคุณเอง"
|
||||
"message": "ใช้เซิร์ฟเวอร์บริการ Helium ของคุณเอง"
|
||||
},
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SERVICES_INSTANCE_DESC",
|
||||
"source": "You can host your own instance of Helium services and use it in your browser instead of the pre-hosted server. If you have one, you can set it in Helium settings.",
|
||||
"message": "คุณสามารถโฮสต์อินสแตนซ์บริการ Helium ของคุณเองและใช้ในเบราว์เซอร์แทนเซิร์ฟเวอร์ที่โฮสต์ไว้ล่วงหน้าได้ หากคุณมี คุณสามารถตั้งค่าได้ในการตั้งค่า Helium"
|
||||
"message": "คุณสามารถโฮสต์เซิร์ฟเวอร์บริการ Helium ของคุณเองและใช้ในเบราว์เซอร์แทนเซิร์ฟเวอร์ที่โฮสต์ไว้ล่วงหน้าได้ หากคุณมี คุณสามารถตั้งค่าได้ในการตั้งค่า Helium"
|
||||
},
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SEARCH_CATEGORIES_PRIVATE",
|
||||
"source": "A privacy-first search engine which doesn't profile or track you.",
|
||||
"message": "เครื่องมือค้นหาที่ให้ความสำคัญกับความเป็นส่วนตัวเป็นอันดับแรก ซึ่ง ไม่สร้างโปรไฟล์หรือติดตามคุณ"
|
||||
"message": "เครื่องมือค้นหาที่ให้ความสำคัญกับความเป็นส่วนตัวเป็นอันดับแรกโดยที่ไม่มีการสร้างโปรไฟล์หรือติดตามคุณ"
|
||||
},
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SEARCH_CATEGORIES_SMALL",
|
||||
"source": "Transparent, but not privacy-focused. Offers better privacy than mainstream search engines.",
|
||||
"message": "โปร่งใส แต่ไม่ได้เน้นความเป็นส่วนตัว ให้ความเป็นส่วนตัวที่ดีกว่าเครื่องมือค้นหา กระแสหลัก"
|
||||
"message": "โปร่งใสแต่ไม่ได้เน้นความเป็นส่วนตัว ให้ความเป็นส่วนตัวที่ดีกว่าเครื่องมือค้นหากระแสหลัก"
|
||||
},
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SEARCH_CATEGORIES_MAINSTREAM",
|
||||
"source": "A mainstream search engine which collects extensive personal data.",
|
||||
"message": "เครื่องมือค้นหากระแสหลักซึ่ง เก็บรวบรวมข้อมูลส่วนบุคคลจำนวนมาก"
|
||||
"message": "เครื่องมือค้นหากระแสหลักที่เก็บรวบรวมข้อมูลส่วนบุคคลจำนวนมาก"
|
||||
},
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SEARCH_CATEGORIES_CUSTOM",
|
||||
"source": "A custom search engine. Its privacy wasn't verified by Helium.",
|
||||
"message": "เครื่องมือค้นหาที่กำหนดเอง ความเป็นส่วนตัวของมัน ไม่ได้รับการยืนยันโดย Helium"
|
||||
"message": "เครื่องมือค้นหาที่กำหนดเอง ความเป็นส่วนตัวของมันไม่ได้รับการยืนยันโดย Helium"
|
||||
},
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SEARCH_ENGINES_BING",
|
||||
@@ -1057,7 +1057,7 @@
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SEARCH_ENGINES_GOOGLE",
|
||||
"source": "It's Google. It dominates the search market, collects extensive personal data, and profiles you.",
|
||||
"message": "นี่คือ Google มันครองตลาดการค้นหา เก็บรวบรวมข้อมูลส่วนบุคคลจำนวนมาก และสร้างโปรไฟล์คุณ"
|
||||
"message": "นี่คือ Google มันครองตลาดการค้นหา เก็บรวบรวมข้อมูลส่วนบุคคลจำนวนมากและสร้างโปรไฟล์คุณ"
|
||||
},
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_DEFAULT_BROWSER_TITLE",
|
||||
@@ -1082,7 +1082,7 @@
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_DATA_IMPORT_SUBTITLE",
|
||||
"source": "Transfer your most important bookmarks, history, and extensions from other browsers.",
|
||||
"message": "โอนบุ๊กมาร์ก ประวัติการเข้าชม และส่วนขยายที่สำคัญที่สุดของคุณจากเบราว์เซอร์อื่น"
|
||||
"message": "ย้ายบุ๊กมาร์ก ประวัติการเข้าชม และส่วนขยายที่สำคัญที่สุดของคุณจากเบราว์เซอร์อื่น"
|
||||
},
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_PASSWORD_TITLE",
|
||||
@@ -1102,7 +1102,7 @@
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_PASSWORD_MANAGERS_DASHLANE",
|
||||
"source": "Popular, paid, and closed-source password manager. Stores data in Europe. Known for aggressive upselling tactics.",
|
||||
"message": "ตัวจัดการรหัสผ่านที่ได้รับความนิยม แบบชำระเงิน และซอร์สปิด จัดเก็บข้อมูลในยุโรป เป็นที่รู้จักจากกลวิธีการเสนอขายที่ก้าวร้าว"
|
||||
"message": "ตัวจัดการรหัสผ่านที่ได้รับความนิยม ต้องจ่ายเงินเพื่อใช้และเป็นระบบปิด จัดเก็บข้อมูลในยุโรป เป็นที่รู้จักจากกลวิธีการเสนอขายที่ก้าวร้าว"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_NOISE",
|
||||
@@ -1192,7 +1192,7 @@
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SEARCH_ENGINES_QWANT",
|
||||
"source": "Based in Europe. Relies on Bing for results. Sends tracking data to Microsoft.",
|
||||
"message": "ตั้งอยู่ในยุโรป ใช้ผลการค้นหาจาก Bing ส่งข้อมูลการติดตามไปยัง Microsoft"
|
||||
"message": "ตั้งอยู่ในยุโรป ใช้ผลการค้นหาจาก Bing และส่งข้อมูลการติดตามไปยัง Microsoft"
|
||||
},
|
||||
{
|
||||
"name": "IDS_HELIUM_ONBOARDING_SEARCH_ENGINES_ECOSIA",
|
||||
|
||||
@@ -1,32 +1,36 @@
|
||||
--- a/chrome/browser/helium_flag_choices.h
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -11,6 +11,15 @@
|
||||
@@ -11,6 +11,16 @@
|
||||
namespace helium {
|
||||
using namespace ::helium;
|
||||
using namespace ::helium;
|
||||
|
||||
+ constexpr const char kEnergySaverFrameRateCommandLine[] = "energy-saver-fps-limit";
|
||||
+ constexpr const FeatureEntry::Choice kEnergySaverFrameRateChoices[] = {
|
||||
+constexpr const char kEnergySaverFrameRateCommandLine[] =
|
||||
+ "energy-saver-fps-limit";
|
||||
+constexpr const FeatureEntry::Choice kEnergySaverFrameRateChoices[] = {
|
||||
+ {flags_ui::kGenericExperimentChoiceAutomatic, "", ""},
|
||||
+ {"30", kEnergySaverFrameRateCommandLine, "30"},
|
||||
+ {"60", kEnergySaverFrameRateCommandLine, "60"},
|
||||
+ {"120", kEnergySaverFrameRateCommandLine, "120"},
|
||||
+ {"Disabled", kEnergySaverFrameRateCommandLine, "9001"},
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
} // namespace helium
|
||||
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_ */
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_ */
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -4,4 +4,8 @@
|
||||
|
||||
#ifndef CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_
|
||||
#define CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_
|
||||
@@ -7,6 +7,11 @@
|
||||
{kHeliumFlagFormattingSentinel, "", "", flags_ui::kFlagInfrastructure,
|
||||
SINGLE_VALUE_TYPE("")},
|
||||
// core
|
||||
+ {helium::kEnergySaverFrameRateCommandLine,
|
||||
+ "Maximum frame rate for Energy Saver",
|
||||
+ "Configures the frame rate the browser is throttled to when Energy Saver is enabled. Helium flag.",
|
||||
+ "Configures the frame rate the browser is throttled to when Energy Saver "
|
||||
+ "is enabled. Helium flag.",
|
||||
+ kOsDesktop, MULTI_VALUE_TYPE(helium::kEnergySaverFrameRateChoices)},
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
// core/network
|
||||
// ui
|
||||
// platform
|
||||
--- a/chrome/browser/performance_manager/user_tuning/battery_saver_mode_manager.cc
|
||||
+++ b/chrome/browser/performance_manager/user_tuning/battery_saver_mode_manager.cc
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
@@ -1,30 +1,33 @@
|
||||
--- a/chrome/browser/helium_flag_choices.h
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -39,6 +39,8 @@ namespace helium {
|
||||
constexpr const char kHeliumSplitClientHelloCommandLine[] =
|
||||
"helium-split-clienthello";
|
||||
@@ -29,6 +29,9 @@ constexpr const FeatureEntry::Choice kCh
|
||||
|
||||
+ constexpr const char kMiddleClickAutoscrollCommandLine[] = "middle-click-autoscroll";
|
||||
constexpr const char kUpdateServerUrlCommandLine[] = "custom-update-server-url";
|
||||
|
||||
+constexpr const char kMiddleClickAutoscrollCommandLine[] =
|
||||
+ "middle-click-autoscroll";
|
||||
+
|
||||
} // namespace helium
|
||||
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_ */
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_ */
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -43,4 +43,8 @@
|
||||
"Random TLS ClientHello splitting",
|
||||
"Splits outgoing TLS ClientHello messages across two TLS records at a random point. The split targets the visible server name, or the ECH extension when ECH is used. This can bypass some domain-based network filtering, but it does not hide DNS queries or destination IP addresses and makes TLS traffic unusual and potentially recognizable. Some middleboxes and TLS endpoints mishandle this behavior and may become inaccessible. Helium flag.",
|
||||
kOsAll, FEATURE_VALUE_TYPE(net::features::kHeliumSplitClientHello)},
|
||||
+ {helium::kMiddleClickAutoscrollCommandLine,
|
||||
+ "Middle Click Autoscroll",
|
||||
@@ -23,6 +23,10 @@
|
||||
"Overrides the default URL for fetching updates. Should be used only for "
|
||||
"testing. Helium flag.",
|
||||
kOsDesktop, STRING_VALUE_TYPE(helium::kUpdateServerUrlCommandLine, "")},
|
||||
+ {helium::kMiddleClickAutoscrollCommandLine, "Middle Click Autoscroll",
|
||||
+ "Enables autoscroll on middle click. Helium flag, Chromium feature.",
|
||||
+ kOsDesktop, FEATURE_VALUE_TYPE(blink::features::kHeliumMiddleClickAutoscroll)},
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
+ kOsDesktop,
|
||||
+ FEATURE_VALUE_TYPE(blink::features::kHeliumMiddleClickAutoscroll)},
|
||||
// core/network
|
||||
// ui
|
||||
// platform
|
||||
--- a/third_party/blink/public/common/features.h
|
||||
+++ b/third_party/blink/public/common/features.h
|
||||
@@ -45,6 +45,8 @@ BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumNoiseAudio);
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumNoiseCpuCores);
|
||||
@@ -40,6 +40,8 @@ BLINK_COMMON_EXPORT extern const base::F
|
||||
// `RuntimeEnabledFeatures)`, they should still be ordered in this section based
|
||||
// on the identifier name of the generated feature.
|
||||
|
||||
+BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumMiddleClickAutoscroll);
|
||||
+
|
||||
@@ -51,7 +54,7 @@
|
||||
BASE_FEATURE(kRemoveClientHints, "RemoveClientHints", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
--- a/third_party/blink/renderer/core/exported/web_view_impl.cc
|
||||
+++ b/third_party/blink/renderer/core/exported/web_view_impl.cc
|
||||
@@ -1911,9 +1911,9 @@ void WebView::ApplyWebPreferences(const
|
||||
@@ -1905,9 +1905,9 @@ void WebView::ApplyWebPreferences(const
|
||||
prefs.default_maximum_page_scale_factor);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -63,31 +63,31 @@
|
||||
+#endif /* CHROME_BROWSER_CHANNEL_SELECTION_H_ */
|
||||
--- a/chrome/browser/helium_flag_choices.h
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -20,6 +20,12 @@ namespace helium {
|
||||
@@ -21,6 +21,12 @@ constexpr const FeatureEntry::Choice kEn
|
||||
{"Disabled", kEnergySaverFrameRateCommandLine, "9001"},
|
||||
};
|
||||
};
|
||||
|
||||
+ constexpr const FeatureEntry::Choice kChannelChoices[] = {
|
||||
+constexpr const FeatureEntry::Choice kChannelChoices[] = {
|
||||
+ {flags_ui::kGenericExperimentChoiceAutomatic, "", ""},
|
||||
+ {kChannelStable, kChannelCommandLine, kChannelStable},
|
||||
+ {kChannelBeta, kChannelCommandLine, kChannelBeta},
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
} // namespace helium
|
||||
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_ */
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_ */
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -4,6 +4,9 @@
|
||||
|
||||
#ifndef CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_
|
||||
#define CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_
|
||||
+ {helium::kChannelCommandLine,
|
||||
+ "Update channel", "Selects which update channel to use for update checking. Helium flag.",
|
||||
@@ -16,6 +16,9 @@
|
||||
"Controls whether Helium asks for confirmation before opening 15 or more "
|
||||
"bookmarks at once. Helium flag.",
|
||||
kOsDesktop, FEATURE_VALUE_TYPE(features::kBookmarkOpenAllConfirmation)},
|
||||
+ {helium::kChannelCommandLine, "Update channel",
|
||||
+ "Selects which update channel to use for update checking. Helium flag.",
|
||||
+ kOsAll, MULTI_VALUE_TYPE(helium::kChannelChoices)},
|
||||
{helium::kEnergySaverFrameRateCommandLine,
|
||||
"Maximum frame rate for Energy Saver",
|
||||
"Configures the frame rate the browser is throttled to when Energy Saver is enabled. Helium flag.",
|
||||
// core/network
|
||||
// ui
|
||||
// platform
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -286,6 +286,12 @@ source_set("chained_back_navigation_trac
|
||||
|
||||
@@ -176,23 +176,25 @@
|
||||
</message>
|
||||
--- a/chrome/browser/helium_flag_choices.h
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -26,6 +26,9 @@ namespace helium {
|
||||
@@ -27,6 +27,8 @@ constexpr const FeatureEntry::Choice kCh
|
||||
{kChannelBeta, kChannelCommandLine, kChannelBeta},
|
||||
};
|
||||
};
|
||||
|
||||
+ constexpr const char kUpdateServerUrlCommandLine[] =
|
||||
+ "custom-update-server-url";
|
||||
+constexpr const char kUpdateServerUrlCommandLine[] = "custom-update-server-url";
|
||||
+
|
||||
} // namespace helium
|
||||
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_ */
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_ */
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -11,4 +11,7 @@
|
||||
"Maximum frame rate for Energy Saver",
|
||||
"Configures the frame rate the browser is throttled to when Energy Saver is enabled. Helium flag.",
|
||||
kOsDesktop, MULTI_VALUE_TYPE(helium::kEnergySaverFrameRateChoices)},
|
||||
@@ -19,6 +19,10 @@
|
||||
{helium::kChannelCommandLine, "Update channel",
|
||||
"Selects which update channel to use for update checking. Helium flag.",
|
||||
kOsAll, MULTI_VALUE_TYPE(helium::kChannelChoices)},
|
||||
+ {helium::kUpdateServerUrlCommandLine, "Update server URL",
|
||||
+ "Overrides the default URL for fetching updates. Should be used only for testing. Helium flag.", kOsDesktop,
|
||||
+ STRING_VALUE_TYPE(helium::kUpdateServerUrlCommandLine, "")},
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
+ "Overrides the default URL for fetching updates. Should be used only for "
|
||||
+ "testing. Helium flag.",
|
||||
+ kOsDesktop, STRING_VALUE_TYPE(helium::kUpdateServerUrlCommandLine, "")},
|
||||
// core/network
|
||||
// ui
|
||||
// platform
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -12,6 +12,10 @@
|
||||
"Configures the frame rate the browser is throttled to when Energy Saver "
|
||||
"is enabled. Helium flag.",
|
||||
kOsDesktop, MULTI_VALUE_TYPE(helium::kEnergySaverFrameRateChoices)},
|
||||
+ {"bookmark-open-all-confirmation", "Bookmark open-all confirmation",
|
||||
+ "Controls whether Helium asks for confirmation before opening 15 or more "
|
||||
+ "bookmarks at once. Helium flag.",
|
||||
+ kOsDesktop, FEATURE_VALUE_TYPE(features::kBookmarkOpenAllConfirmation)},
|
||||
// core/network
|
||||
// ui
|
||||
// platform
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -29,6 +29,9 @@ bool IsProcessOverheadExperimentActive()
|
||||
|
||||
namespace features {
|
||||
|
||||
+// Controls the confirmation shown before opening many bookmarks at once.
|
||||
+BASE_FEATURE(kBookmarkOpenAllConfirmation, base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
+
|
||||
// Enables the migration of browser commands to Action API.
|
||||
BASE_FEATURE(kUseActionsForBrowserCommands, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
--- a/chrome/browser/ui/ui_features.h
|
||||
+++ b/chrome/browser/ui/ui_features.h
|
||||
@@ -19,6 +19,8 @@ namespace features {
|
||||
// All features in alphabetical order. The features should be documented
|
||||
// alongside the definition of their values in the .cc file.
|
||||
|
||||
+BASE_DECLARE_FEATURE(kBookmarkOpenAllConfirmation);
|
||||
+
|
||||
BASE_DECLARE_FEATURE(kUseActionsForBrowserCommands);
|
||||
|
||||
BASE_DECLARE_FEATURE(kAllowEyeDropperWGCScreenCapture);
|
||||
--- a/chrome/browser/ui/bookmarks/bookmark_utils_desktop.cc
|
||||
+++ b/chrome/browser/ui/bookmarks/bookmark_utils_desktop.cc
|
||||
@@ -597,7 +597,8 @@ void OpenAllIfAllowed(
|
||||
|
||||
// Skip the prompt if there are few bookmarks.
|
||||
size_t child_count = url_and_ids.size();
|
||||
- if (child_count < bookmarks::kNumBookmarkUrlsBeforePrompting) {
|
||||
+ if (!base::FeatureList::IsEnabled(features::kBookmarkOpenAllConfirmation) ||
|
||||
+ child_count < bookmarks::kNumBookmarkUrlsBeforePrompting) {
|
||||
DoOpenPromptConfirm(
|
||||
browser, std::move(url_and_ids), initial_disposition,
|
||||
bookmark_folder_node_id,
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -12086,6 +12086,12 @@ Check your passwords anytime in <ph name
|
||||
@@ -12104,6 +12104,12 @@ Check your passwords anytime in <ph name
|
||||
<message name="IDS_TAB_CXMENU_HIBERNATE_OTHER_TABS" desc="The label of the 'Hibernate other tabs' Tab context menu item.">
|
||||
Hibernate other tabs
|
||||
</message>
|
||||
@@ -13,7 +13,7 @@
|
||||
<message name="IDS_TAB_CXMENU_CLOSETAB" desc="The label of the tab context menu item for closing one or more tabs.">
|
||||
Close
|
||||
</message>
|
||||
@@ -12211,6 +12217,12 @@ Check your passwords anytime in <ph name
|
||||
@@ -12229,6 +12235,12 @@ Check your passwords anytime in <ph name
|
||||
<message name="IDS_TAB_CXMENU_HIBERNATE_OTHER_TABS" desc="In Title Case: The label of the 'Hibernate Other Tabs' Tab context menu item.">
|
||||
Hibernate Other Tabs
|
||||
</message>
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
+#endif // CHROME_BROWSER_UI_BROWSER_SHORTCUTS_BROWSER_SHORTCUT_METADATA_H_
|
||||
--- /dev/null
|
||||
+++ b/chrome/browser/ui/browser_shortcuts/browser_shortcut_metadata.cc
|
||||
@@ -0,0 +1,263 @@
|
||||
@@ -0,0 +1,350 @@
|
||||
+// Copyright 2026 The Helium Authors
|
||||
+// You can use, redistribute, and/or modify this source code under
|
||||
+// the terms of the GPL-3.0 license that can be found in the LICENSE file.
|
||||
@@ -117,6 +117,7 @@
|
||||
+#include <vector>
|
||||
+
|
||||
+#include "base/check.h"
|
||||
+#include "build/build_config.h"
|
||||
+#include "chrome/app/chrome_command_ids.h"
|
||||
+#include "chrome/browser/ui/helium/helium_layout_state_controller.h"
|
||||
+#include "chrome/browser/ui/tabs/features.h"
|
||||
@@ -147,14 +148,14 @@
|
||||
+ case IDC_DEBUG_TOGGLE_TABLET_MODE:
|
||||
+ case IDC_DEBUG_PRINT_VIEW_TREE:
|
||||
+ case IDC_DEBUG_PRINT_VIEW_TREE_DETAILS:
|
||||
+#if BUILDFLAG(IS_MAC)
|
||||
+ case IDC_EXIT:
|
||||
+#endif
|
||||
+ case IDC_HELP_PAGE_VIA_MENU:
|
||||
+ case IDC_HIDE_APP:
|
||||
+ case IDC_MINIMIZE_WINDOW:
|
||||
+ case IDC_OPTIONS:
|
||||
+ case IDC_PASTE:
|
||||
+ case IDC_TOGGLE_FULLSCREEN_TOOLBAR:
|
||||
+ case IDC_WEB_APP_SETTINGS:
|
||||
+ case IDC_CONTENT_CONTEXT_COPY:
|
||||
+ case IDC_CONTENT_CONTEXT_CUT:
|
||||
+ case IDC_CONTENT_CONTEXT_PASTE:
|
||||
@@ -196,6 +197,8 @@
|
||||
+ return Label(IDS_APP_MENU_RELOAD);
|
||||
+ case IDC_RELOAD_BYPASSING_CACHE:
|
||||
+ return Label(IDS_RELOAD_MENU_HARD_RELOAD_ITEM);
|
||||
+ case IDC_RELOAD_CLEARING_CACHE:
|
||||
+ return Label(IDS_RELOAD_MENU_EMPTY_AND_HARD_RELOAD_ITEM);
|
||||
+ case IDC_STOP:
|
||||
+ return Label(IDS_TOOLTIP_STOP);
|
||||
+ case IDC_NEW_WINDOW:
|
||||
@@ -206,6 +209,28 @@
|
||||
+ return Label(IDS_NEW_TAB);
|
||||
+ case IDC_NEW_SPLIT_TAB:
|
||||
+ return Label(IDS_SHORTCUT_COMMAND_NEW_SPLIT_TAB);
|
||||
+ case IDC_DUPLICATE_TAB:
|
||||
+ return Label(IDS_SHORTCUT_COMMAND_DUPLICATE_TAB);
|
||||
+ case IDC_EXIT:
|
||||
+ return Label(IDS_EXIT);
|
||||
+ case IDC_MOVE_TAB_TO_NEW_WINDOW:
|
||||
+ return Label(IDS_MOVE_TAB_TO_NEW_WINDOW);
|
||||
+ case IDC_NEW_TAB_TO_RIGHT:
|
||||
+ return Label(IDS_TAB_CXMENU_NEWTABTORIGHT);
|
||||
+ case IDC_WINDOW_CLOSE_TABS_TO_RIGHT:
|
||||
+ return Label(IDS_TAB_CXMENU_CLOSETABSTORIGHT);
|
||||
+ case IDC_WINDOW_CLOSE_OTHER_TABS:
|
||||
+ return Label(IDS_TAB_CXMENU_CLOSEOTHERTABS);
|
||||
+ case IDC_WINDOW_PIN_TAB:
|
||||
+ return Label(IDS_SHORTCUT_COMMAND_TOGGLE_PIN_TAB);
|
||||
+ case IDC_SHOW_AS_TAB:
|
||||
+ return Label(IDS_SHOW_AS_TAB);
|
||||
+ case IDC_OPEN_IN_PWA_WINDOW:
|
||||
+ return Label(IDS_INTENT_CHIP_OPEN_IN_APP);
|
||||
+ case IDC_WEB_APP_SETTINGS:
|
||||
+ return Label(IDS_WEB_APP_SETTINGS_TITLE);
|
||||
+ case IDC_WEB_APP_MENU_APP_INFO:
|
||||
+ return Label(IDS_APP_CONTEXT_MENU_SHOW_INFO);
|
||||
+ case IDC_CLOSE_TAB:
|
||||
+ return Label(IDS_TAB_SEARCH_CLOSE_TAB);
|
||||
+ case IDC_CLOSE_WINDOW:
|
||||
@@ -264,6 +289,20 @@
|
||||
+ return Label(IDS_HISTORY_MENU);
|
||||
+ case IDC_SHOW_DOWNLOADS:
|
||||
+ return Label(IDS_SHOW_DOWNLOADS);
|
||||
+ case IDC_CREATE_SHORTCUT:
|
||||
+ return Label(IDS_ADD_TO_OS_LAUNCH_SURFACE);
|
||||
+ case IDC_INSTALL_PWA:
|
||||
+ return Label(IDS_INSTALL_DIY_TO_OS_LAUNCH_SURFACE);
|
||||
+ case IDC_ROUTE_MEDIA:
|
||||
+ return Label(IDS_MEDIA_ROUTER_MENU_ITEM_TITLE);
|
||||
+ case IDC_WINDOW_MUTE_SITE:
|
||||
+ return Label(IDS_SHORTCUT_COMMAND_TOGGLE_MUTE_SITE);
|
||||
+ case IDC_QRCODE_GENERATOR:
|
||||
+ return Label(IDS_SHARING_HUB_GENERATE_QR_CODE_LABEL);
|
||||
+ case IDC_SHARING_HUB_SCREENSHOT:
|
||||
+ return Label(IDS_SHARING_HUB_SCREENSHOT_LABEL);
|
||||
+ case IDC_SHOW_FULL_URLS:
|
||||
+ return Label(IDS_CONTEXT_MENU_SHOW_FULL_URLS);
|
||||
+ case IDC_OPEN_FILE:
|
||||
+ return Label(IDS_OPEN_FILE_DIALOG_TITLE);
|
||||
+ case IDC_SAVE_PAGE:
|
||||
@@ -320,6 +359,24 @@
|
||||
+ return Label(IDS_SETTINGS_ENABLE_CARET_BROWSING_TITLE);
|
||||
+ case IDC_CLEAR_BROWSING_DATA:
|
||||
+ return Label(IDS_CLEAR_BROWSING_DATA);
|
||||
+ case IDC_IMPORT_SETTINGS:
|
||||
+ return Label(IDS_IMPORT_SETTINGS_MENU_LABEL);
|
||||
+ case IDC_MANAGE_EXTENSIONS:
|
||||
+ return Label(IDS_SHOW_EXTENSIONS);
|
||||
+ case IDC_DEV_TOOLS_DEVICES:
|
||||
+ return Label(IDS_DEV_TOOLS_DEVICES);
|
||||
+ case IDC_SHOW_MANAGEMENT_PAGE:
|
||||
+ return Label(IDS_OPENS_MANAGEMENT_PAGE);
|
||||
+ case IDC_PERFORMANCE:
|
||||
+ return Label(IDS_SHOW_PERFORMANCE);
|
||||
+ case IDC_BROWSER_LAYOUT_CLASSIC:
|
||||
+ return Label(IDS_SHORTCUT_COMMAND_SWITCH_TO_CLASSIC_LAYOUT);
|
||||
+ case IDC_BROWSER_LAYOUT_COMPACT:
|
||||
+ return Label(IDS_SHORTCUT_COMMAND_SWITCH_TO_COMPACT_LAYOUT);
|
||||
+ case IDC_BROWSER_LAYOUT_VERTICAL:
|
||||
+ return Label(IDS_SHORTCUT_COMMAND_SWITCH_TO_VERTICAL_LAYOUT);
|
||||
+ case IDC_OPTIONS:
|
||||
+ return Label(IDS_SETTINGS);
|
||||
+ case IDC_HELP_PAGE_VIA_KEYBOARD:
|
||||
+ return Label(IDS_HELP_PAGE);
|
||||
+ case IDC_TASK_MANAGER_SHORTCUT:
|
||||
@@ -360,6 +417,36 @@
|
||||
+
|
||||
+ commands.push_back(ShouldUseCopyPageUrlLabel(prefs) ? IDC_DEV_TOOLS_INSPECT
|
||||
+ : IDC_COPY_URL);
|
||||
+ commands.push_back(IDC_DUPLICATE_TAB);
|
||||
+#if !BUILDFLAG(IS_MAC)
|
||||
+ commands.push_back(IDC_EXIT);
|
||||
+#endif
|
||||
+ commands.push_back(IDC_MOVE_TAB_TO_NEW_WINDOW);
|
||||
+ commands.push_back(IDC_NEW_TAB_TO_RIGHT);
|
||||
+ commands.push_back(IDC_WINDOW_CLOSE_TABS_TO_RIGHT);
|
||||
+ commands.push_back(IDC_WINDOW_CLOSE_OTHER_TABS);
|
||||
+ commands.push_back(IDC_WINDOW_PIN_TAB);
|
||||
+ commands.push_back(IDC_SHOW_AS_TAB);
|
||||
+ commands.push_back(IDC_OPEN_IN_PWA_WINDOW);
|
||||
+ commands.push_back(IDC_WEB_APP_SETTINGS);
|
||||
+ commands.push_back(IDC_WEB_APP_MENU_APP_INFO);
|
||||
+ commands.push_back(IDC_CREATE_SHORTCUT);
|
||||
+ commands.push_back(IDC_INSTALL_PWA);
|
||||
+ commands.push_back(IDC_ROUTE_MEDIA);
|
||||
+ commands.push_back(IDC_WINDOW_MUTE_SITE);
|
||||
+ commands.push_back(IDC_QRCODE_GENERATOR);
|
||||
+ commands.push_back(IDC_SHARING_HUB_SCREENSHOT);
|
||||
+ commands.push_back(IDC_SHOW_FULL_URLS);
|
||||
+ commands.push_back(IDC_RELOAD_CLEARING_CACHE);
|
||||
+ commands.push_back(IDC_IMPORT_SETTINGS);
|
||||
+ commands.push_back(IDC_MANAGE_EXTENSIONS);
|
||||
+ commands.push_back(IDC_DEV_TOOLS_DEVICES);
|
||||
+ commands.push_back(IDC_SHOW_MANAGEMENT_PAGE);
|
||||
+ commands.push_back(IDC_PERFORMANCE);
|
||||
+ commands.push_back(IDC_BROWSER_LAYOUT_CLASSIC);
|
||||
+ commands.push_back(IDC_BROWSER_LAYOUT_COMPACT);
|
||||
+ commands.push_back(IDC_BROWSER_LAYOUT_VERTICAL);
|
||||
+ commands.push_back(IDC_OPTIONS);
|
||||
+ return commands;
|
||||
+}
|
||||
+
|
||||
@@ -1583,7 +1670,7 @@
|
||||
]
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -1874,6 +1874,96 @@ are declared in tools/grit/grit_args.gni
|
||||
@@ -1874,6 +1874,114 @@ are declared in tools/grit/grit_args.gni
|
||||
<message name="IDS_CHROME_WHATS_NEW" desc="The text label of the Help menu item which takes the user to the Chrome What's New page.">
|
||||
What's New
|
||||
</message>
|
||||
@@ -1620,6 +1707,18 @@
|
||||
+ <message name="IDS_SHORTCUT_COMMAND_SELECT_TAB" desc="Command name shown on the Settings shortcuts page for selecting a tab by number.">
|
||||
+ Tab <ph name="TAB_NUMBER">$1<ex>1</ex></ph>
|
||||
+ </message>
|
||||
+ <message name="IDS_SHORTCUT_COMMAND_DUPLICATE_TAB" desc="Command name shown on the Settings shortcuts page for duplicating the current tab.">
|
||||
+ Duplicate tab
|
||||
+ </message>
|
||||
+ <message name="IDS_SHORTCUT_COMMAND_SWITCH_TO_CLASSIC_LAYOUT" desc="Command name shown on the Settings shortcuts page for switching to the Classic browser layout.">
|
||||
+ Switch to Classic layout
|
||||
+ </message>
|
||||
+ <message name="IDS_SHORTCUT_COMMAND_SWITCH_TO_COMPACT_LAYOUT" desc="Command name shown on the Settings shortcuts page for switching to the Compact browser layout.">
|
||||
+ Switch to Compact layout
|
||||
+ </message>
|
||||
+ <message name="IDS_SHORTCUT_COMMAND_SWITCH_TO_VERTICAL_LAYOUT" desc="Command name shown on the Settings shortcuts page for switching to the Vertical browser layout.">
|
||||
+ Switch to Vertical layout
|
||||
+ </message>
|
||||
+ <message name="IDS_SHORTCUT_COMMAND_MOVE_TAB_NEXT" desc="Command name shown on the Settings shortcuts page for moving the current tab to the right.">
|
||||
+ Move tab right
|
||||
+ </message>
|
||||
@@ -1676,6 +1775,12 @@
|
||||
+ </message>
|
||||
+ <message name="IDS_SHORTCUT_COMMAND_TOGGLE_DEV_TOOLS" desc="Command name shown on the Settings shortcuts page for toggling Developer Tools.">
|
||||
+ Toggle developer tools
|
||||
+ </message>
|
||||
+ <message name="IDS_SHORTCUT_COMMAND_TOGGLE_PIN_TAB" desc="Command name shown on the Settings shortcuts page for pinning or unpinning the active tab.">
|
||||
+ Pin or unpin tab
|
||||
+ </message>
|
||||
+ <message name="IDS_SHORTCUT_COMMAND_TOGGLE_MUTE_SITE" desc="Command name shown on the Settings shortcuts page for muting or unmuting the current site.">
|
||||
+ Mute or unmute site
|
||||
+ </message>
|
||||
<if expr="not use_titlecase">
|
||||
<message name="IDS_IMPORT_SETTINGS_MENU_LABEL" desc="In sentence case: The app menu label to import bookmarks and settings.">
|
||||
|
||||
@@ -18,26 +18,29 @@
|
||||
if (editable) {
|
||||
AppendOtherEditableItems();
|
||||
}
|
||||
@@ -2473,46 +2462,6 @@ void RenderViewContextMenu::AppendPageIt
|
||||
@@ -2484,49 +2473,6 @@ void RenderViewContextMenu::AppendPageIt
|
||||
IDS_CONTENT_CONTEXT_SAVEPAGEAS);
|
||||
menu_model_.AddItemWithStringId(IDC_PRINT, IDS_CONTENT_CONTEXT_PRINT);
|
||||
|
||||
- AppendLiveCaptionItem();
|
||||
- menu_model_.AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
-
|
||||
- // Ask gemini
|
||||
- size_t count_before = menu_model_.GetItemCount();
|
||||
- MaybeAppendOpenGlicItem();
|
||||
- // Remove separator to group with Lens
|
||||
- if (menu_model_.GetItemCount() > count_before &&
|
||||
- menu_model_.GetTypeAt(menu_model_.GetItemCount() - 1) ==
|
||||
- ui::MenuModel::TYPE_SEPARATOR) {
|
||||
- menu_model_.RemoveItemAt(menu_model_.GetItemCount() - 1);
|
||||
- }
|
||||
- if (!glic_below_search) {
|
||||
- // Ask gemini
|
||||
- MaybeAppendOpenGlicItem(/*add_separator=*/false);
|
||||
-
|
||||
- // Search with google lens
|
||||
- if (IsRegionSearchEnabled()) {
|
||||
- AppendRegionSearchItem();
|
||||
- // Search with google lens
|
||||
- if (IsRegionSearchEnabled()) {
|
||||
- AppendRegionSearchItem();
|
||||
- }
|
||||
- } else {
|
||||
- // Search with google lens
|
||||
- if (IsRegionSearchEnabled()) {
|
||||
- AppendRegionSearchItem();
|
||||
- }
|
||||
-
|
||||
- // Ask gemini
|
||||
- MaybeAppendOpenGlicItem(/*add_separator=*/false);
|
||||
- }
|
||||
-
|
||||
- // Open in reading mode & Listen to this page
|
||||
@@ -65,7 +68,7 @@
|
||||
menu_model_.AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
return;
|
||||
}
|
||||
@@ -2528,7 +2477,6 @@ void RenderViewContextMenu::AppendPageIt
|
||||
@@ -2544,7 +2490,6 @@ void RenderViewContextMenu::AppendPageIt
|
||||
IDS_CONTENT_CONTEXT_SAVEPAGEAS);
|
||||
menu_model_.AddItemWithStringId(IDC_PRINT, IDS_CONTENT_CONTEXT_PRINT);
|
||||
AppendLiveCaptionItem();
|
||||
@@ -73,7 +76,7 @@
|
||||
|
||||
if (features::IsReadAnythingMenuShuffleExperimentEnabled()) {
|
||||
// This will be set to false in AppendRegionSearchItem() if it is called.
|
||||
@@ -2742,7 +2690,7 @@ void RenderViewContextMenu::AppendReadAn
|
||||
@@ -2764,7 +2709,7 @@ void RenderViewContextMenu::AppendReadAn
|
||||
}
|
||||
|
||||
// Show Read Anything option if it's not already open in the side panel.
|
||||
@@ -82,7 +85,7 @@
|
||||
std::u16string label;
|
||||
const std::u16string printable_selection_text = PrintableSelectionText();
|
||||
if (is_menu_simplification_enabled && !printable_selection_text.empty()) {
|
||||
@@ -4144,30 +4092,9 @@ void RenderViewContextMenu::ExecuteComma
|
||||
@@ -4178,30 +4123,9 @@ void RenderViewContextMenu::ExecuteComma
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,7 +118,7 @@
|
||||
|
||||
// static
|
||||
void RenderViewContextMenu::RegisterMenuShownCallbackForTesting(
|
||||
@@ -4549,7 +4476,7 @@ bool RenderViewContextMenu::AppendQRCode
|
||||
@@ -4583,7 +4507,7 @@ bool RenderViewContextMenu::AppendQRCode
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -124,7 +127,7 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -5635,19 +5562,11 @@ ToastController* RenderViewContextMenu::
|
||||
@@ -5669,19 +5593,11 @@ ToastController* RenderViewContextMenu::
|
||||
}
|
||||
|
||||
bool RenderViewContextMenu::CanTranslate(bool menu_logging) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -122,7 +122,7 @@ BASE_FEATURE(kExtensionsPinnedByDefault,
|
||||
@@ -125,7 +125,7 @@ BASE_FEATURE(kExtensionsPinnedByDefault,
|
||||
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC)
|
||||
// Shows an infobar on PDFs offering to become the default PDF viewer if Chrome
|
||||
// isn't the default already.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -267,13 +267,7 @@ BASE_FEATURE(kPasswordSaveUpdateDropdown
|
||||
@@ -270,13 +270,7 @@ BASE_FEATURE(kPasswordSaveUpdateDropdown
|
||||
base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -419,7 +419,7 @@ BASE_FEATURE(kTabsFromOtherDevicesSidePa
|
||||
@@ -422,7 +422,7 @@ BASE_FEATURE(kTabsFromOtherDevicesSidePa
|
||||
BASE_FEATURE(kTabsFromOtherDevicesSidePanelPinnedByDefault,
|
||||
base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -65,8 +65,8 @@ BASE_FEATURE_PARAM(bool,
|
||||
@@ -68,8 +68,8 @@ BASE_FEATURE_PARAM(bool,
|
||||
"back-forward",
|
||||
true);
|
||||
BASE_FEATURE(kMenuSimplification, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -13361,11 +13361,518 @@ const FeatureEntry kFeatureEntries[] = {
|
||||
@@ -13363,11 +13363,518 @@ const FeatureEntry kFeatureEntries[] = {
|
||||
// AboutFlagsHistogramTest unit test to verify this process).
|
||||
};
|
||||
|
||||
@@ -520,7 +520,7 @@
|
||||
FlagsStateSingleton(const FlagsStateSingleton&) = delete;
|
||||
FlagsStateSingleton& operator=(const FlagsStateSingleton&) = delete;
|
||||
~FlagsStateSingleton() override = default;
|
||||
@@ -13384,7 +13891,7 @@ class FlagsStateSingleton : public flags
|
||||
@@ -13386,7 +13893,7 @@ class FlagsStateSingleton : public flags
|
||||
|
||||
void RestoreDefaultState() {
|
||||
flags_state_ =
|
||||
@@ -529,7 +529,7 @@
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -13709,7 +14216,7 @@ base::span<const FeatureEntry> GetFeatur
|
||||
@@ -13715,7 +14222,7 @@ base::span<const FeatureEntry> GetFeatur
|
||||
!entries_for_testing->empty()) {
|
||||
return *entries_for_testing;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -422,11 +422,11 @@ namespace about_flags {
|
||||
@@ -422,11 +422,13 @@ namespace about_flags {
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
-const unsigned kOsDesktop = kOsMac | kOsWin | kOsLinux | kOsCrOS;
|
||||
+const unsigned kOsAll = kOsMac | kOsWin | kOsLinux;
|
||||
+const unsigned kOsDesktop = kOsMac | kOsWin | kOsLinux;
|
||||
+
|
||||
+constexpr char kHeliumFlagFormattingSentinel[] = "dummy-flag-for-formatting";
|
||||
|
||||
#if defined(USE_AURA)
|
||||
-const unsigned kOsAura = kOsWin | kOsLinux | kOsCrOS;
|
||||
@@ -15,7 +17,7 @@
|
||||
#endif // USE_AURA
|
||||
|
||||
#if defined(USE_AURA)
|
||||
@@ -4752,11 +4752,13 @@ const FeatureEntry::FeatureVariation kTo
|
||||
@@ -4752,11 +4754,13 @@ const FeatureEntry::FeatureVariation kTo
|
||||
// calculate and verify checksum.
|
||||
//
|
||||
// When adding a new choice, add it to the end of the list.
|
||||
@@ -29,6 +31,17 @@
|
||||
#include "chrome/browser/ungoogled_flag_entries.h"
|
||||
#include "chrome/browser/bromite_flag_entries.h"
|
||||
#include "chrome/browser/ungoogled_platform_flag_entries.h"
|
||||
@@ -13453,6 +13457,10 @@ void GetStorage(Profile* profile, GetSto
|
||||
|
||||
bool ShouldSkipConditionalFeatureEntry(const flags_ui::FlagsStorage* storage,
|
||||
const FeatureEntry& entry) {
|
||||
+ if (std::string_view(entry.internal_name) == kHeliumFlagFormattingSentinel) {
|
||||
+ return true;
|
||||
+ }
|
||||
+
|
||||
version_info::Channel channel = chrome::GetChannel();
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
// enable-ui-devtools is only available on for non Stable channels.
|
||||
--- /dev/null
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -0,0 +1,16 @@
|
||||
@@ -39,22 +52,28 @@
|
||||
+#ifndef CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_
|
||||
+#define CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_
|
||||
+
|
||||
+#include "components/webui/flags/feature_entry.h"
|
||||
+#include "chrome/browser/channel_selection.h"
|
||||
+#include "components/webui/flags/feature_entry.h"
|
||||
+
|
||||
+namespace helium {
|
||||
+ using namespace ::helium;
|
||||
+using namespace ::helium;
|
||||
+
|
||||
+} // namespace helium
|
||||
+
|
||||
+#endif /* CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_ */
|
||||
+#endif /* CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_ */
|
||||
--- /dev/null
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -0,0 +1,7 @@
|
||||
@@ -0,0 +1,13 @@
|
||||
+// Copyright 2025 The Helium Authors
|
||||
+// You can use, redistribute, and/or modify this source code under
|
||||
+// the terms of the GPL-3.0 license that can be found in the LICENSE file.
|
||||
+
|
||||
+#ifndef CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_
|
||||
+#define CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_
|
||||
+#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
+{kHeliumFlagFormattingSentinel, "", "", flags_ui::kFlagInfrastructure,
|
||||
+ SINGLE_VALUE_TYPE("")},
|
||||
+ // core
|
||||
+ // core/network
|
||||
+ // ui
|
||||
+ // platform
|
||||
+#endif // CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
// LINT.ThenChange(//tools/metrics/histograms/metadata/ui/enums.xml:RenderViewContextMenuItem)
|
||||
|
||||
// LINT.IfChange(ContextMenuOptionDesktop)
|
||||
@@ -2933,6 +2934,8 @@ void RenderViewContextMenu::AppendOtherE
|
||||
@@ -2957,6 +2958,8 @@ void RenderViewContextMenu::AppendOtherE
|
||||
menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_PASTE_AND_MATCH_STYLE,
|
||||
IDS_CONTENT_CONTEXT_PASTE_AND_MATCH_STYLE);
|
||||
}
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
// Insert a submenu of clipboard history descriptors.
|
||||
@@ -3403,6 +3406,7 @@ bool RenderViewContextMenu::IsCommandIdE
|
||||
@@ -3434,6 +3437,7 @@ bool RenderViewContextMenu::IsCommandIdE
|
||||
return IsPasteEnabled();
|
||||
|
||||
case IDC_CONTENT_CONTEXT_PASTE_AND_MATCH_STYLE:
|
||||
@@ -73,7 +73,7 @@
|
||||
return IsPasteAndMatchStyleEnabled();
|
||||
|
||||
case IDC_CONTENT_CONTEXT_DELETE:
|
||||
@@ -3976,6 +3980,10 @@ void RenderViewContextMenu::ExecuteComma
|
||||
@@ -4007,6 +4011,10 @@ void RenderViewContextMenu::ExecuteComma
|
||||
source_web_contents_->PasteAndMatchStyle();
|
||||
break;
|
||||
|
||||
@@ -183,7 +183,7 @@
|
||||
// Moves the WebContents of a hosted app Browser to a tabbed Browser. Returns
|
||||
--- a/chrome/browser/ui/browser_shortcuts/browser_shortcut_metadata.cc
|
||||
+++ b/chrome/browser/ui/browser_shortcuts/browser_shortcut_metadata.cc
|
||||
@@ -83,6 +83,8 @@ std::optional<BrowserShortcutCommandLabe
|
||||
@@ -84,6 +84,8 @@ std::optional<BrowserShortcutCommandLabe
|
||||
return Label(IDS_SHORTCUT_COMMAND_BACK);
|
||||
case IDC_FORWARD:
|
||||
return Label(IDS_SHORTCUT_COMMAND_FORWARD);
|
||||
@@ -192,14 +192,14 @@
|
||||
case IDC_HOME:
|
||||
return Label(IDS_SHORTCUT_COMMAND_HOME);
|
||||
case IDC_RELOAD:
|
||||
@@ -253,6 +255,7 @@ std::vector<int> GetBrowserShortcutComma
|
||||
@@ -310,6 +312,7 @@ std::vector<int> GetBrowserShortcutComma
|
||||
|
||||
commands.push_back(ShouldUseCopyPageUrlLabel(prefs) ? IDC_DEV_TOOLS_INSPECT
|
||||
: IDC_COPY_URL);
|
||||
+ commands.push_back(IDC_FORCE_PASTE);
|
||||
return commands;
|
||||
}
|
||||
|
||||
commands.push_back(IDC_DUPLICATE_TAB);
|
||||
#if !BUILDFLAG(IS_MAC)
|
||||
commands.push_back(IDC_EXIT);
|
||||
--- a/tools/metrics/histograms/metadata/ui/enums.xml
|
||||
+++ b/tools/metrics/histograms/metadata/ui/enums.xml
|
||||
@@ -371,6 +371,7 @@ chromium-metrics-reviews@google.com.
|
||||
|
||||
@@ -1,25 +1,28 @@
|
||||
--- a/chrome/browser/helium_flag_choices.h
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -35,6 +35,8 @@ namespace helium {
|
||||
constexpr const char kHeliumNoiseCpuCoresCommandLine[] =
|
||||
"helium-noise-hw-concurrency";
|
||||
@@ -38,6 +38,8 @@ constexpr const char kHeliumNoiseAudioCo
|
||||
constexpr const char kHeliumNoiseCpuCoresCommandLine[] =
|
||||
"helium-noise-hw-concurrency";
|
||||
|
||||
+ constexpr const char kDisableEchCommandLine[] = "disable-ech";
|
||||
+constexpr const char kDisableEchCommandLine[] = "disable-ech";
|
||||
+
|
||||
} // namespace helium
|
||||
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_ */
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_ */
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -31,4 +31,8 @@
|
||||
"Randomizes the number of cores returned by "
|
||||
@@ -49,6 +49,11 @@
|
||||
"`navigator.hardwareConcurrency` in a reasonable range. Helium flag.",
|
||||
kOsAll, FEATURE_VALUE_TYPE(blink::features::kHeliumNoiseCpuCores)},
|
||||
+ {helium::kDisableEchCommandLine,
|
||||
+ "Disable Encrypted Client Hello (ECH)",
|
||||
+ "Disables TLS Encrypted Client Hello, reducing traffic privacy when accessing websites that support ECH. Use this flag only if ECH is blocked on your network. Helium flag.",
|
||||
// core/network
|
||||
+ {helium::kDisableEchCommandLine, "Disable Encrypted Client Hello (ECH)",
|
||||
+ "Disables TLS Encrypted Client Hello, reducing traffic privacy when "
|
||||
+ "accessing websites that support ECH. Use this flag only if ECH is "
|
||||
+ "blocked on your network. Helium flag.",
|
||||
+ kOsAll, SINGLE_VALUE_TYPE(helium::kDisableEchCommandLine)},
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
// ui
|
||||
// platform
|
||||
#endif // CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_
|
||||
--- a/chrome/browser/ssl/ssl_config_service_manager.cc
|
||||
+++ b/chrome/browser/ssl/ssl_config_service_manager.cc
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -70,6 +70,10 @@
|
||||
"middleboxes and TLS endpoints mishandle this behavior and may become "
|
||||
"inaccessible. Helium flag.",
|
||||
kOsAll, FEATURE_VALUE_TYPE(net::features::kHeliumSplitClientHello)},
|
||||
+ {"no-proxy-server", "Ignore system proxy",
|
||||
+ "Ignores system proxy settings and always connects directly. This may "
|
||||
+ "prevent access to networks that require a proxy. Helium flag.",
|
||||
+ kOsAll, SINGLE_VALUE_TYPE(switches::kNoProxyServer)},
|
||||
// ui
|
||||
// platform
|
||||
#endif // CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_
|
||||
@@ -1,11 +1,15 @@
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -35,4 +35,8 @@
|
||||
"Disable Encrypted Client Hello (ECH)",
|
||||
"Disables TLS Encrypted Client Hello, reducing traffic privacy when accessing websites that support ECH. Use this flag only if ECH is blocked on your network. Helium flag.",
|
||||
@@ -54,6 +54,12 @@
|
||||
"accessing websites that support ECH. Use this flag only if ECH is "
|
||||
"blocked on your network. Helium flag.",
|
||||
kOsAll, SINGLE_VALUE_TYPE(helium::kDisableEchCommandLine)},
|
||||
+ {"quic-v2-only",
|
||||
+ "Use only QUIC v2 for HTTP/3",
|
||||
+ "Restricts HTTP/3 connections to QUIC v2 instead of default QUIC v1. This may help on networks that block QUIC v1 but do not recognize QUIC v2. It does not force QUIC on unsupported sites. Connections may fall back to TCP when the server does not support QUIC v2. Helium flag.",
|
||||
+ {"quic-v2-only", "Use only QUIC v2 for HTTP/3",
|
||||
+ "Restricts HTTP/3 connections to QUIC v2 instead of default QUIC v1. This "
|
||||
+ "may help on networks that block QUIC v1 but do not recognize QUIC v2. It "
|
||||
+ "does not force QUIC on unsupported sites. Connections may fall back to "
|
||||
+ "TCP when the server does not support QUIC v2. Helium flag.",
|
||||
+ kOsAll, SINGLE_VALUE_TYPE_AND_VALUE(switches::kQuicVersion, "RFCv2")},
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
// ui
|
||||
// platform
|
||||
#endif // CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_
|
||||
|
||||
@@ -1,25 +1,33 @@
|
||||
--- a/chrome/browser/helium_flag_choices.h
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -36,6 +36,8 @@ namespace helium {
|
||||
"helium-noise-hw-concurrency";
|
||||
@@ -39,6 +39,8 @@ constexpr const char kHeliumNoiseCpuCore
|
||||
"helium-noise-hw-concurrency";
|
||||
|
||||
constexpr const char kDisableEchCommandLine[] = "disable-ech";
|
||||
+ constexpr const char kHeliumSplitClientHelloCommandLine[] =
|
||||
+ "helium-split-clienthello";
|
||||
constexpr const char kDisableEchCommandLine[] = "disable-ech";
|
||||
+constexpr const char kHeliumSplitClientHelloCommandLine[] =
|
||||
+ "helium-split-clienthello";
|
||||
|
||||
} // namespace helium
|
||||
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -39,4 +39,8 @@
|
||||
"Use only QUIC v2 for HTTP/3",
|
||||
"Restricts HTTP/3 connections to QUIC v2 instead of default QUIC v1. This may help on networks that block QUIC v1 but do not recognize QUIC v2. It does not force QUIC on unsupported sites. Connections may fall back to TCP when the server does not support QUIC v2. Helium flag.",
|
||||
@@ -60,6 +60,16 @@
|
||||
"does not force QUIC on unsupported sites. Connections may fall back to "
|
||||
"TCP when the server does not support QUIC v2. Helium flag.",
|
||||
kOsAll, SINGLE_VALUE_TYPE_AND_VALUE(switches::kQuicVersion, "RFCv2")},
|
||||
+ {helium::kHeliumSplitClientHelloCommandLine,
|
||||
+ "Random TLS ClientHello splitting",
|
||||
+ "Splits outgoing TLS ClientHello messages across two TLS records at a random point. The split targets the visible server name, or the ECH extension when ECH is used. This can bypass some domain-based network filtering, but it does not hide DNS queries or destination IP addresses and makes TLS traffic unusual and potentially recognizable. Some middleboxes and TLS endpoints mishandle this behavior and may become inaccessible. Helium flag.",
|
||||
+ "Splits outgoing TLS ClientHello messages across two TLS records at a "
|
||||
+ "random point. The split targets the visible server name, or the ECH "
|
||||
+ "extension when ECH is used. This can bypass some domain-based network "
|
||||
+ "filtering, but it does not hide DNS queries or destination IP addresses "
|
||||
+ "and makes TLS traffic unusual and potentially recognizable. Some "
|
||||
+ "middleboxes and TLS endpoints mishandle this behavior and may become "
|
||||
+ "inaccessible. Helium flag.",
|
||||
+ kOsAll, FEATURE_VALUE_TYPE(net::features::kHeliumSplitClientHello)},
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
// ui
|
||||
// platform
|
||||
#endif // CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_
|
||||
--- a/net/base/features.cc
|
||||
+++ b/net/base/features.cc
|
||||
@@ -29,6 +29,8 @@
|
||||
|
||||
@@ -1,27 +1,30 @@
|
||||
--- a/chrome/browser/helium_flag_choices.h
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -31,6 +31,7 @@ namespace helium {
|
||||
@@ -34,6 +34,7 @@ constexpr const char kMiddleClickAutoscr
|
||||
|
||||
constexpr const char kHeliumNoiseCommandLine[] = "helium-noise";
|
||||
constexpr const char kHeliumNoiseCanvasCommandLine[] = "helium-noise-canvas";
|
||||
+ constexpr const char kHeliumNoiseAudioCommandLine[] = "helium-noise-audio";
|
||||
constexpr const char kHeliumNoiseCommandLine[] = "helium-noise";
|
||||
constexpr const char kHeliumNoiseCanvasCommandLine[] = "helium-noise-canvas";
|
||||
+constexpr const char kHeliumNoiseAudioCommandLine[] = "helium-noise-audio";
|
||||
|
||||
} // namespace helium
|
||||
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -22,4 +22,8 @@
|
||||
"[Helium Noise] Canvas pixel noising",
|
||||
"Adds insignificant noise to canvas pixels during readback to deceive canvas-based fingerprinting. Helium flag.",
|
||||
@@ -38,6 +38,11 @@
|
||||
"Adds insignificant noise to canvas pixels during readback to deceive "
|
||||
"canvas-based fingerprinting. Helium flag.",
|
||||
kOsAll, FEATURE_VALUE_TYPE(blink::features::kHeliumNoiseCanvas)},
|
||||
+ {helium::kHeliumNoiseAudioCommandLine,
|
||||
+ "[Helium Noise] Jitter audio context data",
|
||||
+ "Adds insignificant jitter to audio data to deceive AudioContext-based fingerprinting. Helium flag.",
|
||||
+ "Adds insignificant jitter to audio data to deceive AudioContext-based "
|
||||
+ "fingerprinting. Helium flag.",
|
||||
+ kOsAll, FEATURE_VALUE_TYPE(blink::features::kHeliumNoiseAudio)},
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
// core/network
|
||||
// ui
|
||||
// platform
|
||||
--- a/third_party/blink/common/features.cc
|
||||
+++ b/third_party/blink/common/features.cc
|
||||
@@ -47,6 +47,10 @@ BASE_FEATURE(kHeliumNoise,
|
||||
@@ -56,6 +56,10 @@ BASE_FEATURE(kHeliumNoise,
|
||||
BASE_FEATURE(kHeliumNoiseCanvas,
|
||||
base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
@@ -34,7 +37,7 @@
|
||||
BASE_FEATURE(kAIPageContentIncludePopupWindows,
|
||||
--- a/third_party/blink/public/common/features.h
|
||||
+++ b/third_party/blink/public/common/features.h
|
||||
@@ -42,6 +42,7 @@ BLINK_COMMON_EXPORT extern const base::F
|
||||
@@ -44,6 +44,7 @@ BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE
|
||||
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumNoise);
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumNoiseCanvas);
|
||||
|
||||
@@ -36,28 +36,31 @@
|
||||
|
||||
--- a/chrome/browser/helium_flag_choices.h
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -30,6 +30,7 @@ namespace helium {
|
||||
"custom-update-server-url";
|
||||
@@ -33,6 +33,7 @@ constexpr const char kMiddleClickAutoscr
|
||||
"middle-click-autoscroll";
|
||||
|
||||
constexpr const char kHeliumNoiseCommandLine[] = "helium-noise";
|
||||
+ constexpr const char kHeliumNoiseCanvasCommandLine[] = "helium-noise-canvas";
|
||||
constexpr const char kHeliumNoiseCommandLine[] = "helium-noise";
|
||||
+constexpr const char kHeliumNoiseCanvasCommandLine[] = "helium-noise-canvas";
|
||||
|
||||
} // namespace helium
|
||||
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -18,4 +18,8 @@
|
||||
"Helium Noise",
|
||||
"Helium's anti-fingerprinting functionality. Adds insignificant noise to various features to deceive fingerprinting scripts. Enabled by default, must be enabled for other anti-fingerprinting features to work. Helium flag.",
|
||||
@@ -33,6 +33,11 @@
|
||||
"must be enabled for other anti-fingerprinting features to work. Helium "
|
||||
"flag.",
|
||||
kOsAll, FEATURE_VALUE_TYPE(blink::features::kHeliumNoise)},
|
||||
+ {helium::kHeliumNoiseCanvasCommandLine,
|
||||
+ "[Helium Noise] Canvas pixel noising",
|
||||
+ "Adds insignificant noise to canvas pixels during readback to deceive canvas-based fingerprinting. Helium flag.",
|
||||
+ "Adds insignificant noise to canvas pixels during readback to deceive "
|
||||
+ "canvas-based fingerprinting. Helium flag.",
|
||||
+ kOsAll, FEATURE_VALUE_TYPE(blink::features::kHeliumNoiseCanvas)},
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
// core/network
|
||||
// ui
|
||||
// platform
|
||||
--- a/third_party/blink/common/features.cc
|
||||
+++ b/third_party/blink/common/features.cc
|
||||
@@ -43,6 +43,10 @@ const base::FeatureParam<std::string> kS
|
||||
@@ -52,6 +52,10 @@ const base::FeatureParam<std::string> kS
|
||||
BASE_FEATURE(kHeliumNoise,
|
||||
base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
@@ -70,8 +73,8 @@
|
||||
BASE_FEATURE(kAIPageContentIncludePopupWindows,
|
||||
--- a/third_party/blink/public/common/features.h
|
||||
+++ b/third_party/blink/public/common/features.h
|
||||
@@ -41,6 +41,7 @@ BLINK_COMMON_EXPORT extern const base::F
|
||||
// on the identifier name of the generated feature.
|
||||
@@ -43,6 +43,7 @@ BLINK_COMMON_EXPORT extern const base::F
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumMiddleClickAutoscroll);
|
||||
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumNoise);
|
||||
+BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumNoiseCanvas);
|
||||
|
||||
@@ -36,29 +36,33 @@
|
||||
|
||||
--- a/chrome/browser/helium_flag_choices.h
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -29,6 +29,8 @@ namespace helium {
|
||||
constexpr const char kUpdateServerUrlCommandLine[] =
|
||||
"custom-update-server-url";
|
||||
@@ -32,6 +32,8 @@ constexpr const char kUpdateServerUrlCom
|
||||
constexpr const char kMiddleClickAutoscrollCommandLine[] =
|
||||
"middle-click-autoscroll";
|
||||
|
||||
+ constexpr const char kHeliumNoiseCommandLine[] = "helium-noise";
|
||||
+constexpr const char kHeliumNoiseCommandLine[] = "helium-noise";
|
||||
+
|
||||
} // namespace helium
|
||||
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_ */
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_ */
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -14,4 +14,8 @@
|
||||
{helium::kUpdateServerUrlCommandLine, "Update server URL",
|
||||
"Overrides the default URL for fetching updates. Should be used only for testing. Helium flag.", kOsDesktop,
|
||||
STRING_VALUE_TYPE(helium::kUpdateServerUrlCommandLine, "")},
|
||||
+ {helium::kHeliumNoiseCommandLine,
|
||||
+ "Helium Noise",
|
||||
+ "Helium's anti-fingerprinting functionality. Adds insignificant noise to various features to deceive fingerprinting scripts. Enabled by default, must be enabled for other anti-fingerprinting features to work. Helium flag.",
|
||||
@@ -27,6 +27,12 @@
|
||||
"Enables autoscroll on middle click. Helium flag, Chromium feature.",
|
||||
kOsDesktop,
|
||||
FEATURE_VALUE_TYPE(blink::features::kHeliumMiddleClickAutoscroll)},
|
||||
+ {helium::kHeliumNoiseCommandLine, "Helium Noise",
|
||||
+ "Helium's anti-fingerprinting functionality. Adds insignificant noise to "
|
||||
+ "various features to deceive fingerprinting scripts. Enabled by default, "
|
||||
+ "must be enabled for other anti-fingerprinting features to work. Helium "
|
||||
+ "flag.",
|
||||
+ kOsAll, FEATURE_VALUE_TYPE(blink::features::kHeliumNoise)},
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
// core/network
|
||||
// ui
|
||||
// platform
|
||||
--- a/third_party/blink/common/features.cc
|
||||
+++ b/third_party/blink/common/features.cc
|
||||
@@ -39,6 +39,10 @@ const base::FeatureParam<std::string> kS
|
||||
@@ -48,6 +48,10 @@ const base::FeatureParam<std::string> kS
|
||||
// `RuntimeEnabledFeatures)`, they should still be ordered in this section based
|
||||
// on the identifier name of the generated feature.
|
||||
|
||||
@@ -71,9 +75,9 @@
|
||||
BASE_FEATURE(kAIPageContentIncludePopupWindows,
|
||||
--- a/third_party/blink/public/common/features.h
|
||||
+++ b/third_party/blink/public/common/features.h
|
||||
@@ -40,6 +40,8 @@ BLINK_COMMON_EXPORT extern const base::F
|
||||
// `RuntimeEnabledFeatures)`, they should still be ordered in this section based
|
||||
// on the identifier name of the generated feature.
|
||||
@@ -42,6 +42,8 @@ BLINK_COMMON_EXPORT extern const base::F
|
||||
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumMiddleClickAutoscroll);
|
||||
|
||||
+BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumNoise);
|
||||
+
|
||||
|
||||
@@ -1,26 +1,28 @@
|
||||
--- a/chrome/browser/helium_flag_choices.h
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -32,6 +32,8 @@ namespace helium {
|
||||
constexpr const char kHeliumNoiseCommandLine[] = "helium-noise";
|
||||
constexpr const char kHeliumNoiseCanvasCommandLine[] = "helium-noise-canvas";
|
||||
constexpr const char kHeliumNoiseAudioCommandLine[] = "helium-noise-audio";
|
||||
+ constexpr const char kHeliumNoiseCpuCoresCommandLine[] =
|
||||
+ "helium-noise-hw-concurrency";
|
||||
@@ -35,6 +35,8 @@ constexpr const char kMiddleClickAutoscr
|
||||
constexpr const char kHeliumNoiseCommandLine[] = "helium-noise";
|
||||
constexpr const char kHeliumNoiseCanvasCommandLine[] = "helium-noise-canvas";
|
||||
constexpr const char kHeliumNoiseAudioCommandLine[] = "helium-noise-audio";
|
||||
+constexpr const char kHeliumNoiseCpuCoresCommandLine[] =
|
||||
+ "helium-noise-hw-concurrency";
|
||||
|
||||
} // namespace helium
|
||||
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -26,4 +26,9 @@
|
||||
"[Helium Noise] Jitter audio context data",
|
||||
"Adds insignificant jitter to audio data to deceive AudioContext-based fingerprinting. Helium flag.",
|
||||
@@ -43,6 +43,11 @@
|
||||
"Adds insignificant jitter to audio data to deceive AudioContext-based "
|
||||
"fingerprinting. Helium flag.",
|
||||
kOsAll, FEATURE_VALUE_TYPE(blink::features::kHeliumNoiseAudio)},
|
||||
+ {helium::kHeliumNoiseCpuCoresCommandLine,
|
||||
+ "[Helium Noise] Randomize number of CPU cores",
|
||||
+ "Randomizes the number of cores returned by "
|
||||
+ "`navigator.hardwareConcurrency` in a reasonable range. Helium flag.",
|
||||
+ kOsAll, FEATURE_VALUE_TYPE(blink::features::kHeliumNoiseCpuCores)},
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
// core/network
|
||||
// ui
|
||||
// platform
|
||||
--- a/content/browser/helium_noise/noise_token_data.cc
|
||||
+++ b/content/browser/helium_noise/noise_token_data.cc
|
||||
@@ -59,6 +59,8 @@ HeliumNoiseTokenData::HeliumNoiseTokenDa
|
||||
@@ -34,7 +36,7 @@
|
||||
// static
|
||||
--- a/third_party/blink/common/features.cc
|
||||
+++ b/third_party/blink/common/features.cc
|
||||
@@ -51,6 +51,9 @@ BASE_FEATURE(kHeliumNoiseCanvas,
|
||||
@@ -60,6 +60,9 @@ BASE_FEATURE(kHeliumNoiseCanvas,
|
||||
BASE_FEATURE(kHeliumNoiseAudio,
|
||||
base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
@@ -46,7 +48,7 @@
|
||||
BASE_FEATURE(kAIPageContentIncludePopupWindows,
|
||||
--- a/third_party/blink/public/common/features.h
|
||||
+++ b/third_party/blink/public/common/features.h
|
||||
@@ -43,6 +43,7 @@ BLINK_COMMON_EXPORT extern const base::F
|
||||
@@ -45,6 +45,7 @@ BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumNoise);
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumNoiseCanvas);
|
||||
BLINK_COMMON_EXPORT BASE_DECLARE_FEATURE(kHeliumNoiseAudio);
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
--- /dev/null
|
||||
+++ b/build/config/siso/backend_config/nativelink.star
|
||||
@@ -0,0 +1,20 @@
|
||||
+# -*- bazel-starlark -*-
|
||||
+# Copyright 2026 The Helium Authors
|
||||
+# You can use, redistribute, and/or modify this source code under
|
||||
+# the terms of the GPL-3.0 license that can be found in the LICENSE file.
|
||||
+
|
||||
+load("@builtin//struct.star", "module")
|
||||
+
|
||||
+def __platform_properties(ctx):
|
||||
+ properties = {
|
||||
+ "cpu_count": "1",
|
||||
+ }
|
||||
+ return {
|
||||
+ "default": properties,
|
||||
+ "large": properties,
|
||||
+ }
|
||||
+
|
||||
+backend = module(
|
||||
+ "backend",
|
||||
+ platform_properties = __platform_properties,
|
||||
+)
|
||||
@@ -22,7 +22,7 @@
|
||||
</message>
|
||||
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
@@ -2057,11 +2057,13 @@ void RenderViewContextMenu::AppendLinkIt
|
||||
@@ -2065,11 +2065,13 @@ void RenderViewContextMenu::AppendLinkIt
|
||||
AppendClickToCallItem();
|
||||
|
||||
menu_model_.AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
@@ -38,7 +38,7 @@
|
||||
if (params_.source_type == ui::mojom::MenuSourceType::kTouch &&
|
||||
params_.media_type != ContextMenuDataMediaType::kImage &&
|
||||
!params_.link_text.empty()) {
|
||||
@@ -2468,8 +2470,12 @@ void RenderViewContextMenu::AppendPageIt
|
||||
@@ -2479,8 +2481,12 @@ void RenderViewContextMenu::AppendPageIt
|
||||
|
||||
const bool use_simplified_text_selection = ShouldUseSimplifiedTextSelection();
|
||||
|
||||
@@ -52,8 +52,8 @@
|
||||
+ }
|
||||
menu_model_.AddItemWithStringId(IDC_RELOAD, IDS_CONTENT_CONTEXT_RELOAD);
|
||||
menu_model_.AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
MaybeAppendOpenGlicItem();
|
||||
@@ -2809,9 +2815,8 @@ void RenderViewContextMenu::AppendSearch
|
||||
if (!glic_below_search) {
|
||||
@@ -2828,9 +2834,8 @@ void RenderViewContextMenu::AppendSearch
|
||||
GetBrowser() || IsPrintPreviewContent(current_url_)) {
|
||||
menu_model_.AddItem(
|
||||
IDC_CONTENT_CONTEXT_SEARCHWEBFOR,
|
||||
|
||||
+374
-10
@@ -11,15 +11,17 @@
|
||||
|
||||
--- /dev/null
|
||||
+++ b/components/sync/engine/extension_sync/sync_vault_store.cc
|
||||
@@ -0,0 +1,553 @@
|
||||
@@ -0,0 +1,895 @@
|
||||
+// Copyright 2026 The Helium Authors
|
||||
+// You can use, redistribute, and/or modify this source code under
|
||||
+// the terms of the GPL-3.0 license that can be found in the LICENSE file.
|
||||
+
|
||||
+#include "components/sync/engine/extension_sync/sync_vault_store.h"
|
||||
+
|
||||
+#include <algorithm>
|
||||
+#include <cstddef>
|
||||
+#include <cstdint>
|
||||
+#include <limits>
|
||||
+#include <memory>
|
||||
+#include <optional>
|
||||
+#include <string>
|
||||
@@ -29,7 +31,11 @@
|
||||
+
|
||||
+#include "base/check.h"
|
||||
+#include "base/containers/span.h"
|
||||
+#include "base/memory/ptr_util.h"
|
||||
+#include "base/numerics/safe_conversions.h"
|
||||
+#include "base/strings/strcat.h"
|
||||
+#include "base/strings/string_number_conversions.h"
|
||||
+#include "base/time/time.h"
|
||||
+#include "components/sync/engine/extension_sync/sync_vault_cryptographer.h"
|
||||
+#include "crypto/hash.h"
|
||||
+
|
||||
@@ -37,21 +43,29 @@
|
||||
+
|
||||
+namespace {
|
||||
+
|
||||
+constexpr char kObjectRootPrefix[] = "helium/v1/";
|
||||
+constexpr char kDescriptorSuffix[] = "/descriptor";
|
||||
+constexpr std::string_view kObjectRootPrefix = "helium/v1/";
|
||||
+constexpr std::string_view kDescriptorSuffix = "/descriptor";
|
||||
+constexpr char kEpochSegment[] = "epoch/";
|
||||
+constexpr size_t kMaximumMetadataContainerBytes =
|
||||
+ kSyncVaultMaximumMetadataPlaintextBytes + kSyncVaultContainerOverheadBytes;
|
||||
+constexpr size_t kContentDigestHexLength = 64;
|
||||
+// These are writer rollover policy, not wire-format validity limits. Readers
|
||||
+// accept larger authenticated epochs produced by another conforming writer.
|
||||
+constexpr uint64_t kEpochCommitTarget = 256;
|
||||
+constexpr uint64_t kEpochUploadedBytesTarget = 512 * 1024 * 1024;
|
||||
+
|
||||
+SyncVaultStoreError MapTransportError(SyncVaultTransportError error) {
|
||||
+ switch (error) {
|
||||
+ case SyncVaultTransportError::kAuthenticationRequired:
|
||||
+ return SyncVaultStoreError::kAuthenticationRequired;
|
||||
+ case SyncVaultTransportError::kConflict:
|
||||
+ return SyncVaultStoreError::kConflict;
|
||||
+ case SyncVaultTransportError::kNetworkError:
|
||||
+ return SyncVaultStoreError::kNetworkError;
|
||||
+ case SyncVaultTransportError::kTemporaryError:
|
||||
+ return SyncVaultStoreError::kTemporaryError;
|
||||
+ case SyncVaultTransportError::kQuotaExceeded:
|
||||
+ return SyncVaultStoreError::kQuotaExceeded;
|
||||
+ case SyncVaultTransportError::kAccessDenied:
|
||||
+ return SyncVaultStoreError::kAccessDenied;
|
||||
+ case SyncVaultTransportError::kInvalidData:
|
||||
@@ -63,6 +77,12 @@
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+std::string ContentAddressedObjectId(std::string_view prefix,
|
||||
+ base::span<const uint8_t> encrypted_data) {
|
||||
+ return std::string(prefix) +
|
||||
+ base::HexEncode(crypto::hash::Sha256(encrypted_data));
|
||||
+}
|
||||
+
|
||||
+SyncVaultStoreError MapCryptoError(SyncVaultCryptoError error) {
|
||||
+ switch (error) {
|
||||
+ case SyncVaultCryptoError::kInvalidKey:
|
||||
@@ -130,11 +150,17 @@
|
||||
+}
|
||||
+
|
||||
+std::string GetSyncVaultObjectPrefix(const std::string& vault_uuid) {
|
||||
+ return std::string(kObjectRootPrefix) + vault_uuid + "/";
|
||||
+ return base::StrCat({kObjectRootPrefix, vault_uuid, "/"});
|
||||
+}
|
||||
+
|
||||
+std::string GetSyncVaultDescriptorObjectId(const std::string& vault_uuid) {
|
||||
+ return std::string(kObjectRootPrefix) + vault_uuid + kDescriptorSuffix;
|
||||
+ return base::StrCat({kObjectRootPrefix, vault_uuid, kDescriptorSuffix});
|
||||
+}
|
||||
+
|
||||
+std::string GetSyncVaultEpochObjectPrefix(const std::string& vault_uuid,
|
||||
+ uint32_t epoch) {
|
||||
+ return base::StrCat({GetSyncVaultObjectPrefix(vault_uuid), kEpochSegment,
|
||||
+ base::NumberToString(epoch), "/"});
|
||||
+}
|
||||
+
|
||||
+} // namespace
|
||||
@@ -172,7 +198,7 @@
|
||||
+ if (!SerializeSyncVaultCheckpoint(effective_checkpoint).has_value()) {
|
||||
+ return base::unexpected(SyncVaultStoreError::kInvalidData);
|
||||
+ }
|
||||
+ return std::unique_ptr<SyncVaultStore>(new SyncVaultStore(
|
||||
+ return base::WrapUnique(new SyncVaultStore(
|
||||
+ std::move(transport), std::move(cryptographer.value()),
|
||||
+ std::move(effective_checkpoint), std::move(persist_checkpoint_callback)));
|
||||
+}
|
||||
@@ -292,9 +318,11 @@
|
||||
+ if (should_advance_checkpoint && !AdvanceCheckpoint(head)) {
|
||||
+ return base::unexpected(SyncVaultStoreError::kCheckpointPersistenceFailed);
|
||||
+ }
|
||||
+ MaybeCollectEpochs(head);
|
||||
+
|
||||
+ return SyncVaultState{std::move(state), std::move(head),
|
||||
+ std::move(head_revision), true};
|
||||
+ std::move(head_revision), true,
|
||||
+ std::move(latest_record.state_chunks)};
|
||||
+}
|
||||
+
|
||||
+SyncVaultStore::RefreshResult SyncVaultStore::ReadStateIfChanged(
|
||||
@@ -359,6 +387,211 @@
|
||||
+ return base::ok();
|
||||
+}
|
||||
+
|
||||
+SyncVaultStore::ReadResult SyncVaultStore::InitializeEmptyVaultAndReadState() {
|
||||
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||
+ ReadResult state = ReadState();
|
||||
+ if (!state.has_value() || state->initialized) {
|
||||
+ return state;
|
||||
+ }
|
||||
+
|
||||
+ WriteResult initialization = InitializeVault();
|
||||
+ if (!initialization.has_value()) {
|
||||
+ return base::unexpected(initialization.error());
|
||||
+ }
|
||||
+
|
||||
+ ReadResult verified_state = ReadState();
|
||||
+ if (!verified_state.has_value()) {
|
||||
+ return base::unexpected(verified_state.error());
|
||||
+ }
|
||||
+ if (!verified_state->initialized || !verified_state->head_revision ||
|
||||
+ verified_state->head.generation != 0) {
|
||||
+ return base::unexpected(SyncVaultStoreError::kIncompleteHistory);
|
||||
+ }
|
||||
+ return verified_state;
|
||||
+}
|
||||
+
|
||||
+SyncVaultStore::CommitResult SyncVaultStore::CommitState(
|
||||
+ const SyncVaultState& base_state,
|
||||
+ base::span<const uint8_t> state,
|
||||
+ uint32_t mutation_count) {
|
||||
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||
+ if (mutation_count == 0 || state.empty() ||
|
||||
+ state.size() > kSyncVaultMaximumReconstructedBytes ||
|
||||
+ base_state.head.generation == std::numeric_limits<uint64_t>::max()) {
|
||||
+ return base::unexpected(SyncVaultStoreError::kInvalidData);
|
||||
+ }
|
||||
+
|
||||
+ SyncVaultHead base_head = base_state.head;
|
||||
+ std::optional<std::string> expected_head_revision = base_state.head_revision;
|
||||
+ if (!base_state.initialized) {
|
||||
+ if (base_state.head.generation != 0 || expected_head_revision) {
|
||||
+ return base::unexpected(SyncVaultStoreError::kInvalidData);
|
||||
+ }
|
||||
+ WriteResult initialized_revision = InitializeVault();
|
||||
+ if (!initialized_revision.has_value()) {
|
||||
+ return base::unexpected(initialized_revision.error());
|
||||
+ }
|
||||
+ base_head = SyncVaultHead();
|
||||
+ expected_head_revision = std::move(initialized_revision.value());
|
||||
+ } else if (!expected_head_revision) {
|
||||
+ return base::unexpected(SyncVaultStoreError::kInvalidData);
|
||||
+ }
|
||||
+
|
||||
+ uint64_t pending_entity_bytes = 0;
|
||||
+ size_t chunk_index = 0;
|
||||
+ for (size_t offset = 0; offset < state.size(); ++chunk_index) {
|
||||
+ const size_t chunk_size =
|
||||
+ std::min(state.size() - offset, kSyncVaultMaximumEntityPlaintextBytes);
|
||||
+ const bool can_reuse =
|
||||
+ chunk_index < base_state.state_chunks.size() &&
|
||||
+ base_state.state_chunks[chunk_index].plaintext_size == chunk_size &&
|
||||
+ offset + chunk_size <= base_state.data.size() &&
|
||||
+ std::ranges::equal(
|
||||
+ state.subspan(offset, chunk_size),
|
||||
+ base::span(base_state.data).subspan(offset, chunk_size));
|
||||
+ if (!can_reuse) {
|
||||
+ pending_entity_bytes += chunk_size + kSyncVaultContainerOverheadBytes;
|
||||
+ }
|
||||
+ offset += chunk_size;
|
||||
+ }
|
||||
+
|
||||
+ const uint64_t commits_in_epoch =
|
||||
+ base_head.generation == 0
|
||||
+ ? 0
|
||||
+ : base_head.generation - base_head.epoch_start_generation + 1;
|
||||
+ const bool byte_target_reached =
|
||||
+ pending_entity_bytes > kEpochUploadedBytesTarget ||
|
||||
+ base_head.epoch_uploaded_bytes >
|
||||
+ kEpochUploadedBytesTarget - pending_entity_bytes;
|
||||
+ const bool start_new_epoch =
|
||||
+ base_head.generation > 0 &&
|
||||
+ (commits_in_epoch >= kEpochCommitTarget || byte_target_reached);
|
||||
+ if (start_new_epoch &&
|
||||
+ base_head.epoch == std::numeric_limits<uint32_t>::max()) {
|
||||
+ return base::unexpected(SyncVaultStoreError::kObjectTooLarge);
|
||||
+ }
|
||||
+
|
||||
+ const uint64_t new_generation = base_head.generation + 1;
|
||||
+ const uint32_t new_epoch =
|
||||
+ start_new_epoch ? base_head.epoch + 1 : base_head.epoch;
|
||||
+ const uint64_t new_epoch_start_generation =
|
||||
+ start_new_epoch || base_head.generation == 0
|
||||
+ ? new_generation
|
||||
+ : base_head.epoch_start_generation;
|
||||
+ const uint32_t new_minimum_retained_epoch =
|
||||
+ start_new_epoch ? new_epoch - 1 : base_head.minimum_retained_epoch;
|
||||
+ const uint64_t new_minimum_retained_generation =
|
||||
+ start_new_epoch ? (new_epoch <= 1 ? 0 : base_head.epoch_start_generation)
|
||||
+ : base_head.minimum_retained_generation;
|
||||
+ uint64_t new_epoch_uploaded_bytes =
|
||||
+ start_new_epoch ? 0 : base_head.epoch_uploaded_bytes;
|
||||
+
|
||||
+ const std::string epoch_object_prefix =
|
||||
+ GetSyncVaultEpochObjectPrefix(cryptographer_->vault_uuid(), new_epoch);
|
||||
+ const std::string journal_object_prefix = epoch_object_prefix + "journal/";
|
||||
+ const std::string entity_object_prefix = epoch_object_prefix + "entity/";
|
||||
+
|
||||
+ std::vector<SyncVaultObjectReference> chunks;
|
||||
+ chunk_index = 0;
|
||||
+ for (size_t offset = 0; offset < state.size(); ++chunk_index) {
|
||||
+ const size_t chunk_size =
|
||||
+ std::min(state.size() - offset, kSyncVaultMaximumEntityPlaintextBytes);
|
||||
+ if (!start_new_epoch && chunk_index < base_state.state_chunks.size() &&
|
||||
+ base_state.state_chunks[chunk_index].plaintext_size == chunk_size &&
|
||||
+ offset + chunk_size <= base_state.data.size() &&
|
||||
+ std::ranges::equal(
|
||||
+ state.subspan(offset, chunk_size),
|
||||
+ base::span(base_state.data).subspan(offset, chunk_size))) {
|
||||
+ chunks.push_back(base_state.state_chunks[chunk_index]);
|
||||
+ offset += chunk_size;
|
||||
+ continue;
|
||||
+ }
|
||||
+ auto encrypted = cryptographer_->Encrypt(SyncVaultObjectRole::kEntity,
|
||||
+ state.subspan(offset, chunk_size));
|
||||
+ if (!encrypted.has_value()) {
|
||||
+ return base::unexpected(MapCryptoError(encrypted.error()));
|
||||
+ }
|
||||
+ new_epoch_uploaded_bytes += encrypted->size();
|
||||
+ const std::string object_id =
|
||||
+ ContentAddressedObjectId(entity_object_prefix, encrypted.value());
|
||||
+ WriteResult write_result =
|
||||
+ WriteImmutableObject(object_id, std::move(encrypted.value()));
|
||||
+ if (!write_result.has_value()) {
|
||||
+ return base::unexpected(write_result.error());
|
||||
+ }
|
||||
+ chunks.push_back({object_id, base::checked_cast<uint32_t>(chunk_size)});
|
||||
+ offset += chunk_size;
|
||||
+ }
|
||||
+
|
||||
+ SyncVaultJournalRecord record;
|
||||
+ record.generation = new_generation;
|
||||
+ record.creation_time_millis =
|
||||
+ base::Time::Now().InMillisecondsSinceUnixEpoch();
|
||||
+ record.mutation_count = mutation_count;
|
||||
+ record.parent_record_id = base_head.record_id;
|
||||
+ record.state_chunks = chunks;
|
||||
+ record.epoch = new_epoch;
|
||||
+ auto serialized_record = SerializeSyncVaultJournalRecord(record);
|
||||
+ if (!serialized_record.has_value()) {
|
||||
+ return base::unexpected(MapFormatError(serialized_record.error()));
|
||||
+ }
|
||||
+ auto encrypted_record = cryptographer_->Encrypt(SyncVaultObjectRole::kJournal,
|
||||
+ serialized_record.value());
|
||||
+ if (!encrypted_record.has_value()) {
|
||||
+ return base::unexpected(MapCryptoError(encrypted_record.error()));
|
||||
+ }
|
||||
+ new_epoch_uploaded_bytes += encrypted_record->size();
|
||||
+ const std::string record_id =
|
||||
+ ContentAddressedObjectId(journal_object_prefix, encrypted_record.value());
|
||||
+ WriteResult record_write =
|
||||
+ WriteImmutableObject(record_id, std::move(encrypted_record.value()));
|
||||
+ if (!record_write.has_value()) {
|
||||
+ return base::unexpected(record_write.error());
|
||||
+ }
|
||||
+
|
||||
+ SyncVaultHead new_head;
|
||||
+ new_head.generation = record.generation;
|
||||
+ new_head.record_id = record_id;
|
||||
+ new_head.epoch = new_epoch;
|
||||
+ new_head.epoch_start_generation = new_epoch_start_generation;
|
||||
+ new_head.minimum_retained_epoch = new_minimum_retained_epoch;
|
||||
+ new_head.minimum_retained_generation = new_minimum_retained_generation;
|
||||
+ new_head.epoch_uploaded_bytes = new_epoch_uploaded_bytes;
|
||||
+ auto serialized_head = SerializeSyncVaultHead(new_head);
|
||||
+ if (!serialized_head.has_value()) {
|
||||
+ return base::unexpected(MapFormatError(serialized_head.error()));
|
||||
+ }
|
||||
+ auto encrypted_head = cryptographer_->Encrypt(SyncVaultObjectRole::kHead,
|
||||
+ serialized_head.value());
|
||||
+ if (!encrypted_head.has_value()) {
|
||||
+ return base::unexpected(MapCryptoError(encrypted_head.error()));
|
||||
+ }
|
||||
+ WriteResult head_write =
|
||||
+ WriteObject(head_object_id_, std::move(expected_head_revision),
|
||||
+ std::move(encrypted_head.value()));
|
||||
+ std::string committed_head_revision;
|
||||
+ if (!head_write.has_value()) {
|
||||
+ if (head_write.error() == SyncVaultStoreError::kConflict) {
|
||||
+ return base::unexpected(SyncVaultStoreError::kConflict);
|
||||
+ }
|
||||
+ // Resolve an ambiguous commit response by authenticating the current head.
|
||||
+ HeadResult current = ReadHead();
|
||||
+ if (!current.has_value() || current->first != new_head) {
|
||||
+ return base::unexpected(head_write.error());
|
||||
+ }
|
||||
+ committed_head_revision = std::move(current->second);
|
||||
+ } else {
|
||||
+ committed_head_revision = std::move(head_write.value());
|
||||
+ }
|
||||
+ if (!AdvanceCheckpoint(new_head)) {
|
||||
+ return base::unexpected(SyncVaultStoreError::kCheckpointPersistenceFailed);
|
||||
+ }
|
||||
+ MaybeCollectEpochs(new_head);
|
||||
+ return SyncVaultState{std::vector<uint8_t>(state.begin(), state.end()),
|
||||
+ std::move(new_head), std::move(committed_head_revision),
|
||||
+ true, std::move(chunks)};
|
||||
+}
|
||||
+
|
||||
+SyncVaultStore::ObjectResult SyncVaultStore::ReadObject(
|
||||
+ const std::string& object_id,
|
||||
+ size_t maximum_bytes) const {
|
||||
@@ -382,6 +615,29 @@
|
||||
+ return std::move(result.value());
|
||||
+}
|
||||
+
|
||||
+SyncVaultStore::WriteResult SyncVaultStore::WriteObject(
|
||||
+ const std::string& object_id,
|
||||
+ std::optional<std::string> expected_revision,
|
||||
+ std::vector<uint8_t> data) {
|
||||
+ if (object_id.empty() ||
|
||||
+ object_id.size() > kSyncVaultMaximumIdentifierBytes || data.empty() ||
|
||||
+ data.size() > kSyncVaultMaximumEncryptedObjectBytes ||
|
||||
+ (expected_revision &&
|
||||
+ (expected_revision->empty() ||
|
||||
+ expected_revision->size() > kSyncVaultMaximumIdentifierBytes))) {
|
||||
+ return base::unexpected(SyncVaultStoreError::kInvalidData);
|
||||
+ }
|
||||
+ SyncVaultTransport::WriteResult result = transport_->WriteObject(
|
||||
+ object_id, std::move(expected_revision), std::move(data));
|
||||
+ if (!result.has_value()) {
|
||||
+ return base::unexpected(MapTransportError(result.error()));
|
||||
+ }
|
||||
+ if (result->empty() || result->size() > kSyncVaultMaximumIdentifierBytes) {
|
||||
+ return base::unexpected(SyncVaultStoreError::kInvalidData);
|
||||
+ }
|
||||
+ return std::move(result.value());
|
||||
+}
|
||||
+
|
||||
+base::expected<void, SyncVaultStoreError> SyncVaultStore::ValidateDescriptor(
|
||||
+ const OpaqueSyncVaultObject& object) const {
|
||||
+ auto plaintext =
|
||||
@@ -554,6 +810,80 @@
|
||||
+ return std::move(record.value());
|
||||
+}
|
||||
+
|
||||
+SyncVaultStore::WriteResult SyncVaultStore::InitializeVault() {
|
||||
+ SyncVaultDescriptor descriptor;
|
||||
+ descriptor.vault_uuid = cryptographer_->vault_uuid();
|
||||
+ descriptor.creation_time_millis =
|
||||
+ base::Time::Now().InMillisecondsSinceUnixEpoch();
|
||||
+ auto serialized_descriptor = SerializeSyncVaultDescriptor(descriptor);
|
||||
+ if (!serialized_descriptor.has_value()) {
|
||||
+ return base::unexpected(MapFormatError(serialized_descriptor.error()));
|
||||
+ }
|
||||
+ auto encrypted_descriptor = cryptographer_->Encrypt(
|
||||
+ SyncVaultObjectRole::kDescriptor, serialized_descriptor.value());
|
||||
+ if (!encrypted_descriptor.has_value()) {
|
||||
+ return base::unexpected(MapCryptoError(encrypted_descriptor.error()));
|
||||
+ }
|
||||
+ WriteResult descriptor_write =
|
||||
+ WriteObject(descriptor_object_id_, std::nullopt,
|
||||
+ std::move(encrypted_descriptor.value()));
|
||||
+ if (!descriptor_write.has_value()) {
|
||||
+ ObjectResult existing =
|
||||
+ ReadObject(descriptor_object_id_, kMaximumMetadataContainerBytes);
|
||||
+ if (!existing.has_value() || !existing->has_value()) {
|
||||
+ return base::unexpected(descriptor_write.error());
|
||||
+ }
|
||||
+ auto validation = ValidateDescriptor(existing->value());
|
||||
+ if (!validation.has_value()) {
|
||||
+ return base::unexpected(validation.error());
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ SyncVaultHead initial_head;
|
||||
+ auto serialized_head = SerializeSyncVaultHead(initial_head);
|
||||
+ if (!serialized_head.has_value()) {
|
||||
+ return base::unexpected(MapFormatError(serialized_head.error()));
|
||||
+ }
|
||||
+ auto encrypted_head = cryptographer_->Encrypt(SyncVaultObjectRole::kHead,
|
||||
+ serialized_head.value());
|
||||
+ if (!encrypted_head.has_value()) {
|
||||
+ return base::unexpected(MapCryptoError(encrypted_head.error()));
|
||||
+ }
|
||||
+ WriteResult head_write = WriteObject(head_object_id_, std::nullopt,
|
||||
+ std::move(encrypted_head.value()));
|
||||
+ if (head_write.has_value()) {
|
||||
+ return head_write;
|
||||
+ }
|
||||
+ HeadResult existing_head = ReadHead();
|
||||
+ if (!existing_head.has_value()) {
|
||||
+ return base::unexpected(head_write.error());
|
||||
+ }
|
||||
+ if (existing_head->first.generation != 0) {
|
||||
+ return base::unexpected(SyncVaultStoreError::kConflict);
|
||||
+ }
|
||||
+ return std::move(existing_head->second);
|
||||
+}
|
||||
+
|
||||
+SyncVaultStore::WriteResult SyncVaultStore::WriteImmutableObject(
|
||||
+ const std::string& object_id,
|
||||
+ std::vector<uint8_t> encrypted_data) {
|
||||
+ const std::vector<uint8_t> expected_data = encrypted_data;
|
||||
+ WriteResult write =
|
||||
+ WriteObject(object_id, std::nullopt, std::move(encrypted_data));
|
||||
+ if (write.has_value()) {
|
||||
+ return write;
|
||||
+ }
|
||||
+ // A collision or missing acknowledgement is successful only when the
|
||||
+ // complete immutable ciphertext is already present byte-for-byte.
|
||||
+ ObjectResult existing =
|
||||
+ ReadObject(object_id, kSyncVaultMaximumEncryptedObjectBytes);
|
||||
+ if (existing.has_value() && existing->has_value() &&
|
||||
+ existing->value().data == expected_data) {
|
||||
+ return existing->value().revision;
|
||||
+ }
|
||||
+ return base::unexpected(write.error());
|
||||
+}
|
||||
+
|
||||
+bool SyncVaultStore::AdvanceCheckpoint(const SyncVaultHead& head) {
|
||||
+ SyncVaultCheckpoint next{cryptographer_->vault_uuid(), head.generation,
|
||||
+ head.record_id, head.epoch};
|
||||
@@ -564,10 +894,22 @@
|
||||
+ return true;
|
||||
+}
|
||||
+
|
||||
+void SyncVaultStore::MaybeCollectEpochs(const SyncVaultHead& head) {
|
||||
+ if (head.minimum_retained_epoch == 0 ||
|
||||
+ (attempted_collection_floor_ &&
|
||||
+ *attempted_collection_floor_ >= head.minimum_retained_epoch)) {
|
||||
+ return;
|
||||
+ }
|
||||
+ attempted_collection_floor_ = head.minimum_retained_epoch;
|
||||
+ // Collection is an optimization. The authenticated head already commits to
|
||||
+ // the retention floor, and a failed provider cleanup must not fail syncing.
|
||||
+ transport_->CollectEpochsBefore(head.minimum_retained_epoch);
|
||||
+}
|
||||
+
|
||||
+} // namespace syncer
|
||||
--- /dev/null
|
||||
+++ b/components/sync/engine/extension_sync/sync_vault_store.h
|
||||
@@ -0,0 +1,123 @@
|
||||
@@ -0,0 +1,145 @@
|
||||
+// Copyright 2026 The Helium Authors
|
||||
+// You can use, redistribute, and/or modify this source code under
|
||||
+// the terms of the GPL-3.0 license that can be found in the LICENSE file.
|
||||
@@ -596,8 +938,10 @@
|
||||
+
|
||||
+enum class SyncVaultStoreError {
|
||||
+ kAuthenticationRequired,
|
||||
+ kConflict,
|
||||
+ kNetworkError,
|
||||
+ kTemporaryError,
|
||||
+ kQuotaExceeded,
|
||||
+ kAccessDenied,
|
||||
+ kInvalidData,
|
||||
+ kUnsupported,
|
||||
@@ -618,10 +962,12 @@
|
||||
+ SyncVaultHead head;
|
||||
+ std::optional<std::string> head_revision;
|
||||
+ bool initialized = false;
|
||||
+ std::vector<SyncVaultObjectReference> state_chunks;
|
||||
+};
|
||||
+
|
||||
+// Authenticates and reconstructs a browser-owned encrypted journal from opaque
|
||||
+// provider objects. A protected local checkpoint anchors accepted history.
|
||||
+// Implements the browser-owned encrypted journal over an opaque object
|
||||
+// provider. Immutable state chunks and journal records are installed first;
|
||||
+// only the fixed head is conditionally replaced.
|
||||
+class SyncVaultStore {
|
||||
+ public:
|
||||
+ using PersistCheckpointCallback =
|
||||
@@ -631,6 +977,7 @@
|
||||
+ using ReadResult = base::expected<SyncVaultState, SyncVaultStoreError>;
|
||||
+ using RefreshResult =
|
||||
+ base::expected<std::optional<SyncVaultState>, SyncVaultStoreError>;
|
||||
+ using CommitResult = base::expected<SyncVaultState, SyncVaultStoreError>;
|
||||
+
|
||||
+ static CreateResult Create(
|
||||
+ std::unique_ptr<SyncVaultTransport> transport,
|
||||
@@ -651,6 +998,14 @@
|
||||
+ // Authenticates the current head and returns a complete replacement only
|
||||
+ // when it differs from the already loaded state.
|
||||
+ RefreshResult ReadStateIfChanged(const SyncVaultState& loaded_state);
|
||||
+ // Creates an authenticated empty descriptor/head when needed, then reads
|
||||
+ // both objects back through the normal verification path. This is intended
|
||||
+ // for new-vault setup; joining an existing vault must use ReadState() so a
|
||||
+ // missing remote history cannot be silently initialized.
|
||||
+ ReadResult InitializeEmptyVaultAndReadState();
|
||||
+ CommitResult CommitState(const SyncVaultState& base_state,
|
||||
+ base::span<const uint8_t> state,
|
||||
+ uint32_t mutation_count);
|
||||
+
|
||||
+ const SyncVaultCheckpoint& checkpoint() const { return checkpoint_; }
|
||||
+
|
||||
@@ -666,16 +1021,24 @@
|
||||
+ SyncVaultStoreError>;
|
||||
+ using JournalResult =
|
||||
+ base::expected<SyncVaultJournalRecord, SyncVaultStoreError>;
|
||||
+ using WriteResult = base::expected<std::string, SyncVaultStoreError>;
|
||||
+
|
||||
+ ObjectResult ReadObject(const std::string& object_id,
|
||||
+ size_t maximum_bytes) const;
|
||||
+ WriteResult WriteObject(const std::string& object_id,
|
||||
+ std::optional<std::string> expected_revision,
|
||||
+ std::vector<uint8_t> data);
|
||||
+ base::expected<void, SyncVaultStoreError> ValidateDescriptor(
|
||||
+ const OpaqueSyncVaultObject& object) const;
|
||||
+ HeadResult ReadHead();
|
||||
+ JournalResult AuthenticateHead(const SyncVaultHead& head) const;
|
||||
+ base::expected<SyncVaultJournalRecord, SyncVaultStoreError> ReadJournalRecord(
|
||||
+ const std::string& record_id) const;
|
||||
+ WriteResult InitializeVault();
|
||||
+ WriteResult WriteImmutableObject(const std::string& object_id,
|
||||
+ std::vector<uint8_t> encrypted_data);
|
||||
+ bool AdvanceCheckpoint(const SyncVaultHead& head);
|
||||
+ void MaybeCollectEpochs(const SyncVaultHead& head);
|
||||
+
|
||||
+ std::unique_ptr<SyncVaultTransport> transport_;
|
||||
+ std::unique_ptr<SyncVaultCryptographer> cryptographer_;
|
||||
@@ -684,6 +1047,7 @@
|
||||
+ const std::string object_prefix_;
|
||||
+ const std::string descriptor_object_id_;
|
||||
+ const std::string head_object_id_;
|
||||
+ std::optional<uint32_t> attempted_collection_floor_;
|
||||
+
|
||||
+ SEQUENCE_CHECKER(sequence_checker_);
|
||||
+};
|
||||
@@ -1,6 +1,6 @@
|
||||
--- /dev/null
|
||||
+++ b/components/sync/engine/extension_sync/sync_vault_transport.h
|
||||
@@ -0,0 +1,58 @@
|
||||
@@ -0,0 +1,72 @@
|
||||
+// Copyright 2026 The Helium Authors
|
||||
+// You can use, redistribute, and/or modify this source code under
|
||||
+// the terms of the GPL-3.0 license that can be found in the LICENSE file.
|
||||
@@ -22,8 +22,10 @@
|
||||
+
|
||||
+enum class SyncVaultTransportError {
|
||||
+ kAuthenticationRequired,
|
||||
+ kConflict,
|
||||
+ kNetworkError,
|
||||
+ kTemporaryError,
|
||||
+ kQuotaExceeded,
|
||||
+ kAccessDenied,
|
||||
+ kInvalidData,
|
||||
+ kUnsupported,
|
||||
@@ -35,12 +37,14 @@
|
||||
+ std::string revision;
|
||||
+};
|
||||
+
|
||||
+// Transport-neutral read access to one provider vault. Every payload is
|
||||
+// already an opaque authenticated ciphertext.
|
||||
+// Transport-neutral access to one provider vault. Every payload is already an
|
||||
+// opaque authenticated ciphertext. Implementations must preserve exact
|
||||
+// revisions and report failed conditional writes as kConflict.
|
||||
+class SyncVaultTransport {
|
||||
+ public:
|
||||
+ using ReadResult = base::expected<std::optional<OpaqueSyncVaultObject>,
|
||||
+ SyncVaultTransportError>;
|
||||
+ using WriteResult = base::expected<std::string, SyncVaultTransportError>;
|
||||
+
|
||||
+ virtual ~SyncVaultTransport() = default;
|
||||
+
|
||||
@@ -54,6 +58,16 @@
|
||||
+ // revision.
|
||||
+ virtual ReadResult ReadObject(const std::string& object_id,
|
||||
+ size_t maximum_bytes) = 0;
|
||||
+
|
||||
+ // nullopt means IF_ABSENT. A revision means IF_REVISION. A successful write
|
||||
+ // returns the exact, non-empty revision assigned to the object.
|
||||
+ virtual WriteResult WriteObject(const std::string& object_id,
|
||||
+ std::optional<std::string> expected_revision,
|
||||
+ std::vector<uint8_t> data) = 0;
|
||||
+
|
||||
+ // Best-effort storage reclamation after an authenticated head advances its
|
||||
+ // retention floor. Fixed descriptor and head objects are never affected.
|
||||
+ virtual void CollectEpochsBefore(uint32_t minimum_retained_epoch) = 0;
|
||||
+};
|
||||
+
|
||||
+} // namespace syncer
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
--- a/third_party/ublock/manifest.json
|
||||
+++ b/third_party/ublock/manifest.json
|
||||
@@ -114,5 +114,6 @@
|
||||
"version": "1.72.2",
|
||||
"version": "1.73.0",
|
||||
"web_accessible_resources": [
|
||||
"/web_accessible_resources/*"
|
||||
- ]
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/third_party/blink/common/page/page_zoom.cc
|
||||
+++ b/third_party/blink/common/page/page_zoom.cc
|
||||
@@ -12,7 +12,7 @@ namespace blink {
|
||||
|
||||
static constexpr double kPresetBrowserZoomFactorsArray[] = {
|
||||
0.25, 1 / 3.0, 0.5, 2 / 3.0, 0.75, 0.8, 0.9, 1.0, 1.1,
|
||||
- 1.25, 1.5, 1.75, 2.0, 2.5, 3.0, 4.0, 5.0};
|
||||
+ 1.25, 1.33, 1.4, 1.5, 1.75, 2.0, 2.5, 3.0, 4.0, 5.0};
|
||||
const base::span<const double> kPresetBrowserZoomFactors(
|
||||
kPresetBrowserZoomFactorsArray);
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
warning_summary_ = l10n_util::GetStringUTF16(
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -3267,6 +3267,10 @@ are declared in tools/grit/grit_args.gni
|
||||
@@ -3285,6 +3285,10 @@ are declared in tools/grit/grit_args.gni
|
||||
desc="Status text for a download item that was interrupted because the file path name is too long.">
|
||||
File name or location is too long
|
||||
</message>
|
||||
@@ -101,7 +101,7 @@
|
||||
<message name="IDS_DOWNLOAD_BUBBLE_INTERRUPTED_SUBPAGE_SUMMARY_PATH_TOO_LONG"
|
||||
desc="Subpage summary text for a download item that was interrupted because the file path name is too long.">
|
||||
Try using a shorter file name or saving to a different folder
|
||||
@@ -3287,6 +3291,10 @@ are declared in tools/grit/grit_args.gni
|
||||
@@ -3305,6 +3309,10 @@ are declared in tools/grit/grit_args.gni
|
||||
desc="Status text for a download item that had something go wrong.">
|
||||
Something went wrong
|
||||
</message>
|
||||
|
||||
@@ -1,28 +1,31 @@
|
||||
--- a/chrome/browser/helium_flag_choices.h
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -40,6 +40,8 @@ namespace helium {
|
||||
"helium-split-clienthello";
|
||||
|
||||
constexpr const char kMiddleClickAutoscrollCommandLine[] = "middle-click-autoscroll";
|
||||
+ constexpr const char kHeliumCompactLocationWidthCommandLine[] =
|
||||
+ "helium-compact-location-width";
|
||||
@@ -42,6 +42,9 @@ constexpr const char kDisableEchCommandL
|
||||
constexpr const char kHeliumSplitClientHelloCommandLine[] =
|
||||
"helium-split-clienthello";
|
||||
|
||||
+constexpr const char kHeliumCompactLocationWidthCommandLine[] =
|
||||
+ "helium-compact-location-width";
|
||||
+
|
||||
} // namespace helium
|
||||
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_ */
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -47,4 +47,8 @@
|
||||
"Middle Click Autoscroll",
|
||||
"Enables autoscroll on middle click. Helium flag, Chromium feature.",
|
||||
kOsDesktop, FEATURE_VALUE_TYPE(blink::features::kHeliumMiddleClickAutoscroll)},
|
||||
@@ -75,5 +75,10 @@
|
||||
"prevent access to networks that require a proxy. Helium flag.",
|
||||
kOsAll, SINGLE_VALUE_TYPE(switches::kNoProxyServer)},
|
||||
// ui
|
||||
+ {helium::kHeliumCompactLocationWidthCommandLine,
|
||||
+ "Automatic address bar width in compact layout",
|
||||
+ "Allows the location bar to automatically reduce its width in the compact browser layout. The omnibox may be uncomfortable to use. Helium flag.",
|
||||
+ "Allows the location bar to automatically reduce its width in the compact "
|
||||
+ "browser layout. The omnibox may be uncomfortable to use. Helium flag.",
|
||||
+ kOsDesktop, FEATURE_VALUE_TYPE(features::kHeliumCompactLocationWidth)},
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
// platform
|
||||
#endif // CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -32,6 +32,13 @@ namespace features {
|
||||
@@ -35,6 +35,13 @@ BASE_FEATURE(kBookmarkOpenAllConfirmatio
|
||||
// Enables the migration of browser commands to Action API.
|
||||
BASE_FEATURE(kUseActionsForBrowserCommands, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
@@ -38,7 +41,7 @@
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
--- a/chrome/browser/ui/ui_features.h
|
||||
+++ b/chrome/browser/ui/ui_features.h
|
||||
@@ -21,6 +21,9 @@ namespace features {
|
||||
@@ -23,6 +23,9 @@ BASE_DECLARE_FEATURE(kBookmarkOpenAllCon
|
||||
|
||||
BASE_DECLARE_FEATURE(kUseActionsForBrowserCommands);
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#define IDC_ADD_NEW_TAB_TO_GROUP 34100
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -10444,6 +10444,51 @@ Keep your key file in a safe place. You
|
||||
@@ -10462,6 +10462,51 @@ Keep your key file in a safe place. You
|
||||
Bottom
|
||||
</message>
|
||||
|
||||
|
||||
@@ -238,7 +238,7 @@
|
||||
{IDC_SHOW_BOOKMARK_MANAGER, ui::EF_COMMAND_DOWN | ui::EF_ALT_DOWN,
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -19335,6 +19335,9 @@ Please help our engineers fix this probl
|
||||
@@ -19353,6 +19353,9 @@ Please help our engineers fix this probl
|
||||
<message name="IDS_LINK_COPIED_TOAST_BODY" desc="Text on a toast notification that is shown when a link is successfully copied.">
|
||||
Link copied
|
||||
</message>
|
||||
|
||||
@@ -404,3 +404,28 @@
|
||||
|
||||
double CalculateRatioWithSnapPoints(double start_size,
|
||||
double total_size) const;
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -198,19 +198,19 @@ BASE_FEATURE_PARAM(base::TimeDelta,
|
||||
kShowDropTargetForTabDelay,
|
||||
&kSplitViewTabDraggingUpdates,
|
||||
"show_drop_target_for_tab_delay",
|
||||
- base::Milliseconds(1000));
|
||||
+ base::Milliseconds(500));
|
||||
|
||||
BASE_FEATURE(kSplitViewDragAndDropVelocity, base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
BASE_FEATURE_PARAM(base::TimeDelta,
|
||||
kSplitViewDragAndDropMinDelay,
|
||||
&kSplitViewDragAndDropVelocity,
|
||||
"min_delay",
|
||||
- base::Milliseconds(1000));
|
||||
+ base::Milliseconds(500));
|
||||
BASE_FEATURE_PARAM(base::TimeDelta,
|
||||
kSplitViewDragAndDropMaxDelay,
|
||||
&kSplitViewDragAndDropVelocity,
|
||||
"max_delay",
|
||||
- base::Milliseconds(1000));
|
||||
+ base::Milliseconds(500));
|
||||
BASE_FEATURE_PARAM(int,
|
||||
kSplitViewDragAndDropMinDistanceThreshold,
|
||||
&kSplitViewDragAndDropVelocity,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/ui_features.h
|
||||
+++ b/chrome/browser/ui/ui_features.h
|
||||
@@ -24,6 +24,9 @@ BASE_DECLARE_FEATURE(kUseActionsForBrows
|
||||
@@ -26,6 +26,9 @@ BASE_DECLARE_FEATURE(kUseActionsForBrows
|
||||
BASE_DECLARE_FEATURE(kHeliumCompactLocationWidth);
|
||||
bool HeliumUseCompactLocationWidth();
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
// Enables a compositor-driven rotation animation for the tab load throbber.
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -39,6 +39,16 @@ bool HeliumUseCompactLocationWidth() {
|
||||
@@ -42,6 +42,16 @@ bool HeliumUseCompactLocationWidth() {
|
||||
return base::FeatureList::IsEnabled(kHeliumCompactLocationWidth);
|
||||
}
|
||||
|
||||
@@ -31,26 +31,27 @@
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
--- a/chrome/browser/helium_flag_choices.h
|
||||
+++ b/chrome/browser/helium_flag_choices.h
|
||||
@@ -42,6 +42,8 @@ namespace helium {
|
||||
constexpr const char kMiddleClickAutoscrollCommandLine[] = "middle-click-autoscroll";
|
||||
constexpr const char kHeliumCompactLocationWidthCommandLine[] =
|
||||
"helium-compact-location-width";
|
||||
+ constexpr const char kHeliumNativeFrameMaterialsCommandLine[] =
|
||||
+ "helium-native-frame-materials";
|
||||
@@ -45,6 +45,8 @@ constexpr const char kHeliumSplitClientH
|
||||
constexpr const char kHeliumCompactLocationWidthCommandLine[] =
|
||||
"helium-compact-location-width";
|
||||
|
||||
+constexpr const char kHeliumNativeFrameMaterialsCommandLine[] =
|
||||
+ "helium-native-frame-materials";
|
||||
} // namespace helium
|
||||
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_CHOICES_H_ */
|
||||
--- a/chrome/browser/helium_flag_entries.h
|
||||
+++ b/chrome/browser/helium_flag_entries.h
|
||||
@@ -51,4 +51,8 @@
|
||||
"Automatic address bar width in compact layout",
|
||||
"Allows the location bar to automatically reduce its width in the compact browser layout. The omnibox may be uncomfortable to use. Helium flag.",
|
||||
@@ -80,5 +80,9 @@
|
||||
"Allows the location bar to automatically reduce its width in the compact "
|
||||
"browser layout. The omnibox may be uncomfortable to use. Helium flag.",
|
||||
kOsDesktop, FEATURE_VALUE_TYPE(features::kHeliumCompactLocationWidth)},
|
||||
+ {helium::kHeliumNativeFrameMaterialsCommandLine,
|
||||
+ "Native frame materials",
|
||||
+ "Enables an option to apply native materials to the browser frame surfaces. May cause UI clarity issues. Helium flag.",
|
||||
+ {helium::kHeliumNativeFrameMaterialsCommandLine, "Native frame materials",
|
||||
+ "Enables an option to apply native materials to the browser frame "
|
||||
+ "surfaces. May cause UI clarity issues. Helium flag.",
|
||||
+ kOsMac, FEATURE_VALUE_TYPE(features::kHeliumNativeFrameMaterials)},
|
||||
#endif /* CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_ */
|
||||
// platform
|
||||
#endif // CHROME_BROWSER_HELIUM_FLAG_ENTRIES_H_
|
||||
--- a/chrome/common/pref_names.h
|
||||
+++ b/chrome/common/pref_names.h
|
||||
@@ -614,6 +614,11 @@ inline constexpr char kShiftRightClickCo
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -7911,6 +7911,9 @@ Keep your key file in a safe place. You
|
||||
@@ -7929,6 +7929,9 @@ Keep your key file in a safe place. You
|
||||
<message name="IDS_NTP_CUSTOMIZE_CHROME_CHANGE_THEME_LABEL" desc="The label for the action button for changing Chrome theme in the New Tab Page customize chrome side panel.">
|
||||
Change theme
|
||||
</message>
|
||||
|
||||
@@ -597,7 +597,7 @@
|
||||
gfx::ImageSkia AlertIndicatorButton::GetImageToPaint() {
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -235,7 +235,7 @@ bool IsTabGroupMenuMoreEntryPointsEnable
|
||||
@@ -238,7 +238,7 @@ bool IsTabGroupMenuMoreEntryPointsEnable
|
||||
return base::FeatureList::IsEnabled(kTabGroupMenuMoreEntryPoints);
|
||||
}
|
||||
|
||||
|
||||
@@ -569,7 +569,7 @@
|
||||
// The container (and extensions-menu button) should not be visible if we have
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -10946,6 +10946,9 @@ Keep your key file in a safe place. You
|
||||
@@ -10964,6 +10964,9 @@ Keep your key file in a safe place. You
|
||||
<message name="IDS_ACCNAME_FIND" desc="The accessible name for the find button.">
|
||||
Find
|
||||
</message>
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
};
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -13849,6 +13849,9 @@ Check your passwords anytime in <ph name
|
||||
@@ -13867,6 +13867,9 @@ Check your passwords anytime in <ph name
|
||||
<message name="IDS_EXTENSIONS_INSTALL_LOCATION_SHARED_MODULE" desc="The text explaining the the installation of the extension was because of extensions that depend on this shared module">
|
||||
Installed because of dependent extension(s).
|
||||
</message>
|
||||
|
||||
+7
-2
@@ -35,6 +35,7 @@ ungoogled-chromium/move-js-optimizer-unfamiliar-sites.patch
|
||||
ungoogled-chromium/build-with-wasm-rollup.patch
|
||||
ungoogled-chromium/remove-navigation-source-param.patch
|
||||
ungoogled-chromium/bundle-hyphenation-patterns.patch
|
||||
ungoogled-chromium/disable-tos-dialog.patch
|
||||
|
||||
bromite/disable-fetching-field-trials.patch
|
||||
|
||||
@@ -127,7 +128,7 @@ helium/core/sync/datatype-policy.patch
|
||||
helium/core/sync/vault-format.patch
|
||||
helium/core/sync/vault-encryption.patch
|
||||
helium/core/sync/vault-transport.patch
|
||||
helium/core/sync/vault-store-read.patch
|
||||
helium/core/sync/vault-store.patch
|
||||
|
||||
helium/settings/setup-behavior-settings-page.patch
|
||||
helium/core/keyboard-shortcuts.patch
|
||||
@@ -156,8 +157,10 @@ helium/core/fix-instance-id-stuck.patch
|
||||
|
||||
helium/core/flags-setup.patch
|
||||
helium/core/add-low-power-framerate-flag.patch
|
||||
helium/core/bookmark-open-all-confirmation-flag.patch
|
||||
helium/core/add-update-channel-flag.patch
|
||||
helium/core/add-updater-preference.patch
|
||||
helium/core/add-middle-click-autoscroll-flag.patch
|
||||
helium/core/exclude-irrelevant-flags.patch
|
||||
|
||||
helium/core/disable-outdated-build-detector.patch
|
||||
@@ -181,6 +184,7 @@ helium/core/network/global-privacy-control-pref.patch
|
||||
helium/core/network/quic-v2-flag.patch
|
||||
helium/core/network/split-clienthello.patch
|
||||
helium/core/network/dns-providers.patch
|
||||
helium/core/network/ignore-system-proxy-server-flag.patch
|
||||
|
||||
helium/core/reduce-accept-language-headers.patch
|
||||
helium/core/disable-ad-topics-and-etc.patch
|
||||
@@ -190,7 +194,6 @@ helium/core/disable-touch-ui.patch
|
||||
helium/core/open-new-tabs-next-to-active-tab-option.patch
|
||||
helium/core/disable-update-toast.patch
|
||||
helium/core/disable-fedcm-bubble.patch
|
||||
helium/core/add-middle-click-autoscroll-flag.patch
|
||||
helium/core/webrtc-default-handling-policy.patch
|
||||
helium/core/browser-window-context-menu.patch
|
||||
helium/core/disable-ntp-footer.patch
|
||||
@@ -214,6 +217,7 @@ helium/core/shift-right-click-context-menu.patch
|
||||
helium/core/crash-reporter-privacy-tweaks.patch
|
||||
helium/core/crash-reporting-prefs.patch
|
||||
helium/core/disable-omnibox-webui.patch
|
||||
helium/core/rbe-nativelink-config.patch
|
||||
|
||||
helium/settings/settings-page-icons.patch
|
||||
helium/settings/move-search-suggest.patch
|
||||
@@ -338,4 +342,5 @@ helium/ui/dont-antialias-rects.patch
|
||||
helium/ui/fix-windows-ui-position.patch
|
||||
helium/ui/native-frame-materials.patch
|
||||
helium/ui/page-zoom-indicator.patch
|
||||
helium/ui/add-more-zoom-presets.patch
|
||||
helium/ui/helium-noise-page-info.patch
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/chrome/browser/first_run/first_run.h
|
||||
+++ b/chrome/browser/first_run/first_run.h
|
||||
@@ -74,7 +74,7 @@ struct MasterPrefs {
|
||||
bool confirm_to_quit;
|
||||
#endif
|
||||
#if BUILDFLAG(IS_LINUX)
|
||||
- bool eula_required = true;
|
||||
+ bool eula_required = false;
|
||||
#endif
|
||||
};
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "components/translate/core/browser/translate_download_manager.h"
|
||||
#include "components/translate/core/browser/translate_manager.h"
|
||||
#include "components/translate/core/browser/translate_prefs.h"
|
||||
@@ -2583,6 +2584,7 @@ void RenderViewContextMenu::AppendPageIt
|
||||
@@ -2605,6 +2606,7 @@ void RenderViewContextMenu::AppendPageIt
|
||||
}
|
||||
|
||||
if (CanTranslate(/*menu_logging=*/true)) {
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
4
|
||||
6
|
||||
|
||||
Reference in New Issue
Block a user