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

Issue 1320563002: Task Manager Should remember the most recently enabled columns. (Closed)

Created:
5 years, 4 months ago by afakhry
Modified:
5 years, 3 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews, tfarina, ncarter (slow)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Task Manager Should remember the most recently enabled columns. This CL: 1- Makes adding and removing columns to the task manager a lot easier and cleaner. 2- Stores/retrieves the columns visibility to/from the local state prefs. 3- Stores/retrieves the sorted column and the sort order. R=thestig@chromium.org BUG=452521 TEST=browser_tests --gtest_filter=NewTaskManagerViewTest.* Committed: https://crrev.com/4e16add803fbb0ed18413496d3fb4424fa4957c6 Cr-Commit-Position: refs/heads/master@{#346524} Committed: https://crrev.com/4780b87d1c25f68c39abc623199f3e71a477d32d Cr-Commit-Position: refs/heads/master@{#346734}

Patch Set 1 #

Total comments: 14

Patch Set 2 : thestig's comments #

Total comments: 13

Patch Set 3 : comments #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : Added browser tests #

Total comments: 2

Patch Set 6 : nit #

Patch Set 7 : Removed the un-necessary NOTREACHED() #

Patch Set 8 : Making sure tests end in good conditions #

Total comments: 2

Patch Set 9 : Tearing Down #

Unified diffs Side-by-side diffs Delta from patch set Stats (+438 lines, -144 lines) Patch
M chrome/browser/task_management/providers/child_process_task_provider.cc View 1 2 3 4 5 6 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/task_manager/task_manager.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/new_task_manager_view.h View 1 2 3 4 3 chunks +57 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/new_task_manager_view.cc View 1 2 3 4 8 chunks +227 lines, -139 lines 0 comments Download
A chrome/browser/ui/views/new_task_manager_view_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +144 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (8 generated)
afakhry
thestig@chromium.org: Could you please review this CL? https://codereview.chromium.org/1320563002/diff/1/chrome/browser/ui/views/new_task_manager_view.cc File chrome/browser/ui/views/new_task_manager_view.cc (left): https://codereview.chromium.org/1320563002/diff/1/chrome/browser/ui/views/new_task_manager_view.cc#oldcode645 chrome/browser/ui/views/new_task_manager_view.cc:645: table->IsColumnVisible(IDS_TASK_MANAGER_SHARED_MEM_COLUMN)) { ...
5 years, 4 months ago (2015-08-26 01:16:27 UTC) #1
afakhry
On 2015/08/26 01:16:27, afakhry wrote: > mailto:thestig@chromium.org: Could you please review this CL? > > ...
5 years, 3 months ago (2015-08-27 00:30:06 UTC) #2
Lei Zhang
On 2015/08/27 00:30:06, afakhry wrote: > On 2015/08/26 01:16:27, afakhry wrote: > > mailto:thestig@chromium.org: Could ...
5 years, 3 months ago (2015-08-27 00:47:44 UTC) #3
afakhry
On 2015/08/27 00:47:44, Lei Zhang wrote: > On 2015/08/27 00:30:06, afakhry wrote: > > On ...
5 years, 3 months ago (2015-08-27 00:49:10 UTC) #4
Lei Zhang
https://codereview.chromium.org/1320563002/diff/1/chrome/browser/ui/views/new_task_manager_view.cc File chrome/browser/ui/views/new_task_manager_view.cc (left): https://codereview.chromium.org/1320563002/diff/1/chrome/browser/ui/views/new_task_manager_view.cc#oldcode645 chrome/browser/ui/views/new_task_manager_view.cc:645: table->IsColumnVisible(IDS_TASK_MANAGER_SHARED_MEM_COLUMN)) { On 2015/08/26 01:16:27, afakhry wrote: > This ...
5 years, 3 months ago (2015-08-27 01:10:44 UTC) #5
afakhry
PTAL. Thanks! https://codereview.chromium.org/1320563002/diff/1/chrome/browser/ui/views/new_task_manager_view.cc File chrome/browser/ui/views/new_task_manager_view.cc (right): https://codereview.chromium.org/1320563002/diff/1/chrome/browser/ui/views/new_task_manager_view.cc#newcode266 chrome/browser/ui/views/new_task_manager_view.cc:266: const TableColumnData kColumns[] = { On 2015/08/27 ...
5 years, 3 months ago (2015-08-27 19:56:52 UTC) #6
afakhry
thestig@: PTAL.
5 years, 3 months ago (2015-08-28 17:54:26 UTC) #7
Lei Zhang
https://codereview.chromium.org/1320563002/diff/20001/chrome/browser/ui/views/new_task_manager_view.cc File chrome/browser/ui/views/new_task_manager_view.cc (right): https://codereview.chromium.org/1320563002/diff/20001/chrome/browser/ui/views/new_task_manager_view.cc#newcode274 chrome/browser/ui/views/new_task_manager_view.cc:274: // number. Remind readers about COLUMNS_LITS too? https://codereview.chromium.org/1320563002/diff/20001/chrome/browser/ui/views/new_task_manager_view.cc#newcode1165 chrome/browser/ui/views/new_task_manager_view.cc:1165: ...
5 years, 3 months ago (2015-08-28 22:47:45 UTC) #8
afakhry
https://codereview.chromium.org/1320563002/diff/20001/chrome/browser/ui/views/new_task_manager_view.cc File chrome/browser/ui/views/new_task_manager_view.cc (right): https://codereview.chromium.org/1320563002/diff/20001/chrome/browser/ui/views/new_task_manager_view.cc#newcode274 chrome/browser/ui/views/new_task_manager_view.cc:274: // number. On 2015/08/28 22:47:44, Lei Zhang wrote: > ...
5 years, 3 months ago (2015-08-29 00:30:30 UTC) #9
Lei Zhang
Looking good. What are your plans to test this code? https://codereview.chromium.org/1320563002/diff/40001/chrome/browser/ui/views/new_task_manager_view.cc File chrome/browser/ui/views/new_task_manager_view.cc (right): https://codereview.chromium.org/1320563002/diff/40001/chrome/browser/ui/views/new_task_manager_view.cc#newcode1225 ...
5 years, 3 months ago (2015-08-29 00:47:09 UTC) #10
afakhry
I wasn't planning on writing any tests for this code, since the whole task manager ...
5 years, 3 months ago (2015-08-29 01:48:14 UTC) #11
Lei Zhang
On 2015/08/29 01:48:14, afakhry wrote: > I wasn't planning on writing any tests for this ...
5 years, 3 months ago (2015-08-29 01:53:58 UTC) #12
afakhry
thestig@chromium.org: How about these browser tests? PTAL.
5 years, 3 months ago (2015-08-31 19:04:35 UTC) #13
Lei Zhang
lgtm https://codereview.chromium.org/1320563002/diff/80001/chrome/browser/ui/views/new_task_manager_view_browsertest.cc File chrome/browser/ui/views/new_task_manager_view_browsertest.cc (right): https://codereview.chromium.org/1320563002/diff/80001/chrome/browser/ui/views/new_task_manager_view_browsertest.cc#newcode63 chrome/browser/ui/views/new_task_manager_view_browsertest.cc:63: ASSERT_NE(nullptr, table); I think you can also be ...
5 years, 3 months ago (2015-08-31 21:06:57 UTC) #14
afakhry
https://codereview.chromium.org/1320563002/diff/80001/chrome/browser/ui/views/new_task_manager_view_browsertest.cc File chrome/browser/ui/views/new_task_manager_view_browsertest.cc (right): https://codereview.chromium.org/1320563002/diff/80001/chrome/browser/ui/views/new_task_manager_view_browsertest.cc#newcode63 chrome/browser/ui/views/new_task_manager_view_browsertest.cc:63: ASSERT_NE(nullptr, table); On 2015/08/31 21:06:57, Lei Zhang wrote: > ...
5 years, 3 months ago (2015-08-31 21:12:44 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320563002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320563002/100001
5 years, 3 months ago (2015-08-31 21:14:36 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/126813)
5 years, 3 months ago (2015-08-31 21:47:33 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320563002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320563002/100001
5 years, 3 months ago (2015-08-31 23:16:03 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 3 months ago (2015-08-31 23:55:37 UTC) #23
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/4e16add803fbb0ed18413496d3fb4424fa4957c6 Cr-Commit-Position: refs/heads/master@{#346524}
5 years, 3 months ago (2015-08-31 23:56:09 UTC) #24
horo
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/1323853005/ by horo@chromium.org. ...
5 years, 3 months ago (2015-09-01 02:09:56 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320563002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320563002/140001
5 years, 3 months ago (2015-09-01 18:55:42 UTC) #28
Lei Zhang
note: It's better to start a new CL rather than reusing an old CL. You ...
5 years, 3 months ago (2015-09-01 19:02:25 UTC) #29
afakhry
On 2015/09/01 19:03:40, afakhry wrote: > The CQ bit was unchecked by mailto:afakhry@chromium.org Ok, sorry, ...
5 years, 3 months ago (2015-09-01 19:04:54 UTC) #31
Lei Zhang
https://codereview.chromium.org/1320563002/diff/140001/chrome/browser/ui/views/new_task_manager_view_browsertest.cc File chrome/browser/ui/views/new_task_manager_view_browsertest.cc (right): https://codereview.chromium.org/1320563002/diff/140001/chrome/browser/ui/views/new_task_manager_view_browsertest.cc#newcode72 chrome/browser/ui/views/new_task_manager_view_browsertest.cc:72: chrome::HideTaskManager(); I think all the teardown should go in ...
5 years, 3 months ago (2015-09-01 19:08:20 UTC) #32
Lei Zhang
On 2015/09/01 19:04:54, afakhry wrote: > On 2015/09/01 19:03:40, afakhry wrote: > > The CQ ...
5 years, 3 months ago (2015-09-01 19:11:06 UTC) #33
afakhry
https://codereview.chromium.org/1320563002/diff/140001/chrome/browser/ui/views/new_task_manager_view_browsertest.cc File chrome/browser/ui/views/new_task_manager_view_browsertest.cc (right): https://codereview.chromium.org/1320563002/diff/140001/chrome/browser/ui/views/new_task_manager_view_browsertest.cc#newcode72 chrome/browser/ui/views/new_task_manager_view_browsertest.cc:72: chrome::HideTaskManager(); On 2015/09/01 19:08:20, Lei Zhang wrote: > I ...
5 years, 3 months ago (2015-09-01 20:08:36 UTC) #34
Lei Zhang
++lgtm
5 years, 3 months ago (2015-09-01 20:21:48 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320563002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320563002/160001
5 years, 3 months ago (2015-09-01 20:25:41 UTC) #37
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 3 months ago (2015-09-01 21:08:03 UTC) #38
commit-bot: I haz the power
5 years, 3 months ago (2015-09-01 21:08:41 UTC) #39
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/4780b87d1c25f68c39abc623199f3e71a477d32d
Cr-Commit-Position: refs/heads/master@{#346734}

Powered by Google App Engine
This is Rietveld 408576698