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

Unified Diff: chrome/browser/cocoa/cookies_window_controller.mm

Issue 561023: Merge 37695 - [Mac] Reduce jank in the cookie manager by lazily creating chil... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/307/src/
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/cookies_window_controller.mm
===================================================================
--- chrome/browser/cocoa/cookies_window_controller.mm (revision 37852)
+++ chrome/browser/cocoa/cookies_window_controller.mm (working copy)
@@ -306,6 +306,13 @@
children = [item childNodes];
DCHECK_EQ([children count], 1U);
[outlineView expandItem:[children lastObject]];
+ // Select the first node in that child set.
+ NSTreeNode* folderChild = [children lastObject];
+ if ([[folderChild childNodes] count] > 0) {
+ NSTreeNode* firstCookieChild =
+ [[folderChild childNodes] objectAtIndex:0];
+ [treeController_ setSelectionIndexPath:[firstCookieChild indexPath]];
+ }
}
}
}
« no previous file with comments | « chrome/browser/cocoa/cookie_tree_node.mm ('k') | chrome/browser/cocoa/cookies_window_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698