OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 cr.define('options', function() { | 5 cr.define('options', function() { |
6 var Page = cr.ui.pageManager.Page; | 6 var Page = cr.ui.pageManager.Page; |
7 var PageManager = cr.ui.pageManager.PageManager; | 7 var PageManager = cr.ui.pageManager.PageManager; |
8 var ArrayDataModel = cr.ui.ArrayDataModel; | 8 var ArrayDataModel = cr.ui.ArrayDataModel; |
9 | 9 |
10 /** | 10 /** |
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
566 getProfileAvatarIcon(profileInfo.iconURL); | 566 getProfileAvatarIcon(profileInfo.iconURL); |
567 $('delete-profile-text').textContent = | 567 $('delete-profile-text').textContent = |
568 loadTimeData.getStringF('deleteProfileMessage', | 568 loadTimeData.getStringF('deleteProfileMessage', |
569 elide(profileInfo.name, /* maxLength */ 50)); | 569 elide(profileInfo.name, /* maxLength */ 50)); |
570 $('delete-supervised-profile-addendum').hidden = | 570 $('delete-supervised-profile-addendum').hidden = |
571 !profileInfo.isSupervised || profileInfo.isChild; | 571 !profileInfo.isSupervised || profileInfo.isChild; |
572 | 572 |
573 // Because this dialog isn't useful when refreshing or as part of the | 573 // Because this dialog isn't useful when refreshing or as part of the |
574 // history, don't create a history entry for it when showing. | 574 // history, don't create a history entry for it when showing. |
575 PageManager.showPageByName('manageProfile', false); | 575 PageManager.showPageByName('manageProfile', false); |
576 chrome.send('showDeleteUserDialog'); | |
Dan Beam
2015/03/18 22:36:33
this looks very much like you're saying imperative
anthonyvd
2015/03/19 15:22:35
Done.
| |
576 }, | 577 }, |
577 | 578 |
578 /** | 579 /** |
579 * Display the "Disconnect Managed Profile" dialog. | 580 * Display the "Disconnect Managed Profile" dialog. |
580 * @private | 581 * @private |
581 */ | 582 */ |
582 showDisconnectManagedProfileDialog_: function(replacements) { | 583 showDisconnectManagedProfileDialog_: function(replacements) { |
583 loadTimeData.overrideValues(replacements); | 584 loadTimeData.overrideValues(replacements); |
584 $('manage-profile-overlay-create').hidden = true; | 585 $('manage-profile-overlay-create').hidden = true; |
585 $('manage-profile-overlay-manage').hidden = true; | 586 $('manage-profile-overlay-manage').hidden = true; |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
874 'updateSignedInStatus', | 875 'updateSignedInStatus', |
875 'updateSupervisedUsersAllowed', | 876 'updateSupervisedUsersAllowed', |
876 ]); | 877 ]); |
877 | 878 |
878 // Export | 879 // Export |
879 return { | 880 return { |
880 ManageProfileOverlay: ManageProfileOverlay, | 881 ManageProfileOverlay: ManageProfileOverlay, |
881 CreateProfileOverlay: CreateProfileOverlay, | 882 CreateProfileOverlay: CreateProfileOverlay, |
882 }; | 883 }; |
883 }); | 884 }); |
OLD | NEW |