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