mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Compare commits
24 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5e94168884 | |||
| afa6a0592c | |||
| eba585e718 | |||
| 6ecfc9e06e | |||
| 3db87dc072 | |||
| 6bbdcc3e5e | |||
| 53deb3148a | |||
| e93aece7f5 | |||
| 629f549537 | |||
| 961c962ed4 | |||
| c96deab6c0 | |||
| 36db56b468 | |||
| 5ce006ae98 | |||
| b4c1ea62e5 | |||
| 4e5e867125 | |||
| 08a3e7dae4 | |||
| a0a5bbaf90 | |||
| c4732aacde | |||
| 11d1698665 | |||
| d820c3a286 | |||
| cf82700725 | |||
| b3cbb2baa4 | |||
| bcacb8c79e | |||
| 6e3d516452 |
@@ -1 +1 @@
|
||||
149.0.7827.102
|
||||
149.0.7827.155
|
||||
|
||||
@@ -47,9 +47,21 @@ def parse_args():
|
||||
type=Path,
|
||||
help='Import translations from a JSON file '
|
||||
'instead of calling the LLM.')
|
||||
translate.add_argument('--cmd',
|
||||
help='Run translations through this command instead of '
|
||||
'the LLM completions API. The filled prompt is appended '
|
||||
'as the final argument and the JSON payload is passed '
|
||||
'on stdin.')
|
||||
|
||||
subparsers.add_parser('clean', help='Clean up stale translation strings')
|
||||
|
||||
forage = subparsers.add_parser('forage', help='Find existing translation strings in Chromium')
|
||||
forage.add_argument('-t',
|
||||
'--tree',
|
||||
type=Path,
|
||||
required=True,
|
||||
help='Path to Chromium source tree')
|
||||
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
@@ -69,6 +81,10 @@ def main():
|
||||
import i18n_clean # pylint: disable=import-outside-toplevel
|
||||
return i18n_clean.run()
|
||||
|
||||
if args.command == 'forage':
|
||||
import i18n_forage # pylint: disable=import-outside-toplevel
|
||||
return i18n_forage.run(args)
|
||||
|
||||
raise ValueError(f'unknown command: {args.command}')
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,111 @@
|
||||
# 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.
|
||||
"""Helper for finding existing translated strings in upstream Chromium."""
|
||||
|
||||
import sys
|
||||
import json
|
||||
from pathlib import Path
|
||||
from collections import defaultdict
|
||||
import xml.etree.ElementTree as xml
|
||||
|
||||
I18N_DIR = Path(__file__).resolve().parent.parent / 'i18n'
|
||||
SOURCE_PATH = I18N_DIR / 'source.gen.json'
|
||||
TRANSLATIONS_DIR = I18N_DIR / 'translations'
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parent.parent / 'utils'))
|
||||
from i18n_apply import get_id, build_xtb_index, resolve_xtb
|
||||
import name_substitution_utils as namesub
|
||||
|
||||
|
||||
def get_untranslated_strings_by_xtb(source, lang, xtb_index):
|
||||
"""Generates a map of xtb_path -> [untranslated strings]."""
|
||||
translation_path = TRANSLATIONS_DIR / f'{lang}.json'
|
||||
trans_keys = set()
|
||||
|
||||
if translation_path.exists():
|
||||
with open(translation_path, encoding='utf-8') as file:
|
||||
translations = json.load(file)
|
||||
for translation in translations:
|
||||
trans_keys.add((translation['name'], translation['source']))
|
||||
|
||||
filtered = defaultdict(list)
|
||||
for string in source:
|
||||
xtb_file = resolve_xtb(string, lang, xtb_index)
|
||||
assert xtb_file is not None
|
||||
if (string['name'], string['message']) not in trans_keys:
|
||||
filtered[xtb_file].append(string)
|
||||
return filtered
|
||||
|
||||
|
||||
def to_fpmap(strings):
|
||||
"""Generates a fingerprint -> source string mapping."""
|
||||
fp_map = {}
|
||||
for string in strings:
|
||||
fingerprint = get_id(string['name'], string['context'], string['message'],
|
||||
string.get('meaning'))
|
||||
fp_map[fingerprint] = string
|
||||
return fp_map
|
||||
|
||||
|
||||
def stringify_inner_xml(node):
|
||||
"""Takes an XML node and stringifies its inner contents."""
|
||||
parts = [node.text or '']
|
||||
for child in node:
|
||||
parts.append(xml.tostring(child, encoding='unicode'))
|
||||
return ''.join(parts)
|
||||
|
||||
|
||||
def find_matching(path, fpmap):
|
||||
"""Finds pre-existing matching translations for Helium strings."""
|
||||
content = path.read_text(encoding='utf-8')
|
||||
root = xml.fromstring(content)
|
||||
|
||||
out = {}
|
||||
for node in root.findall('.//translation'):
|
||||
fingerprint = node.get('id')
|
||||
if fingerprint in fpmap:
|
||||
out[fingerprint] = stringify_inner_xml(node)
|
||||
return out
|
||||
|
||||
|
||||
def apply_matching(lang, matching, fpmap):
|
||||
"""
|
||||
Takes a map of found matches and applies them to the helium i18n file.
|
||||
"""
|
||||
translation_path = TRANSLATIONS_DIR / f'{lang}.json'
|
||||
translations = []
|
||||
if translation_path.exists():
|
||||
with open(translation_path, encoding='utf-8') as file:
|
||||
translations = json.load(file)
|
||||
|
||||
for fingerprint, translation in matching.items():
|
||||
original = fpmap[fingerprint]
|
||||
translations.append({
|
||||
'name': namesub.replace_text(original['name'])[0],
|
||||
'source': namesub.replace_text(original['message'])[0],
|
||||
'message': namesub.replace_text(translation)[0],
|
||||
})
|
||||
|
||||
with open(translation_path, 'w', encoding='utf-8') as file:
|
||||
json.dump(translations, file, indent=2, ensure_ascii=False)
|
||||
file.write('\n')
|
||||
|
||||
|
||||
def run(args):
|
||||
"""Forages for usable existing Chromium translations."""
|
||||
with open(SOURCE_PATH, encoding='utf-8') as file:
|
||||
source = json.load(file)
|
||||
with open(I18N_DIR / 'languages.json', encoding='utf-8') as file:
|
||||
languages = json.load(file)
|
||||
|
||||
namesub.add_grit_to_path(args.tree)
|
||||
xtb_map = build_xtb_index(source, args.tree)
|
||||
|
||||
for lang in languages:
|
||||
missing = get_untranslated_strings_by_xtb(source, lang, xtb_map)
|
||||
for path, strings in missing.items():
|
||||
fpmap = to_fpmap(strings)
|
||||
matching = find_matching(path, fpmap)
|
||||
if matching:
|
||||
apply_matching(lang, matching, fpmap)
|
||||
@@ -2,17 +2,21 @@
|
||||
# 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.
|
||||
"""
|
||||
Translation of Helium strings using a completions API.
|
||||
Translation of Helium strings using an LLM backend.
|
||||
"""
|
||||
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import shlex
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
from pathlib import Path
|
||||
from urllib.request import Request, urlopen
|
||||
|
||||
I18N_DIR = Path(__file__).resolve().parent.parent / 'i18n'
|
||||
REPO_ROOT = Path(__file__).resolve().parent.parent
|
||||
I18N_DIR = REPO_ROOT / 'i18n'
|
||||
SOURCE_PATH = I18N_DIR / 'source.gen.json'
|
||||
TRANSLATIONS_DIR = I18N_DIR / 'translations'
|
||||
|
||||
@@ -57,6 +61,49 @@ def llm_chat(prompt, data):
|
||||
return body['choices'][0]['message']['content']
|
||||
|
||||
|
||||
def run_command(cmd, data):
|
||||
"""Run a non-interactive CLI backend."""
|
||||
with tempfile.TemporaryDirectory(prefix='helium-i18n-cmd-') as cwd:
|
||||
try:
|
||||
proc = subprocess.run(cmd,
|
||||
input=data,
|
||||
text=True,
|
||||
capture_output=True,
|
||||
check=True,
|
||||
cwd=cwd)
|
||||
except FileNotFoundError as exc:
|
||||
raise RuntimeError(f'{cmd[0]} executable not found') from exc
|
||||
except subprocess.CalledProcessError as exc:
|
||||
details = []
|
||||
if exc.stderr:
|
||||
details.append(exc.stderr.strip())
|
||||
if exc.stdout:
|
||||
details.append(f'stdout:\n{exc.stdout.strip()}')
|
||||
message = f'{cmd[0]} failed'
|
||||
if details:
|
||||
message += ':\n' + '\n'.join(details)
|
||||
raise RuntimeError(message) from exc
|
||||
|
||||
return proc.stdout
|
||||
|
||||
|
||||
def command_chat(prompt, data, command):
|
||||
"""Send a translation request through a provided command."""
|
||||
cmd = shlex.split(command)
|
||||
if not cmd:
|
||||
raise ValueError('--cmd must not be empty')
|
||||
|
||||
cmd.append(prompt)
|
||||
return run_command(cmd, data)
|
||||
|
||||
|
||||
def translate_with_backend(prompt, data, command=None):
|
||||
"""Send a translation request to the selected backend."""
|
||||
if command:
|
||||
return command_chat(prompt, data, command)
|
||||
return llm_chat(prompt, data)
|
||||
|
||||
|
||||
def load_existing(lang_code):
|
||||
"""Load existing translations as a dict keyed by (name, source)."""
|
||||
path = TRANSLATIONS_DIR / f'{lang_code}.json'
|
||||
@@ -247,8 +294,10 @@ def save_translations(lang_code, source, existing, response, dedup_map):
|
||||
file.write('\n')
|
||||
|
||||
|
||||
def translate_language(lang_code, lang_name, source, prompt_template, from_file=None):
|
||||
# pylint: disable-next=too-many-locals
|
||||
def translate_language(language, source, prompt_template, from_file=None, command=None):
|
||||
"""Run translation for a single language."""
|
||||
lang_code, lang_name = language
|
||||
existing = load_existing(lang_code)
|
||||
untranslated = find_untranslated(source, existing)
|
||||
|
||||
@@ -269,7 +318,7 @@ def translate_language(lang_code, lang_name, source, prompt_template, from_file=
|
||||
else:
|
||||
prompt = fill_prompt(prompt_template, lang_name, lang_code)
|
||||
data = json.dumps(payload, ensure_ascii=False)
|
||||
raw = llm_chat(prompt, data)
|
||||
raw = translate_with_backend(prompt, data, command)
|
||||
|
||||
response = parse_response(raw, expected_names)
|
||||
|
||||
@@ -287,15 +336,20 @@ def run(args):
|
||||
prompt_template = (I18N_DIR / 'prompt.md').read_text(encoding='utf-8')
|
||||
TRANSLATIONS_DIR.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
language = getattr(args, 'language', None)
|
||||
from_file = getattr(args, 'from_file', None)
|
||||
command = getattr(args, 'cmd', None)
|
||||
|
||||
if args.language:
|
||||
for code in args.language:
|
||||
if not command:
|
||||
command = os.environ.get('I18N_TRANSLATE_CMD')
|
||||
|
||||
if language:
|
||||
for code in language:
|
||||
if code not in languages:
|
||||
raise ValueError(f'unknown language code: {code}')
|
||||
translate_language(code, languages[code], source, prompt_template, from_file)
|
||||
translate_language((code, languages[code]), source, prompt_template, from_file, command)
|
||||
else:
|
||||
if from_file:
|
||||
raise ValueError('--from-file requires --language')
|
||||
for code, name in languages.items():
|
||||
translate_language(code, name, source, prompt_template)
|
||||
translate_language((code, name), source, prompt_template, command=command)
|
||||
|
||||
@@ -972,9 +972,11 @@ chrome/browser/contextual_tasks/contextual_tasks_interactive_uitest.cc
|
||||
chrome/browser/contextual_tasks/contextual_tasks_internals_page_handler.cc
|
||||
chrome/browser/contextual_tasks/contextual_tasks_page_handler.cc
|
||||
chrome/browser/contextual_tasks/contextual_tasks_page_handler_unittest.cc
|
||||
chrome/browser/contextual_tasks/contextual_tasks_side_panel_coordinator_interactive_uitest.cc
|
||||
chrome/browser/contextual_tasks/contextual_tasks_ui.cc
|
||||
chrome/browser/contextual_tasks/contextual_tasks_ui_browsertest.cc
|
||||
chrome/browser/contextual_tasks/contextual_tasks_ui_service.cc
|
||||
chrome/browser/contextual_tasks/contextual_tasks_ui_service_browsertest.cc
|
||||
chrome/browser/contextual_tasks/contextual_tasks_ui_service_interactive_uitest.cc
|
||||
chrome/browser/contextual_tasks/contextual_tasks_ui_service_unittest.cc
|
||||
chrome/browser/contextual_tasks/contextual_tasks_ui_unittest.cc
|
||||
@@ -1425,6 +1427,7 @@ chrome/browser/performance_manager/policies/discard_eligibility_policy_unittest.
|
||||
chrome/browser/performance_manager/policies/priority_boost_helpers.cc
|
||||
chrome/browser/performance_manager/policies/report_page_processes_policy.cc
|
||||
chrome/browser/performance_manager/user_tuning/profile_force_foreground_priority_list_helper_unittest.cc
|
||||
chrome/browser/permissions/chrome_permissions_client.cc
|
||||
chrome/browser/permissions/notifications_engagement_service_unittest.cc
|
||||
chrome/browser/permissions/permission_context_base_permissions_policy_unittest.cc
|
||||
chrome/browser/permissions/permission_manager_unittest.cc
|
||||
|
||||
+11
-5
@@ -4,18 +4,24 @@ You are a professional translator for browser UI strings. Translate all provided
|
||||
|
||||
1. **Placeholders**: preserve all `<ph>...</ph>` tags exactly as they appear. Do not translate, reorder, or modify anything inside a `<ph>` tag.
|
||||
|
||||
2. **Brand names**: "Helium" is a product name. Never translate it. Other product/brand names (e.g. "uBlock Origin") must also be kept as-is.
|
||||
2. **Brand names**: "Helium" is a product name. Never translate it. Other product/brand names (e.g. "uBlock Origin") must also be kept as-is. Translate non-brand feature and layout names when that is natural for the target language.
|
||||
|
||||
3. **Register**: use the standard formal register used in software UI for this language. For example, use "vous" in French, "Sie" in German, "usted" in Spanish. If the language does not distinguish formality levels, use neutral phrasing.
|
||||
3. **Register**: use a polite, natural UI register, not slang and not legalistic. Use the respectful second-person form where the language distinguishes it, such as "vous" in French, "Sie" in German, and "вы" in Russian. If the target locale normally uses an informal UI voice, such as "tú" in Spanish, use that instead. If the language does not distinguish formality levels, use neutral phrasing.
|
||||
|
||||
4. **Brevity**: match the length and tone of the original. Button labels and menu items should be concise. Descriptions can be longer but should not add information that is not in the original.
|
||||
|
||||
5. **Context**: each string has a `context` field describing where it appears in the UI (button label, toggle description, dialog text, etc.). Use this to guide word choice and tone. When context says "In Title Case", apply the equivalent convention for the target language if one exists, otherwise use standard casing.
|
||||
5. **Context and capitalization**: use the `context` field to guide word choice and tone. Preserve meaningful UI capitalization styles such as Title Case, ALL CAPS, and sentence-style labels, using the closest natural convention for the target language.
|
||||
|
||||
6. **Technical terms**: keep technical terms (URL, HTTPS, DNS, etc.) untranslated. Translate common computing terms (e.g. "bookmarks", "tabs", "downloads") using the standard localized terms established by major browsers in this language.
|
||||
6. **Technical terms**: keep technical terms (URL, HTTPS, DNS, etc.) untranslated unless the target language has a well-established browser UI equivalent. Translate common computing terms (e.g. "bookmarks", "tabs", "downloads") using the standard localized terms established by major browsers in this language.
|
||||
|
||||
7. **Keyboard shortcuts**: keep key names (Ctrl, Shift, Tab, etc.) and symbols in their conventional form for the target language and platform. For most languages, these remain in English/Latin script.
|
||||
|
||||
8. **Language-specific orthography**: use the standard written form expected for the target language. For Russian (`ru`), use the letter `ё` where it is normally written and where using `е` would be less correct or ambiguous.
|
||||
|
||||
9. **Intent**: preserve the UI intent and grammatical role. Commands and buttons should read like actions ("Copy", "Open", "Reset"), settings should read like labels or toggles ("Allow automatic updates"), and help text should read like a description. Use the target language's normal command form; for example, Russian UI commands often use perfective verbs such as "Скопировать" rather than "Копировать".
|
||||
|
||||
10. **Browser style**: Helium is a Chromium-based browser. Use terminology and phrasing that match established browser UI translations for the target language, especially Chromium/Chrome-style translations for common browser concepts.
|
||||
|
||||
## Input
|
||||
|
||||
You will receive a JSON array of objects, each with:
|
||||
@@ -29,7 +35,7 @@ Some `name` values appear more than once with different messages (platform or co
|
||||
|
||||
## Output
|
||||
|
||||
Respond with only a JSON array in the same order as the input. Each element should be an object with:
|
||||
Respond with only a JSON array, in input order, containing one object for each entry that needs translation. Each output element should be an object with:
|
||||
- `name`: the original string identifier (unchanged)
|
||||
- `message`: the translated string (default/neutral form)
|
||||
- `feminine`: feminine form of the translation, if the target language has grammatical gender and this string would differ when addressing a female user. Omit this field if it would be identical to `message`.
|
||||
|
||||
@@ -563,6 +563,18 @@
|
||||
"context": "In Title Case: The label of the 'Copy URLs' Tab context menu item.",
|
||||
"message": "Copy URLs"
|
||||
},
|
||||
{
|
||||
"name": "IDS_CONTENT_CONTEXT_SEARCHWEBWITH",
|
||||
"source": "chrome/app/generated_resources.grd",
|
||||
"context": "The name of the Search with Engine command in the content area context menu",
|
||||
"message": "&Search with <ph name=\"SEARCH_ENGINE\">$1<ex>DuckDuckGo</ex></ph>"
|
||||
},
|
||||
{
|
||||
"name": "IDS_CONTENT_CONTEXT_SEARCHWEBWITH",
|
||||
"source": "chrome/app/generated_resources.grd",
|
||||
"context": "In Title Case: The name of the Search with Engine command in the content area context menu",
|
||||
"message": "&Search with <ph name=\"SEARCH_ENGINE\">$1<ex>DuckDuckGo</ex></ph>"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_PERMISSIONS_DESCRIPTION_NORMAL",
|
||||
"source": "chrome/app/settings_strings.grdp",
|
||||
@@ -948,6 +960,12 @@
|
||||
"context": "Text on a toast notification that is shown when a link opens a new tab while Zen Mode is enabled.",
|
||||
"message": "New tab opened"
|
||||
},
|
||||
{
|
||||
"name": "IDS_CONTENT_CONTEXT_SYSTEM_TRANSLATE",
|
||||
"source": "chrome/app/generated_resources.grd",
|
||||
"context": "The name of the macOS system Translate command in the content area context menu",
|
||||
"message": "Translate “<ph name=\"SELECTION_TEXT\">$1<ex>Bonjour</ex></ph>”"
|
||||
},
|
||||
{
|
||||
"name": "IDS_SETTINGS_DEFAULT_BROWSER_SECONDARY",
|
||||
"source": "chrome/app/settings_chromium_strings.grdp",
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
#include "ui/accessibility/accessibility_features.h"
|
||||
#include "ui/base/ui_base_features.h"
|
||||
#include "ui/events/blink/blink_features.h"
|
||||
@@ -468,6 +469,10 @@ void SetRuntimeFeaturesFromCommandLine(c
|
||||
@@ -470,6 +471,10 @@ void SetRuntimeFeaturesFromCommandLine(c
|
||||
true},
|
||||
{wrf::EnableWebAudioBypassOutputBufferingOptOut,
|
||||
blink::switches::kWebAudioBypassOutputBufferingOptOut, true},
|
||||
|
||||
@@ -101,7 +101,7 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
|
||||
--- a/chrome/browser/flag_descriptions.h
|
||||
+++ b/chrome/browser/flag_descriptions.h
|
||||
@@ -3023,6 +3023,10 @@ inline constexpr char kMacAccessibilityT
|
||||
@@ -3033,6 +3033,10 @@ inline constexpr char kMacAccessibilityT
|
||||
"Enables support for performing text editing operations through "
|
||||
"the AXTextOperation accessibility API.";
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -60,7 +60,7 @@ BASE_FEATURE(kInfobarRefresh, base::FEAT
|
||||
#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.
|
||||
-BASE_FEATURE(kPdfInfoBar, base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
+BASE_FEATURE(kPdfInfoBar, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
BASE_FEATURE(kSeparateDefaultAndPinPrompt, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
BASE_FEATURE_PARAM(int,
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -13272,11 +13272,395 @@ const FeatureEntry kFeatureEntries[] = {
|
||||
@@ -13292,11 +13292,395 @@ const FeatureEntry kFeatureEntries[] = {
|
||||
// AboutFlagsHistogramTest unit test to verify this process).
|
||||
};
|
||||
|
||||
@@ -397,7 +397,7 @@
|
||||
FlagsStateSingleton(const FlagsStateSingleton&) = delete;
|
||||
FlagsStateSingleton& operator=(const FlagsStateSingleton&) = delete;
|
||||
~FlagsStateSingleton() override = default;
|
||||
@@ -13295,7 +13679,7 @@ class FlagsStateSingleton : public flags
|
||||
@@ -13315,7 +13699,7 @@ class FlagsStateSingleton : public flags
|
||||
|
||||
void RestoreDefaultState() {
|
||||
flags_state_ =
|
||||
@@ -406,7 +406,7 @@
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -13628,7 +14012,7 @@ base::span<const FeatureEntry> GetFeatur
|
||||
@@ -13648,7 +14032,7 @@ base::span<const FeatureEntry> GetFeatur
|
||||
!entries_for_testing->empty()) {
|
||||
return *entries_for_testing;
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#endif // USE_AURA
|
||||
|
||||
#if defined(USE_AURA)
|
||||
@@ -4730,11 +4730,13 @@ const FeatureEntry::FeatureVariation kGe
|
||||
@@ -4740,11 +4740,13 @@ const FeatureEntry::FeatureVariation kGe
|
||||
// calculate and verify checksum.
|
||||
//
|
||||
// When adding a new choice, add it to the end of the list.
|
||||
|
||||
@@ -943,7 +943,7 @@
|
||||
embedder_delegate_->RemoveEmbedderData(
|
||||
--- a/content/public/browser/content_browser_client.cc
|
||||
+++ b/content/public/browser/content_browser_client.cc
|
||||
@@ -1986,6 +1986,12 @@ ContentBrowserClient::GetClipboardTypesI
|
||||
@@ -1994,6 +1994,12 @@ ContentBrowserClient::GetClipboardTypesI
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
@@ -958,7 +958,7 @@
|
||||
}
|
||||
--- a/content/public/browser/content_browser_client.h
|
||||
+++ b/content/public/browser/content_browser_client.h
|
||||
@@ -3289,6 +3289,11 @@ class CONTENT_EXPORT ContentBrowserClien
|
||||
@@ -3299,6 +3299,11 @@ class CONTENT_EXPORT ContentBrowserClien
|
||||
GetClipboardTypesIfPolicyApplied(
|
||||
const ui::ClipboardSequenceNumberToken& seqno);
|
||||
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -860,6 +860,9 @@ are declared in tools/grit/grit_args.gni
|
||||
<message name="IDS_CONTENT_CONTEXT_PARTIAL_TRANSLATE" desc="The name of the Partial Translate command in the content area context menu">
|
||||
&Translate selection to <ph name="LANGUAGE">$1<ex>English</ex></ph>
|
||||
</message>
|
||||
+ <message name="IDS_CONTENT_CONTEXT_SEARCHWEBWITH" desc="The name of the Search with Engine command in the content area context menu">
|
||||
+ &Search with <ph name="SEARCH_ENGINE">$1<ex>DuckDuckGo</ex></ph>
|
||||
+ </message>
|
||||
<message name="IDS_CONTENT_CONTEXT_SEARCHWEBFOR" desc="The name of the Search the Web for “string” command in the content area context menu">
|
||||
&Search <ph name="SEARCH_ENGINE">$1<ex>Google</ex></ph> for “<ph name="SEARCH_TERMS">$2<ex>flowers</ex></ph>”
|
||||
</message>
|
||||
@@ -1182,6 +1185,9 @@ are declared in tools/grit/grit_args.gni
|
||||
<message name="IDS_CONTENT_CONTEXT_PARTIAL_TRANSLATE" desc="In Title Case: The name of the Partial Translate command in the content area context menu">
|
||||
&Translate Selection to <ph name="LANGUAGE">$1<ex>English</ex></ph>
|
||||
</message>
|
||||
+ <message name="IDS_CONTENT_CONTEXT_SEARCHWEBWITH" desc="In Title Case: The name of the Search with Engine command in the content area context menu">
|
||||
+ &Search with <ph name="SEARCH_ENGINE">$1<ex>DuckDuckGo</ex></ph>
|
||||
+ </message>
|
||||
<message name="IDS_CONTENT_CONTEXT_SEARCHWEBFOR" desc="In Title Case: The name of the Search the Web for “string” command in the content area context menu">
|
||||
&Search <ph name="SEARCH_ENGINE">$1<ex>Google</ex></ph> for “<ph name="SEARCH_TERMS">$2<ex>flowers</ex></ph>”
|
||||
</message>
|
||||
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
@@ -1932,11 +1932,13 @@ void RenderViewContextMenu::AppendLinkIt
|
||||
AppendClickToCallItem();
|
||||
|
||||
menu_model_.AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
- menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_SAVELINKAS,
|
||||
- IDS_CONTENT_CONTEXT_SAVELINKAS);
|
||||
}
|
||||
|
||||
AppendCopyLinkLocationItem();
|
||||
+ if (!params_.link_url.is_empty()) {
|
||||
+ menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_SAVELINKAS,
|
||||
+ IDS_CONTENT_CONTEXT_SAVELINKAS);
|
||||
+ }
|
||||
if (params_.source_type == ui::mojom::MenuSourceType::kTouch &&
|
||||
params_.media_type != ContextMenuDataMediaType::kImage &&
|
||||
!params_.link_text.empty()) {
|
||||
@@ -2310,8 +2312,12 @@ void RenderViewContextMenu::AppendPlugin
|
||||
void RenderViewContextMenu::AppendPageItems() {
|
||||
AppendExitFullscreenItem();
|
||||
|
||||
- menu_model_.AddItemWithStringId(IDC_BACK, IDS_CONTENT_CONTEXT_BACK);
|
||||
- menu_model_.AddItemWithStringId(IDC_FORWARD, IDS_CONTENT_CONTEXT_FORWARD);
|
||||
+ if (embedder_web_contents_->GetController().CanGoBack()) {
|
||||
+ menu_model_.AddItemWithStringId(IDC_BACK, IDS_CONTENT_CONTEXT_BACK);
|
||||
+ }
|
||||
+ if (embedder_web_contents_->GetController().CanGoForward()) {
|
||||
+ menu_model_.AddItemWithStringId(IDC_FORWARD, IDS_CONTENT_CONTEXT_FORWARD);
|
||||
+ }
|
||||
menu_model_.AddItemWithStringId(IDC_RELOAD, IDS_CONTENT_CONTEXT_RELOAD);
|
||||
menu_model_.AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
MaybeAppendOpenGlicItem();
|
||||
@@ -2561,9 +2567,8 @@ void RenderViewContextMenu::AppendSearch
|
||||
GetBrowser() || IsPrintPreviewContent(current_url_)) {
|
||||
menu_model_.AddItem(
|
||||
IDC_CONTENT_CONTEXT_SEARCHWEBFOR,
|
||||
- l10n_util::GetStringFUTF16(IDS_CONTENT_CONTEXT_SEARCHWEBFOR,
|
||||
- default_provider->short_name(),
|
||||
- printable_selection_text));
|
||||
+ l10n_util::GetStringFUTF16(IDS_CONTENT_CONTEXT_SEARCHWEBWITH,
|
||||
+ default_provider->short_name()));
|
||||
}
|
||||
} else {
|
||||
if ((selection_navigation_url_ != params_.link_url) &&
|
||||
--- a/components/renderer_context_menu/render_view_context_menu_base.cc
|
||||
+++ b/components/renderer_context_menu/render_view_context_menu_base.cc
|
||||
@@ -179,7 +179,7 @@ void RenderViewContextMenuBase::SetConte
|
||||
}
|
||||
|
||||
// static
|
||||
-const size_t RenderViewContextMenuBase::kMaxSelectionTextLength = 50;
|
||||
+const size_t RenderViewContextMenuBase::kMaxSelectionTextLength = 24;
|
||||
|
||||
// static
|
||||
int RenderViewContextMenuBase::ConvertToContentCustomCommandId(int id) {
|
||||
@@ -25,7 +25,7 @@
|
||||
location <= mojom::ManifestLocation::kMaxValue;
|
||||
--- a/chrome/browser/chrome_content_browser_client.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client.cc
|
||||
@@ -6491,7 +6491,8 @@ void AddChromeSchemeFactories(
|
||||
@@ -6511,7 +6511,8 @@ void AddChromeSchemeFactories(
|
||||
std::vector<std::string> allowed_webui_hosts;
|
||||
// Support for chrome:// scheme if appropriate.
|
||||
if ((extension->is_extension() || extension->is_platform_app()) &&
|
||||
|
||||
@@ -189,7 +189,7 @@
|
||||
this.openEditDialog_(
|
||||
--- a/components/search_engines/util.cc
|
||||
+++ b/components/search_engines/util.cc
|
||||
@@ -307,7 +307,8 @@ std::string GetFixedUpSearchEngineUrl(
|
||||
@@ -311,7 +311,8 @@ std::string GetFixedUpSearchEngineUrl(
|
||||
|
||||
bool IsSearchEngineURLValidToUse(const std::string& url_input,
|
||||
const TemplateURLService* service,
|
||||
@@ -199,7 +199,7 @@
|
||||
std::string url =
|
||||
GetFixedUpSearchEngineUrl(url_input, service->search_terms_data());
|
||||
if (url.empty()) {
|
||||
@@ -328,8 +329,12 @@ bool IsSearchEngineURLValidToUse(const s
|
||||
@@ -332,8 +333,12 @@ bool IsSearchEngineURLValidToUse(const s
|
||||
|
||||
// If this is going to be the default search engine, it must support
|
||||
// replacement.
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
warning_summary_ = l10n_util::GetStringUTF16(
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -3172,6 +3172,10 @@ are declared in tools/grit/grit_args.gni
|
||||
@@ -3178,6 +3178,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
|
||||
@@ -3200,6 +3204,10 @@ are declared in tools/grit/grit_args.gni
|
||||
@@ -3206,6 +3210,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>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
padding-top: var(--ntp-one-google-bar-height);
|
||||
--- a/chrome/browser/resources/new_tab_page/app.html
|
||||
+++ b/chrome/browser/resources/new_tab_page/app.html
|
||||
@@ -1,125 +1,4 @@
|
||||
@@ -1,124 +1,4 @@
|
||||
-<!-- #html_wrapper_imports_start
|
||||
-import {SubmitButtonIconType} from '//resources/cr_components/composebox/composebox.js';
|
||||
-#html_wrapper_imports_end -->
|
||||
@@ -115,9 +115,8 @@
|
||||
- </ntp-lens-upload-dialog>
|
||||
- ` : ''}
|
||||
- </div>
|
||||
- ${this.lazyRender_
|
||||
- && this.ntpNextFeaturesEnabled_
|
||||
- && (!this.ntpNextDisablementEnabled_ || this.isActionChipsVisible_) ? html`
|
||||
- ${this.lazyRender_ && this.ntpNextFeaturesEnabled_
|
||||
- && this.isActionChipsVisible_ ? html`
|
||||
- <ntp-action-chips
|
||||
- ?show-background="${this.showActionChipsBackground_()}"
|
||||
- @action-chip-click="${this.onActionChipClick_}"
|
||||
@@ -137,7 +136,7 @@
|
||||
${this.lazyRender_ ? html`
|
||||
${this.shortcutsEnabled_ ? html`
|
||||
<cr-most-visited id="mostVisited" .theme="${this.theme_?.mostVisited || null}"
|
||||
@@ -128,57 +7,10 @@ import {SubmitButtonIconType} from '//re
|
||||
@@ -127,57 +7,10 @@ import {SubmitButtonIconType} from '//re
|
||||
max-tiles-in-collapsed-state="${this.maxTilesInCollapsedState_}"
|
||||
max-shortcuts-in-expanded-state="${this.maxShortcutsInExpandedState_}"
|
||||
max-most-visited-tiles-in-expanded-state="${this.maxMostVisitedTilesInExpandedState_}"
|
||||
@@ -196,7 +195,7 @@
|
||||
<ntp-customize-buttons id="customizeButtons"
|
||||
?modules-shown-to-user="${this.modulesShownToUser}"
|
||||
?show-background-image="${this.showBackgroundImage_}"
|
||||
@@ -200,23 +32,3 @@ import {SubmitButtonIconType} from '//re
|
||||
@@ -199,23 +32,3 @@ import {SubmitButtonIconType} from '//re
|
||||
` : ''}
|
||||
<div id="contentBottomSpacer"></div>
|
||||
</div>
|
||||
@@ -379,7 +378,7 @@
|
||||
theme_: {type: Object},
|
||||
showCustomize_: {type: Boolean},
|
||||
showCustomizeChromeText_: {type: Boolean},
|
||||
@@ -364,9 +331,6 @@ export class AppElement extends AppEleme
|
||||
@@ -363,9 +330,6 @@ export class AppElement extends AppEleme
|
||||
loadTimeData.getBoolean('searchboxShowComposebox');
|
||||
|
||||
protected accessor composeboxState_: ComposeboxState|null = null;
|
||||
@@ -389,7 +388,7 @@
|
||||
protected accessor theme_: Theme|null = null;
|
||||
protected accessor showCustomize_: boolean = false;
|
||||
protected accessor showCustomizeChromeText_: boolean = false;
|
||||
@@ -492,13 +456,6 @@ export class AppElement extends AppEleme
|
||||
@@ -488,13 +452,6 @@ export class AppElement extends AppEleme
|
||||
this.shouldPrintPerformance_ =
|
||||
new URLSearchParams(location.search).has('print_perf');
|
||||
|
||||
@@ -403,7 +402,7 @@
|
||||
this.showCustomize_ =
|
||||
WindowProxy.getInstance().url.searchParams.has(CUSTOMIZE_URL_PARAM);
|
||||
|
||||
@@ -597,30 +554,12 @@ export class AppElement extends AppEleme
|
||||
@@ -593,30 +550,12 @@ export class AppElement extends AppEleme
|
||||
this.setCustomizeChromeSidePanelVisible_(this.showCustomize_);
|
||||
recordCustomizeChromeOpen(NtpCustomizeChromeEntryPoint.URL);
|
||||
}
|
||||
@@ -434,7 +433,7 @@
|
||||
if (loadTimeData.getString('backgroundImageUrl')) {
|
||||
this.backgroundManager_.getBackgroundImageLoadTime().then(
|
||||
time => {
|
||||
@@ -750,13 +689,6 @@ export class AppElement extends AppEleme
|
||||
@@ -746,13 +685,6 @@ export class AppElement extends AppEleme
|
||||
if (!this.modulesEnabled_) {
|
||||
this.recordBrowserPromoMetrics_();
|
||||
}
|
||||
@@ -448,7 +447,7 @@
|
||||
}
|
||||
|
||||
override updated(changedProperties: PropertyValues<this>) {
|
||||
@@ -798,12 +730,6 @@ export class AppElement extends AppEleme
|
||||
@@ -794,12 +726,6 @@ export class AppElement extends AppEleme
|
||||
composeboxDialog.showModal();
|
||||
}
|
||||
|
||||
@@ -461,7 +460,7 @@
|
||||
if (changedPrivateProperties.has('showComposebox_') &&
|
||||
this.showComposebox_ && this.enableThreadsRail_) {
|
||||
recordBoolean('NewTabPage.ThreadsRail.Shown', true);
|
||||
@@ -815,19 +741,6 @@ export class AppElement extends AppEleme
|
||||
@@ -811,19 +737,6 @@ export class AppElement extends AppEleme
|
||||
this.hasVoiceSearchError = true;
|
||||
}
|
||||
|
||||
@@ -481,7 +480,7 @@
|
||||
private computeShowCustomizeChromeText_(): boolean {
|
||||
if (this.showWallpaperSearchButton_) {
|
||||
return false;
|
||||
@@ -920,26 +833,15 @@ export class AppElement extends AppEleme
|
||||
@@ -916,26 +829,15 @@ export class AppElement extends AppEleme
|
||||
const composebox =
|
||||
this.shadowRoot.querySelector<ComposeboxElement>('#composebox');
|
||||
assert(composebox);
|
||||
@@ -510,7 +509,7 @@
|
||||
const composebox =
|
||||
this.shadowRoot.querySelector<ComposeboxElement>('#composebox');
|
||||
assert(composebox);
|
||||
@@ -951,7 +853,6 @@ export class AppElement extends AppEleme
|
||||
@@ -947,7 +849,6 @@ export class AppElement extends AppEleme
|
||||
this.toggleComposebox_();
|
||||
this.logoColor_ = this.computeLogoColor_();
|
||||
this.singleColoredLogo_ = this.computeSingleColoredLogo_();
|
||||
@@ -518,7 +517,7 @@
|
||||
}
|
||||
|
||||
protected onOpenVoiceSearch_() {
|
||||
@@ -1148,101 +1049,6 @@ export class AppElement extends AppEleme
|
||||
@@ -1144,101 +1045,6 @@ export class AppElement extends AppEleme
|
||||
return !!this.theme_ && (!!this.theme_.logoColor || this.theme_.isDark);
|
||||
}
|
||||
|
||||
@@ -620,7 +619,7 @@
|
||||
protected onNtpMiddleSlotPromoLoaded_() {
|
||||
this.middleSlotPromoLoaded_ = true;
|
||||
}
|
||||
@@ -1356,17 +1162,6 @@ export class AppElement extends AppEleme
|
||||
@@ -1352,17 +1158,6 @@ export class AppElement extends AppEleme
|
||||
}
|
||||
|
||||
private onWindowClick_(e: Event) {
|
||||
@@ -638,7 +637,7 @@
|
||||
if (e.composedPath() && e.composedPath()[0] === $$(this, '#content')) {
|
||||
recordClick(NtpElement.BACKGROUND);
|
||||
return;
|
||||
@@ -1524,33 +1319,14 @@ export class AppElement extends AppEleme
|
||||
@@ -1520,33 +1315,14 @@ export class AppElement extends AppEleme
|
||||
* multiple toasts at the same time. Otherwise, the first pending toast is
|
||||
* popped and shown.
|
||||
*/
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#define IDC_ADD_NEW_TAB_TO_GROUP 34100
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -10460,6 +10460,51 @@ Keep your key file in a safe place. You
|
||||
@@ -10466,6 +10466,51 @@ Keep your key file in a safe place. You
|
||||
Right
|
||||
</message>
|
||||
|
||||
|
||||
@@ -771,7 +771,7 @@
|
||||
void StartPasswordManagerTutorial();
|
||||
--- a/chrome/browser/glic/suggestions/contextual_cueing_helper.cc
|
||||
+++ b/chrome/browser/glic/suggestions/contextual_cueing_helper.cc
|
||||
@@ -482,10 +482,6 @@ ContextualCueingHelper::AutoOpenGlicSide
|
||||
@@ -483,10 +483,6 @@ ContextualCueingHelper::AutoOpenGlicSide
|
||||
Profile* profile =
|
||||
Profile::FromBrowserContext(web_contents()->GetBrowserContext());
|
||||
bool vertical_tabs_enabled = false;
|
||||
|
||||
@@ -691,6 +691,28 @@
|
||||
}
|
||||
|
||||
if (child_view == close_button_) {
|
||||
@@ -828,6 +830,12 @@ bool VerticalTabView::GetHitTestMask(SkP
|
||||
}
|
||||
|
||||
bool VerticalTabView::ShouldEnableMuteToggle(int required_width) {
|
||||
+ // The mute toggle interferes with the click target of the
|
||||
+ // collapsed tab, so we disable click-to-mute for it.
|
||||
+ if (collapsed_) {
|
||||
+ return false;
|
||||
+ }
|
||||
+
|
||||
if (active_) {
|
||||
return true;
|
||||
}
|
||||
@@ -952,6 +960,8 @@ void VerticalTabView::OnAXNameChanged(ax
|
||||
void VerticalTabView::OnCollapseStateChanged(
|
||||
tabs::VerticalTabStripCollapseState state) {
|
||||
collapsed_ = state == tabs::VerticalTabStripCollapseState::kCollapsed;
|
||||
+ alert_indicator_->UpdateEnabledForMuteToggle();
|
||||
+ InvalidateLayout();
|
||||
}
|
||||
|
||||
void VerticalTabView::OnDataChanged() {
|
||||
--- a/chrome/browser/ui/tabs/vertical_tab_strip_state.h
|
||||
+++ b/chrome/browser/ui/tabs/vertical_tab_strip_state.h
|
||||
@@ -7,7 +7,7 @@
|
||||
@@ -722,7 +744,7 @@
|
||||
"vertical_tab_drag_handler.cc",
|
||||
--- /dev/null
|
||||
+++ b/chrome/browser/ui/views/tabs/vertical/vertical_new_tab_button.cc
|
||||
@@ -0,0 +1,40 @@
|
||||
@@ -0,0 +1,41 @@
|
||||
+// 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.
|
||||
@@ -737,8 +759,9 @@
|
||||
+
|
||||
+namespace {
|
||||
+
|
||||
+constexpr int kIconSize = 15;
|
||||
+constexpr int kIconSize = 16;
|
||||
+constexpr int kBasePadding = 4;
|
||||
+constexpr int kBigPadding = kBasePadding * 2 - 1;
|
||||
+
|
||||
+} // namespace
|
||||
+
|
||||
@@ -750,9 +773,9 @@
|
||||
+ SetCornerRadius(GetLayoutConstant(LayoutConstant::kVerticalTabCornerRadius));
|
||||
+ SetForegroundColorId(kColorToolbarButtonIconDisabled);
|
||||
+ SetHorizontalAlignment(gfx::HorizontalAlignment::ALIGN_LEFT);
|
||||
+ SetLabelInsets(gfx::Insets::VH(kBasePadding, kBasePadding * 2 - 1),
|
||||
+ gfx::Insets::VH(kBasePadding, kBasePadding * 2 - 1));
|
||||
+ SetImageLabelSpacing(kBasePadding * 2);
|
||||
+ SetLabelInsets(gfx::Insets::VH(kBasePadding, kBigPadding),
|
||||
+ gfx::Insets::VH(kBasePadding, kBigPadding));
|
||||
+ SetImageLabelSpacing(kBigPadding);
|
||||
+ SetShouldShowLabel(true);
|
||||
+ SetLabelText(l10n_util::GetStringUTF16(IDS_ACCNAME_NEWTAB));
|
||||
+ SetPreferredSize(
|
||||
@@ -1424,8 +1447,8 @@
|
||||
+ return foreground_color_id_.value();
|
||||
+ }
|
||||
return GetWidget() && GetWidget()->ShouldPaintAsActive()
|
||||
? kColorTabSearchButtonCRForegroundFrameActive
|
||||
: kColorTabSearchButtonCRForegroundFrameInactive;
|
||||
? kColorNewTabButtonCRForegroundFrameActive
|
||||
: kColorNewTabButtonCRForegroundFrameInactive;
|
||||
@@ -271,26 +304,26 @@ ui::ColorId TabStripFlatEdgeButton::GetB
|
||||
|
||||
gfx::RoundedCornersF TabStripFlatEdgeButton::GetButtonCornerRadii() const {
|
||||
@@ -1516,3 +1539,62 @@
|
||||
float expansion_factor_ = 1.0f;
|
||||
views::LayoutOrientation expansion_orientation_ =
|
||||
views::LayoutOrientation::kHorizontal;
|
||||
--- a/chrome/browser/ui/views/tabs/vertical/vertical_tab_group_view.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/vertical/vertical_tab_group_view.cc
|
||||
@@ -53,10 +53,10 @@
|
||||
namespace {
|
||||
constexpr int kTabVerticalPadding = 2;
|
||||
constexpr int kGroupLineWidth = 2;
|
||||
-constexpr int kGroupLineCollapsedLeadingPadding = 6;
|
||||
-constexpr int kGroupLineCornerRadius = 4;
|
||||
+constexpr int kGroupLineCollapsedLeadingPadding = 2;
|
||||
+constexpr int kGroupLineCornerRadius = 2;
|
||||
constexpr int kGroupHeaderHeight = 26;
|
||||
-constexpr int kGroupHeaderVerticalMargin = 4;
|
||||
+constexpr int kGroupHeaderVerticalMargin = 3;
|
||||
|
||||
const TabGroup* GetTabGroupFromNode(TabCollectionNode* node) {
|
||||
CHECK(node);
|
||||
@@ -164,8 +164,7 @@ views::ProposedLayout VerticalTabGroupVi
|
||||
// aligned with the header.
|
||||
if (tab_strip_collapse_state ==
|
||||
tabs::VerticalTabStripCollapseState::kExpanded) {
|
||||
- group_line_bounds.set_x(
|
||||
- (VerticalTabGroupView::kTabLeadingPadding - kGroupLineWidth) / 2);
|
||||
+ group_line_bounds.set_x(0);
|
||||
group_line_bounds.set_y(height);
|
||||
}
|
||||
|
||||
@@ -363,8 +362,8 @@ void VerticalTabGroupView::OnDataChanged
|
||||
SkColor color = GetColorProvider()->GetColor(GetTabGroupTabStripColorId(
|
||||
tab_group_visual_data_.color(), GetWidget()->ShouldPaintAsActive()));
|
||||
group_line_->SetBackground(views::CreateRoundedRectBackground(
|
||||
- color, gfx::RoundedCornersF(0, kGroupLineCornerRadius,
|
||||
- kGroupLineCornerRadius, 0)));
|
||||
+ color, gfx::RoundedCornersF(kGroupLineCornerRadius, kGroupLineCornerRadius,
|
||||
+ kGroupLineCornerRadius, kGroupLineCornerRadius)));
|
||||
}
|
||||
InvalidateLayout();
|
||||
}
|
||||
--- a/chrome/browser/ui/views/tabs/vertical/vertical_tab_group_view.h
|
||||
+++ b/chrome/browser/ui/views/tabs/vertical/vertical_tab_group_view.h
|
||||
@@ -34,7 +34,7 @@ class VerticalTabGroupView
|
||||
METADATA_HEADER(VerticalTabGroupView, views::View)
|
||||
|
||||
public:
|
||||
- static constexpr int kTabLeadingPadding = 10;
|
||||
+ static constexpr int kTabLeadingPadding = 6;
|
||||
|
||||
explicit VerticalTabGroupView(TabCollectionNode* collection_node);
|
||||
VerticalTabGroupView(const VerticalTabGroupView&) = delete;
|
||||
--- a/chrome/browser/ui/views/tabs/vertical/vertical_tab_group_header_view.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/vertical/vertical_tab_group_header_view.cc
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
namespace {
|
||||
constexpr int kGroupHeaderCornerRadius = 8;
|
||||
-constexpr int kGroupHeaderHorizontalInset = 8;
|
||||
+constexpr int kGroupHeaderHorizontalInset = 7;
|
||||
constexpr int kIconSize = 16;
|
||||
constexpr int kFocusRingInset = 2;
|
||||
constexpr int kAttentionIndicatorWidth = 8;
|
||||
|
||||
@@ -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
|
||||
@@ -19502,6 +19502,9 @@ Please help our engineers fix this probl
|
||||
@@ -19508,6 +19508,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>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/app/generated_resources.grd
|
||||
+++ b/chrome/app/generated_resources.grd
|
||||
@@ -7963,6 +7963,9 @@ Keep your key file in a safe place. You
|
||||
@@ -7969,6 +7969,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>
|
||||
|
||||
@@ -207,6 +207,18 @@
|
||||
|
||||
PaintBackgroundStroke(canvas, selection_state,
|
||||
group_color.value_or(tab_stroke_color));
|
||||
@@ -992,11 +928,6 @@ void TabStyleViewsImpl::PaintTabBackgrou
|
||||
BrowserView::GetBrowserViewForBrowser(tab_->controller()->GetBrowser()),
|
||||
image);
|
||||
}
|
||||
-
|
||||
- if (hovered &&
|
||||
- (!features::IsGlassFrameEnabled() || GetHoverAnimationValue() > 0.0)) {
|
||||
- PaintBackgroundHover(canvas, scale);
|
||||
- }
|
||||
}
|
||||
|
||||
void TabStyleViewsImpl::PaintBackgroundHover(gfx::Canvas* canvas,
|
||||
--- a/chrome/browser/ui/views/tabs/tab.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/tab.cc
|
||||
@@ -134,10 +134,7 @@ namespace {
|
||||
@@ -493,18 +505,6 @@
|
||||
|
||||
return gfx::Insets::TLBR(0, left_inset, 0, right_inset);
|
||||
}
|
||||
@@ -116,10 +117,7 @@ gfx::Rect TabGroupUnderline::CalculateTa
|
||||
gfx::Rect group_bounds = ToEnclosingRect(leading_bounds);
|
||||
group_bounds.UnionEvenIfEmpty(ToEnclosingRect(trailing_bounds));
|
||||
|
||||
- int y = group_bounds.bottom() -
|
||||
- GetLayoutConstant(LayoutConstant::kTabstripToolbarOverlap);
|
||||
-
|
||||
- return gfx::Rect(group_bounds.x(), y - kStrokeThickness, group_bounds.width(),
|
||||
+ return gfx::Rect(group_bounds.x(), 0, group_bounds.width(),
|
||||
kStrokeThickness);
|
||||
}
|
||||
|
||||
--- a/chrome/browser/ui/views/tabs/tab_group_underline.h
|
||||
+++ b/chrome/browser/ui/views/tabs/tab_group_underline.h
|
||||
@@ -25,8 +25,7 @@ class TabGroupUnderline : public views::
|
||||
@@ -513,7 +513,7 @@
|
||||
public:
|
||||
- static constexpr int kStrokeThickness =
|
||||
- views::FocusRing::kDefaultHaloThickness;
|
||||
+ static constexpr int kStrokeThickness = 1;
|
||||
+ static constexpr int kStrokeThickness = 2;
|
||||
|
||||
static int GetStrokeInset();
|
||||
|
||||
@@ -546,39 +546,6 @@
|
||||
}
|
||||
|
||||
int TabGroupHeader::GetChipHeight() const {
|
||||
@@ -567,7 +571,11 @@ void TabGroupHeader::UpdateTitleView() {
|
||||
title_->SetText(group_title_);
|
||||
|
||||
if (!group_title_.empty()) {
|
||||
- title_->SetEnabledColor(color_utils::GetColorWithMaxContrast(color_));
|
||||
+ const SkColor text_color = GetColorProvider()->GetColor(
|
||||
+ GetSavedTabGroupForegroundColorId(
|
||||
+ tab_slot_controller_->GetGroupColorId(group().value())));
|
||||
+
|
||||
+ title_->SetEnabledColor(text_color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -705,8 +713,18 @@ void TabGroupHeader::CreateHeaderWithTit
|
||||
const int corner_radius = group_style_->GetChipCornerRadius();
|
||||
title_chip_->SetBounds(named_origin.x(), chip_y, title_chip_width,
|
||||
chip_height);
|
||||
+ const tab_groups::TabGroupColorId group_color_id =
|
||||
+ tab_slot_controller_->GetGroupColorId(group().value());
|
||||
+
|
||||
+ const SkColor background_color =
|
||||
+ GetColorProvider()->GetColor(GetTabGroupBookmarkColorId(group_color_id));
|
||||
+ const SkColor stroke_color =
|
||||
+ GetColorProvider()->GetColor(GetSavedTabGroupOutlineColorId(group_color_id));
|
||||
+
|
||||
title_chip_->SetBackground(
|
||||
- views::CreateRoundedRectBackground(color_, corner_radius));
|
||||
+ views::CreateRoundedRectBackground(background_color, corner_radius));
|
||||
+ title_chip_->SetBorder(views::CreateRoundedRectBorder(
|
||||
+ kTabGroupStrokeThickness, corner_radius, stroke_color));
|
||||
|
||||
// Set the bounds of the sync icon first, followed by the title.
|
||||
const int start_of_sync_icon = title_chip_insets.left();
|
||||
--- a/media/base/media_switches.cc
|
||||
+++ b/media/base/media_switches.cc
|
||||
@@ -379,7 +379,7 @@ BASE_FEATURE(kExtendedVideoBitstreamVali
|
||||
@@ -643,3 +610,78 @@
|
||||
}
|
||||
|
||||
gfx::ImageSkia AlertIndicatorButton::GetImageToPaint() {
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -39,7 +39,7 @@ BASE_FEATURE(kTabStripDeclutter, base::F
|
||||
BASE_FEATURE(kToolbarGlowUp, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
BASE_FEATURE(kRoundedIcons, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
BASE_FEATURE(kMenuSimplification, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
-BASE_FEATURE(kTabGroupColorRefresh, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
+BASE_FEATURE(kTabGroupColorRefresh, base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
BASE_FEATURE(kWebuiRefresh2026, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
|
||||
@@ -160,7 +160,7 @@ bool IsTabGroupMenuMoreEntryPointsEnable
|
||||
return base::FeatureList::IsEnabled(kTabGroupMenuMoreEntryPoints);
|
||||
}
|
||||
|
||||
-BASE_FEATURE(kTabGroupHoverCards, base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
+BASE_FEATURE(kTabGroupHoverCards, base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
bool IsTabGroupHoverCardsEnabled() {
|
||||
return base::FeatureList::IsEnabled(kTabGroupHoverCards);
|
||||
--- a/chrome/browser/ui/views/tabs/shared/tab_strip_flat_edge_button.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/shared/tab_strip_flat_edge_button.cc
|
||||
@@ -72,8 +72,8 @@ TabStripFlatEdgeButton::TabStripFlatEdge
|
||||
this, std::make_unique<views::RoundRectHighlightPathGenerator>(
|
||||
gfx::Insets(), GetButtonCornerRadii()));
|
||||
ConfigureToolbarInkdropForRefresh2023(
|
||||
- this, kColorTabStripControlButtonInkDrop,
|
||||
- kColorTabStripControlButtonInkDropRipple);
|
||||
+ this, kColorTabBackgroundInactiveHoverFrameActive,
|
||||
+ kColorTabBackgroundActiveFrameActive);
|
||||
SetIconSize(
|
||||
GetLayoutConstant(LayoutConstant::kVerticalTabStripComboButtonIconSize));
|
||||
SetImageLabelSpacing(kButtonWithLabelPadding);
|
||||
@@ -259,14 +259,14 @@ void TabStripFlatEdgeButton::RemovedFrom
|
||||
|
||||
ui::ColorId TabStripFlatEdgeButton::GetForegroundColor() const {
|
||||
return GetWidget() && GetWidget()->ShouldPaintAsActive()
|
||||
- ? kColorTabSearchButtonCRForegroundFrameActive
|
||||
- : kColorTabSearchButtonCRForegroundFrameInactive;
|
||||
+ ? kColorNewTabButtonCRForegroundFrameActive
|
||||
+ : kColorNewTabButtonCRForegroundFrameInactive;
|
||||
}
|
||||
|
||||
ui::ColorId TabStripFlatEdgeButton::GetBackgroundColor() const {
|
||||
return GetWidget() && GetWidget()->ShouldPaintAsActive()
|
||||
- ? kColorNewTabButtonCRBackgroundFrameActive
|
||||
- : kColorNewTabButtonCRBackgroundFrameInactive;
|
||||
+ ? kColorTabBackgroundInactiveFrameActive
|
||||
+ : kColorTabBackgroundInactiveFrameInactive;
|
||||
}
|
||||
|
||||
gfx::RoundedCornersF TabStripFlatEdgeButton::GetButtonCornerRadii() const {
|
||||
--- a/chrome/browser/ui/views/tabs/tab_strip_control_button.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/tab_strip_control_button.cc
|
||||
@@ -104,15 +104,15 @@ TabStripControlButton::TabStripControlBu
|
||||
SetImageCentered(true);
|
||||
SetEventTargeter(std::make_unique<views::ViewTargeter>(this));
|
||||
|
||||
- foreground_frame_active_color_id_ = kColorTabForegroundInactiveFrameActive;
|
||||
+ foreground_frame_active_color_id_ = kColorNewTabButtonCRForegroundFrameActive;
|
||||
foreground_frame_inactive_color_id_ =
|
||||
kColorNewTabButtonCRForegroundFrameInactive;
|
||||
- background_frame_active_color_id_ = kColorNewTabButtonBackgroundFrameActive;
|
||||
+ background_frame_active_color_id_ = kColorTabBackgroundInactiveFrameActive;
|
||||
background_frame_inactive_color_id_ =
|
||||
- kColorNewTabButtonBackgroundFrameInactive;
|
||||
+ kColorTabBackgroundInactiveFrameInactive;
|
||||
|
||||
- inkdrop_hover_color_id_ = kColorTabStripControlButtonInkDrop;
|
||||
- inkdrop_ripple_color_id_ = kColorTabStripControlButtonInkDropRipple;
|
||||
+ inkdrop_hover_color_id_ = kColorTabBackgroundInactiveHoverFrameActive;
|
||||
+ inkdrop_ripple_color_id_ = kColorTabBackgroundActiveFrameActive;
|
||||
|
||||
UpdateIcon();
|
||||
SetHorizontalAlignment(gfx::ALIGN_CENTER);
|
||||
|
||||
@@ -575,7 +575,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
|
||||
@@ -10961,6 +10961,9 @@ Keep your key file in a safe place. You
|
||||
@@ -10967,6 +10967,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
|
||||
@@ -13924,6 +13924,9 @@ Check your passwords anytime in <ph name
|
||||
@@ -13930,6 +13930,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>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
void BackgroundModeManager::RegisterProfile(Profile* profile) {
|
||||
--- a/chrome/browser/chrome_content_browser_client.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client.cc
|
||||
@@ -1532,7 +1532,7 @@ void ChromeContentBrowserClient::Registe
|
||||
@@ -1534,7 +1534,7 @@ void ChromeContentBrowserClient::Registe
|
||||
void ChromeContentBrowserClient::RegisterProfilePrefs(
|
||||
user_prefs::PrefRegistrySyncable* registry) {
|
||||
registry->RegisterBooleanPref(prefs::kDisable3DAPIs, false);
|
||||
|
||||
+3
-1
@@ -144,7 +144,7 @@ helium/core/spoof-extension-downloader-platform.patch
|
||||
helium/core/spoof-chrome-ua-brand.patch
|
||||
helium/core/add-helium-versioning.patch
|
||||
helium/core/tab-search-in-toolbar.patch
|
||||
helium/core/clean-context-menu.patch
|
||||
helium/core/degoogle-context-menu.patch
|
||||
helium/core/fix-tab-sync-unreached-error.patch
|
||||
helium/core/fix-instance-id-stuck.patch
|
||||
|
||||
@@ -193,6 +193,8 @@ helium/core/custom-profile-avatar.patch
|
||||
helium/core/close-tabs-to-left.patch
|
||||
helium/core/custom-keyboard-shortcuts.patch
|
||||
helium/core/copy-url-tab-context-menu.patch
|
||||
helium/core/simplify-context-menu.patch
|
||||
helium/core/disable-pdf-infobar.patch
|
||||
|
||||
helium/settings/settings-page-icons.patch
|
||||
helium/settings/move-search-suggest.patch
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/chrome_content_browser_client.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client.cc
|
||||
@@ -848,11 +848,15 @@ bool HandleNewTabPageLocationOverride(
|
||||
@@ -850,11 +850,15 @@ bool HandleNewTabPageLocationOverride(
|
||||
|
||||
// Don't change the URL when incognito mode.
|
||||
if (profile->IsOffTheRecord()) {
|
||||
|
||||
@@ -8,45 +8,49 @@
|
||||
#include "base/containers/adapters.h"
|
||||
#include "base/feature_list.h"
|
||||
#include "base/functional/bind.h"
|
||||
@@ -177,6 +178,18 @@ DragOperation GetDropEffect(const ui::Dr
|
||||
@@ -177,6 +178,21 @@ DragOperation GetDropEffect(const ui::Dr
|
||||
return DragOperation::kMove;
|
||||
}
|
||||
|
||||
+bool ShouldScrollChangesTab() {
|
||||
+bool ShouldScrollChangesTab(BrowserView* browser_view) {
|
||||
+ const std::string flag_value =
|
||||
+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("scroll-tabs");
|
||||
+
|
||||
+ if (flag_value == "always")
|
||||
+ if (flag_value == "always") {
|
||||
+ return true;
|
||||
+ else if (flag_value == "never")
|
||||
+ }
|
||||
+ if (flag_value == "never") {
|
||||
+ return false;
|
||||
+ }
|
||||
+
|
||||
+ return browser_defaults::kScrollEventChangesTab;
|
||||
+ return browser_defaults::kScrollEventChangesTab &&
|
||||
+ !browser_view->ShouldDrawVerticalTabStrip();
|
||||
+}
|
||||
+
|
||||
} // namespace
|
||||
|
||||
BrowserRootView::DropInfo::DropInfo() = default;
|
||||
@@ -189,7 +202,9 @@ BrowserRootView::DropInfo::~DropInfo() {
|
||||
@@ -189,7 +205,9 @@ BrowserRootView::DropInfo::~DropInfo() {
|
||||
|
||||
BrowserRootView::BrowserRootView(BrowserView* browser_view,
|
||||
views::Widget* widget)
|
||||
- : views::internal::RootView(widget), browser_view_(browser_view) {}
|
||||
+ : views::internal::RootView(widget), browser_view_(browser_view) {
|
||||
+ scroll_event_changes_tab_ = ShouldScrollChangesTab();
|
||||
+ scroll_event_changes_tab_ = ShouldScrollChangesTab(browser_view);
|
||||
+}
|
||||
|
||||
BrowserRootView::~BrowserRootView() {
|
||||
// It's possible to destroy the browser while a drop is active. In this case,
|
||||
@@ -331,7 +346,7 @@ bool BrowserRootView::OnMouseWheel(const
|
||||
@@ -331,8 +349,7 @@ bool BrowserRootView::OnMouseWheel(const
|
||||
|
||||
// Scroll-event-changes-tab is incompatible with vertical tabstrip, so
|
||||
// disable it if the latter feature is enabled.
|
||||
- if (browser_defaults::kScrollEventChangesTab &&
|
||||
+ if (scroll_event_changes_tab_ &&
|
||||
!browser_view_->ShouldDrawVerticalTabStrip()) {
|
||||
- !browser_view_->ShouldDrawVerticalTabStrip()) {
|
||||
+ if (scroll_event_changes_tab_) {
|
||||
// Switch to the left/right tab if the wheel-scroll happens over the
|
||||
// tabstrip, or the empty space beside the tabstrip.
|
||||
views::View* hit_view = GetEventHandlerForPoint(event.location());
|
||||
--- a/chrome/browser/ui/views/frame/browser_root_view.h
|
||||
+++ b/chrome/browser/ui/views/frame/browser_root_view.h
|
||||
@@ -158,6 +158,8 @@ class BrowserRootView : public views::in
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -4733,10 +4733,12 @@ const FeatureEntry::FeatureVariation kGe
|
||||
@@ -4743,10 +4743,12 @@ const FeatureEntry::FeatureVariation kGe
|
||||
#include "chrome/browser/ungoogled_flag_choices.h"
|
||||
#include "chrome/browser/bromite_flag_choices.h"
|
||||
#include "chrome/browser/ungoogled_platform_flag_choices.h"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/about_flags.cc
|
||||
+++ b/chrome/browser/about_flags.cc
|
||||
@@ -4729,7 +4729,13 @@ const FeatureEntry::FeatureVariation kGe
|
||||
@@ -4739,7 +4739,13 @@ const FeatureEntry::FeatureVariation kGe
|
||||
// calculate and verify checksum.
|
||||
//
|
||||
// When adding a new choice, add it to the end of the list.
|
||||
|
||||
@@ -1151,7 +1151,7 @@
|
||||
"//services/service_manager/public/cpp",
|
||||
"//services/strings",
|
||||
"//services/test/echo/public/mojom",
|
||||
@@ -8772,7 +8767,6 @@ test("unit_tests") {
|
||||
@@ -8773,7 +8768,6 @@ test("unit_tests") {
|
||||
#
|
||||
# TODO(crbug.com/417513088): Maybe merge with the non-android `deps` declaration above?
|
||||
deps += [
|
||||
@@ -1159,7 +1159,7 @@
|
||||
"//chrome:packed_resources",
|
||||
"//chrome/browser/apps:icon_standardizer",
|
||||
"//chrome/browser/apps/app_service",
|
||||
@@ -8810,7 +8804,6 @@ test("unit_tests") {
|
||||
@@ -8811,7 +8805,6 @@ test("unit_tests") {
|
||||
"//chrome/browser/profile_resetter:fake_profile_resetter",
|
||||
"//chrome/browser/profile_resetter:unit_tests",
|
||||
"//chrome/browser/resources/new_tab_page_instant:resources_grit",
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"//components/safety_check:features",
|
||||
--- a/chrome/test/BUILD.gn
|
||||
+++ b/chrome/test/BUILD.gn
|
||||
@@ -6470,7 +6470,6 @@ template("performance_test_suite_templat
|
||||
@@ -6471,7 +6471,6 @@ template("performance_test_suite_templat
|
||||
data_deps += [
|
||||
"//chrome/test:load_library_perf_tests",
|
||||
"//components/tracing:tracing_perftests",
|
||||
@@ -32,7 +32,7 @@
|
||||
"//testing:run_perf_test",
|
||||
"//ui/views:views_perftests",
|
||||
]
|
||||
@@ -7464,9 +7463,6 @@ test("unit_tests") {
|
||||
@@ -7465,9 +7464,6 @@ test("unit_tests") {
|
||||
"//components/safe_browsing/content/browser",
|
||||
"//components/safe_browsing/content/browser:client_side_detection_images_cache",
|
||||
"//components/safe_browsing/content/browser:credit_card_form_event",
|
||||
|
||||
@@ -2404,7 +2404,7 @@
|
||||
"//components/safe_browsing/content/browser:credit_card_form_event",
|
||||
"//components/safe_browsing/content/browser:safe_browsing_service",
|
||||
"//components/safe_browsing/content/browser/password_protection",
|
||||
@@ -7461,7 +7460,6 @@ test("unit_tests") {
|
||||
@@ -7462,7 +7461,6 @@ test("unit_tests") {
|
||||
"//components/resources",
|
||||
"//components/safe_browsing:buildflags",
|
||||
"//components/safe_browsing/content/browser",
|
||||
@@ -2412,7 +2412,7 @@
|
||||
"//components/safe_browsing/content/browser:credit_card_form_event",
|
||||
"//components/safe_browsing/content/browser/password_protection",
|
||||
"//components/safe_browsing/content/browser/password_protection:mock_password_protection",
|
||||
@@ -10648,14 +10646,6 @@ test("unit_tests") {
|
||||
@@ -10649,14 +10647,6 @@ test("unit_tests") {
|
||||
"//components/enterprise/data_controls/core/browser:test_support",
|
||||
]
|
||||
}
|
||||
@@ -2427,7 +2427,7 @@
|
||||
|
||||
if (!is_android) {
|
||||
sources +=
|
||||
@@ -11514,7 +11504,6 @@ if (!is_android && !is_chromeos_device)
|
||||
@@ -11515,7 +11505,6 @@ if (!is_android && !is_chromeos_device)
|
||||
"//components/privacy_sandbox:tracking_protection_settings",
|
||||
"//components/reading_list/core",
|
||||
"//components/resources",
|
||||
|
||||
@@ -653,7 +653,7 @@
|
||||
"enableSupportForHomeAndWork",
|
||||
--- a/media/base/media_switches.cc
|
||||
+++ b/media/base/media_switches.cc
|
||||
@@ -859,7 +859,7 @@ BASE_FEATURE(kOnDeviceWebSpeechSmallExpe
|
||||
@@ -871,7 +871,7 @@ BASE_FEATURE(kOnDeviceWebSpeechSmallExpe
|
||||
base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
|
||||
// Enables the Live Caption feature on supported devices.
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
}
|
||||
--- a/chrome/browser/chrome_content_browser_client.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client.cc
|
||||
@@ -306,7 +306,6 @@
|
||||
@@ -307,7 +307,6 @@
|
||||
#include "components/safe_browsing/core/browser/url_checker_delegate.h"
|
||||
#include "components/safe_browsing/core/common/features.h"
|
||||
#include "components/safe_browsing/core/common/hashprefix_realtime/hash_realtime_utils.h"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/chrome_content_browser_client.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client.cc
|
||||
@@ -340,6 +340,7 @@
|
||||
@@ -342,6 +342,7 @@
|
||||
#include "content/public/browser/internal_webui_config.h"
|
||||
#include "content/public/browser/isolated_web_apps_policy.h"
|
||||
#include "content/public/browser/legacy_tech_cookie_issue_details.h"
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
2
|
||||
3
|
||||
|
||||
Reference in New Issue
Block a user