M116 stage 3

This commit is contained in:
Alexander Frick 2023-09-04 04:56:50 -05:00
parent 4b3fde8a39
commit a0ba4c0660
19 changed files with 1624 additions and 1540 deletions

1
infra/thor_ver Normal file
View File

@ -0,0 +1 @@
AVX

1
other/AVX2/thor_ver Normal file
View File

@ -0,0 +1 @@
AVX2

1
other/SSE2/thor_ver Normal file
View File

@ -0,0 +1 @@
SSE2

1
other/SSE3/thor_ver Normal file
View File

@ -0,0 +1 @@
SSE3

View File

@ -86,6 +86,7 @@ cp -r -v infra/default_apps/. ${CR_SRC_DIR}/out/thorium/default_apps/ &&
# Add initial preferences file to open Thorium welcome page on first run.
cp -v infra/initial_preferences ${CR_SRC_DIR}/out/thorium/ &&
cp -v infra/thor_ver ${CR_SRC_DIR}/out/thorium/ &&
echo " # Workaround for DevTools" &&
mkdir -v -p ${CR_SRC_DIR}/out/thorium/gen/third_party/devtools-frontend/src/front_end/Images/ &&
@ -138,6 +139,7 @@ copyAVX2 () {
cp -r -v other/AVX2/build/config/* ${CR_SRC_DIR}/build/config/ &&
cp -r -v other/AVX2/v8/* ${CR_SRC_DIR}/v8/ &&
cp -r -v other/AVX2/third_party/* ${CR_SRC_DIR}/third_party/ &&
cp -r -v other/AVX2/thor_ver ${CR_SRC_DIR}/out/thorium/ &&
printf "\n"
}
case $1 in
@ -151,6 +153,7 @@ copySSE3 () {
cp -r -v other/SSE3/build/config/* ${CR_SRC_DIR}/build/config/ &&
cp -r -v other/SSE3/v8/* ${CR_SRC_DIR}/v8/ &&
cp -r -v other/SSE3/third_party/* ${CR_SRC_DIR}/third_party/ &&
cp -r -v other/SSE3/thor_ver ${CR_SRC_DIR}/out/thorium/ &&
printf "\n"
}
case $1 in
@ -163,6 +166,7 @@ copySSE2 () {
printf "${YEL}Copying SSE2 (32-bit) build files...${c0}\n" &&
cp -r -v other/SSE2/build/config/* ${CR_SRC_DIR}/build/config/ &&
cp -r -v other/SSE2/third_party/* ${CR_SRC_DIR}/third_party/ &&
cp -r -v other/SSE2/thor_ver ${CR_SRC_DIR}/out/thorium/ &&
printf "\n"
}
case $1 in

View File

@ -13,7 +13,7 @@ namespace features {
// Enables the tab dragging fallback when full window dragging is not supported
// by the platform (e.g. Wayland). See https://crbug.com/896640
// TODO: Alex313031 bug fix
// TODO: Alex313031 possibly re-enable? Causes issues on newer Wayland
BASE_FEATURE(kAllowWindowDragUsingSystemDragDrop,
"AllowWindowDragUsingSystemDragDrop",
base::FEATURE_DISABLED_BY_DEFAULT);
@ -28,13 +28,14 @@ BASE_FEATURE(kDesktopPWAsAppHomePage,
BASE_FEATURE(kChromeLabs, "ChromeLabs", base::FEATURE_ENABLED_BY_DEFAULT);
// Enables "Chrome What's New" UI.
// TODO: Alex313031 Test Mock UI
BASE_FEATURE(kChromeWhatsNewUI,
"ChromeWhatsNewUI",
#if BUILDFLAG(GOOGLE_CHROME_BRANDING) && !defined(ANDROID) && \
!BUILDFLAG(IS_CHROMEOS_LACROS) && !BUILDFLAG(IS_CHROMEOS_ASH)
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
base::FEATURE_ENABLED_BY_DEFAULT
#endif
);
@ -42,7 +43,7 @@ BASE_FEATURE(kChromeWhatsNewUI,
// with submenu to manage extensions and visit chrome web store.
BASE_FEATURE(kExtensionsMenuInAppMenu,
"ExtensionsMenuInAppMenu",
base::FEATURE_DISABLED_BY_DEFAULT);
base::FEATURE_ENABLED_BY_DEFAULT);
#if !defined(ANDROID)
// Enables "Access Code Cast" UI.
@ -51,6 +52,13 @@ BASE_FEATURE(kAccessCodeCastUI,
base::FEATURE_ENABLED_BY_DEFAULT);
#endif
#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_CHROMEOS)
// Enables camera preview in permission bubble and site settings.
BASE_FEATURE(kCameraMicPreview,
"CameraMicPreview",
base::FEATURE_DISABLED_BY_DEFAULT);
#endif
// Enables displaying the submenu to open a link with a different profile if
// there is at least one other active profile.
BASE_FEATURE(kDisplayOpenLinkAsProfile,
@ -69,38 +77,6 @@ BASE_FEATURE(kGetTheMostOutOfChrome,
base::FEATURE_DISABLED_BY_DEFAULT);
#endif
#if !BUILDFLAG(IS_ANDROID) && BUILDFLAG(GOOGLE_CHROME_BRANDING)
// This feature controls whether the user can be shown the Chrome for iOS promo
// when saving/updating their passwords.
BASE_FEATURE(kIOSPromoPasswordBubble,
"IOSPromoPasswordBubble",
base::FEATURE_DISABLED_BY_DEFAULT);
// This array lists the different activation params that can be passed in the
// experiment config, with their corresponding string.
constexpr base::FeatureParam<IOSPromoPasswordBubbleActivation>::Option
kIOSPromoPasswordBubbleActivationOptions[] = {
{IOSPromoPasswordBubbleActivation::kContextualDirect,
"contextual-direct"},
{IOSPromoPasswordBubbleActivation::kContextualIndirect,
"contextual-indirect"},
{IOSPromoPasswordBubbleActivation::kNonContextualDirect,
"non-contextual-direct"},
{IOSPromoPasswordBubbleActivation::kNonContextualIndirect,
"non-contextual-indirect"},
{IOSPromoPasswordBubbleActivation::kAlwaysShowWithPasswordBubbleDirect,
"always-show-direct"},
{IOSPromoPasswordBubbleActivation::
kAlwaysShowWithPasswordBubbleIndirect,
"always-show-indirect"}};
constexpr base::FeatureParam<IOSPromoPasswordBubbleActivation>
kIOSPromoPasswordBubbleActivationParam{
&kIOSPromoPasswordBubble, "activation",
IOSPromoPasswordBubbleActivation::kContextualDirect,
&kIOSPromoPasswordBubbleActivationOptions};
#endif
#if BUILDFLAG(ENABLE_EXTENSIONS)
// Controls whether we use a different UX for simple extensions overriding
// settings.
@ -204,11 +180,10 @@ BASE_FEATURE(kTabGroupsSave,
"TabGroupsSave",
base::FEATURE_ENABLED_BY_DEFAULT);
// Enables users to explicitly save and recall tab groups with sync.
// https://crbug.com/1223929
BASE_FEATURE(kTabGroupsSaveSyncIntegration,
"TabGroupsSaveSyncIntegration",
base::FEATURE_DISABLED_BY_DEFAULT);
// Enables configuring tab hover card image previews in the settings.
BASE_FEATURE(kTabHoverCardImageSettings,
"TabHoverCardImageSettings",
base::FEATURE_ENABLED_BY_DEFAULT);
// Enables preview images in tab-hover cards.
// https://crbug.com/928954
@ -230,7 +205,6 @@ const char kTabHoverCardImagesCrossfadePreviewAtParameterName[] =
"crossfade_preview_at";
const char kTabHoverCardAdditionalMaxWidthDelay[] =
"additional_max_width_delay";
const char kTabHoverCardAlternateFormat[] = "alternate_format";
BASE_FEATURE(kTabSearchChevronIcon,
"TabSearchChevronIcon",

View File

@ -1,4 +1,4 @@
# Copyright 2023 The Chromium Authors, Alex313031, and gz83
# Copyright 2023 The Chromium Authors, Alex313031, ltguillaume, and gz83
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@ -10,6 +10,8 @@ thorium.exe: %(ChromeDir)s\
chrome_proxy.exe: %(ChromeDir)s\
# initial_preferences file, to show Thorium welcome page on first start
initial_preferences: %(ChromeDir)s\
# thor_ver for Thorium-WinUpdater
thor_ver: %(ChromeDir)s\
#
# Chrome version dir assembly manifest.
# The name of this file must match the name of the version dir, so we cannot

View File

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2023 Alex313031. -->
<grit-part>
<if expr="not use_titlecase">
@ -339,7 +338,7 @@
Enter your security code for <ph name="CREDIT_CARD">$1<ex>Visa - 5679</ex></ph>
</message>
<message name="IDS_AUTOFILL_CARD_UNMASK_PROMPT_TITLE_V2" desc="Title for the credit card unmasking dialog, according to August 2019 UI guidelines.">
Verify your card
Verify it's you
</message>
<message name="IDS_AUTOFILL_CARD_UNMASK_PROMPT_EXPIRED_TITLE" desc="Title for the credit card unmasking dialog when the credit card is expired.">
Enter the expiration date and CVC for <ph name="CREDIT_CARD">$1<ex>Visa - 5679</ex></ph>
@ -457,13 +456,13 @@
<!-- DeviceAuthentication titles-->
<if expr="is_macosx">
<message name="IDS_PAYMENTS_AUTOFILL_FILLING_MANDATORY_REAUTH" desc="Text that appears in the payments autofill mandatory re-authentication popup, asking the user to authenticate using biometric or device unlock before filling. Please note that on macOS the string 'Thorium is trying to' will always come before this string.">
<message name="IDS_PAYMENTS_AUTOFILL_FILLING_MANDATORY_REAUTH" desc="Text that appears in the payments autofill mandatory re-authentication popup, asking the user to authenticate using biometric or device unlock before filling. Please note that on macOS the string 'Google Thorium is trying to' will always come before this string.">
verify it's you so it can fill in your payment info.
</message>
</if>
<if expr="is_win">
<message name="IDS_PAYMENTS_AUTOFILL_FILLING_MANDATORY_REAUTH" desc="Text that appears in the payments autofill mandatory re-authentication popup, asking the user to authenticate using biometric or device unlock before filling.">
Thorium is trying to verify it's you so it can fill in your payment info.
Google Thorium is trying to verify it's you so it can fill in your payment info.
</message>
</if>
@ -568,16 +567,16 @@
</message>
<!-- Mandatory Reauth related strings - start -->
<message name="IDS_AUTOFILL_MANDATORY_REAUTH_OPT_IN_NO_THANKS" desc="Text for the cancel button in the mandatory reauth opt-in prompt. If the user clicks this button, mandatory reauth will not be enabled. Mandatory reauth requires the user to unlock their device or pass a biometric auth when autofilling payment method information.">
No Thanks
<message name="IDS_AUTOFILL_MANDATORY_REAUTH_OPT_IN_NO_THANKS" desc="Text for the cancel button in the mandatory reauth opt-in prompt. If the user clicks this button, mandatory reauth will not be enabled. Mandatory reauth requires the user to unlock their device or pass a biometric auth when autofilling payment method information." formatter_data="android_java">
No thanks
</message>
<message name="IDS_AUTOFILL_MANDATORY_REAUTH_OPT_IN_ACCEPT" desc="Text for the accept button in the mandatory reauth opt-in prompt. If the user clicks this button, mandatory reauth will be enabled. Mandatory reauth requires the user to unlock their device or pass a biometric auth when autofilling payment method information.">
<message name="IDS_AUTOFILL_MANDATORY_REAUTH_OPT_IN_ACCEPT" desc="Text for the accept button in the mandatory reauth opt-in prompt. If the user clicks this button, mandatory reauth will be enabled. Mandatory reauth requires the user to unlock their device or pass a biometric auth when autofilling payment method information." formatter_data="android_java">
Yes
</message>
<message name="IDS_AUTOFILL_MANDATORY_REAUTH_OPT_IN_TITLE" desc="Title text for the mandatory reauth opt-in prompt that is displayed to the user after filling in payment method information. Mandatory reauth requires the user to unlock their device or pass a biometric auth when autofilling payment method information.">
<message name="IDS_AUTOFILL_MANDATORY_REAUTH_OPT_IN_TITLE" desc="Title text for the mandatory reauth opt-in prompt that is displayed to the user after filling in payment method information. Mandatory reauth requires the user to unlock their device or pass a biometric auth when autofilling payment method information." formatter_data="android_java">
Always verify?
</message>
<message name="IDS_AUTOFILL_MANDATORY_REAUTH_OPT_IN_EXPLANATION" desc="Explanation text for the mandatory reauth opt-in prompt that is displayed to the user after filling in payment method information. Mandatory reauth requires the user to unlock their device or pass a biometric auth when autofilling payment method information.">
<message name="IDS_AUTOFILL_MANDATORY_REAUTH_OPT_IN_EXPLANATION" desc="Explanation text for the mandatory reauth opt-in prompt that is displayed to the user after filling in payment method information. Mandatory reauth requires the user to unlock their device or pass a biometric auth when autofilling payment method information." formatter_data="android_java">
For added security on shared devices, turn on verification every time you pay using autofill.
</message>
<message name="IDS_AUTOFILL_MANDATORY_REAUTH_ICON_TOOLTIP" desc="The tooltip message for the omnibox icon for the mandatory reauth opt-in bubble on Desktop. This bubble prompts users if they would like to enroll in mandatory reauth. Mandatory reauth requires the user to unlock their device or pass a biometric auth when autofilling payment method information.">
@ -593,6 +592,18 @@
settings
</message>
<if expr="is_android">
<message name="IDS_AUTOFILL_MANDATORY_REAUTH_OPT_IN_CONTENT_DESCRIPTION" desc="Content description for the mandatory reauth opt-in prompt that is displayed to the user after filling in payment method information. It is read as accessibility string when the bottom sheet containing the prompt is focused. Mandatory reauth requires the user to unlock their device or pass a biometric auth when autofilling payment method information." formatter_data="android_java">
Alert about new payment setting
</message>
<message name="IDS_AUTOFILL_MANDATORY_REAUTH_OPT_IN_OPENED_FULL" desc="The accessibility string for the mandatory reauth opt-in prompt that is displayed to the user after filling in payment method information. It is read as accessibility string when the bottom sheet containing the prompt is fully opened. Mandatory reauth requires the user to unlock their device or pass a biometric auth when autofilling payment method information." formatter_data="android_java">
Alert about new payment setting is opened
</message>
<message name="IDS_AUTOFILL_MANDATORY_REAUTH_OPT_IN_CLOSED" desc="The accessibility string for the mandatory reauth opt-in prompt that is displayed to the user after filling in payment method information. It is read as accessibility string when the bottom sheet containing the prompt is closed. Mandatory reauth requires the user to unlock their device or pass a biometric auth when autofilling payment method information." formatter_data="android_java">
Alert about new payment setting is closed
</message>
</if>
<!-- virtual cards related strings - start -->
<if expr="not is_ios and not is_android">
<message name="IDS_AUTOFILL_CLOUD_TOKEN_DROPDOWN_OPTION_LABEL" desc="Text shown in the button in the Autofill dropdown menu when a credit card form field is queried, to offer the option to use a virtual card.">
@ -721,7 +732,7 @@
Choose how you'll verify it's you
</message>
<message name="IDS_AUTOFILL_CARD_UNMASK_AUTHENTICATION_SELECTION_DIALOG_ISSUER_CONFIRMATION_TEXT" desc="The issuer confirmation text shown in the Autofill card unmask authentication selection dialog on Desktop. This is the header text of the dialog, and it is the text stating that the issuer wants additional authentication. This dialog lets the user choose the method of authentication when unmasking a server card, including a virtual card.">
Your bank wants to confirm it's you.
Your bank wants to make sure it's you
</message>
<message name="IDS_AUTOFILL_AUTHENTICATION_MODE_SECURITY_CODE" desc="The label for the 3 digit security code authentication option shown in the Autofill card unmask authentication selection dialog on Desktop. Only shown when there are multiple unmask options presented to the user. If selected, the user will be prompted to enter their security code.">
Enter your security code
@ -748,16 +759,16 @@
This is the <ph name="NUMBER_OF_DIGITS">$1<ex>3</ex></ph>-digit code on the <ph name="SIDE_OF_CARD">$2<ex>back of your card</ex></ph>
</message>
<message name="IDS_AUTOFILL_CARD_UNMASK_OTP_INPUT_DIALOG_TITLE" desc="The title for the dialog that lets the user type in the OTP they received on Desktop. This message is shown right next to the logo for the dialog, and it lets the users know the action that is required in this dialog, which is to enter their verification code (OTP).">
Enter verification code
Enter code
</message>
<message name="IDS_AUTOFILL_CARD_UNMASK_OTP_INPUT_DIALOG_FOOTER_MESSAGE" desc="The footer message for the dialog that lets the user type in the OTP they received on Desktop. This message instructs the user on what to do if they can't find their OTP code, for example if the OTP code was sent by email but it never came. It contains a link that comes from IDS_AUTOFILL_CARD_UNMASK_OTP_INPUT_DIALOG_NEW_CODE_MESSAGE which allows them to get a new code sent if clicked.">
Can't find your code? <ph name="IDS_AUTOFILL_CARD_UNMASK_OTP_INPUT_DIALOG_NEW_CODE_MESSAGE">$1<ex>Get new code</ex></ph>
Didn't receive your code? <ph name="IDS_AUTOFILL_CARD_UNMASK_OTP_INPUT_DIALOG_NEW_CODE_MESSAGE">$1<ex>Get new code</ex></ph>
</message>
<message name="IDS_AUTOFILL_CARD_UNMASK_OTP_INPUT_DIALOG_NEW_CODE_MESSAGE" desc="The second sentence of the footer message for the dialog that lets the user type in the OTP they received on Desktop. The entire footer message is for when the user can't find his OTP, for example if it was sent by email but the email never came. This is shown as a link that the user can click on to get a new OTP code, and will be substituted into IDS_AUTOFILL_CARD_UNMASK_OTP_INPUT_DIALOG_FOOTER_MESSAGE.">
Get new code
</message>
<message name="IDS_AUTOFILL_CARD_UNMASK_OTP_INPUT_DIALOG_TEXTFIELD_PLACEHOLDER_MESSAGE" desc="The textfield placeholder text for the dialog that lets the user type in the OTP they received on Desktop. This message is shown when the textfield is empty, and it lets the user know the number of digits required for their OTP.">
Enter <ph name="NUMBER_OF_DIGITS">$1<ex>6</ex></ph>-digit code
Enter <ph name="NUMBER_OF_DIGITS">$1<ex>6</ex></ph>-digit verification code
</message>
<message name="IDS_AUTOFILL_CARD_UNMASK_OTP_INPUT_DIALOG_PENDING_MESSAGE" desc="The textfield placeholder text for the dialog that lets the user type in the OTP they received on Desktop. This message is shown after the user submits an OTP, and the dialog goes into pending state. It informs the user that we are currently verifying that the OTP they typed in is correct.">
Verifying code...

View File

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2023 Alex313031. -->
<grit-part>
<if expr="not is_ios">

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2023 Alex313031. -->
<grit latest_public_release="0" current_release="1"
output_all_resource_defines="false" source_lang_id="en" enc_check="möl">
<outputs>
@ -218,6 +218,12 @@
Applications &gt; System Preferences &gt; Network &gt; Advanced &gt; Proxies
and deselect any proxies that have been selected.
</message>
<message name="IDS_PAYMENTS_AUTOFILL_MANDATORY_REAUTH_PROMPT" desc="Message to be displayed to the user in the device authentication prompt when they click on the mandatory auth toggle on the Payments settings page, irrespective to enable or disable it. When mandatory auth toggle is enabled, we would authenticate the user before autofilling in the payment details. Note: MacOS has the wording 'Thorium is trying to' prepended onto the message during user auth.">
modify settings for filling payment methods.
</message>
<message name="IDS_PAYMENTS_AUTOFILL_EDIT_CARD_MANDATORY_REAUTH_PROMPT" desc="Message to be displayed to the user in the device authentication prompt when they try to edit a local card on the Payments settings page if the mandatory auth toggle is enabled. If the user auth was succesful, we would then show the edit card dialog. Note: MacOS has the wording 'Thorium is trying to' prepended onto the message during user auth.">
edit payment methods.
</message>
</if>
<!-- The ThoriumOS version of this string is defined in //components/error_page_strings.grdp. -->
<if expr="is_linux">
@ -245,6 +251,12 @@
LAN Settings
and deselect the &quot;Use a proxy server for your LAN&quot; checkbox.
</message>
<message name="IDS_PAYMENTS_AUTOFILL_MANDATORY_REAUTH_PROMPT" desc="Message to be displayed to the user in the device authentication prompt when they click on the mandatory auth toggle on the Payments settings page, irrespective to enable or disable it. When mandatory auth toggle is enabled, we would authenticate the user before autofilling in the payment details.">
Thorium is trying to modify settings for filling payment methods.
</message>
<message name="IDS_PAYMENTS_AUTOFILL_EDIT_CARD_MANDATORY_REAUTH_PROMPT" desc="Message to be displayed to the user in the device authentication prompt when they try to edit a local card on the Payments settings page if the mandatory auth toggle is enabled. If the user auth was succesful, we would then show the edit card dialog.">
Thorium is trying to edit payment methods.
</message>
</if>
<!-- About Flags UI -->
@ -282,12 +294,12 @@
</message>
<message name="IDS_VERSION_UI_LICENSE" desc="The label below the copyright message, containing the URLs.">
Thorium is made possible by the <ph name="BEGIN_LINK_CHROMIUM">&lt;a target="_blank" href="$1"&gt;</ph>Chromium<ph name="END_LINK_CHROMIUM">&lt;/a&gt;</ph> open source project and other <ph name="BEGIN_LINK_OSS">&lt;a target="_blank" href="$2"&gt;</ph>open source software<ph name="END_LINK_OSS">&lt;/a&gt;</ph>.
Thorium is made possible by the <ph name="BEGIN_LINK_CHROMIUM">&lt;a target="_blank" href="$1"&gt;</ph>Thorium<ph name="END_LINK_CHROMIUM">&lt;/a&gt;</ph> open source project and other <ph name="BEGIN_LINK_OSS">&lt;a target="_blank" href="$2"&gt;</ph>open source software<ph name="END_LINK_OSS">&lt;/a&gt;</ph>.
</message>
<if expr="chromeos_ash">
<message name="IDS_VERSION_UI_LICENSE_CHROMIUM" desc="The label below the copyright message, containing the link to the Chromium project.">
Thorium is made possible by the <ph name="BEGIN_LINK_CHROMIUM">&lt;a target="_blank" href="$1"&gt;</ph>Chromium<ph name="END_LINK_CHROMIUM">&lt;/a&gt;</ph> open source project.
<message name="IDS_VERSION_UI_LICENSE_CHROMIUM" desc="The label below the copyright message, containing the link to the Thorium project.">
Thorium is made possible by the <ph name="BEGIN_LINK_CHROMIUM">&lt;a target="_blank" href="$1"&gt;</ph>Thorium<ph name="END_LINK_CHROMIUM">&lt;/a&gt;</ph> open source project.
</message>
<message name="IDS_VERSION_UI_LICENSE_OTHER" desc="The label below the copyright message, containing the link to other open source software.">
@ -296,9 +308,18 @@
</if>
<!-- Page Info -->
<message name="IDS_PAGE_INFO_INTERNAL_PAGE" desc="Message to display in the page info bubble when the page you are on is a chrome:// page or about:something.">
You're viewing a secure Thorium page
</message>
<if expr="_is_chrome_for_testing_branded">
<then>
<message name="IDS_PAGE_INFO_INTERNAL_PAGE" desc="Message to display in the page info bubble when the page you are on is a chrome:// page or about:something.">
You're viewing a secure Thorium for Testing page
</message>
</then>
<else>
<message name="IDS_PAGE_INFO_INTERNAL_PAGE" desc="Message to display in the page info bubble when the page you are on is a chrome:// page or about:something.">
You're viewing a secure Thorium page
</message>
</else>
</if>
<!-- Session Crash -->
<message name="IDS_SESSION_CRASHED_VIEW_MESSAGE" desc="Message shown when the last session didn't exit cleanly.">

View File

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2023 Alex313031. -->
<grit-part>
<message name="IDS_ERRORPAGE_NET_BUTTON_DETAILS" desc="Label for the button that expands the details on a net error page">

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2023 Alex313031. -->
<!--
Strings for the management disclosure panel
@ -150,8 +150,8 @@
<message name="IDS_MANAGEMENT_REPORT_DEVICE_CRASH_REPORTS" desc="Message stating that administrators see the numbers and causes of the crashes that occurred on the device recently.">
Numbers and causes of the crashes that occurred recently
</message>
<message name="IDS_MANAGEMENT_REPORT_APP_INFO_AND_ACTIVITY" desc="Message stating that administrators see application install information and activity times.">
Apps installed and how often they are used
<message name="IDS_MANAGEMENT_REPORT_APP_INFO_AND_ACTIVITY" desc="Message stating that administrators see application install or uninstall information and activity times.">
Apps installed or uninstalled and how often they are used
</message>
<message name="IDS_MANAGEMENT_REPORT_PRINTING" desc="Message stating that administrators can see names of printed files.">
Names of files that you print
@ -168,7 +168,7 @@
Device access actions such as logins (including failed login reasons), logouts, locks, and unlocks
</message>
<message name="IDS_MANAGEMENT_REPORT_CRD_SESSIONS" desc="Message stating that administrators can see Thorium Remote Desktop events.">
Chrome Remote Desktop history, including timestamps, hosts and client session ids
Thorium Remote Desktop history, including timestamps, hosts and client session ids
</message>
<message name="IDS_MANAGEMENT_CROSTINI" desc="Message stating that administrators can see Crostini usage">
Linux apps installed and when they were last used
@ -319,4 +319,11 @@
URLs of pages you visit are sent to Google Cloud or third parties for analysis. For example, they might be scanned to detect unsafe websites or filter websites based on rules set by the administrator.
</message>
</if>
<!-- Strings related to Thorium Enterprise Device Signals Sharing -->
<if expr="is_win or is_linux or is_macosx">
<message name="IDS_MANAGEMENT_DEVICE_SIGNALS_DISCLOSURE" desc="Disclosure message explaining that device signals can be shared.">
Information about your browser, OS, device, installed software, and files
</message>
</if>
</grit-part>

View File

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2023 Alex313031. -->
<grit-part>
<!-- Security summary strings -->
<message name="IDS_PAGE_INFO_SECURE_SUMMARY" desc="A short summary phrase at the top of the Page Info bubble (which shows when you click the lock icon) that indicates that the connection to the current website is secure.">
@ -366,10 +365,6 @@
<message name="IDS_PAGE_INFO_SELECTOR_TOOLTIP" desc="The text of the tooltip on the page info selector.">
Select permission for <ph name="PERMISSION_NAME">$1<ex>Location</ex></ph>
</message>
<message name="IDS_PAGE_INFO_STORAGE_ACCESS_SECONDARY_TEXT" translateable="false" desc="Text highlighting which site is requesting a permission.">
For <ph name="DOMAIN">$1<ex>example.com</ex></ph>
</message>
<!-- Permission ask strings -->
<message name="IDS_PAGE_INFO_STATE_TEXT_AR_ASK" desc="The Page Info permission subpage and the main page info page contain a label which shows the state of the site permission. This is the text shown if the AR permission is in the ask state and the site can prompt the user to ask if they want to allow the site to track their camera position.">

View File

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2023 Alex313031. -->
<grit-part>
<!-- Shared strings for SSL-related interstitials -->
<message name="IDS_SSL_OPEN_DETAILS_BUTTON" desc="The text for the button that expands the details on an error page. Paired with IDS_SSL_CLOSE_DETAILS_BUTTON.">

View File

@ -1,4 +1,4 @@
// Copyright (c) 2022 The Chromium Authors and Alex313031. All rights reserved.
// Copyright 2023 The Chromium Authors and Alex313031
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@ -26,8 +26,8 @@
#include "net/cert/pki/parse_certificate.h"
#include "net/cert/pki/parse_name.h"
#include "net/cert/pki/signature_algorithm.h"
#include "net/cert/time_conversions.h"
#include "net/cert/x509_certificate.h"
#include "net/der/encode_values.h"
#include "net/der/input.h"
#include "net/der/parse_values.h"
#include "third_party/boringssl/src/include/openssl/bytestring.h"
@ -80,7 +80,12 @@ const EVP_MD* ToEVP(DigestAlgorithm alg) {
class BufferPoolSingleton {
public:
BufferPoolSingleton() : pool_(CRYPTO_BUFFER_POOL_new()) {}
BufferPoolSingleton() {
crypto::EnsureOpenSSLInit();
pool_ = CRYPTO_BUFFER_POOL_new();
}
CRYPTO_BUFFER_POOL* pool() { return pool_; }
private:
@ -164,8 +169,9 @@ bool AddName(CBB* cbb, base::StringPiece name) {
bool CBBAddTime(CBB* cbb, base::Time time) {
der::GeneralizedTime generalized_time;
if (!der::EncodeTimeAsGeneralizedTime(time, &generalized_time))
if (!EncodeTimeAsGeneralizedTime(time, &generalized_time)) {
return false;
}
// Per RFC 5280, 4.1.2.5, times which fit in UTCTime must be encoded as
// UTCTime rather than GeneralizedTime.

View File

@ -200,7 +200,6 @@ test("sandbox_linux_unittests") {
":sandbox_linux_unittests_sources",
"//sandbox/policy:tests",
]
data_deps = [ "//testing/buildbot/filters:sandbox_linux_unittests_filters" ]
if (is_android) {
use_raw_android_executable = true
}

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2023 Alex313031. -->
<grit base_dir="." latest_public_release="0" current_release="1"
output_all_resource_defines="false" source_lang_id="en" enc_check="möl">
<outputs>

View File

@ -2580,12 +2580,7 @@ typename ParserBase<Impl>::ExpressionT ParserBase<Impl>::ParseMemberInitializer(
}
if (is_static) {
// For the instance initializer, we will save the positions
// later with the positions of the class body so that we can reparse
// it later.
// TODO(joyee): Make scopes be non contiguous.
initializer_scope->set_start_position(beg_pos);
initializer_scope->set_end_position(end_position());
class_info->static_elements_scope = initializer_scope;
class_info->has_static_elements = true;
} else {
@ -4574,6 +4569,11 @@ ParserBase<Impl>::ParseArrowFunctionLiteral(
FunctionKind kind = formal_parameters.scope->function_kind();
FunctionLiteral::EagerCompileHint eager_compile_hint =
default_eager_compile_hint_;
int compile_hint_position = formal_parameters.scope->start_position();
eager_compile_hint =
impl()->GetEmbedderCompileHint(eager_compile_hint, compile_hint_position);
bool can_preparse = impl()->parse_lazily() &&
eager_compile_hint == FunctionLiteral::kShouldLazyCompile;
// TODO(marja): consider lazy-parsing inner arrow functions too. is_this
@ -4838,6 +4838,12 @@ typename ParserBase<Impl>::ExpressionT ParserBase<Impl>::ParseClassLiteral(
Expect(Token::RBRACE);
int end_pos = end_position();
class_scope->set_end_position(end_pos);
if (class_info.static_elements_scope != nullptr) {
// Use the positions of the class body for the static initializer
// function so that we can reparse it later.
class_info.static_elements_scope->set_start_position(class_token_pos);
class_info.static_elements_scope->set_end_position(end_pos);
}
if (class_info.instance_members_scope != nullptr) {
// Use the positions of the class body for the instance initializer
// function so that we can reparse it later.