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

Unified Diff: chrome/browser/resources/options/manage_profile_overlay.js

Issue 8135009: [Multi profile] Clicking "Customize User" should show the "Manage User" dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 9 years, 2 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/manage_profile_overlay.js
diff --git a/chrome/browser/resources/options/manage_profile_overlay.js b/chrome/browser/resources/options/manage_profile_overlay.js
index 16bf5c8ca250460eae2552af173756f0d39c48dc..5a7379e0a6e3c212151ec88b09ff3fddccd3894d 100644
--- a/chrome/browser/resources/options/manage_profile_overlay.js
+++ b/chrome/browser/resources/options/manage_profile_overlay.js
@@ -61,11 +61,17 @@ cr.define('options', function() {
/** @inheritDoc */
didShowPage: function() {
- var grid = $('manage-profile-icon-grid');
- // Recalculate the measured item size.
- grid.measured_ = null;
- grid.columns = 0;
- grid.redraw();
+ chrome.send('requestDefaultProfileIcons');
+
+ // Use the hash to specify the profile index.
+ var hash = location.hash;
+ if (hash) {
+ $('manage-profile-overlay-manage').hidden = false;
+ $('manage-profile-overlay-delete').hidden = true;
+ ManageProfileOverlay.getInstance().hideErrorBubble_();
+
+ chrome.send('requestProfileInfo', [parseInt(hash.slice(1), 10)]);
+ }
$('manage-profile-name').focus();
},
@@ -95,6 +101,12 @@ cr.define('options', function() {
*/
receiveDefaultProfileIcons_: function(iconURLs) {
$('manage-profile-icon-grid').dataModel = new ArrayDataModel(iconURLs);
+
+ var grid = $('manage-profile-icon-grid');
+ // Recalculate the measured item size.
+ grid.measured_ = null;
+ grid.columns = 0;
+ grid.redraw();
},
/**
« no previous file with comments | « chrome/browser/profiles/avatar_menu_model.cc ('k') | chrome/browser/ui/webui/options/manage_profile_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698