| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 this.syncBrowserProxy_.openActivityControlsUrl(); | 203 this.syncBrowserProxy_.openActivityControlsUrl(); |
| 204 }, | 204 }, |
| 205 | 205 |
| 206 /** @private */ | 206 /** @private */ |
| 207 onSigninTap_: function() { | 207 onSigninTap_: function() { |
| 208 this.syncBrowserProxy_.startSignIn(); | 208 this.syncBrowserProxy_.startSignIn(); |
| 209 }, | 209 }, |
| 210 | 210 |
| 211 /** @private */ | 211 /** @private */ |
| 212 onDisconnectTap_: function() { | 212 onDisconnectTap_: function() { |
| 213 this.$.disconnectDialog.open(); | 213 this.$.disconnectDialog.showModal(); |
| 214 }, | 214 }, |
| 215 | 215 |
| 216 /** @private */ | 216 /** @private */ |
| 217 onDisconnectCancel_: function() { | 217 onDisconnectCancel_: function() { |
| 218 this.$.disconnectDialog.close(); | 218 this.$.disconnectDialog.close(); |
| 219 }, | 219 }, |
| 220 | 220 |
| 221 /** @private */ | 221 /** @private */ |
| 222 onDisconnectConfirm_: function() { | 222 onDisconnectConfirm_: function() { |
| 223 var deleteProfile = !!this.syncStatus.domain || | 223 var deleteProfile = !!this.syncStatus.domain || |
| (...skipping 94 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 |