| 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 if (loadTimeData.getBoolean('managedUsersEnabled')) { | 5 if (loadTimeData.getBoolean('managedUsersEnabled')) { |
| 6 | 6 |
| 7 cr.define('options', function() { | 7 cr.define('options', function() { |
| 8 /** @const */ var OptionsPage = options.OptionsPage; | 8 /** @const */ var OptionsPage = options.OptionsPage; |
| 9 | 9 |
| 10 ////////////////////////////////////////////////////////////////////////////// | 10 ////////////////////////////////////////////////////////////////////////////// |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 $('get-content-packs-button').onclick = function(event) { | 40 $('get-content-packs-button').onclick = function(event) { |
| 41 window.open(loadTimeData.getString('getContentPacksURL')); | 41 window.open(loadTimeData.getString('getContentPacksURL')); |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 $('managed-user-settings-confirm').onclick = function() { | 44 $('managed-user-settings-confirm').onclick = function() { |
| 45 chrome.send('confirmManagedUserSettings'); | 45 chrome.send('confirmManagedUserSettings'); |
| 46 OptionsPage.closeOverlay(); | 46 OptionsPage.closeOverlay(); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 $('set-passphrase').onclick = function() { | 49 $('set-passphrase').onclick = function() { |
| 50 // TODO(bauerb): Set passphrase | 50 OptionsPage.navigateToPage('setPassphrase'); |
| 51 }; | 51 }; |
| 52 }, | 52 }, |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 var ManagedUserSettingsForTesting = { |
| 56 getSetPassphraseButton: function() { |
| 57 return $('set-passphrase'); |
| 58 } |
| 59 }; |
| 60 |
| 55 // Export | 61 // Export |
| 56 return { | 62 return { |
| 57 ManagedUserSettings: ManagedUserSettings | 63 ManagedUserSettings: ManagedUserSettings, |
| 64 ManagedUserSettingsForTesting: ManagedUserSettingsForTesting |
| 58 }; | 65 }; |
| 59 }); | 66 }); |
| 60 | 67 |
| 61 } | 68 } |
| OLD | NEW |