Chromium Code Reviews| 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 handleProfileManagesSupervisedUsers_: function(managesSupervisedUsers) { | 177 handleProfileManagesSupervisedUsers_: function(managesSupervisedUsers) { |
| 178 this.profileManagesSupervisedUsers_ = managesSupervisedUsers; | 178 this.profileManagesSupervisedUsers_ = managesSupervisedUsers; |
| 179 }, | 179 }, |
| 180 | 180 |
| 181 /** | 181 /** |
| 182 * Handler for when the sync state is pushed from the browser. | 182 * Handler for when the sync state is pushed from the browser. |
| 183 * @param {?settings.SyncStatus} syncStatus | 183 * @param {?settings.SyncStatus} syncStatus |
| 184 * @private | 184 * @private |
| 185 */ | 185 */ |
| 186 handleSyncStatus_: function(syncStatus) { | 186 handleSyncStatus_: function(syncStatus) { |
| 187 if (this.syncStatus == null && !syncStatus.signedIn) { | |
|
Dan Beam
2016/09/16 18:03:03
if (!this.syncStatus && syncStatus && !syncStatus.
gogerald1
2016/09/16 20:18:07
Done.
Dan Beam
2016/09/16 21:46:36
for future reference, I meant not to use curly bra
| |
| 188 chrome.metricsPrivate.recordUserAction('Signin_Impression_FromSettings'); | |
| 189 } | |
| 187 this.syncStatus = syncStatus; | 190 this.syncStatus = syncStatus; |
| 188 }, | 191 }, |
| 189 | 192 |
| 190 <if expr="chromeos"> | 193 <if expr="chromeos"> |
| 191 /** | 194 /** |
| 192 * Handler for when the Easy Unlock enabled status has changed. | 195 * Handler for when the Easy Unlock enabled status has changed. |
| 193 * @private | 196 * @private |
| 194 */ | 197 */ |
| 195 handleEasyUnlockEnabledStatusChanged_: function(easyUnlockEnabled) { | 198 handleEasyUnlockEnabledStatusChanged_: function(easyUnlockEnabled) { |
| 196 this.easyUnlockEnabled_ = easyUnlockEnabled; | 199 this.easyUnlockEnabled_ = easyUnlockEnabled; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 349 | 352 |
| 350 /** | 353 /** |
| 351 * @param {string} iconUrl | 354 * @param {string} iconUrl |
| 352 * @return {string} A CSS imageset for multiple scale factors. | 355 * @return {string} A CSS imageset for multiple scale factors. |
| 353 * @private | 356 * @private |
| 354 */ | 357 */ |
| 355 getIconImageset_: function(iconUrl) { | 358 getIconImageset_: function(iconUrl) { |
| 356 return cr.icon.getImage(iconUrl); | 359 return cr.icon.getImage(iconUrl); |
| 357 }, | 360 }, |
| 358 }); | 361 }); |
| OLD | NEW |