| 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 | 271 |
| 272 /** @private */ | 272 /** @private */ |
| 273 onEasyUnlockSetupTap_: function() { | 273 onEasyUnlockSetupTap_: function() { |
| 274 this.easyUnlockBrowserProxy_.startTurnOnFlow(); | 274 this.easyUnlockBrowserProxy_.startTurnOnFlow(); |
| 275 }, | 275 }, |
| 276 | 276 |
| 277 /** @private */ | 277 /** @private */ |
| 278 onEasyUnlockTurnOffTap_: function() { | 278 onEasyUnlockTurnOffTap_: function() { |
| 279 this.$$('#easyUnlockTurnOffDialog').open(); | 279 this.$$('#easyUnlockTurnOffDialog').open(); |
| 280 }, | 280 }, |
| 281 |
| 282 /** |
| 283 * @param {boolean} easyUnlockEnabled |
| 284 * @param {boolean} easyUnlockProximityDetectionAllowed |
| 285 * @return {string} The easy unlock row's class name. |
| 286 * @private |
| 287 */ |
| 288 getEasyUnlockClass_: function(easyUnlockEnabled, |
| 289 easyUnlockProximityDetectionAllowed) { |
| 290 return easyUnlockEnabled && easyUnlockProximityDetectionAllowed ? |
| 291 'three-line' : 'two-line'; |
| 292 }, |
| 281 </if> | 293 </if> |
| 282 | 294 |
| 283 /** @private */ | 295 /** @private */ |
| 284 onManageOtherPeople_: function() { | 296 onManageOtherPeople_: function() { |
| 285 <if expr="not chromeos"> | 297 <if expr="not chromeos"> |
| 286 this.syncBrowserProxy_.manageOtherPeople(); | 298 this.syncBrowserProxy_.manageOtherPeople(); |
| 287 </if> | 299 </if> |
| 288 <if expr="chromeos"> | 300 <if expr="chromeos"> |
| 289 settings.navigateTo(settings.Route.ACCOUNTS); | 301 settings.navigateTo(settings.Route.ACCOUNTS); |
| 290 </if> | 302 </if> |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 | 373 |
| 362 /** | 374 /** |
| 363 * @param {!settings.SyncStatus} syncStatus | 375 * @param {!settings.SyncStatus} syncStatus |
| 364 * @return {boolean} Whether to show the "Sign in to Chrome" button. | 376 * @return {boolean} Whether to show the "Sign in to Chrome" button. |
| 365 * @private | 377 * @private |
| 366 */ | 378 */ |
| 367 showSignin_: function(syncStatus) { | 379 showSignin_: function(syncStatus) { |
| 368 return !!syncStatus.signinAllowed && !syncStatus.signedIn; | 380 return !!syncStatus.signinAllowed && !syncStatus.signedIn; |
| 369 }, | 381 }, |
| 370 }); | 382 }); |
| OLD | NEW |