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
|
<style include="settings-shared md-select">
:host(.list-frame) settings-toggle-button {
padding-inline-end: 0;
padding-inline-start: 0;
}
:host(.list-frame) cr-link-row {
padding-inline-end: 8px;
padding-inline-start: 0;
}
/* Removes the border of the first hr element.*/
.hr:not(.hr:not([hidden]) ~ *) {
border-top: 0;
}
#chromeSigninUserChoiceSetting {
padding: 10px 0px 10px;
}
#label-wrapper {
margin-inline-end: 20px;
}
</style>
<if expr="not is_chromeos">
<div id="chromeSigninUserChoiceSetting" class="hr cr-row" role="group"
hidden="[[!chromeSigninUserChoiceInfo_.shouldShowSettings]]"
aria-label="$i18n{chromeSigninChoiceTitle}">
<div id="label-wrapper" class="flex">
<div>
$i18n{chromeSigninChoiceTitle}
</div>
<div id="chromeSigninChoiceDescription" class="secondary">
[[i18n('chromeSigninChoiceDescription',
chromeSigninUserChoiceInfo_.signedInEmail)]]
</div>
</div>
<select id="chromeSigninUserChoiceSelection" class="md-select"
on-change="onChromeSigninChoiceSelectionChanged_">
<option selected disabled hidden
value="[[chromeSigninUserChoiceEnum_.NO_CHOICE]]">
$i18n{chromeSigninChoiceSelectOptionPlaceholder}
</option>
<option value="[[chromeSigninUserChoiceEnum_.SIGNIN]]">
$i18n{chromeSigninChoiceSignin}
</option>
<option value="[[chromeSigninUserChoiceEnum_.DO_NOT_SIGNIN]]">
$i18n{chromeSigninChoiceDoNotSignin}
</option>
<option value="[[chromeSigninUserChoiceEnum_.ALWAYS_ASK]]">
$i18n{chromeSigninChoiceAlwaysAsk}
</option>
</select>
</div>
<settings-toggle-button id="signinAllowedToggle"
class="hr"
hidden="[[!signinAvailable_]]"
disabled="[[syncFirstSetupInProgress_]]"
pref="{{prefs.signin.allowed_on_next_startup}}"
label="$i18n{signinAllowedTitle}"
sub-label="$i18n{signinAllowedDescription}"
on-settings-boolean-control-change="onSigninAllowedChange_"
no-set-pref>
</settings-toggle-button>
</if><!-- not chromeos -->
<if expr="_google_chrome">
<if expr="chromeos_ash">
<!-- Ash Browser settings show a link to the OS settings instead. -->
<cr-link-row id="metricsReportingLink" class="hr"
label="$i18n{enablePersonalizationLogging}"
sub-label="$i18n{enablePersonalizationLoggingDesc}"
on-click="onMetricsReportingLinkClick_" external>
</cr-link-row>
</if><!-- chromeos -->
<if expr="not chromeos_ash">
<settings-toggle-button id="metricsReportingControl"
class="hr"
pref="[[metricsReportingPref_]]"
label="$i18n{enablePersonalizationLogging}"
sub-label="$i18n{enablePersonalizationLoggingDesc}" no-set-pref
on-settings-boolean-control-change="onMetricsReportingChange_">
<template is="dom-if" if="[[showRestart_]]" restamp>
<cr-button on-click="onRestartClick_" id="restart"
slot="more-actions">
$i18n{restart}
</cr-button>
</template>
</settings-toggle-button>
</if><!-- not chromeos -->
</if><!-- _google_chrome -->
<settings-toggle-button id="urlCollectionToggle"
class="hr"
pref="{{prefs.url_keyed_anonymized_data_collection.enabled}}"
label="$i18n{urlKeyedAnonymizedDataCollection}"
sub-label="$i18n{urlKeyedAnonymizedDataCollectionDesc}">
</settings-toggle-button>
<if expr="_google_chrome">
<if expr="not chromeos_ash">
<settings-toggle-button id="spellCheckControl"
class="hr"
pref="{{prefs.spellcheck.use_spelling_service}}"
on-settings-boolean-control-change="onUseSpellingServiceToggle_"
label="$i18n{spellingPref}"
sub-label="$i18n{spellingDescription}"
hidden="[[!showSpellCheckControlToggle_(prefs.spellcheck.dictionaries)]]">
</settings-toggle-button>
</if>
<if expr="chromeos_ash">
<!-- On ChromeOS the toggle for spellcheck is shown in the OS settings,
and Ash Browser settings show a link to the OS settings instead. -->
<cr-link-row id="spellCheckLink"
class="hr"
label="$i18n{spellingPref}"
sub-label="$i18n{spellingDescription}"
hidden="[[!showSpellCheckControlLink_(prefs.spellcheck.dictionaries)]]"
on-click="onUseSpellingServiceLinkClick_" external>
</cr-link-row>
</if><!-- chromeos -->
</if><!-- _google_chrome -->
<template is="dom-if" if="[[showSearchSuggestToggle_()]]" restamp>
<settings-toggle-button id="searchSuggestToggle"
class="hr"
pref="{{prefs.search.suggest_enabled}}"
label="$i18n{searchSuggestPref}"
sub-label="$i18n{searchSuggestPrefDesc}">
</settings-toggle-button>
</template>
<!-- This toggle is only shown for users with the appropriate enterprise
policy enabled. The state is not changeable by the user, so when shown,
it is alays selected but disabled. -->
<template is="dom-if" if="[[showSearchAggregatorSuggest_]]" restamp>
<settings-toggle-button id="searchAggregatorSuggestToggle"
pref="[[searchAggregatorSuggestFakePref_]]"
disabled
class="hr"
label="$i18n{searchAggregatorSuggestPref}"
sub-label="$i18n{searchAggregatorSuggestPrefDesc}">
</settings-toggle-button>
</template>
<template is="dom-if" if="[[showPriceEmailNotificationsToggle_(
syncStatus, syncStatus.signedInState)]]" restamp>
<settings-toggle-button id="priceEmailNotificationsToggle"
class="hr"
label="$i18n{priceEmailNotificationsPref}"
sub-label="[[getPriceEmailNotificationsPrefDesc_(syncStatus)]]"
pref="{{prefs.price_tracking.email_notifications_enabled}}">
</settings-toggle-button>
</template>
<template is="dom-if" if="[[showSignoutDialog_]]" restamp>
<settings-signout-dialog sync-status="[[syncStatus]]"
on-close="onSignoutDialogClosed_">
</settings-signout-dialog>
</template>
<if expr="not chromeos_ash">
<cr-toast id="toast">
<div>$i18n{restartToApplyChanges}</div>
<cr-button on-click="onRestartClick_">$i18n{restart}</cr-button>
</cr-toast>
<template is="dom-if" if="[[shouldShowRelaunchDialog]]" restamp>
<relaunch-confirmation-dialog restart-type="[[restartTypeEnum.RESTART]]"
on-close="onRelaunchDialogClose"></relaunch-confirmation-dialog>
</template>
<cr-toast id="chromeSigninUserChoiceToast" duration="5000">
<div>$i18n{chromeSigninChoiceToast}</div>
</cr-toast>
</if>
|