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

Issue 18668003: SyncFS: Introduce SyncFileSystemBackend (Closed)

Created:
7 years, 5 months ago by nhiroki
Modified:
7 years, 4 months ago
Reviewers:
kinuko, tzik
CC:
chromium-reviews, tzik+watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, nhiroki+watch_chromium.org, kinuko+watch
Visibility:
Public.

Description

SyncFS: Introduce SyncFileSystemBackend This change introduces SyncaFileSystemBackend to remove SyncFS dependencies from FileSystemContext and SandboxFileSystemBackend. BUG=242422 TEST=content_unittests R=kinuko@chromium.org, tzik@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215222

Patch Set 1 : #

Total comments: 12

Patch Set 2 : rebase #

Patch Set 3 : revisit #

Patch Set 4 : lazy initialization #

Total comments: 11

Patch Set 5 : rebase #

Total comments: 4

Patch Set 6 : pack file_task_runner in SandboxContext again #

Patch Set 7 : revert setter/getter for tracker and sync context #

Patch Set 8 : add Initialize() #

Total comments: 16

Patch Set 9 : review fix #

Total comments: 6

Patch Set 10 : clean up #

Patch Set 11 : proof-of-concept #

Patch Set 12 : reform #

Total comments: 1

Patch Set 13 : rebase #

Patch Set 14 : rebase fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+379 lines, -65 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M webkit/browser/fileapi/file_system_context.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +13 lines, -16 lines 0 comments Download
M webkit/browser/fileapi/sandbox_file_system_backend.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -4 lines 0 comments Download
M webkit/browser/fileapi/sandbox_file_system_backend.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +3 lines, -41 lines 0 comments Download
M webkit/browser/fileapi/syncable/canned_syncable_file_system.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -1 line 0 comments Download
A webkit/browser/fileapi/syncable/sync_file_system_backend.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +110 lines, -0 lines 0 comments Download
A webkit/browser/fileapi/syncable/sync_file_system_backend.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +240 lines, -0 lines 0 comments Download
M webkit/browser/fileapi/syncable/syncable_file_system_operation.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -3 lines 0 comments Download
M webkit/storage_browser.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
nhiroki
Hi, can you review this? Thanks!
7 years, 5 months ago (2013-07-08 11:06:22 UTC) #1
kinuko
Thanks for working on this. While reviewing the patch unfortunately I realized we need to ...
7 years, 5 months ago (2013-07-08 12:31:20 UTC) #2
nhiroki
Thank you for your comments. Addressed previous comments in separate CLs, but this is still ...
7 years, 5 months ago (2013-07-17 13:54:28 UTC) #3
kinuko
https://codereview.chromium.org/18668003/diff/73001/chrome/browser/sync_file_system/local_file_sync_service.cc File chrome/browser/sync_file_system/local_file_sync_service.cc (right): https://codereview.chromium.org/18668003/diff/73001/chrome/browser/sync_file_system/local_file_sync_service.cc#newcode291 chrome/browser/sync_file_system/local_file_sync_service.cc:291: origin, backend->change_tracker()->num_changes()); I think these changes can be made ...
7 years, 5 months ago (2013-07-17 15:01:30 UTC) #4
kinuko
https://codereview.chromium.org/18668003/diff/73001/webkit/browser/fileapi/sandbox_file_system_backend.cc File webkit/browser/fileapi/sandbox_file_system_backend.cc (right): https://codereview.chromium.org/18668003/diff/73001/webkit/browser/fileapi/sandbox_file_system_backend.cc#newcode138 webkit/browser/fileapi/sandbox_file_system_backend.cc:138: : file_task_runner_(file_task_runner), On 2013/07/17 15:01:30, kinuko wrote: > Why ...
7 years, 5 months ago (2013-07-17 15:02:59 UTC) #5
nhiroki
Comment only (sorry, I forgot to publish responses for the previous comments). https://codereview.chromium.org/18668003/diff/39001/chrome/browser/chrome_content_browser_client.h File chrome/browser/chrome_content_browser_client.h ...
7 years, 5 months ago (2013-07-22 04:34:14 UTC) #6
kinuko
https://codereview.chromium.org/18668003/diff/73001/webkit/browser/fileapi/syncable/sync_file_system_backend.cc File webkit/browser/fileapi/syncable/sync_file_system_backend.cc (right): https://codereview.chromium.org/18668003/diff/73001/webkit/browser/fileapi/syncable/sync_file_system_backend.cc#newcode56 webkit/browser/fileapi/syncable/sync_file_system_backend.cc:56: return sandbox_context_->sync_file_util(); On 2013/07/22 04:34:14, nhiroki wrote: > On ...
7 years, 5 months ago (2013-07-22 05:11:30 UTC) #7
kinuko
(additional nit) https://codereview.chromium.org/18668003/diff/86002/webkit/browser/fileapi/file_system_context.cc File webkit/browser/fileapi/file_system_context.cc (left): https://codereview.chromium.org/18668003/diff/86002/webkit/browser/fileapi/file_system_context.cc#oldcode329 webkit/browser/fileapi/file_system_context.cc:329: void FileSystemContext::SetLocalFileChangeTracker( Can you separate this change ...
7 years, 5 months ago (2013-07-22 05:51:19 UTC) #8
nhiroki
Partially updated (not ready for review yet) https://codereview.chromium.org/18668003/diff/73001/chrome/browser/sync_file_system/local_file_sync_service.cc File chrome/browser/sync_file_system/local_file_sync_service.cc (right): https://codereview.chromium.org/18668003/diff/73001/chrome/browser/sync_file_system/local_file_sync_service.cc#newcode291 chrome/browser/sync_file_system/local_file_sync_service.cc:291: origin, backend->change_tracker()->num_changes()); ...
7 years, 5 months ago (2013-07-22 06:33:37 UTC) #9
nhiroki
Updated. Can you take another look? This round added Initialize() function to FileSystemBackend. I checked ...
7 years, 5 months ago (2013-07-23 05:02:12 UTC) #10
kinuko
Looking much better/promising, SandboxFSBackend/SyncFSBackend separation would need some more cleanup, but feel free to address ...
7 years, 5 months ago (2013-07-23 06:41:50 UTC) #11
nhiroki
Updated, PTAL. https://codereview.chromium.org/18668003/diff/111001/webkit/browser/fileapi/file_system_context.cc File webkit/browser/fileapi/file_system_context.cc (right): https://codereview.chromium.org/18668003/diff/111001/webkit/browser/fileapi/file_system_context.cc#newcode139 webkit/browser/fileapi/file_system_context.cc:139: RegisterBackend(*iter); On 2013/07/23 06:41:51, kinuko wrote: > ...
7 years, 5 months ago (2013-07-24 05:58:47 UTC) #12
kinuko
Let me send this comment earlier than other comments https://codereview.chromium.org/18668003/diff/130002/webkit/browser/fileapi/file_system_context.h File webkit/browser/fileapi/file_system_context.h (right): https://codereview.chromium.org/18668003/diff/130002/webkit/browser/fileapi/file_system_context.h#newcode238 webkit/browser/fileapi/file_system_context.h:238: ...
7 years, 5 months ago (2013-07-24 06:04:06 UTC) #13
kinuko
https://codereview.chromium.org/18668003/diff/130002/webkit/browser/fileapi/syncable/sync_file_system_backend.cc File webkit/browser/fileapi/syncable/sync_file_system_backend.cc (right): https://codereview.chromium.org/18668003/diff/130002/webkit/browser/fileapi/syncable/sync_file_system_backend.cc#newcode44 webkit/browser/fileapi/syncable/sync_file_system_backend.cc:44: sandbox_context()->quota_observer(), NULL)); When do we use the parent class's ...
7 years, 5 months ago (2013-07-24 06:18:30 UTC) #14
nhiroki
Thank you for your comments! PTAL. https://codereview.chromium.org/18668003/diff/130002/webkit/browser/fileapi/file_system_context.h File webkit/browser/fileapi/file_system_context.h (right): https://codereview.chromium.org/18668003/diff/130002/webkit/browser/fileapi/file_system_context.h#newcode238 webkit/browser/fileapi/file_system_context.h:238: SandboxContext* sandbox_context() const ...
7 years, 5 months ago (2013-07-24 10:22:58 UTC) #15
nhiroki
I made sure that we can introduce SyncFileSystemBackend without inheritance or composition (see PatchSet #11). ...
7 years, 4 months ago (2013-07-30 03:29:15 UTC) #16
nhiroki
Updated! Can you take another look? On 2013/07/30 03:29:15, nhiroki wrote: > 1) Move FileSystemQuotaUtil ...
7 years, 4 months ago (2013-08-01 06:09:23 UTC) #17
kinuko
lgtm https://codereview.chromium.org/18668003/diff/192001/webkit/browser/fileapi/syncable/sync_file_system_backend.h File webkit/browser/fileapi/syncable/sync_file_system_backend.h (right): https://codereview.chromium.org/18668003/diff/192001/webkit/browser/fileapi/syncable/sync_file_system_backend.h#newcode52 webkit/browser/fileapi/syncable/sync_file_system_backend.h:52: // FileSystemQuotaUtil overrides. It feels if we keep ...
7 years, 4 months ago (2013-08-01 07:20:01 UTC) #18
nhiroki
Thanks for reviewing! On 2013/08/01 07:20:01, kinuko wrote: > lgtm > > https://codereview.chromium.org/18668003/diff/192001/webkit/browser/fileapi/syncable/sync_file_system_backend.h > File ...
7 years, 4 months ago (2013-08-01 08:10:26 UTC) #19
tzik
lgtm
7 years, 4 months ago (2013-08-02 02:20:58 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/18668003/205001
7 years, 4 months ago (2013-08-02 02:32:10 UTC) #21
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 4 months ago (2013-08-02 02:58:55 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/18668003/240001
7 years, 4 months ago (2013-08-02 03:23:50 UTC) #23
nhiroki
7 years, 4 months ago (2013-08-02 04:58:56 UTC) #24
Message was sent while issue was closed.
Committed patchset #14 manually as r215222 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698