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

Issue 2942773002: Task Scheduler API migration: change BrowserThreadModelWorker to SequencedModelWorker (Closed)

Created:
3 years, 6 months ago by stanisc
Modified:
3 years, 6 months ago
Reviewers:
vasilii, skym, sdefresne
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, vabr+watchlistpasswordmanager_chromium.org, noyau+watch_chromium.org, marq+watch_chromium.org, gcasto+watchlist_chromium.org, sync-reviews_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Task Scheduler API migration: change BrowserThreadModelWorker to SequencedModelWorker BrowserThreads are being deprecated in favor of TaskScheduler API. This change refactors BrowserThreadModelWorker preparing it to run on a sequence rather than a browser thread. Most of this change is a trivial renaming: BrowserThreadModelWorker -> SequencedModelWorker IsOnModelThread -> IsOnModelSequence BUG=689520, 731903 Review-Url: https://codereview.chromium.org/2942773002 Cr-Commit-Position: refs/heads/master@{#480569} Committed: https://chromium.googlesource.com/chromium/src/+/5c6a294f5b440b85ba9e9156d1f040e869a53b58

Patch Set 1 #

Total comments: 8

Patch Set 2 : Updated more comments to reflect thread -> sequence migration. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -237 lines) Patch
M chrome/browser/sync/chrome_sync_client.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M components/browser_sync/profile_sync_test_util.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M components/history/core/browser/history_model_worker.h View 1 chunk +1 line, -1 line 0 comments Download
M components/history/core/browser/history_model_worker.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/sync/browser/password_model_worker.h View 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/sync/browser/password_model_worker.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/sync/BUILD.gn View 3 chunks +3 lines, -3 lines 0 comments Download
D components/sync/engine/browser_thread_model_worker.h View 1 chunk +0 lines, -42 lines 0 comments Download
D components/sync/engine/browser_thread_model_worker.cc View 1 chunk +0 lines, -35 lines 0 comments Download
D components/sync/engine/browser_thread_model_worker_unittest.cc View 1 chunk +0 lines, -96 lines 0 comments Download
M components/sync/engine/model_safe_worker.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M components/sync/engine/model_safe_worker_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/sync/engine/passive_model_worker.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M components/sync/engine/passive_model_worker.cc View 1 chunk +1 line, -1 line 0 comments Download
A components/sync/engine/sequenced_model_worker.h View 1 chunk +40 lines, -0 lines 0 comments Download
A components/sync/engine/sequenced_model_worker.cc View 1 chunk +35 lines, -0 lines 0 comments Download
A + components/sync/engine/sequenced_model_worker_unittest.cc View 1 3 chunks +25 lines, -30 lines 0 comments Download
M components/sync/engine/sync_backend_registrar.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/sync/engine/sync_backend_registrar_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M components/sync/engine/ui_model_worker.h View 1 chunk +1 line, -1 line 0 comments Download
M components/sync/engine/ui_model_worker.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/sync/test/engine/fake_model_worker.h View 1 chunk +1 line, -1 line 0 comments Download
M components/sync/test/engine/fake_model_worker.cc View 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/sync/ios_chrome_sync_client.mm View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 26 (19 generated)
stanisc
sdefresne@, please review components/history vasilii@, please review components/password_manager skym@, please review everything else
3 years, 6 months ago (2017-06-14 22:39:32 UTC) #9
sdefresne
components/history/ & ios/ lgtm
3 years, 6 months ago (2017-06-15 13:22:56 UTC) #13
vasilii
lgtm components/password_manager/
3 years, 6 months ago (2017-06-16 09:28:20 UTC) #14
skym
lgtm https://codereview.chromium.org/2942773002/diff/1/components/sync/engine/model_safe_worker.h File components/sync/engine/model_safe_worker.h (right): https://codereview.chromium.org/2942773002/diff/1/components/sync/engine/model_safe_worker.h#newcode79 components/sync/engine/model_safe_worker.h:79: // Schedules |work| on the appropriate thread. Should ...
3 years, 6 months ago (2017-06-16 17:26:53 UTC) #15
stanisc
https://codereview.chromium.org/2942773002/diff/1/components/sync/engine/model_safe_worker.h File components/sync/engine/model_safe_worker.h (right): https://codereview.chromium.org/2942773002/diff/1/components/sync/engine/model_safe_worker.h#newcode79 components/sync/engine/model_safe_worker.h:79: // Schedules |work| on the appropriate thread. On 2017/06/16 ...
3 years, 6 months ago (2017-06-19 19:14:05 UTC) #18
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/2942773002/20001
3 years, 6 months ago (2017-06-19 20:49:31 UTC) #23
commit-bot: I haz the power
3 years, 6 months ago (2017-06-19 20:57:15 UTC) #26
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/5c6a294f5b440b85ba9e9156d1f0...

Powered by Google App Engine
This is Rietveld 408576698