summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/settings/people_page/people_page.html
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/resources/settings/people_page/people_page.html')
-rw-r--r--chromium/chrome/browser/resources/settings/people_page/people_page.html428
1 files changed, 0 insertions, 428 deletions
diff --git a/chromium/chrome/browser/resources/settings/people_page/people_page.html b/chromium/chrome/browser/resources/settings/people_page/people_page.html
deleted file mode 100644
index d6891e8da93..00000000000
--- a/chromium/chrome/browser/resources/settings/people_page/people_page.html
+++ /dev/null
@@ -1,428 +0,0 @@
-<link rel="import" href="chrome://resources/html/polymer.html">
-
-<link rel="import" href="chrome://resources/cr_elements/cr_button/cr_button.html">
-<link rel="import" href="chrome://resources/cr_elements/cr_icon_button/cr_icon_button.html">
-<link rel="import" href="chrome://resources/cr_elements/cr_link_row/cr_link_row.html">
-<link rel="import" href="chrome://resources/cr_elements/icons.html">
-<link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_indicator.html">
-<link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html">
-<link rel="import" href="chrome://resources/html/assert.html">
-<link rel="import" href="chrome://resources/html/cr/ui/focus_without_ink.html">
-<link rel="import" href="chrome://resources/html/i18n_behavior.html">
-<link rel="import" href="chrome://resources/html/icon.html">
-<link rel="import" href="chrome://resources/html/util.html">
-<link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
-<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout-classes.html">
-<link rel="import" href="../controls/settings_toggle_button.html">
-<link rel="import" href="profile_info_browser_proxy.html">
-<link rel="import" href="sync_browser_proxy.html">
-<link rel="import" href="sync_page.html">
-<link rel="import" href="../icons.html">
-<link rel="import" href="../open_window_proxy.html">
-<link rel="import" href="../route.html">
-<link rel="import" href="../settings_page/settings_animated_pages.html">
-<link rel="import" href="../settings_page/settings_subpage.html">
-<link rel="import" href="../settings_shared_css.html">
-<link rel="import" href="signout_dialog.html">
-<link rel="import" href="sync_controls.html">
-
-<if expr="chromeos">
-<link rel="import" href="account_manager.html">
-<link rel="import" href="account_manager_browser_proxy.html">
-<link rel="import" href="change_picture.html">
-<link rel="import" href="chrome://resources/cr_elements/chromeos/cr_picture/cr_png_behavior.html">
-<link rel="import" href="fingerprint_list.html">
-<link rel="import" href="kerberos_accounts.html">
-<link rel="import" href="lock_screen.html">
-<link rel="import" href="lock_state_behavior.html">
-<link rel="import" href="users_page.html">
-<link rel="import" href="../parental_controls_page/parental_controls_page.html">
-</if>
-<if expr="not chromeos">
-<link rel="import" href="chrome://resources/cr_elements/cr_toast/cr_toast.html">
-<link rel="import" href="sync_account_control.html">
-<link rel="import" href="import_data_dialog.html">
-<link rel="import" href="manage_profile.html">
-</if>
-
-<dom-module id="settings-people-page">
- <template>
- <style include="settings-shared iron-flex">
- setting-box.middle {
- /* Per spec, middle text is indented 20px in this section. */
- margin-inline-start: 20px;
- }
-
- .sync-row {
- align-items: center;
- flex: auto;
- }
-
- #profile-icon {
- background: center / cover no-repeat;
- border-radius: 20px;
- flex-shrink: 0;
- height: 40px;
- width: 40px;
- }
-
- #sync-status.no-error {
- --cr-link-row-start-icon-color: var(--google-green-refresh-700);
- }
-
- @media (prefers-color-scheme: dark) {
- #sync-status.no-error {
- --cr-link-row-start-icon-color: var(--google-green-refresh-300);
- }
- }
-
- #sync-setup {
- --cr-secondary-text: {
- color: var(--settings-error-color);
- }
- }
-
- #sync-status[actionable].auth-error {
- --cr-link-row-start-icon-color: var(--google-blue-500);
- }
-
- @media (prefers-color-scheme: dark) {
- #sync-status[actionable].auth-error {
- --cr-link-row-start-icon-color: var(--google-blue-refresh-300);
- }
- }
-
- #sync-status:not([actionable]) .subpage-arrow {
- display: none;
- }
-
- cr-link-row {
- --cr-link-row-icon-width: 40px;
- border-top: var(--cr-separator-line);
- }
-
- #sync-status[actionable].sync-error {
- --cr-link-row-start-icon-color: var(--settings-error-color);
- --cr-secondary-text: {
- color: var(--settings-error-color);
- }
- }
-
- .icon-container {
- display: flex;
- flex-shrink: 0;
- justify-content: center;
- width: 40px;
- }
-
-<if expr="not chromeos">
- #toast {
- left: 0;
- z-index: 1;
- }
-
- :host-context([dir='rtl']) #toast {
- left: auto;
- right: 0;
- }
-
- settings-sync-account-control[showing-promo]::part(banner) {
- /* Make the banner image stay within setting-section's card border
- radius. */
- border-top-left-radius: var(--cr-card-border-radius);
- border-top-right-radius: var(--cr-card-border-radius);
- }
-
- settings-sync-account-control[showing-promo]::part(title) {
- font-size: 1.1rem;
- line-height: 1.625rem;
- }
-</if>
- </style>
- <settings-animated-pages id="pages" section="people"
- focus-config="[[focusConfig_]]">
- <div route-path="default">
-<if expr="not chromeos">
- <template is="dom-if" if="[[shouldShowSyncAccountControl_(diceEnabled_,
- syncStatus.syncSystemEnabled, syncStatus.signinAllowed)]]">
- <settings-sync-account-control
- unified-consent-enabled="[[unifiedConsentEnabled_]]"
- sync-status="[[syncStatus]]"
- 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="[[!diceEnabled_]]">
-</if>
- <div id="picture-subpage-trigger" class="settings-box first two-line">
- <template is="dom-if" if="[[syncStatus]]">
- <div id="profile-icon" on-click="onProfileTap_"
- actionable$="[[isProfileActionable_]]"
- style="background-image: [[getIconImageSet_(
- profileIconUrl_)]]">
- </div>
- <div class="middle two-line no-min-width"
- id="profile-row"
- on-click="onProfileTap_"
- actionable$="[[isProfileActionable_]]">
- <div class="flex text-elide settings-box-text">
- <span id="profile-name">[[profileName_]]</span>
- <div class="secondary" hidden="[[!syncStatus.signedIn]]">
- [[syncStatus.signedInUsername]]
- </div>
- </div>
-<if expr="not chromeos">
- <cr-icon-button class="subpage-arrow"
- aria-label="$i18n{editPerson}"
- aria-describedby="profile-name"></cr-icon-button>
-</if>
-<if expr="chromeos">
- <cr-icon-button class$="[[profileRowIconClass_]]"
- id="profile-subpage-arrow"
- hidden="[[!isProfileActionable_]]"
- aria-label$="[[profileRowIconAriaLabel_]]"
- aria-describedby="profile-name"></cr-icon-button>
-</if>
- </div>
-<if expr="not chromeos">
- <template is="dom-if" if="[[showSignin_(syncStatus)]]">
- <div class="separator"></div>
- <cr-button class="action-button" on-click="onSigninTap_"
- disabled="[[syncStatus.firstSetupInProgress]]">
- $i18n{syncSignin}
- </cr-button>
- </template>
- <template is="dom-if" if="[[syncStatus.signedIn]]">
- <div class="separator"></div>
- <cr-button id="disconnectButton" on-click="onDisconnectTap_"
- disabled="[[syncStatus.firstSetupInProgress]]">
- $i18n{syncDisconnect}
- </cr-button>
- </template>
-</if>
- </template>
- </div>
-<if expr="not chromeos">
- </template> <!-- if="[[!diceEnabled_]]" -->
-</if>
-
- <template is="dom-if" if="[[!syncStatus.signedIn]]">
-<if expr="not chromeos">
- <template is="dom-if" if="[[!diceEnabled_]]">
-</if>
- <div class="settings-box two-line" id="sync-overview"
- hidden="[[!syncStatus.signinAllowed]]">
- <div class="start settings-box-text">
- $i18n{syncOverview}
- <a target="_blank" href="$i18n{syncLearnMoreUrl}">
- $i18n{learnMore}
- </a>
- </div>
- </div>
-<if expr="not chromeos">
- </template> <!-- if="[[!diceEnabled_]]" -->
-</if>
- </template>
-
- <template is="dom-if"
- if="[[isPreUnifiedConsentAdvancedSyncSettingsVisible_(
- syncStatus, unifiedConsentEnabled_)]]">
- <cr-link-row id="sync-status"
- class$="[[getSyncStatusClass_(syncStatus)]]"
- label="$i18n{syncAndNonPersonalizedServices}"
- sub-label="[[getSyncAndGoogleServicesSubtext_(syncStatus)]]"
- on-click="onSyncTap_" start-icon="[[getSyncIcon_(syncStatus)]]"
- actionable$="[[isSyncStatusActionable_(syncStatus)]]">
- </cr-link-row>
- </template>
-
- <template is="dom-if" if="[[unifiedConsentEnabled_]]">
- <cr-link-row id="sync-setup"
- label="$i18n{syncAndNonPersonalizedServices}"
- sub-label="[[getSyncAndGoogleServicesSubtext_(syncStatus)]]"
- on-click="onSyncTap_">
- </cr-link-row>
- </template>
-
-<if expr="not chromeos">
- <template is="dom-if" if="[[diceEnabled_]]">
- <cr-link-row id="manage-google-account"
- label="$i18n{manageGoogleAccount}"
- hidden="[[!shouldShowGoogleAccount_]]"
- on-click="openGoogleAccount_" external></cr-link-row>
-
- <div class="settings-box" id="edit-profile" on-click="onProfileTap_"
- actionable>
- <div class="start settings-box-text">
- $i18n{profileNameAndPicture}
- </div>
- <cr-icon-button class="subpage-arrow"
- aria-label="$i18n{editPerson}"></cr-icon-button>
- </div>
- </template>
-</if>
-
-<if expr="chromeos">
- <cr-link-row id="lock-screen-subpage-trigger" class="hr"
- on-click="onConfigureLockTap_"
- label="[[selectLockScreenTitleString(hasPinLogin)]]"
- sub-label="[[getPasswordState_(hasPin,
- prefs.settings.enable_screen_lock.value)]]"
- hidden="[[!pageVisibility.people.lockScreen]]"></cr-link-row>
-
- <template is="dom-if" if="[[pageVisibility.people.googleAccounts]]">
- <cr-link-row id="account-manager-subpage-trigger" class="hr"
- on-click="onAccountManagerTap_"
- label="$i18n{accountManagerSubMenuLabel}"></cr-link-row>
- </template>
- <template is="dom-if" if="[[showParentalControls_]]">
- <settings-parental-controls-page>
- </settings-parental-controls-page>
- </template>
- <cr-link-row id="manage-other-people-subpage-trigger"
- label="$i18n{manageOtherPeople}" on-click="onManageOtherPeople_"
- hidden="[[!pageVisibility.people.manageUsers]]">
- </cr-link-row>
-
- <template is="dom-if" if="[[pageVisibility.people.kerberosAccounts]]">
- <cr-link-row id="kerberos-accounts-subpage-trigger" class="hr"
- on-click="onKerberosAccountsTap_"
- label="$i18n{kerberosAccountsSubMenuLabel}">
- <cr-policy-indicator indicator-type="userPolicy">
- </cr-policy-indicator>
- </cr-link-row>
- </template>
-</if>
-
-<if expr="not chromeos">
- <cr-link-row id="importDataDialogTrigger"
- label="$i18n{importTitle}"
- on-click="onImportDataTap_"></cr-link-row>
-</if>
-
- </div>
- <template is="dom-if" route-path="/syncSetup"
- no-search="[[!isAdvancedSyncSettingsSearchable_(
- syncStatus, unifiedConsentEnabled_)]]">
- <settings-subpage
- associated-control="[[getAdvancedSyncSettingsAssociatedControl_(
- unifiedConsentEnabled_)]]"
- page-title="$i18n{syncPageTitle}"
- learn-more-url="$i18n{syncAndGoogleServicesLearnMoreURL}"
- no-search$="[[!isAdvancedSyncSettingsSearchable_(syncStatus,
- unifiedConsentEnabled_)]]">
- <settings-sync-page
-<if expr="not chromeos">
- dice-enabled="[[diceEnabled_]]"
-</if>
- unified-consent-enabled="[[unifiedConsentEnabled_]]"
- sync-status="[[syncStatus]]" prefs="{{prefs}}"
- page-visibility="[[pageVisibility.privacy]]">
- </settings-sync-page>
- </settings-subpage>
- </template>
-
- <template is="dom-if" if="[[unifiedConsentEnabled_]]">
- <template is="dom-if" route-path="/syncSetup/advanced">
- <settings-subpage page-title="$i18n{syncAdvancedPageTitle}"
- associated-control="[[$$('#sync-setup')]]"
- learn-more-url="$i18n{syncAndGoogleServicesLearnMoreURL}">
- <settings-sync-controls sync-status="[[syncStatus]]">
- </settings-sync-controls>
- </settings-subpage>
- </template>
- </template>
-
-<if expr="chromeos">
- <template is="dom-if" if="[[pageVisibility.people.lockScreen]]">
- <template is="dom-if" route-path="/lockScreen">
- <settings-subpage
- page-title="[[selectLockScreenTitleString(hasPinLogin)]]"
- associated-control="[[$$('#lock-screen-subpage-trigger')]]">
- <settings-lock-screen
- prefs="{{prefs}}" auth-token="{{authToken_}}">
- </settings-lock-screen>
- </settings-subpage>
- </template>
- <template is="dom-if" if="[[fingerprintUnlockEnabled_]]">
- <template is="dom-if" route-path="/lockScreen/fingerprint" no-search>
- <settings-subpage page-title="$i18n{lockScreenFingerprintTitle}">
- <settings-fingerprint-list auth-token="[[authToken_]]">
- </settings-fingerprint-list>
- </settings-subpage>
- </template>
- </template>
- </template>
- <template is="dom-if" if="[[pageVisibility.people.manageUsers]]">
- <template is="dom-if" route-path="/accounts">
- <settings-subpage
- associated-control=
- "[[$$('#manage-other-people-subpage-trigger')]]"
- page-title="$i18n{manageOtherPeople}">
- <settings-users-page prefs="{{prefs}}">
- </settings-users-page>
- </settings-subpage>
- </template>
- </template>
- <template is="dom-if" route-path="/changePicture">
- <settings-subpage
- associated-control="[[$$('#picture-subpage-trigger')]]"
- page-title="$i18n{changePictureTitle}">
- <settings-change-picture></settings-change-picture>
- </settings-subpage>
- </template>
- <template is="dom-if" if="[[pageVisibility.people.googleAccounts]]">
- <template is="dom-if" route-path="/accountManager">
- <settings-subpage
- associated-control="[[$$('#account-manager-subpage-trigger')]]"
- page-title="$i18n{accountManagerPageTitle}">
- <settings-account-manager></settings-account-manager>
- </settings-subpage>
- </template>
- </template>
- <template is="dom-if" if="[[pageVisibility.people.kerberosAccounts]]">
- <template is="dom-if" route-path="/kerberosAccounts">
- <settings-subpage
- associated-control="[[$$('#kerberos-accounts-subpage-trigger')]]"
- page-title="$i18n{kerberosAccountsPageTitle}">
- <settings-kerberos-accounts></settings-kerberos-accounts>
- </settings-subpage>
- </template>
- </template>
-</if>
-<if expr="not chromeos">
- <template is="dom-if" route-path="/manageProfile">
- <settings-subpage
- associated-control="[[getEditPersonAssocControl_(diceEnabled_)]]"
- page-title="$i18n{editPerson}">
- <settings-manage-profile profile-name="[[profileName_]]"
- sync-status="[[syncStatus]]">
- </settings-manage-profile>
- </settings-subpage>
- </template>
-</if>
- </settings-animated-pages>
-
- <template is="dom-if" if="[[showSignoutDialog_]]" restamp>
- <settings-signout-dialog sync-status="[[syncStatus]]"
- on-close="onDisconnectDialogClosed_">
- </settings-signout-dialog>
- </template>
-
- <template is="dom-if" if="[[showImportDataDialog_]]" restamp>
- <settings-import-data-dialog prefs="{{prefs}}"
- on-close="onImportDataDialogClosed_">
- </settings-import-data-dialog>
- </template>
-<if expr="not chromeos">
- <cr-toast duration="3000" id="toast">
- <span>$i18n{syncSettingsSavedToast}</span>
- </cr-toast>
-</if>
- </template>
- <script src="people_page.js"></script>
-</dom-module>