| 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();
|
| },
|
|
|
| /**
|
|
|