<style include="settings-shared">
:host([is-user-configurable_])
.peripheral-data-access-protection {
--cr-disabled-opacity: 1;
cursor: pointer;
opacity: 1;
}
#dataAccessProtectionWrapper:focus {
outline: none;
}
:host-context(body.revamp-wayfinding-enabled) settings-toggle-button {
--cr-icon-button-margin-end: 16px;
--iron-icon-fill-color: var(--cros-sys-primary);
}
</style>
<os-settings-animated-pages id="pages" section="[[section_]]">
<div route-path="default">
<settings-card header-text="$i18n{privacyPageTitle}">
<template is="dom-if" if="[[isRevampWayfindingEnabled_]]">
<cr-link-row id="privacyHubSubpageTrigger"
start-icon="[[rowIcons_.privacyHub]]"
on-click="onPrivacyHubClick_"
label="$i18n{privacyHubTitle}"
sub-label="$i18n{privacyHubSubtext}"
role-description="$i18n{subpageArrowRoleDescription}">
</cr-link-row>
<div class="hr"></div>
</template>
<template is="dom-if" if="[[!isGuestMode_]]" restamp>
<template is="dom-if" if="[[isRevampWayfindingEnabled_]]">
<cr-link-row id="syncSetupRow"
start-icon="[[rowIcons_.sync]]"
label="$i18n{syncAndNonPersonalizedServices}"
sub-label="[[getSyncAndGoogleServicesSubtext_(syncStatus)]]"
on-click="onSyncClick_"
role-description="$i18n{subpageArrowRoleDescription}">
</cr-link-row>
<div class="hr"></div>
</template>
<cr-link-row id="lockScreenRow"
start-icon="[[rowIcons_.lockScreen]]"
on-click="onConfigureLockClick_"
label="[[selectLockScreenTitleString_(hasPinLogin)]]"
sub-label="[[getPasswordState_(hasPin,
prefs.settings.enable_screen_lock.value)]]"
role-description="$i18n{subpageArrowRoleDescription}">
</cr-link-row>
<cr-link-row id="manageOtherPeopleRow" class="hr"
start-icon="[[rowIcons_.manageOtherPeople]]"
label="$i18n{manageOtherPeople}"
on-click="onManageOtherPeople_"
role-description="$i18n{subpageArrowRoleDescription}">
</cr-link-row>
<div class="hr"></div>
<template is="dom-if" if="[[isSmartPrivacyEnabled_]]" restamp>
<cr-link-row id="smartPrivacySubpageTrigger"
start-icon="[[rowIcons_.smartPrivacy]]"
on-click="onSmartPrivacy_"
label="$i18n{smartPrivacyTitle}"
role-description="$i18n{subpageArrowRoleDescription}">
</cr-link-row>
<div class="hr"></div>
</template>
</template>
<if expr="_google_chrome">
<template is="dom-if" if="[[isRevenBranding_]]">
<settings-toggle-button
id="enable-hw-data-usage"
pref="{{prefs.cros.reven.enable_hw_data_usage}}"
label="[[i18n('enableHWDataUsage')]]"
sub-label="[[i18n('enableHWDataUsageDesc')]]">
</settings-toggle-button>
<div class="hr"></div>
</template>
</if>
<settings-toggle-button
id="verifiedAccessToggle"
icon="[[rowIcons_.verifiedAccess]]"
pref="{{
prefs.cros.device.attestation_for_content_protection_enabled}}"
label="$i18n{enableContentProtectionAttestation}"
on-settings-boolean-control-change="onVerifiedAccessChange_"
deep-link-focus-id$="[[Setting.kVerifiedAccess]]">
</settings-toggle-button>
<template is="dom-if" if="[[!isRevampWayfindingEnabled_]]">
<cr-link-row id="privacyHubSubpageTrigger"
class="hr"
on-click="onPrivacyHubClick_"
label="$i18n{privacyHubTitle}"
sub-label="$i18n{privacyHubSubtext}"
role-description="$i18n{subpageArrowRoleDescription}">
</cr-link-row>
</template>
<template is="dom-if" if="[[isThunderboltSupported_]]">
<div class="hr"></div>
<!-- This toggle is always disabled. The underlying pref state is
handled by the JS impl. This is to prevent toggling the pref
before the user confirms the action. -->
<div id="dataAccessProtectionWrapper"
tabindex="0"
on-focus="onDataAccessToggleFocus_"
on-keypress="onDataAccessToggleKeyPress_">
<settings-toggle-button
id="crosSettingDataAccessToggle"
class="peripheral-data-access-protection"
icon="[[rowIcons_.dataAccessProtection]]"
pref="{{prefs.cros.device.peripheral_data_access_enabled}}"
label="$i18n{peripheralDataAccessProtectionToggleTitle}"
sub-label=
"$i18n{peripheralDataAccessProtectionToggleDescription}"
deep-link-focus-id$=
"[[Setting.kPeripheralDataAccessProtection]]"
on-click="onPeripheralProtectionClick_"
learn-more-url="$i18n{peripheralDataAccessLearnMoreURL}"
hidden$="[[isLocalStateDataAccessPref_(
dataAccessProtectionPrefName_)]]"
disabled
inverted>
</settings-toggle-button>
<settings-toggle-button
id="localStateDataAccessToggle"
class="peripheral-data-access-protection"
icon="[[rowIcons_.dataAccessProtection]]"
pref="{{prefs.settings.local_state_device_pci_data_access_enabled}}"
label="$i18n{peripheralDataAccessProtectionToggleTitle}"
sub-label=
"$i18n{peripheralDataAccessProtectionToggleDescription}"
deep-link-focus-id$=
"[[Setting.kPeripheralDataAccessProtection]]"
on-click="onPeripheralProtectionClick_"
learn-more-url="$i18n{peripheralDataAccessLearnMoreURL}"
hidden$="[[isCrosSettingDataAccessPref_(
dataAccessProtectionPrefName_)]]"
disabled
inverted>
</settings-toggle-button>
</div>
</template>
<template is="dom-if" if="[[showSecureDnsSetting_]]">
<settings-secure-dns prefs="{{prefs}}"></settings-secure-dns>
</template>
</settings-card>
</div>
<!-- Privacy Hub pages -->
<template is="dom-if" route-path="/osPrivacy/privacyHub">
<os-settings-subpage page-title="$i18n{privacyHubTitle}">
<settings-privacy-hub-subpage prefs="{{prefs}}">
</settings-privacy-hub-subpage>
</os-settings-subpage>
</template>
<template is="dom-if" route-path="/osPrivacy/privacyHub/microphone">
<os-settings-subpage page-title="$i18n{microphoneToggleTitle}">
<settings-privacy-hub-microphone-subpage prefs="{{prefs}}">
</settings-privacy-hub-microphone-subpage>
</os-settings-subpage>
</template>
<template is="dom-if" route-path="/osPrivacy/privacyHub/camera">
<os-settings-subpage page-title="$i18n{cameraToggleTitle}">
<settings-privacy-hub-camera-subpage prefs="{{prefs}}">
</settings-privacy-hub-camera-subpage>
</os-settings-subpage>
</template>
<template is="dom-if" route-path="/osPrivacy/privacyHub/geolocation">
<os-settings-subpage page-title="$i18n{geolocationAreaTitle}">
<settings-privacy-hub-geolocation-subpage prefs="{{prefs}}">
</settings-privacy-hub-geolocation-subpage>
</os-settings-subpage>
</template>
<template is="dom-if" route-path="/osPrivacy/privacyHub/geolocation/advanced">
<os-settings-subpage page-title="$i18n{geolocationAdvancedAreaTitle}">
<settings-privacy-hub-geolocation-advanced-subpage prefs="{{prefs}}">
</settings-privacy-hub-geolocation-advanced-subpage>
</os-settings-subpage>
</template>
<template is="dom-if" if="[[!isGuestMode_]]" restamp>
<template is="dom-if" if="[[isRevampWayfindingEnabled_]]">
<template is="dom-if" route-path="/osSyncSetup">
<os-settings-subpage
page-title="$i18n{syncPageTitle}"
learn-more-url="$i18n{syncAndGoogleServicesLearnMoreURL}">
<os-settings-sync-subpage
sync-status="[[syncStatus]]" prefs="{{prefs}}">
</os-settings-sync-subpage>
</os-settings-subpage>
</template>
<template is="dom-if" route-path="/osSync">
<os-settings-subpage page-title="[[getSyncAdvancedTitle_()]]"
learn-more-url="$i18n{syncAndGoogleServicesLearnMoreURL}">
<os-sync-controls-subpage>
</os-sync-controls-subpage>
</os-settings-subpage>
</template>
</template>
<template is="dom-if" route-path="/osPrivacy/lockScreen">
<os-settings-subpage page-title="[[selectLockScreenTitleString_(hasPinLogin)]]">
<settings-lock-screen-subpage id="lockScreen"
prefs="{{prefs}}"
auth-token="[[getAuthToken_(authTokenInfo_, authTokenReply_)]]"
on-invalidate-auth-token-requested="onInvalidateTokenRequested_"
on-password-requested="onPasswordRequested_">
</settings-lock-screen-subpage>
</os-settings-subpage>
</template>
<template is="dom-if" route-path="/osPrivacy/lockScreen/fingerprint">
<os-settings-subpage page-title="$i18n{lockScreenFingerprintTitle}">
<settings-fingerprint-list-subpage id="fingerprint-list"
auth-token="[[getAuthToken_(authTokenInfo_, authTokenReply_)]]"
on-password-requested="onPasswordRequested_">
</settings-fingerprint-list-subpage>
</os-settings-subpage>
</template>
<template is="dom-if" route-path="/osPrivacy/accounts">
<os-settings-subpage page-title="$i18n{manageOtherPeople}">
<settings-manage-users-subpage prefs="{{prefs}}">
</settings-manage-users-subpage>
</os-settings-subpage>
</template>
<template is="dom-if" route-path="/osPrivacy/smartPrivacy">
<os-settings-subpage page-title="$i18n{smartPrivacyTitle}">
<settings-smart-privacy-subpage prefs="{{prefs}}">
</settings-smart-privacy-subpage>
</os-settings-subpage>
</template>
</template>
</os-settings-animated-pages>
<template is="dom-if" if="[[showPasswordPromptDialog_]]" restamp>
<settings-lock-screen-password-prompt-dialog
id="passwordDialog"
on-close="onPasswordPromptDialogClose_"
on-auth-token-obtained="onAuthTokenObtained_">
</settings-lock-screen-password-prompt-dialog>
</template>
<template is="dom-if" if="[[showDisableProtectionDialog_]]" restamp>
<settings-peripheral-data-access-protection-dialog id="protectionDialog"
on-close="onDisableProtectionDialogClosed_" prefs="{{prefs}}"
pref-name="[[dataAccessProtectionPrefName_]]">
</settings-peripheral-data-access-protection-dialog>
</template>