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

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

Issue 12033021: Add UMA metrics and histograms for locally managed users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // TODO(bauerb): Set passphrase
50 }; 50 };
51 }, 51 },
52 }; 52 };
53 53
54 /** @override */
55 handleConfirm: function() {
56 SettingsDialog.prototype.handleConfirm.call(this);
57 chrome.send('confirmManagedUserSettings');
58 };
59
60 /** @override */
61 handleCancel: function() {
62 SettingsDialog.prototype.handleCancel.call(this);
63 chrome.send('cancelManagedUserSettings');
64 };
65
54 // Export 66 // Export
55 return { 67 return {
56 ManagedUserSettings: ManagedUserSettings 68 ManagedUserSettings: ManagedUserSettings
57 }; 69 };
58 }); 70 });
59 71
60 } 72 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/manage_profile_overlay.js ('k') | chrome/browser/ui/browser_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698