Index: chrome/browser/resources/options/personal_options_profile_list.js |
diff --git a/chrome/browser/resources/options/personal_options_profile_list.js b/chrome/browser/resources/options/personal_options_profile_list.js |
index 755150c44caaff6788b5a092ba4eb781adaad99e..64436a3e235da7741d4cc534b3a6d04e2460f9ba 100644 |
--- a/chrome/browser/resources/options/personal_options_profile_list.js |
+++ b/chrome/browser/resources/options/personal_options_profile_list.js |
@@ -91,7 +91,10 @@ cr.define('options.personal_options', function() { |
/** @inheritDoc */ |
activateItemAtIndex: function(index) { |
- ManageProfileOverlay.showManageDialog(this.dataModel.item(index)); |
+ // Don't allow the user to edit a profile that is not current. |
+ var profileInfo = this.dataModel.item(index); |
+ if (profileInfo.isCurrentProfile) |
+ ManageProfileOverlay.showManageDialog(profileInfo); |
}, |
}; |