| 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 30 matching lines...) Expand all Loading... |
| 41 /** | 41 /** |
| 42 * The current profile name. | 42 * The current profile name. |
| 43 */ | 43 */ |
| 44 profileName_: String, | 44 profileName_: String, |
| 45 | 45 |
| 46 /** | 46 /** |
| 47 * True if the current profile manages supervised users. | 47 * True if the current profile manages supervised users. |
| 48 */ | 48 */ |
| 49 profileManagesSupervisedUsers_: Boolean, | 49 profileManagesSupervisedUsers_: Boolean, |
| 50 | 50 |
| 51 <if expr="not chromeos"> |
| 52 /** @private */ |
| 53 showImportDataDialog_: { |
| 54 type: Boolean, |
| 55 value: false, |
| 56 }, |
| 57 </if> |
| 58 |
| 51 /** @private {!settings.SyncBrowserProxy} */ | 59 /** @private {!settings.SyncBrowserProxy} */ |
| 52 syncBrowserProxy_: { | 60 syncBrowserProxy_: { |
| 53 type: Object, | 61 type: Object, |
| 54 value: function() { | 62 value: function() { |
| 55 return settings.SyncBrowserProxyImpl.getInstance(); | 63 return settings.SyncBrowserProxyImpl.getInstance(); |
| 56 }, | 64 }, |
| 57 }, | 65 }, |
| 58 | 66 |
| 59 <if expr="chromeos"> | 67 <if expr="chromeos"> |
| 60 /** | 68 /** |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 /** | 330 /** |
| 323 * @private | 331 * @private |
| 324 * @param {string} domain | 332 * @param {string} domain |
| 325 * @return {string} | 333 * @return {string} |
| 326 */ | 334 */ |
| 327 getDomainHtml_: function(domain) { | 335 getDomainHtml_: function(domain) { |
| 328 var innerSpan = | 336 var innerSpan = |
| 329 '<span id="managed-by-domain-name">' + domain + '</span>'; | 337 '<span id="managed-by-domain-name">' + domain + '</span>'; |
| 330 return loadTimeData.getStringF('domainManagedProfile', innerSpan); | 338 return loadTimeData.getStringF('domainManagedProfile', innerSpan); |
| 331 }, | 339 }, |
| 340 |
| 341 /** @private */ |
| 342 onImportDataTap_: function() { |
| 343 this.showImportDataDialog_ = true; |
| 344 }, |
| 345 |
| 346 /** @private */ |
| 347 onImportDataDialogClosed_: function() { |
| 348 this.showImportDataDialog_ = false; |
| 349 }, |
| 332 </if> | 350 </if> |
| 333 | 351 |
| 334 /** | 352 /** |
| 335 * @private | 353 * @private |
| 336 * @param {string} domain | 354 * @param {string} domain |
| 337 * @return {string} | 355 * @return {string} |
| 338 */ | 356 */ |
| 339 getDisconnectExplanationHtml_: function(domain) { | 357 getDisconnectExplanationHtml_: function(domain) { |
| 340 <if expr="not chromeos"> | 358 <if expr="not chromeos"> |
| 341 if (domain) { | 359 if (domain) { |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 | 428 |
| 411 /** | 429 /** |
| 412 * @param {!settings.SyncStatus} syncStatus | 430 * @param {!settings.SyncStatus} syncStatus |
| 413 * @return {boolean} Whether to show the "Sign in to Chrome" button. | 431 * @return {boolean} Whether to show the "Sign in to Chrome" button. |
| 414 * @private | 432 * @private |
| 415 */ | 433 */ |
| 416 showSignin_: function(syncStatus) { | 434 showSignin_: function(syncStatus) { |
| 417 return !!syncStatus.signinAllowed && !syncStatus.signedIn; | 435 return !!syncStatus.signinAllowed && !syncStatus.signedIn; |
| 418 }, | 436 }, |
| 419 }); | 437 }); |
| OLD | NEW |