Commit 82d9d3ac 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@150476 0039d316-1c4b-4281-b951-d872f2087c98
parent 6aded129
......@@ -85,9 +85,8 @@ 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)
// Just ignore the manage profile dialog on Chrome OS, they use /accounts.
if (!cr.isChromeOS && window.location.pathname == '/manageProfile')
ManageProfileOverlay.getInstance().prepareForManageDialog_();
$('manage-profile-name').focus();
......@@ -290,7 +289,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