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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 | 544 |
545 // Because this dialog isn't useful when refreshing or as part of the | 545 // Because this dialog isn't useful when refreshing or as part of the |
546 // history, don't create a history entry for it when showing. | 546 // history, don't create a history entry for it when showing. |
547 OptionsPage.showPageByName('manageProfile', false); | 547 OptionsPage.showPageByName('manageProfile', false); |
548 }, | 548 }, |
549 | 549 |
550 /** | 550 /** |
551 * Display the "Disconnect Managed Profile" dialog. | 551 * Display the "Disconnect Managed Profile" dialog. |
552 * @private | 552 * @private |
553 */ | 553 */ |
554 showDisconnectManagedProfileDialog_: function() { | 554 showDisconnectManagedProfileDialog_: function(replacements) { |
| 555 loadTimeData.overrideValues(replacements); |
555 $('manage-profile-overlay-create').hidden = true; | 556 $('manage-profile-overlay-create').hidden = true; |
556 $('manage-profile-overlay-manage').hidden = true; | 557 $('manage-profile-overlay-manage').hidden = true; |
557 $('manage-profile-overlay-delete').hidden = true; | 558 $('manage-profile-overlay-delete').hidden = true; |
558 $('disconnect-managed-profile-domain-information').innerHTML = | 559 $('disconnect-managed-profile-domain-information').innerHTML = |
559 loadTimeData.getString('disconnectManagedProfileDomainInformation'); | 560 loadTimeData.getString('disconnectManagedProfileDomainInformation'); |
560 $('disconnect-managed-profile-text').innerHTML = | 561 $('disconnect-managed-profile-text').innerHTML = |
561 loadTimeData.getString('disconnectManagedProfileText'); | 562 loadTimeData.getString('disconnectManagedProfileText'); |
562 $('manage-profile-overlay-disconnect-managed').hidden = false; | 563 $('manage-profile-overlay-disconnect-managed').hidden = false; |
563 | 564 |
564 // Because this dialog isn't useful when refreshing or as part of the | 565 // Because this dialog isn't useful when refreshing or as part of the |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
852 return instance[name + '_'].apply(instance, arguments); | 853 return instance[name + '_'].apply(instance, arguments); |
853 }; | 854 }; |
854 }); | 855 }); |
855 | 856 |
856 // Export | 857 // Export |
857 return { | 858 return { |
858 ManageProfileOverlay: ManageProfileOverlay, | 859 ManageProfileOverlay: ManageProfileOverlay, |
859 CreateProfileOverlay: CreateProfileOverlay, | 860 CreateProfileOverlay: CreateProfileOverlay, |
860 }; | 861 }; |
861 }); | 862 }); |
OLD | NEW |