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

Unified 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 compile error on linux_clang. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/options/managed_user_settings.js
diff --git a/chrome/browser/resources/options/managed_user_settings.js b/chrome/browser/resources/options/managed_user_settings.js
index 4369ee116df8bf8edf934c4074daa07f2eec6837..3300cdb0c3fe3993464176a08e38b32cec7ba940 100644
--- a/chrome/browser/resources/options/managed_user_settings.js
+++ b/chrome/browser/resources/options/managed_user_settings.js
@@ -5,6 +5,7 @@
if (loadTimeData.getBoolean('managedUsersEnabled')) {
cr.define('options', function() {
+ /** @const */ var OptionsPage = options.OptionsPage;
/** @const */ var SettingsDialog = options.SettingsDialog;
//////////////////////////////////////////////////////////////////////////////
@@ -44,7 +45,7 @@ cr.define('options', function() {
};
$('set-passphrase').onclick = function() {
- // TODO(bauerb): Set passphrase
+ OptionsPage.navigateToPage('setPassphrase');
};
},
@@ -55,9 +56,16 @@ cr.define('options', function() {
},
};
+ var ManagedUserSettingsForTesting = {
+ getSetPassphraseButton: function() {
+ return $('set-passphrase');
+ }
+ };
+
// Export
return {
- ManagedUserSettings: ManagedUserSettings
+ ManagedUserSettings: ManagedUserSettings,
+ ManagedUserSettingsForTesting: ManagedUserSettingsForTesting
};
});
« no previous file with comments | « chrome/browser/resources/options/managed_user_set_passphrase.js ('k') | chrome/browser/resources/options/options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698