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

Issue 554151: [Mac] Reduce jank in the cookie manager by lazily creating child nodes for the UI. (Closed)

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

Description

[Mac] Reduce jank in the cookie manager by lazily creating child nodes for the UI. Also selects the first cookie node whene expanding an origin node. BUG=33248 TEST=With a lot of cookies in your profile: Chromium-->Preferences-->Under the Hood-->Show cookies... Filter by a domain, expand the domain and the first cookie should be selected. Clear the filter and list should reappear speadily. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=37695

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -13 lines) Patch
M chrome/browser/cocoa/cookie_tree_node.h View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/cocoa/cookie_tree_node.mm View 3 chunks +13 lines, -11 lines 1 comment Download
M chrome/browser/cocoa/cookies_window_controller.mm View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/cookies_window_controller_unittest.mm View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
Robert Sesek
10 years, 10 months ago (2010-02-01 07:39:11 UTC) #1
John Grabowski
10 years, 10 months ago (2010-02-01 07:52:06 UTC) #2
LGTM

http://codereview.chromium.org/554151/diff/1/3
File chrome/browser/cocoa/cookie_tree_node.mm (right):

http://codereview.chromium.org/554151/diff/1/3#newcode18
chrome/browser/cocoa/cookie_tree_node.mm:18: isLeaf_ = (node->GetChildCount() ==
0);
Not sure why there is a need for a local variable here but if you like it then
it's fine.

Powered by Google App Engine
This is Rietveld 408576698