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

Issue 288193002: [SyncFS] Construct and destruct sync_worker in worker_task_runner (Closed)

Created:
6 years, 7 months ago by peria
Modified:
6 years, 7 months ago
Reviewers:
nhiroki, tzik
CC:
chromium-reviews, kinuko+watch, nhiroki, tzik
Visibility:
Public.

Description

[SyncFS] Construct and destruct instances live in worker_task_runner. - SyncWorker: Construct / Destruct - SyncWorker::Observer: Destruct BUG=347425 TEST=./unit_tests --gtest_filter="SyncEngineTest.*:DriveBackendSyncTest.*" Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272876

Patch Set 1 : #

Total comments: 5

Patch Set 2 : Work for comments #

Total comments: 4

Patch Set 3 : Work for short nits #

Patch Set 4 : Removed RunLoop #

Total comments: 12

Patch Set 5 : Work for comments #

Total comments: 4

Patch Set 6 : Work for nits #

Patch Set 7 : Work for a nit, from offline chat #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -54 lines) Patch
M chrome/browser/sync_file_system/drive_backend/sync_engine.cc View 1 2 3 4 5 6 2 chunks +14 lines, -5 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/sync_worker.h View 1 2 3 4 5 2 chunks +4 lines, -11 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/sync_worker.cc View 1 2 3 4 5 8 chunks +19 lines, -38 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
peria
PTL
6 years, 7 months ago (2014-05-26 05:09:51 UTC) #1
peria
FYI: Following CL is a test in multi-threaded environment. https://codereview.chromium.org/296893002/
6 years, 7 months ago (2014-05-26 05:11:22 UTC) #2
nhiroki
https://codereview.chromium.org/288193002/diff/160001/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/288193002/diff/160001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc#newcode254 chrome/browser/sync_file_system/drive_backend/sync_engine.cc:254: net::NetworkChangeNotifier::AddNetworkChangeObserver(this); I haven't read sourcecode closely, but I guess ...
6 years, 7 months ago (2014-05-26 05:22:43 UTC) #3
nhiroki
https://codereview.chromium.org/288193002/diff/160001/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/288193002/diff/160001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc#newcode191 chrome/browser/sync_file_system/drive_backend/sync_engine.cc:191: run_loop.Run(); Hmm... this can block the UI thread?
6 years, 7 months ago (2014-05-26 05:31:32 UTC) #4
peria
https://codereview.chromium.org/288193002/diff/160001/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/288193002/diff/160001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc#newcode254 chrome/browser/sync_file_system/drive_backend/sync_engine.cc:254: net::NetworkChangeNotifier::AddNetworkChangeObserver(this); On 2014/05/26 05:22:44, nhiroki wrote: > I haven't ...
6 years, 7 months ago (2014-05-26 05:32:35 UTC) #5
tzik
https://codereview.chromium.org/288193002/diff/180001/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/288193002/diff/180001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc#newcode211 chrome/browser/sync_file_system/drive_backend/sync_engine.cc:211: worker_task_runner_->PostTask( worker_task_runner_->DeleteSoon(); should work. https://codereview.chromium.org/288193002/diff/180001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc#newcode258 chrome/browser/sync_file_system/drive_backend/sync_engine.cc:258: base::Passed(sync_engine_context.Pass()), s/sync_engine_context.Pass()/&sync_engine_context/?
6 years, 7 months ago (2014-05-26 05:41:29 UTC) #6
peria
Will remove RunLoop from SyncEngine::CreateForBrowserContext. https://codereview.chromium.org/288193002/diff/180001/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/288193002/diff/180001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc#newcode211 chrome/browser/sync_file_system/drive_backend/sync_engine.cc:211: worker_task_runner_->PostTask( On 2014/05/26 05:41:30, ...
6 years, 7 months ago (2014-05-26 06:08:10 UTC) #7
tzik
https://codereview.chromium.org/288193002/diff/220001/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc File chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc (right): https://codereview.chromium.org/288193002/diff/220001/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc#newcode85 chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc:85: could you revert these space only change? https://codereview.chromium.org/288193002/diff/220001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc File ...
6 years, 7 months ago (2014-05-26 06:50:20 UTC) #8
peria
https://codereview.chromium.org/288193002/diff/220001/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc File chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc (right): https://codereview.chromium.org/288193002/diff/220001/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc#newcode85 chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc:85: On 2014/05/26 06:50:21, tzik wrote: > could you revert ...
6 years, 7 months ago (2014-05-26 07:55:09 UTC) #9
nhiroki
Looks good overall. https://codereview.chromium.org/288193002/diff/300001/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/288193002/diff/300001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc#newcode243 chrome/browser/sync_file_system/drive_backend/sync_engine.cc:243: sync_worker_ = SyncWorker::CreateOnWorker( How about renaming ...
6 years, 7 months ago (2014-05-26 08:06:03 UTC) #10
peria
https://codereview.chromium.org/288193002/diff/300001/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/288193002/diff/300001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc#newcode243 chrome/browser/sync_file_system/drive_backend/sync_engine.cc:243: sync_worker_ = SyncWorker::CreateOnWorker( On 2014/05/26 08:06:03, nhiroki wrote: > ...
6 years, 7 months ago (2014-05-26 08:14:40 UTC) #11
nhiroki
lgtm
6 years, 7 months ago (2014-05-26 08:30:43 UTC) #12
tzik
lgtm
6 years, 7 months ago (2014-05-26 08:38:47 UTC) #13
peria
The CQ bit was checked by peria@chromium.org
6 years, 7 months ago (2014-05-26 08:41:58 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peria@chromium.org/288193002/310003
6 years, 7 months ago (2014-05-26 08:42:35 UTC) #15
commit-bot: I haz the power
6 years, 7 months ago (2014-05-26 20:17:08 UTC) #16
Message was sent while issue was closed.
Change committed as 272876

Powered by Google App Engine
This is Rietveld 408576698