1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
|
<style include="shared-style cr-shared-style cr-spinner-style">
#blockedSitesTitle {
margin-top: 28px;
}
.blocked-site-content {
border-top: var(--cr-separator-line);
flex: 1;
min-height: var(--section-min-height);
}
.blocked-site-content[first] {
border-top: none;
}
.favicon,
#blockedSitesHeader {
margin-inline-end: 20px;
margin-inline-start: 20px;
}
.site-url {
flex: 1;
}
cr-icon-button {
--cr-icon-button-icon-size: 16px;
--cr-icon-button-margin-start: 0px;
--cr-icon-button-margin-end: 10px;
}
@media all and (display-mode: standalone) {
#addShortcutBanner {
display: none;
}
}
/* Hide the default icon element.*/
cr-link-row[hide-icon]::part(icon) {
display: none;
}
</style>
<h2 class="page-title">$i18n{settings}</h2>
<div class="card">
<pref-toggle-button id="passwordToggle" no-extension-indicator
label="$i18n{savePasswordsLabel}"
pref="{{prefs.credentials_enable_service}}">
</pref-toggle-button>
<template is="dom-if"
if="[[prefs.credentials_enable_service.extensionId]]">
<div class="cr-row continuation">
<extension-controlled-indicator
id="passwordsExtensionIndicator"
extension-id="[[prefs.credentials_enable_service.extensionId]]"
extension-name="[[
prefs.credentials_enable_service.controlledByName]]"
extension-can-be-disabled="[[
prefs.credentials_enable_service.extensionCanBeDisabled]]">
</extension-controlled-indicator>
</div>
</template>
<template is="dom-if" if="[[isPasskeyUpgradeSettingsToggleVisible_]]">
<pref-toggle-button id="passkeyUpgradeToggle"
label="$i18n{passkeyUpgradeSettingsToggleLabel}"
sub-label="$i18n{passkeyUpgradeSettingsToggleSubLabel}"
pref="{{prefs.credentials_enable_automatic_passkey_upgrades}}"
hidden="[[!prefs.credentials_enable_service.value]]">
</pref-toggle-button>
</template>
<pref-toggle-button id="autosigninToggle" class="hr"
label="$i18n{autosigninLabel}"
sub-label="$i18n{autosigninDescription}"
pref="{{prefs.credentials_enable_autosignin}}">
</pref-toggle-button>
<if expr="is_win or is_macosx or is_chromeos">
<template is="dom-if"
if="[[isBiometricAuthenticationForFillingToggleVisible_]]">
<pref-toggle-button id="biometricAuthenticationToggle" class="hr"
label="$i18n{biometricAuthenticationForFillingLabel}"
sub-label="$i18n{biometricAuthenticationForFillingSubLabel}"
pref="{{prefs.password_manager.biometric_authentication_filling}}"
change-requires-validation
on-validate-and-change-pref="switchBiometricAuthBeforeFillingState_">
</pref-toggle-button>
</template>
</if>
<pref-toggle-button id="accountStorageToggle" class="hr"
hidden="[[!isEligibleForAccountStorage]]"
label="$i18n{accountStorageToggleLabel}"
sub-label="[[getAccountStorageSubLabel_(accountEmail)]]"
checked="[[isAccountStoreUser]]"
change-requires-validation
on-validate-and-change-pref="changeAccountStorageEnabled_">
</pref-toggle-button>
<template is="dom-if"
if="[[shouldShowMovePasswordsEntry_(isAccountStoreUser,
passwordsOnDevice_, localPasswordCount_)]]"
restamp>
<cr-link-row class="cr-row" non-clickable label="[[movePasswordsLabel_]]"
sub-label="$i18n{movePasswordsInSettingsSubLabel}" hide-icon>
<cr-button id="movePasswordsButton" on-click="onMovePasswordsClicked_"
aria-label="[[getAriaLabelMovePasswordsButton_(movePasswordsLabel_)]]">
$i18n{moveSinglePasswordButton}
</cr-button>
</cr-link-row>
</template>
<cr-link-row id="trustedVaultBanner" class="cr-row"
label="[[getTrustedVaultBannerTitle_(trustedVaultBannerState_)]]"
sub-label="[[getTrustedVaultBannerDescription_(trustedVaultBannerState_)]]"
hidden$="[[shouldHideTrustedVaultBanner_(trustedVaultBannerState_)]]"
button-aria-description="$i18n{opensInNewTab}"
on-click="onTrustedVaultBannerClick_" external>
</cr-link-row>
<template is="dom-if" if="[[!passwordManagerDisabled_]]" restamp>
<passwords-importer account-email="[[accountEmail]]"
is-account-store-user="[[isAccountStoreUser]]"
is-user-syncing-passwords="[[isSyncingPasswords]]">
</passwords-importer>
</template>
<template is="dom-if" if="[[hasPasswordsToExport_]]" restamp>
<passwords-exporter></passwords-exporter>
</template>
<template is="dom-if" if="[[canAddShortcut_]]"
on-dom-change="onShortcutBannerDomChanged_" restamp>
<cr-link-row id="addShortcutBanner" class="cr-row settings-cr-link-row"
on-click="onAddShortcutClick_" label="$i18n{addShortcut}"
sub-label="$i18n{addShortcutDescription}" role-description="button">
</cr-link-row>
</template>
<template is="dom-if" if="[[isConnectedToCloudAuthenticator_]]" restamp>
<cr-link-row id="disconnectCloudAuthenticatorRow"
class="cr-row settings-cr-link-row"
label="$i18n{disconnectCloudAuthenticatorTitle}"
sub-label="$i18n{disconnectCloudAuthenticatorDescription}"
hide-icon non-clickable>
<template is="dom-if"
if="[[!isDisconnectCloudAuthenticatorInProgress_]]" restamp>
<cr-button id="disconnectCloudAuthenticatorButton"
class="cr-row-action-button"
aria-label="[[getAriaLabelForCloudAuthenticatorButton_()]]"
on-click="onDisconnectCloudAuthenticatorClick_">
$i18n{disconnectCloudAuthenticatorButton}
</cr-button>
</template>
<div class="spinner"
hidden$="[[!isDisconnectCloudAuthenticatorInProgress_]]"></div>
</cr-link-row>
</template>
<template is="dom-if" if="[[isPasswordManagerPinAvailable_]]" restamp>
<cr-link-row id="changePasswordManagerPinRow"
class="cr-row settings-cr-link-row"
label="$i18n{changePasswordManagerPin}"
on-click="onChangePasswordManagerPinRowClick_">
</cr-link-row>
</template>
<if expr="is_win or is_macosx">
<template is="dom-if" if="[[hasPasskeys_]]" restamp>
<cr-link-row id="managePasskeysRow" external
class="cr-row settings-cr-link-row" on-click="onManagePasskeysClick_"
label="$i18n{managePasskeysLabel}">
</cr-link-row>
</template>
</if>
<full-data-reset is-account-store-user="[[isAccountStoreUser]]"
is-syncing-passwords="[[isSyncingPasswords]]">
</full-data-reset>
</div>
<div hidden="[[!blockedSites_.length]]">
<h3 id="blockedSitesTitle" class="page-title">$i18n{blockedSitesTitle}</h3>
<div class="card" id="blockedSites">
<div class="flex-centered single-line-label">
<div id="blockedSitesHeader" class="cr-secondary-text label">
$i18n{blockedSitesDescription}
</div>
</div>
<div id="blockedSitesList" class="hr">
<template is="dom-repeat" items="[[blockedSites_]]">
<div class="flex-centered">
<site-favicon class="favicon" domain="[[item.urls.link]]">
</site-favicon>
<div class="blocked-site-content flex-centered" first$="[[!index]]">
<div class="label site-url">[[item.urls.shown]]</div>
<cr-icon-button class="icon-clear" id="removeBlockedValueButton"
on-click="onRemoveBlockedSiteClick_"
title="$i18n{deletePassword}"
aria-label="[[getAriaLabelForBlockedSite_(item)]]">
</cr-icon-button>
</div>
</div>
</template>
</div>
</div>
</div>
<template is="dom-if" if="[[showDisconnectCloudAuthenticatorDialog_]]" restamp>
<disconnect-cloud-authenticator-dialog id="disconnectCloudAuthenticatorDialog"
on-close="onCloseDisconnectCloudAuthenticatorDialog_"
on-disconnect-cloud-authenticator="onDisconnectCloudAuthenticator_">
</disconnect-cloud-authenticator-dialog>
</template>
<cr-toast id="toast" duration="5000">
<span id="toast-message">[[toastMessage_]]</span>
</cr-toast>
|