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

Issue 546102: [Mac] Fix a crash in the cookies manager that was caused by an invalid selection. (Closed)

Created:
10 years, 11 months ago by Robert Sesek
Modified:
9 years, 7 months ago
Reviewers:
John Grabowski
CC:
chromium-reviews_googlegroups.com, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org, John Grabowski
Visibility:
Public.

Description

[Mac] Fix a crash in the cookies manager that was caused by an invalid selection. XIB change: Change the "Remove" button's |enabled| binding from just looking at the count of the selection to FilesOwner.removeButtonEnabled. BUG=32627 TEST=Covered by unit tests. TEST=Open cookies manager. Select one item, make sure "Remove" is enabled. TEST=Open cookies manager. Try to select two items. You shouldn't be able to. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=36796

Patch Set 1 #

Patch Set 2 : typo #

Total comments: 7

Patch Set 3 : Address comments #

Patch Set 4 : do'h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -29 lines) Patch
M chrome/app/nibs/Cookies.xib View 5 chunks +18 lines, -29 lines 0 comments Download
M chrome/browser/cocoa/cookies_window_controller.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/cookies_window_controller.mm View 1 2 3 2 chunks +28 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/cookies_window_controller_unittest.mm View 1 chunk +55 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Robert Sesek
This is P0. It'll need to be merged to 302.
10 years, 11 months ago (2010-01-21 04:29:02 UTC) #1
John Grabowski
Update TEST= description in CL with a sanity check. E.g. - select one thing --> ...
10 years, 11 months ago (2010-01-21 06:14:47 UTC) #2
John Grabowski
Forgot to say: LGTM On 2010/01/21 06:14:47, John Grabowski wrote: > Update TEST= description in ...
10 years, 11 months ago (2010-01-21 06:15:02 UTC) #3
Robert Sesek
10 years, 11 months ago (2010-01-21 19:20:46 UTC) #4
http://codereview.chromium.org/546102/diff/3001/3003
File chrome/browser/cocoa/cookies_window_controller.h (right):

http://codereview.chromium.org/546102/diff/3001/3003#newcode86
chrome/browser/cocoa/cookies_window_controller.h:86: // Whether or not the
"Remove" button should be enabled.
On 2010/01/21 06:14:47, John Grabowski wrote:
> super-picky nit: Google coding standard is to use complete sentences in
> comments.  This is arguably not a sentence.

Done.

http://codereview.chromium.org/546102/diff/3001/3004
File chrome/browser/cocoa/cookies_window_controller.mm (right):

http://codereview.chromium.org/546102/diff/3001/3004#newcode266
chrome/browser/cocoa/cookies_window_controller.mm:266: -
(void)outlineViewSelectionDidChange:(NSNotification*)notif {
On 2010/01/21 06:14:47, John Grabowski wrote:
> Add comment like "delegate callback for NSBlahBlah" 
> 

I think the selector name is sufficient.

http://codereview.chromium.org/546102/diff/3001/3004#newcode269
chrome/browser/cocoa/cookies_window_controller.mm:269: if ([[treeController_
selectedObjects] count] != 1U) {
On 2010/01/21 06:14:47, John Grabowski wrote:
> perhaps DCHECK() this as well.

Done.

Powered by Google App Engine
This is Rietveld 408576698