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

Issue 236313009: [SyncFS] Post tasks between SyncEngine and SyncWorker (Closed)

Created:
6 years, 8 months ago by peria
Modified:
6 years, 8 months ago
Reviewers:
tzik
CC:
chromium-reviews, kinuko+watch, nhiroki, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Remove all method-calls between SyncEngine and SyncWorker, and make them to post tasks instead. BUG=347425 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=264976

Patch Set 1 : #

Patch Set 2 : Use post tasks temporarily #

Total comments: 10

Patch Set 3 : Remove RelayToTaskRunner for SyncEngine bindings #

Patch Set 4 : Post all tasks of SyncEngine without return values #

Patch Set 5 : Post callback functions #

Total comments: 16

Patch Set 6 : Work for comments #

Total comments: 12

Patch Set 7 : Work for comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -81 lines) Patch
M chrome/browser/sync_file_system/drive_backend/conflict_resolver_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc View 1 2 3 4 5 2 chunks +8 lines, -12 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/list_changes_task_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/sync_engine.h View 1 2 3 4 5 6 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/sync_engine.cc View 1 2 3 4 5 6 7 chunks +94 lines, -25 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/sync_engine_context.h View 1 2 3 4 5 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/sync_engine_context.cc View 1 2 3 4 5 6 2 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/sync_engine_initializer_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/sync_worker.cc View 1 2 3 4 5 13 chunks +44 lines, -29 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
peria
Just for notes. This CL is not ready to be reviewed. https://codereview.chromium.org/236313009/diff/70001/chrome/browser/sync_file_system/drive_backend/sync_worker.cc File chrome/browser/sync_file_system/drive_backend/sync_worker.cc (right): ...
6 years, 8 months ago (2014-04-16 05:56:12 UTC) #1
tzik
https://codereview.chromium.org/236313009/diff/70001/chrome/browser/sync_file_system/drive_backend/sync_worker.cc File chrome/browser/sync_file_system/drive_backend/sync_worker.cc (right): https://codereview.chromium.org/236313009/diff/70001/chrome/browser/sync_file_system/drive_backend/sync_worker.cc#newcode61 chrome/browser/sync_file_system/drive_backend/sync_worker.cc:61: const base::Callback<void(void)>& callback) { s/base::Callback<void(void)>/base::Closure/ https://codereview.chromium.org/236313009/diff/70001/chrome/browser/sync_file_system/drive_backend/sync_worker.cc#newcode69 chrome/browser/sync_file_system/drive_backend/sync_worker.cc:69: const T& ...
6 years, 8 months ago (2014-04-16 17:21:19 UTC) #2
tzik
https://codereview.chromium.org/236313009/diff/70001/chrome/browser/sync_file_system/drive_backend/sync_worker.cc File chrome/browser/sync_file_system/drive_backend/sync_worker.cc (right): https://codereview.chromium.org/236313009/diff/70001/chrome/browser/sync_file_system/drive_backend/sync_worker.cc#newcode257 chrome/browser/sync_file_system/drive_backend/sync_worker.cc:257: base::Unretained(sync_engine_.get())), BTW, just ui_task_runner->PostTask() seems to work for this ...
6 years, 8 months ago (2014-04-16 17:42:20 UTC) #3
tzik
https://codereview.chromium.org/236313009/diff/70001/chrome/browser/sync_file_system/drive_backend/sync_worker.cc File chrome/browser/sync_file_system/drive_backend/sync_worker.cc (right): https://codereview.chromium.org/236313009/diff/70001/chrome/browser/sync_file_system/drive_backend/sync_worker.cc#newcode69 chrome/browser/sync_file_system/drive_backend/sync_worker.cc:69: const T& p1) { Whether we should do it ...
6 years, 8 months ago (2014-04-16 18:26:21 UTC) #4
peria
https://codereview.chromium.org/236313009/diff/70001/chrome/browser/sync_file_system/drive_backend/sync_worker.cc File chrome/browser/sync_file_system/drive_backend/sync_worker.cc (right): https://codereview.chromium.org/236313009/diff/70001/chrome/browser/sync_file_system/drive_backend/sync_worker.cc#newcode61 chrome/browser/sync_file_system/drive_backend/sync_worker.cc:61: const base::Callback<void(void)>& callback) { On 2014/04/16 17:21:19, tzik wrote: ...
6 years, 8 months ago (2014-04-17 01:40:19 UTC) #5
tzik
https://codereview.chromium.org/236313009/diff/130001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc File chrome/browser/sync_file_system/drive_backend/sync_engine.cc (right): https://codereview.chromium.org/236313009/diff/130001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc#newcode93 chrome/browser/sync_file_system/drive_backend/sync_engine.cc:93: scoped_refptr<base::SequencedTaskRunner> task_runner( s/task_runner/file_task_runner/? Until we complete the migration, we ...
6 years, 8 months ago (2014-04-17 17:48:31 UTC) #6
peria
https://codereview.chromium.org/236313009/diff/130001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc File chrome/browser/sync_file_system/drive_backend/sync_engine.cc (right): https://codereview.chromium.org/236313009/diff/130001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc#newcode93 chrome/browser/sync_file_system/drive_backend/sync_engine.cc:93: scoped_refptr<base::SequencedTaskRunner> task_runner( On 2014/04/17 17:48:32, tzik wrote: > s/task_runner/file_task_runner/? ...
6 years, 8 months ago (2014-04-18 05:19:35 UTC) #7
peria
https://codereview.chromium.org/236313009/diff/150001/chrome/browser/sync_file_system/drive_backend/sync_engine_context.cc File chrome/browser/sync_file_system/drive_backend/sync_engine_context.cc (right): https://codereview.chromium.org/236313009/diff/150001/chrome/browser/sync_file_system/drive_backend/sync_engine_context.cc#newcode23 chrome/browser/sync_file_system/drive_backend/sync_engine_context.cc:23: base::SequencedTaskRunner* worker_task_runner) s/worker/file/ https://codereview.chromium.org/236313009/diff/150001/chrome/browser/sync_file_system/drive_backend/sync_engine_context.cc#newcode28 chrome/browser/sync_file_system/drive_backend/sync_engine_context.cc:28: file_task_runner_(worker_task_runner) {} ditto.
6 years, 8 months ago (2014-04-21 02:25:52 UTC) #8
tzik
Looks good. https://codereview.chromium.org/236313009/diff/150001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc File chrome/browser/sync_file_system/drive_backend/sync_engine.cc (right): https://codereview.chromium.org/236313009/diff/150001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc#newcode99 chrome/browser/sync_file_system/drive_backend/sync_engine.cc:99: base::SequencedTaskRunner* s/base::SequencedTaskRunner/scoped_refptr<base::SingleThreadTaskRunner>/? It's for ensuring the TaskRunner ...
6 years, 8 months ago (2014-04-21 04:09:10 UTC) #9
peria
PTAL https://codereview.chromium.org/236313009/diff/150001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc File chrome/browser/sync_file_system/drive_backend/sync_engine.cc (right): https://codereview.chromium.org/236313009/diff/150001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc#newcode99 chrome/browser/sync_file_system/drive_backend/sync_engine.cc:99: base::SequencedTaskRunner* On 2014/04/21 04:09:10, tzik wrote: > s/base::SequencedTaskRunner/scoped_refptr<base::SingleThreadTaskRunner>/? ...
6 years, 8 months ago (2014-04-21 04:50:05 UTC) #10
tzik
lgtm https://codereview.chromium.org/236313009/diff/150001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc File chrome/browser/sync_file_system/drive_backend/sync_engine.cc (right): https://codereview.chromium.org/236313009/diff/150001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc#newcode139 chrome/browser/sync_file_system/drive_backend/sync_engine.cc:139: base::MessageLoopProxy::current(), On 2014/04/21 04:50:06, peria wrote: > On ...
6 years, 8 months ago (2014-04-21 05:10:04 UTC) #11
peria
The CQ bit was checked by peria@chromium.org
6 years, 8 months ago (2014-04-21 05:10:43 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peria@chromium.org/236313009/170001
6 years, 8 months ago (2014-04-21 05:10:46 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-21 06:36:03 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_rel
6 years, 8 months ago (2014-04-21 06:36:03 UTC) #15
peria
The CQ bit was checked by peria@chromium.org
6 years, 8 months ago (2014-04-21 06:50:23 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peria@chromium.org/236313009/170001
6 years, 8 months ago (2014-04-21 06:50:32 UTC) #17
commit-bot: I haz the power
Change committed as 264976
6 years, 8 months ago (2014-04-21 10:43:44 UTC) #18
tzik
6 years, 8 months ago (2014-04-21 11:33:48 UTC) #19
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/243583005/ by tzik@chromium.org.

The reason for reverting is: This causes UAF on Linux ASan LSan Tests bot.
The error log is:
http://build.chromium.org/p/chromium.memory/builders/Linux%20ASan%20LSan%20Te....

Powered by Google App Engine
This is Rietveld 408576698