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

Issue 2646623004: Query NaCl processes' GDB debug port on the correct thread. (Closed)

Created:
3 years, 11 months ago by Wez
Modified:
3 years, 10 months ago
Reviewers:
afakhry
CC:
chromium-reviews, bradnelson
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Query NaCl processes' GDB debug port on the correct thread. TaskGroup previously called NaClBrowser on the UI thread, to refresh the GDB debug port information for NaCl processes. NaClBrowser is designed to be accessed only from the Browser's IO thread; this patch fixes that.Fix NaCl debug stub port fetching in Task Manager. This is a re-land of crrev.com/2634573003 which had a couple of issues. BUG=630861, 684042 Review-Url: https://codereview.chromium.org/2646623004 Cr-Commit-Position: refs/heads/master@{#451188} Committed: https://chromium.googlesource.com/chromium/src/+/91503efd94b63d9be85603e7d1d6edf7e837f4c9

Patch Set 1 #

Total comments: 1

Patch Set 2 : Remove optimization #

Total comments: 4

Patch Set 3 : Fix GetNaClPortText() expectation and rename new_visibility #

Total comments: 8

Patch Set 4 : Fix kBackgroundRefreshTypeMasks, which fixes git cl format'ting #

Patch Set 5 : Pull changes from 2634573003 #

Total comments: 4

Patch Set 6 : Add TaskGroup unit-tests #

Total comments: 21

Patch Set 7 : Address review comments #

Patch Set 8 : Fix typo #

Total comments: 6

Patch Set 9 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -15 lines) Patch
M chrome/browser/task_manager/sampling/task_group.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/task_manager/sampling/task_group.cc View 1 2 3 4 5 6 7 8 6 chunks +29 lines, -9 lines 0 comments Download
A chrome/browser/task_manager/sampling/task_group_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +168 lines, -0 lines 0 comments Download
M chrome/browser/ui/task_manager/task_manager_table_model.cc View 1 2 3 4 5 7 chunks +9 lines, -6 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 54 (38 generated)
Wez
afakhry: Sorry, my previous patch was not quite correct (though not actually broken, thankfully ;). ...
3 years, 11 months ago (2017-01-20 03:25:28 UTC) #4
afakhry
The CL description still says: "prevents TaskGroup from repeatedly refreshing the port for a process" ...
3 years, 11 months ago (2017-01-23 17:41:55 UTC) #7
Wez
On 2017/01/23 17:41:55, afakhry wrote: > The CL description still says: "prevents TaskGroup from repeatedly ...
3 years, 11 months ago (2017-01-23 19:01:28 UTC) #9
Wez
https://codereview.chromium.org/2646623004/diff/20001/chrome/browser/task_manager/sampling/task_group.cc File chrome/browser/task_manager/sampling/task_group.cc (right): https://codereview.chromium.org/2646623004/diff/20001/chrome/browser/task_manager/sampling/task_group.cc#newcode93 chrome/browser/task_manager/sampling/task_group.cc:93: nacl_debug_stub_port_(nacl::kGdbDebugStubPortUnknown), On 2017/01/23 17:41:55, afakhry wrote: > While we ...
3 years, 11 months ago (2017-01-23 19:21:02 UTC) #12
Wez
https://codereview.chromium.org/2646623004/diff/40001/chrome/browser/task_manager/sampling/task_group.cc File chrome/browser/task_manager/sampling/task_group.cc (right): https://codereview.chromium.org/2646623004/diff/40001/chrome/browser/task_manager/sampling/task_group.cc#newcode34 chrome/browser/task_manager/sampling/task_group.cc:34: REFRESH_TYPE_NACL || OK, worse than that, the indentation is ...
3 years, 11 months ago (2017-01-23 19:44:27 UTC) #14
Wez
https://codereview.chromium.org/2646623004/diff/80001/chrome/browser/task_manager/sampling/task_group.cc File chrome/browser/task_manager/sampling/task_group.cc (right): https://codereview.chromium.org/2646623004/diff/80001/chrome/browser/task_manager/sampling/task_group.cc#newcode34 chrome/browser/task_manager/sampling/task_group.cc:34: REFRESH_TYPE_NACL | REFRESH_TYPE_PRIORITY; IIUC getting these wrong should mean ...
3 years, 11 months ago (2017-01-23 21:49:11 UTC) #23
Wez
Ping!
3 years, 10 months ago (2017-02-08 19:17:17 UTC) #28
afakhry
On 2017/02/08 19:17:17, Wez wrote: > Ping! I'll take a look at it this evening.
3 years, 10 months ago (2017-02-08 21:31:32 UTC) #29
afakhry
https://codereview.chromium.org/2646623004/diff/40001/chrome/browser/task_manager/sampling/task_group.cc File chrome/browser/task_manager/sampling/task_group.cc (right): https://codereview.chromium.org/2646623004/diff/40001/chrome/browser/task_manager/sampling/task_group.cc#newcode188 chrome/browser/task_manager/sampling/task_group.cc:188: #endif // !defined(DISABLE_NACL) On 2017/01/23 19:21:02, Wez wrote: > ...
3 years, 10 months ago (2017-02-09 01:27:00 UTC) #30
Wez
PTAL - have added some simple tests for sync & async cases. Overall the TaskGroup ...
3 years, 10 months ago (2017-02-10 02:51:56 UTC) #33
afakhry
Thanks for adding the tests. I guess you were too focused on getting the tests ...
3 years, 10 months ago (2017-02-10 20:08:54 UTC) #36
Wez
PTAL Re the question around the API: the TaskManager observer interface presently has separate synchronous ...
3 years, 10 months ago (2017-02-13 01:22:20 UTC) #40
afakhry
lgtm % 2 nits. https://codereview.chromium.org/2646623004/diff/100001/chrome/browser/task_manager/sampling/task_group.cc File chrome/browser/task_manager/sampling/task_group.cc (right): https://codereview.chromium.org/2646623004/diff/100001/chrome/browser/task_manager/sampling/task_group.cc#newcode187 chrome/browser/task_manager/sampling/task_group.cc:187: expected_on_bg_done_flags_ &= ~REFRESH_TYPE_NACL; On 2017/02/13 ...
3 years, 10 months ago (2017-02-15 02:58:19 UTC) #47
Wez
https://codereview.chromium.org/2646623004/diff/100001/chrome/browser/task_manager/sampling/task_group.cc File chrome/browser/task_manager/sampling/task_group.cc (right): https://codereview.chromium.org/2646623004/diff/100001/chrome/browser/task_manager/sampling/task_group.cc#newcode187 chrome/browser/task_manager/sampling/task_group.cc:187: expected_on_bg_done_flags_ &= ~REFRESH_TYPE_NACL; On 2017/02/15 02:58:19, afakhry wrote: > ...
3 years, 10 months ago (2017-02-16 22:44:20 UTC) #48
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/2646623004/170001
3 years, 10 months ago (2017-02-16 22:46:23 UTC) #51
commit-bot: I haz the power
3 years, 10 months ago (2017-02-17 02:27:48 UTC) #54
Message was sent while issue was closed.
Committed patchset #9 (id:170001) as
https://chromium.googlesource.com/chromium/src/+/91503efd94b63d9be85603e7d1d6...

Powered by Google App Engine
This is Rietveld 408576698