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

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

Issue 12208068: Add a set passphrase dialog for managed user accounts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix year in new files. Created 7 years, 10 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 29 matching lines...) Expand all
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698