helium/settings: remove dead sections from profiles page

prevents dead section flickering on page init
This commit is contained in:
wukko
2025-12-03 20:19:49 +06:00
parent 3175ba89bd
commit bb720ee09f
2 changed files with 78 additions and 0 deletions

View File

@@ -0,0 +1,77 @@
--- a/chrome/browser/resources/settings/people_page/people_page.html
+++ b/chrome/browser/resources/settings/people_page/people_page.html
@@ -69,20 +69,6 @@
<div>
<if expr="not is_chromeos">
- <template is="dom-if" if="[[shouldShowSyncAccountControl_(
- syncStatus.syncSystemEnabled, syncStatus.signedInStatus)]]" restamp>
- <settings-sync-account-control
- sync-status="[[syncStatus]]"
- prefs="{{prefs}}"
- promo-label-with-account="$i18n{peopleSignInPrompt}"
- promo-label-with-no-account="$i18n{peopleSignInPrompt}"
- promo-secondary-label-with-account=
- "$i18n{peopleSignInPromptSecondaryWithAccount}"
- promo-secondary-label-with-no-account=
- "$i18n{peopleSignInPromptSecondaryWithNoAccount}">
- </settings-sync-account-control>
- </template>
-
<template is="dom-if" if="[[shouldLinkToProfileRow_(
syncStatus.syncSystemEnabled, signinAllowed_,
syncStatus.signedInState)]]" restamp>
@@ -106,53 +92,9 @@
</div>
</template>
- <cr-link-row id="account-subpage-row" on-click="onAccountClick_"
- hidden="[[!shouldLinkToAccountSettingsPage_(
- syncStatus.signedInState)]]">
- <div id="profile-icon"
- style="background-image: [[getIconImageSet_(
- primaryAccountIconUrl_)]]">
- </div>
- <div class="cr-row-gap cr-padded-text flex no-min-width">
- <div id="account-name" class="text-elide">
- [[primaryAccountName_]]
- </div>
- <div id="account-subtitle" class="secondary">
- [[getAccountRowSubtitle_(primaryAccountEmail_, syncStatus)]]
- </div>
- </div>
- </cr-link-row>
-
- <cr-link-row id="google-services"
- label="$i18n{googleServicesPageTitle}"
- on-click="onGoogleServicesClick_"
- role-description="$i18n{subpageArrowRoleDescription}"
- hidden="[[!shouldHideSyncSetupLinkRow_(syncStatus)]]">
- </cr-link-row>
-
- <template is="dom-if" if="[[signinAllowed_]]">
- <cr-link-row id="manage-google-account"
- label="$i18n{manageGoogleAccount}"
- hidden="[[!shouldShowGoogleAccount_]]"
- on-click="openGoogleAccount_" external></cr-link-row>
-
- <cr-link-row id="edit-profile"
- label="$i18n{profileNameAndPicture}"
- on-click="onProfileClick_" ></cr-link-row>
- </template>
-
<cr-link-row id="importDataDialogTrigger"
label="$i18n{importTitle}"
on-click="onImportDataClick_"></cr-link-row>
-
- <template is="dom-if" if="[[isDasherlessProfile_]]">
- <div id="sync-not-allowed" class="cr-row continuation">
- <cr-icon id="info-icon" icon="cr:info-outline"></cr-icon>
- <div id="sync-not-allowed-text" class="flex cr-padded-text">
- $i18n{syncUnavailableForNonGoogleAccount}
- </div>
- </div>
- </template>
</if>
<if expr="is_chromeos">

View File

@@ -194,6 +194,7 @@ helium/core/tab-cycling-mru.patch
helium/settings/settings-page-icons.patch
helium/settings/move-search-suggest.patch
helium/settings/remove-autofill.patch
helium/settings/remove-profile-page-sections.patch
helium/settings/fix-page-names.patch
helium/settings/disable-safety-hub-page.patch
helium/settings/remove-results-help-link.patch