| 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 Polymer({ | 9 Polymer({ |
| 10 is: 'settings-people-page', | 10 is: 'settings-people-page', |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 * @private | 177 * @private |
| 178 */ | 178 */ |
| 179 handleEasyUnlockEnabledStatusChanged_: function(easyUnlockEnabled) { | 179 handleEasyUnlockEnabledStatusChanged_: function(easyUnlockEnabled) { |
| 180 this.easyUnlockEnabled_ = easyUnlockEnabled; | 180 this.easyUnlockEnabled_ = easyUnlockEnabled; |
| 181 }, | 181 }, |
| 182 </if> | 182 </if> |
| 183 | 183 |
| 184 /** @private */ | 184 /** @private */ |
| 185 onPictureTap_: function() { | 185 onPictureTap_: function() { |
| 186 <if expr="chromeos"> | 186 <if expr="chromeos"> |
| 187 this.$.pages.setSubpageChain(['changePicture']); | 187 settings.navigateTo(settings.Route.CHANGE_PICTURE); |
| 188 </if> | 188 </if> |
| 189 <if expr="not chromeos"> | 189 <if expr="not chromeos"> |
| 190 this.$.pages.setSubpageChain(['manageProfile']); | 190 settings.navigateTo(settings.Route.MANAGE_PROFILE); |
| 191 </if> | 191 </if> |
| 192 }, | 192 }, |
| 193 | 193 |
| 194 <if expr="not chromeos"> | 194 <if expr="not chromeos"> |
| 195 /** @private */ | 195 /** @private */ |
| 196 onProfileNameTap_: function() { | 196 onProfileNameTap_: function() { |
| 197 this.$.pages.setSubpageChain(['manageProfile']); | 197 settings.navigateTo(settings.Route.MANAGE_PROFILE); |
| 198 }, | 198 }, |
| 199 </if> | 199 </if> |
| 200 | 200 |
| 201 /** @private */ | 201 /** @private */ |
| 202 onActivityControlsTap_: function() { | 202 onActivityControlsTap_: function() { |
| 203 this.syncBrowserProxy_.openActivityControlsUrl(); | 203 this.syncBrowserProxy_.openActivityControlsUrl(); |
| 204 }, | 204 }, |
| 205 | 205 |
| 206 /** @private */ | 206 /** @private */ |
| 207 onSigninTap_: function() { | 207 onSigninTap_: function() { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 228 }, | 228 }, |
| 229 | 229 |
| 230 /** @private */ | 230 /** @private */ |
| 231 onSyncTap_: function() { | 231 onSyncTap_: function() { |
| 232 assert(this.syncStatus.signedIn); | 232 assert(this.syncStatus.signedIn); |
| 233 assert(this.syncStatus.syncSystemEnabled); | 233 assert(this.syncStatus.syncSystemEnabled); |
| 234 | 234 |
| 235 if (this.syncStatus.managed) | 235 if (this.syncStatus.managed) |
| 236 return; | 236 return; |
| 237 | 237 |
| 238 this.$.pages.setSubpageChain(['sync']); | 238 settings.navigateTo(settings.Route.SYNC); |
| 239 }, | 239 }, |
| 240 | 240 |
| 241 <if expr="chromeos"> | 241 <if expr="chromeos"> |
| 242 /** @private */ | 242 /** @private */ |
| 243 onQuickUnlockTap_: function() { | 243 onQuickUnlockTap_: function() { |
| 244 this.$.pages.setSubpageChain(['quick-unlock-authenticate']); | 244 settings.navigateTo(settings.Route.QUICK_UNLOCK_AUTHENTICATE); |
| 245 }, | 245 }, |
| 246 | 246 |
| 247 /** @private */ | 247 /** @private */ |
| 248 onEasyUnlockSetupTap_: function() { | 248 onEasyUnlockSetupTap_: function() { |
| 249 this.easyUnlockBrowserProxy_.startTurnOnFlow(); | 249 this.easyUnlockBrowserProxy_.startTurnOnFlow(); |
| 250 }, | 250 }, |
| 251 | 251 |
| 252 /** @private */ | 252 /** @private */ |
| 253 onEasyUnlockTurnOffTap_: function() { | 253 onEasyUnlockTurnOffTap_: function() { |
| 254 this.$$('#easyUnlockTurnOffDialog').open(); | 254 this.$$('#easyUnlockTurnOffDialog').open(); |
| 255 }, | 255 }, |
| 256 </if> | 256 </if> |
| 257 | 257 |
| 258 /** @private */ | 258 /** @private */ |
| 259 onManageOtherPeople_: function() { | 259 onManageOtherPeople_: function() { |
| 260 <if expr="not chromeos"> | 260 <if expr="not chromeos"> |
| 261 this.syncBrowserProxy_.manageOtherPeople(); | 261 this.syncBrowserProxy_.manageOtherPeople(); |
| 262 </if> | 262 </if> |
| 263 <if expr="chromeos"> | 263 <if expr="chromeos"> |
| 264 this.$.pages.setSubpageChain(['users']); | 264 settings.navigateTo(settings.Route.ACCOUNTS); |
| 265 </if> | 265 </if> |
| 266 }, | 266 }, |
| 267 | 267 |
| 268 /** @private */ | 268 /** @private */ |
| 269 onManageSupervisedUsers_: function() { | 269 onManageSupervisedUsers_: function() { |
| 270 window.open(loadTimeData.getString('supervisedUsersUrl')); | 270 window.open(loadTimeData.getString('supervisedUsersUrl')); |
| 271 }, | 271 }, |
| 272 | 272 |
| 273 <if expr="not chromeos"> | 273 <if expr="not chromeos"> |
| 274 /** | 274 /** |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 if (!syncStatus) | 318 if (!syncStatus) |
| 319 return ''; | 319 return ''; |
| 320 if (syncStatus.hasError) | 320 if (syncStatus.hasError) |
| 321 return 'settings:sync-problem'; | 321 return 'settings:sync-problem'; |
| 322 if (syncStatus.managed) | 322 if (syncStatus.managed) |
| 323 return 'settings:sync-disabled'; | 323 return 'settings:sync-disabled'; |
| 324 | 324 |
| 325 return 'settings:done'; | 325 return 'settings:done'; |
| 326 }, | 326 }, |
| 327 }); | 327 }); |
| OLD | NEW |