Commit 7c578773 authored by dbeam@chromium.org's avatar dbeam@chromium.org

[options2] Fix issue when deleting a user and pressing back.

R=estade@chromium.org
BUG=140224
TEST=Add user, delete user, press back button (manage profile should show).


Review URL: https://chromiumcodereview.appspot.com/10834142

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150381 0039d316-1c4b-4281-b951-d872f2087c98
parent 3c764068
......@@ -85,9 +85,7 @@ cr.define('options', function() {
didShowPage: function() {
chrome.send('requestDefaultProfileIcons');
// 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)
if (window.location.pathname == '/manageProfile')
ManageProfileOverlay.getInstance().prepareForManageDialog_();
$('manage-profile-name').focus();
......@@ -290,7 +288,7 @@ cr.define('options', function() {
loadTimeData.getStringF('createProfileInstructions');
ManageProfileOverlay.getInstance().hideErrorBubble_('create');
OptionsPage.navigateToPage('manageProfile');
OptionsPage.showPageByName('manageProfile', false);
},
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment