| 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 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 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 OptionsPage.closeOverlay(); | 45 OptionsPage.closeOverlay(); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 $('set-passphrase').onclick = function() { | 48 $('set-passphrase').onclick = function() { |
| 49 // TODO(bauerb): Set passphrase | 49 OptionsPage.navigateToPage('setPassphrase'); |
| 50 }; | 50 }; |
| 51 }, | 51 }, |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 // Export | 54 // Export |
| 55 return { | 55 return { |
| 56 ManagedUserSettings: ManagedUserSettings | 56 ManagedUserSettings: ManagedUserSettings |
| 57 }; | 57 }; |
| 58 }); | 58 }); |
| 59 | 59 |
| 60 } | 60 } |
| OLD | NEW |