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

Issue 2505913003: [Sync] Signal UIModelWorker to abort on sync shutdown. (Closed)

Created:
4 years, 1 month ago by fdoray
Modified:
4 years, 1 month ago
Reviewers:
maxbogue
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Signal UIModelWorker to abort on sync shutdown. This should prevent a deadlock between the sync and UI threads during shutdown. BUG=663600 Committed: https://crrev.com/52e8a13c965a4777fa96eb2feb016e82a1baccbf Cr-Commit-Position: refs/heads/master@{#433628}

Patch Set 1 #

Patch Set 2 : keep reference to UIModelWorker #

Patch Set 3 : self-review #

Patch Set 4 : self-review #

Total comments: 12

Patch Set 5 : CR maxbogue #21 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -35 lines) Patch
M components/sync/engine/model_safe_worker.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M components/sync/engine/ui_model_worker.h View 1 2 3 4 3 chunks +18 lines, -1 line 0 comments Download
M components/sync/engine/ui_model_worker.cc View 1 2 3 4 1 chunk +58 lines, -25 lines 2 comments Download
M components/sync/engine/ui_model_worker_unittest.cc View 1 2 3 4 3 chunks +63 lines, -6 lines 0 comments Download

Messages

Total messages: 34 (26 generated)
fdoray
PTAL
4 years, 1 month ago (2016-11-18 14:00:24 UTC) #20
maxbogue
Mostly LG, I just want to fully understand why this works over the approach I ...
4 years, 1 month ago (2016-11-18 18:26:51 UTC) #21
fdoray
PTAnL https://codereview.chromium.org/2505913003/diff/60001/components/sync/driver/glue/ui_model_worker.cc File components/sync/driver/glue/ui_model_worker.cc (right): https://codereview.chromium.org/2505913003/diff/60001/components/sync/driver/glue/ui_model_worker.cc#newcode18 components/sync/driver/glue/ui_model_worker.cc:18: class ScopedEventSignalWithUIModelWorker { On 2016/11/18 18:26:51, maxbogue wrote: ...
4 years, 1 month ago (2016-11-21 16:57:56 UTC) #22
maxbogue
lgtm, thanks for figuring this out François! https://codereview.chromium.org/2505913003/diff/60001/components/sync/driver/glue/ui_model_worker.h File components/sync/driver/glue/ui_model_worker.h (right): https://codereview.chromium.org/2505913003/diff/60001/components/sync/driver/glue/ui_model_worker.h#newcode47 components/sync/driver/glue/ui_model_worker.h:47: base::WaitableEvent stop_requested_; ...
4 years, 1 month ago (2016-11-21 17:17:46 UTC) #25
fdoray
https://codereview.chromium.org/2505913003/diff/60001/components/sync/driver/glue/ui_model_worker.h File components/sync/driver/glue/ui_model_worker.h (right): https://codereview.chromium.org/2505913003/diff/60001/components/sync/driver/glue/ui_model_worker.h#newcode47 components/sync/driver/glue/ui_model_worker.h:47: base::WaitableEvent stop_requested_; On 2016/11/21 17:17:46, maxbogue wrote: > On ...
4 years, 1 month ago (2016-11-21 19:06:11 UTC) #26
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/2505913003/80001
4 years, 1 month ago (2016-11-21 20:22:54 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-21 20:29:45 UTC) #32
commit-bot: I haz the power
4 years, 1 month ago (2016-11-21 20:32:58 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/52e8a13c965a4777fa96eb2feb016e82a1baccbf
Cr-Commit-Position: refs/heads/master@{#433628}

Powered by Google App Engine
This is Rietveld 408576698