Commit b6c832d9 authored by kaiwang@chromium.org's avatar kaiwang@chromium.org

Revert 150381 - [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

TBR=dbeam@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10829223

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150394 0039d316-1c4b-4281-b951-d872f2087c98
parent 2174b41b
......@@ -85,7 +85,9 @@ cr.define('options', function() {
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 @@ cr.define('options', function() {
loadTimeData.getStringF('createProfileInstructions');
ManageProfileOverlay.getInstance().hideErrorBubble_('create');
OptionsPage.showPageByName('manageProfile', false);
OptionsPage.navigateToPage('manageProfile');
},
};
......
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