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

Issue 1598001: [Mac] Select the previous node when the last cookie in the list is deleted. (Closed)

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

Description

[Mac] Select the previous node when the last cookie in the list is deleted. Also recursively bubble up the delete if removing a child node will leave the parent empty. Empty parents look awkward. BUG=33320 TEST=See bug report. Partially covered by unit tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=43157

Patch Set 1 #

Total comments: 11

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -16 lines) Patch
M chrome/browser/cocoa/cookies_window_controller.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/cocoa/cookies_window_controller.mm View 1 1 chunk +36 lines, -13 lines 0 comments Download
M chrome/browser/cocoa/cookies_window_controller_unittest.mm View 1 3 chunks +27 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Robert Sesek
10 years, 8 months ago (2010-03-30 22:02:05 UTC) #1
John Grabowski
http://codereview.chromium.org/1598001/diff/1/3 File chrome/browser/cocoa/cookies_window_controller.mm (right): http://codereview.chromium.org/1598001/diff/1/3#newcode277 chrome/browser/cocoa/cookies_window_controller.mm:277: DCHECK_EQ(1U, [[treeController_ selectedObjects] count]); I should be allowed to ...
10 years, 8 months ago (2010-03-30 22:20:04 UTC) #2
Robert Sesek
http://codereview.chromium.org/1598001/diff/1/3 File chrome/browser/cocoa/cookies_window_controller.mm (right): http://codereview.chromium.org/1598001/diff/1/3#newcode277 chrome/browser/cocoa/cookies_window_controller.mm:277: DCHECK_EQ(1U, [[treeController_ selectedObjects] count]); On 2010/03/30 22:20:05, John Grabowski ...
10 years, 8 months ago (2010-03-30 22:36:53 UTC) #3
John Grabowski
10 years, 8 months ago (2010-03-30 22:57:16 UTC) #4
LGTM

http://codereview.chromium.org/1598001/diff/1/4
File chrome/browser/cocoa/cookies_window_controller_unittest.mm (right):

http://codereview.chromium.org/1598001/diff/1/4#newcode377
chrome/browser/cocoa/cookies_window_controller_unittest.mm:377: NSUInteger
pathA[3] = {0, 0, 0};
On 2010/03/30 22:36:53, rsesek wrote:
> On 2010/03/30 22:20:05, John Grabowski wrote:
> > Document which cookie this is
> 
> I believe it already is documented?

Ah... yes.  "A" is "cookie A", and not "variable A in the list of varA, varB,
varC, ..."

Powered by Google App Engine
This is Rietveld 408576698