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

Issue 2873075: Mac: Add sort support for task manager. (Closed)

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

Description

Mac: Add sort support for task manager. Also fix a leak in test Init reported by valgrind. The problem was that the test called a rogue init, which didn't cause the window to be shown, and hence -close didn't send a -windowWillClose: notification. Also restore -windowWillClose:, it accidentally got deleted in http://codereview.chromium.org/536086 BUG=32148, 30398 TEST=Click a column in the task manager. Should sort. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=54175

Patch Set 1 #

Patch Set 2 : mostly works #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 12

Patch Set 5 : '' #

Patch Set 6 : comments #

Patch Set 7 : test #

Patch Set 8 : '' #

Total comments: 4

Patch Set 9 : make test pass & not leak #

Patch Set 10 : '' #

Total comments: 6

Patch Set 11 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -26 lines) Patch
M chrome/browser/cocoa/task_manager_mac.h View 2 3 4 5 6 7 8 9 10 4 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/task_manager_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 chunks +81 lines, -11 lines 0 comments Download
M chrome/browser/cocoa/task_manager_mac_unittest.mm View 7 8 9 1 chunk +50 lines, -13 lines 0 comments Download
M chrome/browser/task_manager.h View 7 8 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Nico
10 years, 4 months ago (2010-07-28 21:56:08 UTC) #1
Robert Sesek
http://codereview.chromium.org/2873075/diff/8001/9001 File chrome/browser/cocoa/task_manager_mac.h (right): http://codereview.chromium.org/2873075/diff/8001/9001#newcode10 chrome/browser/cocoa/task_manager_mac.h:10: Remove http://codereview.chromium.org/2873075/diff/8001/9001#newcode34 chrome/browser/cocoa/task_manager_mac.h:34: std::vector<int> indexShuffle_; This isn't "just" used ...
10 years, 4 months ago (2010-07-28 22:33:10 UTC) #2
Nico
thanks! http://codereview.chromium.org/2873075/diff/8001/9001 File chrome/browser/cocoa/task_manager_mac.h (right): http://codereview.chromium.org/2873075/diff/8001/9001#newcode10 chrome/browser/cocoa/task_manager_mac.h:10: On 2010/07/28 22:33:10, rsesek wrote: > Remove Done. ...
10 years, 4 months ago (2010-07-28 23:03:11 UTC) #3
Robert Sesek
The code LGTM. How about a unit test?
10 years, 4 months ago (2010-07-29 14:23:23 UTC) #4
Nico
added a test (didn't run it yet: on shuttle and out of battery)
10 years, 4 months ago (2010-07-29 15:38:58 UTC) #5
Robert Sesek
LGTM! http://codereview.chromium.org/2873075/diff/20001/21001 File chrome/browser/cocoa/task_manager_mac.h (right): http://codereview.chromium.org/2873075/diff/20001/21001#newcode89 chrome/browser/cocoa/task_manager_mac.h:89: // The task manager. Indent fix. http://codereview.chromium.org/2873075/diff/20001/21003 File ...
10 years, 4 months ago (2010-07-29 15:56:09 UTC) #6
Nico
The test now passes, even under valgrind. I needed to change some things around. Will ...
10 years, 4 months ago (2010-07-29 19:06:37 UTC) #7
Robert Sesek
LGTM with nits http://codereview.chromium.org/2873075/diff/32001/33001 File chrome/browser/cocoa/task_manager_mac.h (right): http://codereview.chromium.org/2873075/diff/32001/33001#newcode56 chrome/browser/cocoa/task_manager_mac.h:56: - (NSTableView*) tableView; No space http://codereview.chromium.org/2873075/diff/32001/33002 ...
10 years, 4 months ago (2010-07-29 19:21:22 UTC) #8
Nico
http://codereview.chromium.org/2873075/diff/32001/33001 File chrome/browser/cocoa/task_manager_mac.h (right): http://codereview.chromium.org/2873075/diff/32001/33001#newcode56 chrome/browser/cocoa/task_manager_mac.h:56: - (NSTableView*) tableView; On 2010/07/29 19:21:23, rsesek wrote: > ...
10 years, 4 months ago (2010-07-29 20:30:39 UTC) #9
Robert Sesek
10 years, 4 months ago (2010-07-29 20:33:09 UTC) #10
http://codereview.chromium.org/2873075/diff/32001/33003
File chrome/browser/cocoa/task_manager_mac_unittest.mm (right):

http://codereview.chromium.org/2873075/diff/32001/33003#newcode31
chrome/browser/cocoa/task_manager_mac_unittest.mm:31: }  // namespace
On 2010/07/29 20:30:39, Nico wrote:
> On 2010/07/29 19:21:23, rsesek wrote:
> > Can you put in the entire test in the namespace?
> 
> No, else the FRIEND_TEST stuff won't work

Ah. I usually do this instead:
namespace {
class MyTest;
}
...
  friend class ::MyTest;

Not a big deal though.

Powered by Google App Engine
This is Rietveld 408576698