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

Issue 22810002: SyncFS: Reorder initialization sequence of SyncFileSystemService (Closed)

Created:
7 years, 4 months ago by nhiroki
Modified:
7 years, 3 months ago
Reviewers:
kinuko, tzik
CC:
chromium-reviews, nhiroki+watch_chromium.org, tzik+watch_chromium.org, kinuko+watch, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

SyncFS: Reorder initialization sequence of SyncFileSystemService Moves initialization part for SyncFileSystemService from SyncFileSystem's API handling layer (sync_file_system_api.{cc,h}) to SyncFileSystemBackend so that non-chrome API can start SyncFileSystemService. This is a preparation patch for supporting window.resolveLocalFileSystemURL() on SyncFileSystem. See the bug issue for more details. BUG=177137 TEST=unit_tests TEST=browser_tests --gtest_filter=SyncFileSystemApiTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220552

Patch Set 1 : #

Total comments: 9

Patch Set 2 : fix Profile handling #

Total comments: 1

Patch Set 3 : review fix #

Total comments: 15

Patch Set 4 : fix lifetime management of the backend #

Total comments: 4

Patch Set 5 : review fix #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -73 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/sync_file_system/sync_file_system_api.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc View 1 2 3 4 5 6 2 chunks +13 lines, -28 lines 0 comments Download
M chrome/browser/sync_file_system/local/canned_syncable_file_system.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync_file_system/local/sync_file_system_backend.h View 1 2 3 4 5 6 3 chunks +52 lines, -14 lines 0 comments Download
M chrome/browser/sync_file_system/local/sync_file_system_backend.cc View 1 2 3 4 5 6 9 chunks +156 lines, -28 lines 0 comments Download
M chrome/browser/sync_file_system/sync_status_code.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sync_file_system/sync_status_code.cc View 1 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
nhiroki
Hi, can you take a look? Thanks!
7 years, 4 months ago (2013-08-23 08:51:34 UTC) #1
kinuko
https://codereview.chromium.org/22810002/diff/35001/chrome/browser/sync_file_system/local/sync_file_system_backend.cc File chrome/browser/sync_file_system/local/sync_file_system_backend.cc (right): https://codereview.chromium.org/22810002/diff/35001/chrome/browser/sync_file_system/local/sync_file_system_backend.cc#newcode30 chrome/browser/sync_file_system/local/sync_file_system_backend.cc:30: skip_initialize_syncfs_service_for_testing_(false) { This is called on UI thread.. is ...
7 years, 4 months ago (2013-08-23 10:02:02 UTC) #2
nhiroki
Update! Can you take another look? And I wrote a rough document about the initialization ...
7 years, 3 months ago (2013-08-28 05:37:42 UTC) #3
kinuko
https://codereview.chromium.org/22810002/diff/35001/chrome/browser/sync_file_system/local/sync_file_system_backend.cc File chrome/browser/sync_file_system/local/sync_file_system_backend.cc (right): https://codereview.chromium.org/22810002/diff/35001/chrome/browser/sync_file_system/local/sync_file_system_backend.cc#newcode30 chrome/browser/sync_file_system/local/sync_file_system_backend.cc:30: skip_initialize_syncfs_service_for_testing_(false) { On 2013/08/28 05:37:42, nhiroki wrote: > On ...
7 years, 3 months ago (2013-08-28 06:51:28 UTC) #4
kinuko
On Wed, Aug 28, 2013 at 3:51 PM, <kinuko@chromium.org> wrote: > > https://codereview.chromium.**org/22810002/diff/35001/** > chrome/browser/sync_file_**system/local/sync_file_system_**backend.cc<https://codereview.chromium.org/22810002/diff/35001/chrome/browser/sync_file_system/local/sync_file_system_backend.cc> ...
7 years, 3 months ago (2013-08-28 06:55:45 UTC) #5
kinuko
On Wed, Aug 28, 2013 at 3:55 PM, Kinuko Yasuda <kinuko@chromium.org> wrote: > On Wed, ...
7 years, 3 months ago (2013-08-28 07:00:19 UTC) #6
nhiroki
On 2013/08/28 06:55:45, kinuko wrote: > Just found some notes about this in the doc... ...
7 years, 3 months ago (2013-08-28 07:07:17 UTC) #7
nhiroki
https://codereview.chromium.org/22810002/diff/35001/chrome/browser/sync_file_system/local/sync_file_system_backend.cc File chrome/browser/sync_file_system/local/sync_file_system_backend.cc (right): https://codereview.chromium.org/22810002/diff/35001/chrome/browser/sync_file_system/local/sync_file_system_backend.cc#newcode30 chrome/browser/sync_file_system/local/sync_file_system_backend.cc:30: skip_initialize_syncfs_service_for_testing_(false) { On 2013/08/28 06:51:28, kinuko wrote: > On ...
7 years, 3 months ago (2013-08-28 07:46:46 UTC) #8
kinuko
https://codereview.chromium.org/22810002/diff/35001/chrome/browser/sync_file_system/local/sync_file_system_backend.cc File chrome/browser/sync_file_system/local/sync_file_system_backend.cc (right): https://codereview.chromium.org/22810002/diff/35001/chrome/browser/sync_file_system/local/sync_file_system_backend.cc#newcode30 chrome/browser/sync_file_system/local/sync_file_system_backend.cc:30: skip_initialize_syncfs_service_for_testing_(false) { On 2013/08/28 07:46:46, nhiroki wrote: > On ...
7 years, 3 months ago (2013-08-28 08:23:57 UTC) #9
nhiroki
Updated! PTAL. On 2013/08/28 08:23:57, kinuko wrote: > https://codereview.chromium.org/22810002/diff/35001/chrome/browser/sync_file_system/local/sync_file_system_backend.cc > File chrome/browser/sync_file_system/local/sync_file_system_backend.cc (right): > > ...
7 years, 3 months ago (2013-08-28 10:51:33 UTC) #10
kinuko
https://codereview.chromium.org/22810002/diff/65001/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc File chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc (right): https://codereview.chromium.org/22810002/diff/65001/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc#newcode112 chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc:112: GetSyncFileSystemService(profile()); nit: Can you comment that this is to ...
7 years, 3 months ago (2013-08-28 11:24:44 UTC) #11
nhiroki
Thank you for reviewing. Updated. https://codereview.chromium.org/22810002/diff/65001/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc File chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc (right): https://codereview.chromium.org/22810002/diff/65001/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc#newcode112 chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc:112: GetSyncFileSystemService(profile()); On 2013/08/28 11:24:45, ...
7 years, 3 months ago (2013-08-29 04:31:34 UTC) #12
kinuko
lgtm https://codereview.chromium.org/22810002/diff/65001/chrome/browser/sync_file_system/local/sync_file_system_backend.cc File chrome/browser/sync_file_system/local/sync_file_system_backend.cc (right): https://codereview.chromium.org/22810002/diff/65001/chrome/browser/sync_file_system/local/sync_file_system_backend.cc#newcode53 chrome/browser/sync_file_system/local/sync_file_system_backend.cc:53: case chrome::NOTIFICATION_PROFILE_DESTROYED: { On 2013/08/29 04:31:34, nhiroki wrote: ...
7 years, 3 months ago (2013-08-29 08:28:21 UTC) #13
nhiroki
Thanks! https://codereview.chromium.org/22810002/diff/80001/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc File chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc (right): https://codereview.chromium.org/22810002/diff/80001/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc#newcode112 chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc:112: // Initializes observer of sync events in SyncFileSystem. ...
7 years, 3 months ago (2013-08-29 08:43:34 UTC) #14
tzik
lgtm
7 years, 3 months ago (2013-08-30 04:47:34 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/22810002/94001
7 years, 3 months ago (2013-08-30 05:47:43 UTC) #16
commit-bot: I haz the power
Failed to apply patch for chrome/browser/sync_file_system/local/sync_file_system_backend.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 3 months ago (2013-08-30 05:47:46 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/22810002/107001
7 years, 3 months ago (2013-08-30 05:54:56 UTC) #18
commit-bot: I haz the power
Failed to apply patch for chrome/browser/sync_file_system/local/sync_file_system_backend.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 3 months ago (2013-08-30 05:55:04 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/22810002/110001
7 years, 3 months ago (2013-08-30 06:10:34 UTC) #20
commit-bot: I haz the power
7 years, 3 months ago (2013-08-30 11:20:42 UTC) #21
Message was sent while issue was closed.
Change committed as 220552

Powered by Google App Engine
This is Rietveld 408576698