| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/cr_elements/cr_profile_avatar_select
or/cr_profile_avatar_selector.html"> | 1 <link rel="import" href="chrome://resources/cr_elements/cr_profile_avatar_select
or/cr_profile_avatar_selector.html"> |
| 2 <link rel="import" href="chrome://resources/html/polymer.html"> | 2 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> | 3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm
l"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm
l"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap
er-toggle-button.html"> |
| 7 <link rel="import" href="/i18n_setup.html"> |
| 6 <link rel="import" href="/people_page/manage_profile_browser_proxy.html"> | 8 <link rel="import" href="/people_page/manage_profile_browser_proxy.html"> |
| 7 <link rel="import" href="/route.html"> | 9 <link rel="import" href="/route.html"> |
| 8 <link rel="import" href="/settings_shared_css.html"> | 10 <link rel="import" href="/settings_shared_css.html"> |
| 9 | 11 |
| 10 <dom-module id="settings-manage-profile"> | 12 <dom-module id="settings-manage-profile"> |
| 11 <template> | 13 <template> |
| 12 <style include="settings-shared"> | 14 <style include="settings-shared"> |
| 13 #selector { | 15 #selector { |
| 14 margin: 16px 20px; | 16 margin: 16px 20px; |
| 15 } | 17 } |
| 16 </style> | 18 </style> |
| 17 <div class="settings-box first"> | 19 <div class="settings-box first"> |
| 18 <paper-input id="name" value="[[profileName]]" pattern=".*\S.*" | 20 <paper-input id="name" value="[[profileName]]" pattern=".*\S.*" |
| 19 auto-validate required on-change="onProfileNameChanged_" | 21 auto-validate required on-change="onProfileNameChanged_" |
| 20 disabled="[[isProfileNameDisabled_(syncStatus)]]"> | 22 disabled="[[isProfileNameDisabled_(syncStatus)]]"> |
| 21 </paper-input> | 23 </paper-input> |
| 22 </div> | 24 </div> |
| 25 <template is="dom-if" if="[[isProfileShortcutsEnabled_]]"> |
| 26 <div class="settings-box first"> |
| 27 <div class="flex">$i18n{showShortcutLabel}</div> |
| 28 <paper-toggle-button id="hasShortcutToggle" |
| 29 checked="{{hasProfileShortcut_}}" |
| 30 on-change="onHasProfileShortcutChange_"> |
| 31 </paper-toggle-button> |
| 32 </div> |
| 33 </template> |
| 23 <cr-profile-avatar-selector id="selector" avatars="[[availableIcons]]" | 34 <cr-profile-avatar-selector id="selector" avatars="[[availableIcons]]" |
| 24 selected-avatar-url="{{profileIconUrl}}" | 35 selected-avatar-url="{{profileIconUrl}}" |
| 25 on-iron-activate="onIconActivate_"> | 36 on-iron-activate="onIconActivate_"> |
| 26 </cr-profile-avatar-selector> | 37 </cr-profile-avatar-selector> |
| 27 </template> | 38 </template> |
| 28 <script src="manage_profile.js"></script> | 39 <script src="manage_profile.js"></script> |
| 29 </dom-module> | 40 </dom-module> |
| OLD | NEW |