| 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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 * @param {Object} profileInfo The profile object of the profile to delete. | 560 * @param {Object} profileInfo The profile object of the profile to delete. |
| 561 * @private | 561 * @private |
| 562 */ | 562 */ |
| 563 showDeleteDialog_: function(profileInfo) { | 563 showDeleteDialog_: function(profileInfo) { |
| 564 ManageProfileOverlay.setProfileInfo(profileInfo, 'manage'); | 564 ManageProfileOverlay.setProfileInfo(profileInfo, 'manage'); |
| 565 $('manage-profile-overlay-create').hidden = true; | 565 $('manage-profile-overlay-create').hidden = true; |
| 566 $('manage-profile-overlay-manage').hidden = true; | 566 $('manage-profile-overlay-manage').hidden = true; |
| 567 $('manage-profile-overlay-delete').hidden = false; | 567 $('manage-profile-overlay-delete').hidden = false; |
| 568 $('manage-profile-overlay-disconnect-managed').hidden = true; | 568 $('manage-profile-overlay-disconnect-managed').hidden = true; |
| 569 $('delete-profile-icon').style.content = | 569 $('delete-profile-icon').style.content = |
| 570 getProfileAvatarIcon(profileInfo.iconURL); | 570 cr.icon.getProfileAvatarIcon(profileInfo.iconURL); |
| 571 $('delete-profile-text').textContent = | 571 $('delete-profile-text').textContent = |
| 572 loadTimeData.getStringF('deleteProfileMessage', | 572 loadTimeData.getStringF('deleteProfileMessage', |
| 573 elide(profileInfo.name, /* maxLength */ 50)); | 573 elide(profileInfo.name, /* maxLength */ 50)); |
| 574 $('delete-supervised-profile-addendum').hidden = | 574 $('delete-supervised-profile-addendum').hidden = |
| 575 !profileInfo.isSupervised || profileInfo.isChild; | 575 !profileInfo.isSupervised || profileInfo.isChild; |
| 576 | 576 |
| 577 // Because this dialog isn't useful when refreshing or as part of the | 577 // Because this dialog isn't useful when refreshing or as part of the |
| 578 // history, don't create a history entry for it when showing. | 578 // history, don't create a history entry for it when showing. |
| 579 PageManager.showPageByName('manageProfile', false); | 579 PageManager.showPageByName('manageProfile', false); |
| 580 chrome.send('logDeleteUserDialogShown'); | 580 chrome.send('logDeleteUserDialogShown'); |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 'updateSignedInStatus', | 879 'updateSignedInStatus', |
| 880 'updateSupervisedUsersAllowed', | 880 'updateSupervisedUsersAllowed', |
| 881 ]); | 881 ]); |
| 882 | 882 |
| 883 // Export | 883 // Export |
| 884 return { | 884 return { |
| 885 ManageProfileOverlay: ManageProfileOverlay, | 885 ManageProfileOverlay: ManageProfileOverlay, |
| 886 CreateProfileOverlay: CreateProfileOverlay, | 886 CreateProfileOverlay: CreateProfileOverlay, |
| 887 }; | 887 }; |
| 888 }); | 888 }); |
| OLD | NEW |