Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(808)

Unified Diff: chrome/browser/resources/options2/manage_profile_overlay.js

Issue 10829223: Revert 150381 - [options2] Fix issue when deleting a user and pressing back. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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');
},
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698