Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(688)

Side by Side Diff: chrome/browser/resources/options/managed_user_settings.js

Issue 11783008: Add a lock to the managed user settings page and require authentication for unlocking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added a randomly generated salt, small fix in key generation Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698