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

Issue 2146273002: TaskManager: when shown or activated, select the last active tab. (Closed)

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

Description

TaskManager: when shown or activated, select the last active tab. Introduce a method, NewTaskManagerView::SelectTaskOfActiveTab, which allows the selection model to be updated to match the main row of a particular WebContents. Add plumbing from the NewTaskManagerView down to the TaskProviders to support this lookup. Rename NewTaskManagerView::ActivateFocusedTab for consistency and accuracy (it's basically the inverse of the new function). Replace the ScopedVector of TaskProviders with a std::vector of unique_ptrs, since ScopedVector is deprecated. BUG=614551 TEST=included browser_test Committed: https://crrev.com/1824ae3ede49ac7e6cf6224d03e713fab8070c30 Cr-Commit-Position: refs/heads/master@{#409087}

Patch Set 1 #

Patch Set 2 : Fix TestTaskManager. #

Patch Set 3 : Use the Browser* passed into show. This fixes the test helpers, which pass in nullptr. #

Patch Set 4 : Merge branch 'wait_for_rows' into tm_default_selection #

Patch Set 5 : Fix test. #

Patch Set 6 : Merge branch 'wait_for_rows' into tm_default_selection #

Patch Set 7 : Fix compile. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -20 lines) Patch
M chrome/browser/task_management/sampling/task_manager_impl.h View 1 2 3 4 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/task_management/sampling/task_manager_impl.cc View 1 2 3 4 5 6 6 chunks +38 lines, -14 lines 0 comments Download
M chrome/browser/task_management/task_manager_interface.h View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/task_management/test_task_manager.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/task_management/test_task_manager.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/task_manager/task_manager_table_model.h View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/task_manager/task_manager_table_model.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/new_task_manager_view.h View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/new_task_manager_view.cc View 1 2 3 4 5 5 chunks +14 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/new_task_manager_view_browsertest.cc View 1 2 3 4 2 chunks +35 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 39 (31 generated)
ncarter (slow)
ahmed: please review this
4 years, 5 months ago (2016-07-25 22:54:07 UTC) #17
afakhry
LGTM!!! Thanks!
4 years, 5 months ago (2016-07-26 00:06:14 UTC) #20
ncarter (slow)
+sky: please review new_task_manager_view* and the overall concept
4 years, 4 months ago (2016-07-28 17:09:33 UTC) #30
ncarter (slow)
sky: ping
4 years, 4 months ago (2016-08-01 17:10:51 UTC) #31
sky
LGTM
4 years, 4 months ago (2016-08-01 22:44:17 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2146273002/120001
4 years, 4 months ago (2016-08-01 22:50:29 UTC) #35
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 4 months ago (2016-08-01 23:32:37 UTC) #37
commit-bot: I haz the power
4 years, 4 months ago (2016-08-01 23:42:10 UTC) #39
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/1824ae3ede49ac7e6cf6224d03e713fab8070c30
Cr-Commit-Position: refs/heads/master@{#409087}

Powered by Google App Engine
This is Rietveld 408576698