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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 /** @private */ | 336 /** @private */ |
337 onManageOtherPeople_: function() { | 337 onManageOtherPeople_: function() { |
338 // <if expr="not chromeos"> | 338 // <if expr="not chromeos"> |
339 this.syncBrowserProxy_.manageOtherPeople(); | 339 this.syncBrowserProxy_.manageOtherPeople(); |
340 // </if> | 340 // </if> |
341 // <if expr="chromeos"> | 341 // <if expr="chromeos"> |
342 settings.navigateTo(settings.Route.ACCOUNTS); | 342 settings.navigateTo(settings.Route.ACCOUNTS); |
343 // </if> | 343 // </if> |
344 }, | 344 }, |
345 | 345 |
346 /** @private */ | |
347 onManageSupervisedUsers_: function() { | |
348 window.open(loadTimeData.getString('supervisedUsersUrl')); | |
349 }, | |
350 | |
351 // <if expr="not chromeos"> | 346 // <if expr="not chromeos"> |
352 /** | 347 /** |
353 * @private | 348 * @private |
354 * @param {string} domain | 349 * @param {string} domain |
355 * @return {string} | 350 * @return {string} |
356 */ | 351 */ |
357 getDomainHtml_: function(domain) { | 352 getDomainHtml_: function(domain) { |
358 var innerSpan = | 353 var innerSpan = |
359 '<span id="managed-by-domain-name">' + domain + '</span>'; | 354 '<span id="managed-by-domain-name">' + domain + '</span>'; |
360 return loadTimeData.getStringF('domainManagedProfile', innerSpan); | 355 return loadTimeData.getStringF('domainManagedProfile', innerSpan); |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 | 446 |
452 /** | 447 /** |
453 * @param {!settings.SyncStatus} syncStatus | 448 * @param {!settings.SyncStatus} syncStatus |
454 * @return {boolean} Whether to show the "Sign in to Chrome" button. | 449 * @return {boolean} Whether to show the "Sign in to Chrome" button. |
455 * @private | 450 * @private |
456 */ | 451 */ |
457 showSignin_: function(syncStatus) { | 452 showSignin_: function(syncStatus) { |
458 return !!syncStatus.signinAllowed && !syncStatus.signedIn; | 453 return !!syncStatus.signinAllowed && !syncStatus.signedIn; |
459 }, | 454 }, |
460 }); | 455 }); |
OLD | NEW |