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

Issue 8339014: Options: Disable the delete button when no profile is selected in personal settings. (Closed)

Created:
9 years, 2 months ago by NaveenBobbili (Motorola)
Modified:
9 years, 1 month ago
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

Options: Disable the delete button when no profile is selected in personal settings. According to this change, Delete button will be disabled when there are multiple profiles and none of the profiles is selected. If profile list is hidden i.e if there is only one default profile then Delete Button is also disabled. BUG=100625 TEST='Delete...' button should be disabled when no profile is selected in chrome://settings/personal page. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107894

Patch Set 1 #

Patch Set 2 : Submitting patchset to disable delete button when there are no items to select. #

Total comments: 5

Patch Set 3 : Uploaded patch based on review comments. Used helper function to enable/disable buttons. #

Total comments: 4

Patch Set 4 : Corrected logic as per review comments #

Total comments: 6

Patch Set 5 : Fixed review comments by binji@chromium.org #

Patch Set 6 : Fixed review comments by binji@chromium.org #

Total comments: 2

Patch Set 7 : Fixed review comments. #

Patch Set 8 : Fixed merge conflicts and uploaded patchset #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -8 lines) Patch
M chrome/browser/resources/options/personal_options.js View 1 2 3 4 5 6 7 3 chunks +16 lines, -8 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
NaveenBobbili (Motorola)
Please review this patch.
9 years, 2 months ago (2011-10-18 11:49:18 UTC) #1
Evan Stade
+Miranda LGTM with comment addressed http://codereview.chromium.org/8339014/diff/3/chrome/browser/resources/options/personal_options.js File chrome/browser/resources/options/personal_options.js (right): http://codereview.chromium.org/8339014/diff/3/chrome/browser/resources/options/personal_options.js#newcode66 chrome/browser/resources/options/personal_options.js:66: !hasSingleProfile : !hasSelection; hasSingleProfile ...
9 years, 2 months ago (2011-10-18 16:18:57 UTC) #2
Miranda Callahan
This seems like the opposite of the correct change, but please correct me if I'm ...
9 years, 2 months ago (2011-10-18 16:40:34 UTC) #3
Miranda Callahan
On 2011/10/18 16:40:34, Miranda Callahan wrote: > This seems like the opposite of the correct ...
9 years, 2 months ago (2011-10-18 16:48:28 UTC) #4
binji
http://codereview.chromium.org/8339014/diff/3/chrome/browser/resources/options/personal_options.js File chrome/browser/resources/options/personal_options.js (right): http://codereview.chromium.org/8339014/diff/3/chrome/browser/resources/options/personal_options.js#newcode66 chrome/browser/resources/options/personal_options.js:66: !hasSingleProfile : !hasSelection; I agree w/ Miranda: !hasSelection || ...
9 years, 2 months ago (2011-10-18 17:57:06 UTC) #5
Evan Stade
ok, but the bug still exists. When I first load the page there is no ...
9 years, 2 months ago (2011-10-18 18:25:53 UTC) #6
binji
That should be fixed by the second change. When setProfileViewSingle_ is called with numProfiles > ...
9 years, 2 months ago (2011-10-18 18:40:42 UTC) #7
Evan Stade
On 2011/10/18 18:40:42, binji wrote: > That should be fixed by the second change. When ...
9 years, 2 months ago (2011-10-18 20:42:52 UTC) #8
NaveenBobbili (Motorola)
Uploaded patchset based on review comments. I used helper function to enable/disable edit and delete ...
9 years, 2 months ago (2011-10-19 06:51:17 UTC) #9
Miranda Callahan
Please look at the comments carefully -- this logic is not correct. I know this ...
9 years, 2 months ago (2011-10-19 12:42:23 UTC) #10
NaveenBobbili (Motorola)
Corrected the logic as per requirement. Please review. http://codereview.chromium.org/8339014/diff/4002/chrome/browser/resources/options/personal_options.js File chrome/browser/resources/options/personal_options.js (right): http://codereview.chromium.org/8339014/diff/4002/chrome/browser/resources/options/personal_options.js#newcode66 chrome/browser/resources/options/personal_options.js:66: false ...
9 years, 2 months ago (2011-10-19 13:01:08 UTC) #11
Miranda Callahan
Thanks, LGTM. Please wait for Evan to review the Javascript before committing. On 2011/10/19 13:01:08, ...
9 years, 2 months ago (2011-10-19 13:07:53 UTC) #12
NaveenBobbili (Motorola)
On 2011/10/19 13:07:53, Miranda Callahan wrote: > Thanks, LGTM. Please wait for Evan to review ...
9 years, 2 months ago (2011-10-19 13:10:16 UTC) #13
Miranda Callahan
Changed CL description to reflect current state of the patch. On 2011/10/19 13:10:16, NaveenBobbili (Motorola) ...
9 years, 2 months ago (2011-10-19 14:14:39 UTC) #14
binji
http://codereview.chromium.org/8339014/diff/7003/chrome/browser/resources/options/personal_options.js File chrome/browser/resources/options/personal_options.js (right): http://codereview.chromium.org/8339014/diff/7003/chrome/browser/resources/options/personal_options.js#newcode255 chrome/browser/resources/options/personal_options.js:255: this.setEditButtonEnabled_(hasSelection); Create a helper function consisting of these four ...
9 years, 2 months ago (2011-10-19 22:07:11 UTC) #15
NaveenBobbili (Motorola)
Fixed review comments. Please review. http://codereview.chromium.org/8339014/diff/7003/chrome/browser/resources/options/personal_options.js File chrome/browser/resources/options/personal_options.js (right): http://codereview.chromium.org/8339014/diff/7003/chrome/browser/resources/options/personal_options.js#newcode255 chrome/browser/resources/options/personal_options.js:255: this.setEditButtonEnabled_(hasSelection); On 2011/10/19 22:07:11, ...
9 years, 2 months ago (2011-10-20 05:46:14 UTC) #16
binji
LGTM, thanks!
9 years, 2 months ago (2011-10-20 22:49:33 UTC) #17
Evan Stade
http://codereview.chromium.org/8339014/diff/4005/chrome/browser/resources/options/personal_options.js File chrome/browser/resources/options/personal_options.js (right): http://codereview.chromium.org/8339014/diff/4005/chrome/browser/resources/options/personal_options.js#newcode60 chrome/browser/resources/options/personal_options.js:60: profilesList.onchange = function(event) { this should be profilesList.onchange = ...
9 years, 2 months ago (2011-10-21 01:13:07 UTC) #18
NaveenBobbili (Motorola)
Fixed review comments. Please review. http://codereview.chromium.org/8339014/diff/4005/chrome/browser/resources/options/personal_options.js File chrome/browser/resources/options/personal_options.js (right): http://codereview.chromium.org/8339014/diff/4005/chrome/browser/resources/options/personal_options.js#newcode60 chrome/browser/resources/options/personal_options.js:60: profilesList.onchange = function(event) { ...
9 years, 2 months ago (2011-10-22 17:34:35 UTC) #19
sail
Looks like this change will also fix bug 100609. This should be merged to M16 ...
9 years, 2 months ago (2011-10-24 20:06:39 UTC) #20
NaveenBobbili (Motorola)
On 2011/10/24 20:06:39, sail wrote: > Looks like this change will also fix bug 100609. ...
9 years, 2 months ago (2011-10-25 06:38:10 UTC) #21
NaveenBobbili (Motorola)
On 2011/10/25 06:38:10, NaveenBobbili (Motorola) wrote: > On 2011/10/24 20:06:39, sail wrote: > > Looks ...
9 years, 2 months ago (2011-10-25 06:38:25 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qghc36@motorola.com/8339014/15001
9 years, 1 month ago (2011-10-27 14:58:19 UTC) #23
commit-bot: I haz the power
Can't apply patch for file chrome/browser/resources/options/personal_options.js. While running patch -p1 --forward --force; patching file chrome/browser/resources/options/personal_options.js ...
9 years, 1 month ago (2011-10-27 14:58:24 UTC) #24
Miranda Callahan
On 2011/10/25 06:38:25, NaveenBobbili (Motorola) wrote: > On 2011/10/25 06:38:10, NaveenBobbili (Motorola) wrote: > > ...
9 years, 1 month ago (2011-10-27 15:00:33 UTC) #25
Miranda Callahan
On 2011/10/27 15:00:33, Miranda Callahan wrote: > On 2011/10/25 06:38:25, NaveenBobbili (Motorola) wrote: > > ...
9 years, 1 month ago (2011-10-27 19:42:44 UTC) #26
Miranda Callahan
On 2011/10/27 19:42:44, Miranda Callahan wrote: > On 2011/10/27 15:00:33, Miranda Callahan wrote: > > ...
9 years, 1 month ago (2011-10-27 21:33:20 UTC) #27
NaveenBobbili (Motorola)
Fixed merge conflicts and committing this change as http://codereview.chromium.org/8343032/ is not yet committed.
9 years, 1 month ago (2011-10-30 02:22:19 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qghc36@motorola.com/8339014/25002
9 years, 1 month ago (2011-10-30 02:22:36 UTC) #29
commit-bot: I haz the power
9 years, 1 month ago (2011-10-30 03:33:03 UTC) #30
Change committed as 107894

Powered by Google App Engine
This is Rietveld 408576698