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

Issue 2466313003: Remove ModelSafeWorker::work_done_or_stopped(). (Closed)

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

Description

Remove ModelSafeWorker::work_done_or_stopped(). BrowserThreads will be migrated to TaskScheduler which doesn't support destruction observers. This CL removes an event signaled after a task runs or from ModelSafeWorker::WillDestroyCurrentMessageLoop() with an event signaled after a task runs or after it is deleted (MessageLoop deletes pending tasks in its destructor). BUG=650723 Committed: https://crrev.com/119462f5be2cba878cf3d30142411a06868ed464 Cr-Commit-Position: refs/heads/master@{#429994}

Patch Set 1 #

Patch Set 2 : self-review #

Patch Set 3 : self-review #

Patch Set 4 : self-review #

Total comments: 8

Patch Set 5 : CR zea #11 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -95 lines) Patch
M components/history/core/browser/history_model_worker.cc View 1 2 3 4 4 chunks +31 lines, -16 lines 0 comments Download
M components/password_manager/sync/browser/password_model_worker.h View 1 2 3 2 chunks +0 lines, -8 lines 0 comments Download
M components/password_manager/sync/browser/password_model_worker.cc View 1 2 3 4 3 chunks +23 lines, -14 lines 0 comments Download
M components/sync/BUILD.gn View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
A components/sync/base/scoped_event_signal.h View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
A components/sync/base/scoped_event_signal.cc View 1 2 3 4 1 chunk +34 lines, -0 lines 0 comments Download
A components/sync/base/scoped_event_signal_unittest.cc View 1 2 3 4 1 chunk +84 lines, -0 lines 0 comments Download
M components/sync/driver/glue/browser_thread_model_worker.h View 1 2 3 4 2 chunks +4 lines, -6 lines 0 comments Download
M components/sync/driver/glue/browser_thread_model_worker.cc View 1 2 3 4 3 chunks +16 lines, -8 lines 0 comments Download
M components/sync/driver/glue/ui_model_worker.cc View 1 2 3 4 2 chunks +16 lines, -21 lines 0 comments Download
M components/sync/engine/model_safe_worker.h View 3 chunks +0 lines, -7 lines 0 comments Download
M components/sync/engine/model_safe_worker.cc View 4 chunks +3 lines, -15 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (14 generated)
fdoray
PTAL
4 years, 1 month ago (2016-11-01 19:47:14 UTC) #2
fdoray
-sky@ +zea@: PTAL
4 years, 1 month ago (2016-11-01 19:48:25 UTC) #4
Nicolas Zea
Mostly LG, some nits and a unit tests request. https://codereview.chromium.org/2466313003/diff/60001/components/history/core/browser/history_model_worker.cc File components/history/core/browser/history_model_worker.cc (right): https://codereview.chromium.org/2466313003/diff/60001/components/history/core/browser/history_model_worker.cc#newcode122 components/history/core/browser/history_model_worker.cc:122: ...
4 years, 1 month ago (2016-11-01 22:39:24 UTC) #11
fdoray
zea@: PTAnL https://codereview.chromium.org/2466313003/diff/60001/components/history/core/browser/history_model_worker.cc File components/history/core/browser/history_model_worker.cc (right): https://codereview.chromium.org/2466313003/diff/60001/components/history/core/browser/history_model_worker.cc#newcode122 components/history/core/browser/history_model_worker.cc:122: base::WaitableEvent work_done_or_abandonned( On 2016/11/01 22:39:23, Nicolas Zea ...
4 years, 1 month ago (2016-11-02 15:52:05 UTC) #12
Nicolas Zea
LGTM, thanks!
4 years, 1 month ago (2016-11-02 20:35:05 UTC) #13
fdoray
sky@: Please review changes in components/history melandory@: Please review changes in components/password_manager
4 years, 1 month ago (2016-11-02 20:47:18 UTC) #15
sky
LGTM
4 years, 1 month ago (2016-11-02 21:28:13 UTC) #16
fdoray
+isherman@ melandory@ or isherman@: PTAL at components/password_manager.
4 years, 1 month ago (2016-11-04 12:29:41 UTC) #18
Ilya Sherman
password_manager lgtm, thanks
4 years, 1 month ago (2016-11-04 17:25:42 UTC) #19
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/2466313003/80001
4 years, 1 month ago (2016-11-04 17:28:00 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-04 20:17:41 UTC) #24
commit-bot: I haz the power
4 years, 1 month ago (2016-11-04 20:19:19 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/119462f5be2cba878cf3d30142411a06868ed464
Cr-Commit-Position: refs/heads/master@{#429994}

Powered by Google App Engine
This is Rietveld 408576698