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

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

Issue 100073004: Fix issues with supervised user recreation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing imageset statements. Created 7 years 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 cr.define('options', function() { 5 cr.define('options', function() {
6 var OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 var ArrayDataModel = cr.ui.ArrayDataModel; 7 var ArrayDataModel = cr.ui.ArrayDataModel;
8 8
9 /** 9 /**
10 * ManageProfileOverlay class 10 * ManageProfileOverlay class
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 showDeleteDialog_: function(profileInfo) { 408 showDeleteDialog_: function(profileInfo) {
409 if (BrowserOptions.getCurrentProfile().isManaged) 409 if (BrowserOptions.getCurrentProfile().isManaged)
410 return; 410 return;
411 411
412 ManageProfileOverlay.setProfileInfo(profileInfo, 'manage'); 412 ManageProfileOverlay.setProfileInfo(profileInfo, 'manage');
413 $('manage-profile-overlay-create').hidden = true; 413 $('manage-profile-overlay-create').hidden = true;
414 $('manage-profile-overlay-manage').hidden = true; 414 $('manage-profile-overlay-manage').hidden = true;
415 $('manage-profile-overlay-delete').hidden = false; 415 $('manage-profile-overlay-delete').hidden = false;
416 $('delete-profile-message').textContent = 416 $('delete-profile-message').textContent =
417 loadTimeData.getStringF('deleteProfileMessage', profileInfo.name); 417 loadTimeData.getStringF('deleteProfileMessage', profileInfo.name);
418 $('delete-profile-message').style.backgroundImage = 'url("' + 418 $('delete-profile-message').style.backgroundImage =
419 profileInfo.iconURL + '")'; 419 imageset(profileInfo.iconURL + '@scalefactorx');
420 $('delete-managed-profile-addendum').hidden = !profileInfo.isManaged; 420 $('delete-managed-profile-addendum').hidden = !profileInfo.isManaged;
421 421
422 // Because this dialog isn't useful when refreshing or as part of the 422 // Because this dialog isn't useful when refreshing or as part of the
423 // history, don't create a history entry for it when showing. 423 // history, don't create a history entry for it when showing.
424 OptionsPage.showPageByName('manageProfile', false); 424 OptionsPage.showPageByName('manageProfile', false);
425 }, 425 },
426 426
427 /** 427 /**
428 * Display the "Create Profile" dialog. 428 * Display the "Create Profile" dialog.
429 * @private 429 * @private
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 return instance[name + '_'].apply(instance, arguments); 699 return instance[name + '_'].apply(instance, arguments);
700 }; 700 };
701 }); 701 });
702 702
703 // Export 703 // Export
704 return { 704 return {
705 ManageProfileOverlay: ManageProfileOverlay, 705 ManageProfileOverlay: ManageProfileOverlay,
706 CreateProfileOverlay: CreateProfileOverlay, 706 CreateProfileOverlay: CreateProfileOverlay,
707 }; 707 };
708 }); 708 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698