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

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

Issue 1016113002: Instrument "Remove this person" in user manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ChromeOS Supervised User creation/deletion browser tests. Created 5 years, 9 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
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 cr.define('options', function() { 5 cr.define('options', function() {
6 var Page = cr.ui.pageManager.Page; 6 var Page = cr.ui.pageManager.Page;
7 var PageManager = cr.ui.pageManager.PageManager; 7 var PageManager = cr.ui.pageManager.PageManager;
8 var ArrayDataModel = cr.ui.ArrayDataModel; 8 var ArrayDataModel = cr.ui.ArrayDataModel;
9 9
10 /** 10 /**
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 getProfileAvatarIcon(profileInfo.iconURL); 566 getProfileAvatarIcon(profileInfo.iconURL);
567 $('delete-profile-text').textContent = 567 $('delete-profile-text').textContent =
568 loadTimeData.getStringF('deleteProfileMessage', 568 loadTimeData.getStringF('deleteProfileMessage',
569 elide(profileInfo.name, /* maxLength */ 50)); 569 elide(profileInfo.name, /* maxLength */ 50));
570 $('delete-supervised-profile-addendum').hidden = 570 $('delete-supervised-profile-addendum').hidden =
571 !profileInfo.isSupervised || profileInfo.isChild; 571 !profileInfo.isSupervised || profileInfo.isChild;
572 572
573 // Because this dialog isn't useful when refreshing or as part of the 573 // Because this dialog isn't useful when refreshing or as part of the
574 // history, don't create a history entry for it when showing. 574 // history, don't create a history entry for it when showing.
575 PageManager.showPageByName('manageProfile', false); 575 PageManager.showPageByName('manageProfile', false);
576 chrome.send('logDeleteUserDialogShown');
576 }, 577 },
577 578
578 /** 579 /**
579 * Display the "Disconnect Managed Profile" dialog. 580 * Display the "Disconnect Managed Profile" dialog.
580 * @private 581 * @private
581 */ 582 */
582 showDisconnectManagedProfileDialog_: function(replacements) { 583 showDisconnectManagedProfileDialog_: function(replacements) {
583 loadTimeData.overrideValues(replacements); 584 loadTimeData.overrideValues(replacements);
584 $('manage-profile-overlay-create').hidden = true; 585 $('manage-profile-overlay-create').hidden = true;
585 $('manage-profile-overlay-manage').hidden = true; 586 $('manage-profile-overlay-manage').hidden = true;
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 'updateSignedInStatus', 875 'updateSignedInStatus',
875 'updateSupervisedUsersAllowed', 876 'updateSupervisedUsersAllowed',
876 ]); 877 ]);
877 878
878 // Export 879 // Export
879 return { 880 return {
880 ManageProfileOverlay: ManageProfileOverlay, 881 ManageProfileOverlay: ManageProfileOverlay,
881 CreateProfileOverlay: CreateProfileOverlay, 882 CreateProfileOverlay: CreateProfileOverlay,
882 }; 883 };
883 }); 884 });
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_metrics.cc ('k') | chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698