From ae78fbe6c2e2b0d37d8a12a226ac488b008ad34f Mon Sep 17 00:00:00 2001 From: "treib@chromium.org" Date: Tue, 19 Aug 2014 17:52:55 +0000 Subject: [PATCH] Create Profile Overlay: Properly update the warning bubble and the "add" button. This was broken in r289576. Fix: In "create" mode, updateOkButton_ needs to be called also when create-profile-supervised is not checked. BUG=405050 Review URL: https://codereview.chromium.org/486283002 Cr-Commit-Position: refs/heads/master@{#290608} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290608 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/resources/options/manage_profile_overlay.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/chrome/browser/resources/options/manage_profile_overlay.js b/chrome/browser/resources/options/manage_profile_overlay.js index 6befe0823151..b1d328f9d363 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'); }, /** -- 2.11.4.GIT