| 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 OptionsPage = options.OptionsPage; | 6 var OptionsPage = options.OptionsPage; |
| 7 var ArrayDataModel = cr.ui.ArrayDataModel; | 7 var ArrayDataModel = cr.ui.ArrayDataModel; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * ManageProfileOverlay class | 10 * ManageProfileOverlay class |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 [this.profileInfo_.filePath, iconURL]); | 494 [this.profileInfo_.filePath, iconURL]); |
| 495 } | 495 } |
| 496 }, | 496 }, |
| 497 | 497 |
| 498 /** | 498 /** |
| 499 * Updates the contents of the "Manage Profile" section of the dialog, | 499 * Updates the contents of the "Manage Profile" section of the dialog, |
| 500 * and shows that section. | 500 * and shows that section. |
| 501 * @private | 501 * @private |
| 502 */ | 502 */ |
| 503 prepareForManageDialog_: function() { | 503 prepareForManageDialog_: function() { |
| 504 chrome.send('refreshGaiaPicture'); |
| 504 var profileInfo = BrowserOptions.getCurrentProfile(); | 505 var profileInfo = BrowserOptions.getCurrentProfile(); |
| 505 ManageProfileOverlay.setProfileInfo(profileInfo, 'manage'); | 506 ManageProfileOverlay.setProfileInfo(profileInfo, 'manage'); |
| 506 $('manage-profile-overlay-create').hidden = true; | 507 $('manage-profile-overlay-create').hidden = true; |
| 507 $('manage-profile-overlay-manage').hidden = false; | 508 $('manage-profile-overlay-manage').hidden = false; |
| 508 $('manage-profile-overlay-delete').hidden = true; | 509 $('manage-profile-overlay-delete').hidden = true; |
| 509 $('manage-profile-overlay-disconnect-managed').hidden = true; | 510 $('manage-profile-overlay-disconnect-managed').hidden = true; |
| 510 $('manage-profile-name').disabled = profileInfo.isManaged; | 511 $('manage-profile-name').disabled = profileInfo.isManaged; |
| 511 this.hideErrorBubble_('manage'); | 512 this.hideErrorBubble_('manage'); |
| 512 }, | 513 }, |
| 513 | 514 |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 return instance[name + '_'].apply(instance, arguments); | 852 return instance[name + '_'].apply(instance, arguments); |
| 852 }; | 853 }; |
| 853 }); | 854 }); |
| 854 | 855 |
| 855 // Export | 856 // Export |
| 856 return { | 857 return { |
| 857 ManageProfileOverlay: ManageProfileOverlay, | 858 ManageProfileOverlay: ManageProfileOverlay, |
| 858 CreateProfileOverlay: CreateProfileOverlay, | 859 CreateProfileOverlay: CreateProfileOverlay, |
| 859 }; | 860 }; |
| 860 }); | 861 }); |
| OLD | NEW |