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

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

Created:
4 years, 1 month ago by maxbogue
Modified:
4 years, 1 month ago
Reviewers:
fdoray, Nicolas Zea
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

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address comments + add test. #

Total comments: 6

Patch Set 3 : Change more things. #

Patch Set 4 : Fix iOS hopefully. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -24 lines) Patch
M components/sync/driver/glue/ui_model_worker.h View 1 3 chunks +9 lines, -1 line 0 comments Download
M components/sync/driver/glue/ui_model_worker.cc View 1 2 3 3 chunks +28 lines, -17 lines 0 comments Download
M components/sync/driver/glue/ui_model_worker_unittest.cc View 1 2 2 chunks +23 lines, -3 lines 0 comments Download
M components/sync/engine/model_safe_worker.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 25 (17 generated)
maxbogue
zea@ or fdoray@, PTAL!
4 years, 1 month ago (2016-11-10 22:23:07 UTC) #4
Nicolas Zea
LGTM with nits https://codereview.chromium.org/2496723003/diff/1/components/sync/driver/glue/ui_model_worker.h File components/sync/driver/glue/ui_model_worker.h (right): https://codereview.chromium.org/2496723003/diff/1/components/sync/driver/glue/ui_model_worker.h#newcode39 components/sync/driver/glue/ui_model_worker.h:39: // being torn down, or aborted ...
4 years, 1 month ago (2016-11-10 22:27:07 UTC) #5
Nicolas Zea
Actually, how hard would it be to add a unit test for this?
4 years, 1 month ago (2016-11-10 22:37:23 UTC) #6
fdoray
https://codereview.chromium.org/2496723003/diff/1/components/sync/driver/glue/ui_model_worker.cc File components/sync/driver/glue/ui_model_worker.cc (right): https://codereview.chromium.org/2496723003/diff/1/components/sync/driver/glue/ui_model_worker.cc#newcode28 components/sync/driver/glue/ui_model_worker.cc:28: const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread) Pass scoped_refptr by value https://chromium.googlesource.com/chromium/src/+/master/styleguide/c++/c++.md#Object-ownership-and-calling-conventions Relevant ...
4 years, 1 month ago (2016-11-11 15:40:28 UTC) #9
maxbogue
On 2016/11/10 22:37:23, Nicolas Zea wrote: > Actually, how hard would it be to add ...
4 years, 1 month ago (2016-11-12 03:19:52 UTC) #12
fdoray
https://codereview.chromium.org/2496723003/diff/20001/components/sync/driver/glue/ui_model_worker.cc File components/sync/driver/glue/ui_model_worker.cc (right): https://codereview.chromium.org/2496723003/diff/20001/components/sync/driver/glue/ui_model_worker.cc#newcode49 components/sync/driver/glue/ui_model_worker.cc:49: work_done_or_abandoned_.Reset(); This can happen: THREAD ACTION Sync: DoWorkAndWaitUntilDone() UI: ...
4 years, 1 month ago (2016-11-14 14:24:34 UTC) #15
maxbogue
PTAL at most recent changes; I'm still working on why TwoClientsPasswordManagerSettingMigratorServiceSyncTest.* are failing on some ...
4 years, 1 month ago (2016-11-14 20:53:22 UTC) #22
maxbogue
4 years, 1 month ago (2016-11-14 21:05:28 UTC) #25
This has turned out to be far trickier than anticipated, so fdoray@ is going to
take over from here.

Powered by Google App Engine
This is Rietveld 408576698