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

Issue 2928603002: Create and remove |UiDevToolsServer::server_| in the same thread. (Closed)

Created:
3 years, 6 months ago by thanhph
Modified:
3 years, 5 months ago
Reviewers:
sadrul
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Create and remove |UiDevToolsServer::server_| in the same thread. |UiDevToolsServer::server_| is created in an IO thread and gets cleaned up in a UI thread. This causes the crash when shutting down DevTools. BUG=698276 Review-Url: https://codereview.chromium.org/2928603002 Cr-Commit-Position: refs/heads/master@{#483016} Committed: https://chromium.googlesource.com/chromium/src/+/a73ef52cdb9f89e2fbb4c2076dfc788bb502fb2d

Patch Set 1 : . #

Total comments: 4

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M components/ui_devtools/devtools_server.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 71 (63 generated)
thanhph
Hi Sadrul, Please review my new patch. Thanks, Thanh.
3 years, 6 months ago (2017-06-22 23:06:13 UTC) #44
sadrul
https://codereview.chromium.org/2928603002/diff/260001/components/ui_devtools/devtools_server.cc File components/ui_devtools/devtools_server.cc (right): https://codereview.chromium.org/2928603002/diff/260001/components/ui_devtools/devtools_server.cc#newcode72 components/ui_devtools/devtools_server.cc:72: if (thread_->IsRunning()) This will not work when |io_thread_task_runner_| has ...
3 years, 5 months ago (2017-06-26 22:43:30 UTC) #50
thanhph
Thanks Sadrul. I have the new patch with DeleteSoon and have a question below as ...
3 years, 5 months ago (2017-06-27 15:02:29 UTC) #57
sadrul
https://codereview.chromium.org/2928603002/diff/260001/components/ui_devtools/devtools_server.cc File components/ui_devtools/devtools_server.cc (right): https://codereview.chromium.org/2928603002/diff/260001/components/ui_devtools/devtools_server.cc#newcode72 components/ui_devtools/devtools_server.cc:72: if (thread_->IsRunning()) On 2017/06/27 15:02:29, thanhph wrote: > On ...
3 years, 5 months ago (2017-06-28 04:49:11 UTC) #60
thanhph
Thanks for more details Sadrul. I added a new patch. Thanh. https://codereview.chromium.org/2928603002/diff/260001/components/ui_devtools/devtools_server.cc File components/ui_devtools/devtools_server.cc (right): ...
3 years, 5 months ago (2017-06-28 14:38:23 UTC) #63
sadrul
lgtm
3 years, 5 months ago (2017-06-28 16:40:34 UTC) #66
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/2928603002/320001
3 years, 5 months ago (2017-06-28 16:42:34 UTC) #68
commit-bot: I haz the power
3 years, 5 months ago (2017-06-28 16:46:16 UTC) #71
Message was sent while issue was closed.
Committed patchset #3 (id:320001) as
https://chromium.googlesource.com/chromium/src/+/a73ef52cdb9f89e2fbb4c2076dfc...

Powered by Google App Engine
This is Rietveld 408576698