Skip to content

Commit

Permalink
Merge pull request #25993 from brave/emerick-hide-chrome-speed-settings
Browse files Browse the repository at this point in the history
Hide upstream speed settings
  • Loading branch information
emerick authored Oct 15, 2024
2 parents 7373fca + 1bf07c9 commit 62dc319
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
</template>
</div>
<settings-animated-pages id="extensions-v2-subpage" section="extensions">
<template is="dom-if" route-path="/extensions/v2">
<template is="dom-if" route-path="/extensions/v2" no-search>
<settings-subpage
associated-control="[[$$('#manageV2Extensions')]]"
page-title="$i18n{manageExtensionsV2Label}">
Expand Down
16 changes: 3 additions & 13 deletions browser/resources/settings/brave_overrides/basic_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,21 +369,11 @@ RegisterPolymerTemplateModifications({
// Remove all hidden performance options from basic page.
// We moved performance elements into system settings.
const performanceTemplate = actualTemplate.content.querySelector(
'template[if="[[showPerformancePage_(pageVisibility.performance)]]"]')
'template[if="[[showPage_(pageVisibility.performance)]]"]')
if (performanceTemplate) {
performanceTemplate.remove()
}

const batteryTemplate = actualTemplate.content.querySelector(
'template[if="[[showBatteryPage_(pageVisibility.performance)]]"]')
if (batteryTemplate) {
batteryTemplate.remove()
}

const speedTemplate = actualTemplate.content.querySelector(
'template[if="[[showSpeedPage_(pageVisibility.performance)]]"]')
if (speedTemplate) {
speedTemplate.remove()
} else {
console.error('[Settings] Could not find performance section')
}

// Get Started at top
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
role-description="$i18n{subpageArrowRoleDescription}">
</cr-link-row>
</div>
<template is="dom-if" route-path="/wallet/networks">
<template is="dom-if" route-path="/wallet/networks" no-search>
<settings-subpage
associated-control="[[$$('#walletNetworksLinkRow')]]"
page-title="$i18n{walletNetworksLinkTitle}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
on-click="onAdblockPageClick_"
></cr-link-row>
</div>
<template is="dom-if" route-path="/shields/filters">
<template is="dom-if" route-path="/shields/filters" no-search>
<settings-subpage
associated-control="[[$$('#contentFiltersRow')]]"
page-title="$i18n{adblockContentFiltersLabel}">
Expand Down

0 comments on commit 62dc319

Please sign in to comment.