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

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

Issue 486283002: Create Profile Overlay: Properly update the warning bubble and the "add" button. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/options/manage_profile_overlay.js
diff --git a/chrome/browser/resources/options/manage_profile_overlay.js b/chrome/browser/resources/options/manage_profile_overlay.js
index 6befe082315171feda5299a10c153c64947dee53..b1d328f9d363222590b624a131baf66ec4f902e1 100644
--- a/chrome/browser/resources/options/manage_profile_overlay.js
+++ b/chrome/browser/resources/options/manage_profile_overlay.js
@@ -333,13 +333,11 @@ cr.define('options', function() {
* @private
*/
updateCreateOrImport_: function(mode) {
+ this.updateOkButton_(mode);
// In 'create' mode, check for existing supervised users with the same
// name.
- if (mode == 'create') {
+ if (mode == 'create')
this.requestExistingSupervisedUsers_();
- } else {
- this.updateOkButton_(mode);
- }
},
/**
@@ -407,7 +405,6 @@ cr.define('options', function() {
return;
}
}
- this.updateOkButton_('create');
},
/**
« 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