Index: chrome/browser/resources/options2/manage_profile_overlay.js |
=================================================================== |
--- chrome/browser/resources/options2/manage_profile_overlay.js (revision 150393) |
+++ chrome/browser/resources/options2/manage_profile_overlay.js (working copy) |
@@ -85,7 +85,9 @@ |
didShowPage: function() { |
chrome.send('requestDefaultProfileIcons'); |
- if (window.location.pathname == '/manageProfile') |
+ // Use the hash to specify the profile index. Note: the actual index |
+ // is ignored. Only the current profile may be edited. |
+ if (window.location.hash.length > 1) |
ManageProfileOverlay.getInstance().prepareForManageDialog_(); |
$('manage-profile-name').focus(); |
@@ -288,7 +290,7 @@ |
loadTimeData.getStringF('createProfileInstructions'); |
ManageProfileOverlay.getInstance().hideErrorBubble_('create'); |
- OptionsPage.showPageByName('manageProfile', false); |
+ OptionsPage.navigateToPage('manageProfile'); |
}, |
}; |