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

Unified Diff: chrome/browser/resources/options/personal_options_profile_list.js

Issue 8549013: [Multi Profile] In multi-profile list, don't allow double-clicking to edit a (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/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);
},
};
« 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