OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @fileoverview | 6 * @fileoverview |
7 * 'settings-people-page' is the settings page containing sign-in settings. | 7 * 'settings-people-page' is the settings page containing sign-in settings. |
8 * | 8 * |
9 * Example: | 9 * Example: |
10 * | 10 * |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // code to not include HTML in the status messages. | 88 // code to not include HTML in the status messages. |
89 this.$.syncStatusText.innerHTML = syncStatus.statusText; | 89 this.$.syncStatusText.innerHTML = syncStatus.statusText; |
90 }, | 90 }, |
91 | 91 |
92 /** @private */ | 92 /** @private */ |
93 onActionLinkTap_: function() { | 93 onActionLinkTap_: function() { |
94 settings.SyncPrivateApi.showSetupUI(); | 94 settings.SyncPrivateApi.showSetupUI(); |
95 }, | 95 }, |
96 | 96 |
97 /** @private */ | 97 /** @private */ |
98 onManageProfileTap_: function() { | 98 onPictureTap_: function() { |
| 99 <if expr="chromeos"> |
| 100 this.$.pages.setSubpageChain(['changePicture']); |
| 101 </if> |
99 <if expr="not chromeos"> | 102 <if expr="not chromeos"> |
100 this.$.pages.setSubpageChain(['manageProfile']); | 103 this.$.pages.setSubpageChain(['manageProfile']); |
101 </if> | 104 </if> |
102 // TODO(tommycli): Implement ChromeOS version. January 2016. | |
103 }, | 105 }, |
104 | 106 |
| 107 <if expr="not chromeos"> |
| 108 /** @private */ |
| 109 onProfileNameTap_: function() { |
| 110 this.$.pages.setSubpageChain(['manageProfile']); |
| 111 }, |
| 112 </if> |
| 113 |
105 /** @private */ | 114 /** @private */ |
106 onSigninTap_: function() { | 115 onSigninTap_: function() { |
107 settings.SyncPrivateApi.startSignIn(); | 116 settings.SyncPrivateApi.startSignIn(); |
108 }, | 117 }, |
109 | 118 |
110 /** @private */ | 119 /** @private */ |
111 onDisconnectTap_: function() { | 120 onDisconnectTap_: function() { |
112 this.$.disconnectDialog.open(); | 121 this.$.disconnectDialog.open(); |
113 }, | 122 }, |
114 | 123 |
(...skipping 30 matching lines...) Expand all Loading... |
145 | 154 |
146 /** | 155 /** |
147 * @private | 156 * @private |
148 * @return {boolean} | 157 * @return {boolean} |
149 */ | 158 */ |
150 isAdvancedSyncSettingsVisible_: function(syncStatus) { | 159 isAdvancedSyncSettingsVisible_: function(syncStatus) { |
151 return syncStatus && syncStatus.signedIn && !syncStatus.managed && | 160 return syncStatus && syncStatus.signedIn && !syncStatus.managed && |
152 syncStatus.syncSystemEnabled; | 161 syncStatus.syncSystemEnabled; |
153 }, | 162 }, |
154 }); | 163 }); |
OLD | NEW |