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

Issue 15023022: Add to be fetched files instead of DriveMetadataStore.batch_sync_origins_ (Closed)

Created:
7 years, 7 months ago by calvinlo
Modified:
7 years, 7 months ago
Reviewers:
kinuko, calvinlo, tzik
CC:
chromium-reviews, tzik+watch_chromium.org
Visibility:
Public.

Description

Add to be fetched files instead of DriveMetadataStore.batch_sync_origins_ This persists files to be fetched to the DB so they can be restored in case Chrome crashes. The origin itself is no longer saved but it does get added back to pending_batch_sync_origins anyway when the SyncFS app is loaded again. Pre-requisite to deprecating batch_sync_origins from DriveMetadataStore BUG=229764 TEST=Existing unit_tests --gtest_filter=DriveFileSyncService* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202025

Patch Set 1 #

Patch Set 2 : Updated Tests #

Total comments: 4

Patch Set 3 : tzik review #1 #

Total comments: 2

Patch Set 4 : tzik review #2 #

Total comments: 8

Patch Set 5 : tzik review #3 #

Total comments: 11

Patch Set 6 : UpdateRegisteredOrigins tests is currently broken because of TaskToken not being released on shutdo… #

Patch Set 7 : tzik review #4 #

Total comments: 18

Patch Set 8 : Update to ensure DriveMetadataStore.batch_sync_origins is not used. #

Patch Set 9 : fixup after manual diff #

Total comments: 2

Patch Set 10 : Sorry made a typo after manual diff check fixups. Fix to compile. #

Patch Set 11 : Added TODO about batch_sync_origin deprecation from DB. #

Total comments: 4

Patch Set 12 : tzik review, test revisions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -308 lines) Patch
M chrome/browser/sync_file_system/drive_file_sync_service.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/sync_file_system/drive_file_sync_service.cc View 1 2 3 4 5 6 7 8 9 10 13 chunks +68 lines, -47 lines 0 comments Download
M chrome/browser/sync_file_system/drive_file_sync_service_mock_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 14 chunks +36 lines, -117 lines 0 comments Download
M chrome/browser/sync_file_system/drive_file_sync_service_sync_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync_file_system/drive_file_sync_service_unittest.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/sync_file_system/drive_metadata_store.h View 1 2 3 4 5 6 7 3 chunks +15 lines, -9 lines 0 comments Download
M chrome/browser/sync_file_system/drive_metadata_store.cc View 1 2 3 4 5 6 7 4 chunks +51 lines, -42 lines 0 comments Download
M chrome/browser/sync_file_system/drive_metadata_store_unittest.cc View 1 2 3 4 5 6 7 5 chunks +36 lines, -88 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
calvinlo
tzik san, please PTAL. As we discussed offline, I will do the actual remove of ...
7 years, 7 months ago (2013-05-16 11:52:03 UTC) #1
tzik
https://codereview.chromium.org/15023022/diff/2001/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (right): https://codereview.chromium.org/15023022/diff/2001/chrome/browser/sync_file_system/drive_file_sync_service.cc#newcode750 chrome/browser/sync_file_system/drive_file_sync_service.cc:750: metadata_store_->AddBatchSyncOrigin(origin, resource_id); could you move this around line 845? ...
7 years, 7 months ago (2013-05-16 12:11:34 UTC) #2
calvinlo
https://codereview.chromium.org/15023022/diff/2001/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (right): https://codereview.chromium.org/15023022/diff/2001/chrome/browser/sync_file_system/drive_file_sync_service.cc#newcode750 chrome/browser/sync_file_system/drive_file_sync_service.cc:750: metadata_store_->AddBatchSyncOrigin(origin, resource_id); On 2013/05/16 12:11:34, tzik wrote: > could ...
7 years, 7 months ago (2013-05-17 04:40:58 UTC) #3
tzik
https://codereview.chromium.org/15023022/diff/15001/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (right): https://codereview.chromium.org/15023022/diff/15001/chrome/browser/sync_file_system/drive_file_sync_service.cc#newcode1956 chrome/browser/sync_file_system/drive_file_sync_service.cc:1956: return; This part changes the behavior: new code doesn't ...
7 years, 7 months ago (2013-05-17 05:29:36 UTC) #4
calvinlo
Also fixed the broken tests https://codereview.chromium.org/15023022/diff/15001/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (right): https://codereview.chromium.org/15023022/diff/15001/chrome/browser/sync_file_system/drive_file_sync_service.cc#newcode1956 chrome/browser/sync_file_system/drive_file_sync_service.cc:1956: return; On 2013/05/17 05:29:36, ...
7 years, 7 months ago (2013-05-17 08:02:20 UTC) #5
tzik
Looks good! https://codereview.chromium.org/15023022/diff/24001/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (right): https://codereview.chromium.org/15023022/diff/24001/chrome/browser/sync_file_system/drive_file_sync_service.cc#newcode554 chrome/browser/sync_file_system/drive_file_sync_service.cc:554: origin, metadata_store_->disabled_origins().find(origin)->second)); can this be disabled_origins()[origin] for ...
7 years, 7 months ago (2013-05-17 09:36:56 UTC) #6
calvinlo
https://codereview.chromium.org/15023022/diff/24001/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (right): https://codereview.chromium.org/15023022/diff/24001/chrome/browser/sync_file_system/drive_file_sync_service.cc#newcode554 chrome/browser/sync_file_system/drive_file_sync_service.cc:554: origin, metadata_store_->disabled_origins().find(origin)->second)); On 2013/05/17 09:36:56, tzik wrote: > can ...
7 years, 7 months ago (2013-05-17 10:02:36 UTC) #7
kinuko
nit: Can you try to make the issue description git friendly: https://groups.google.com/a/chromium.org/d/msg/chromium-dev/sRRWJwvy2C8/qIWO7trwI6QJ Style for detailed ...
7 years, 7 months ago (2013-05-20 02:42:08 UTC) #8
calvinlo
On 2013/05/20 02:42:08, kinuko wrote: > nit: Can you try to make the issue description ...
7 years, 7 months ago (2013-05-20 03:23:38 UTC) #9
calvinlo
On 2013/05/20 02:42:08, kinuko wrote: > nit: Can you try to make the issue description ...
7 years, 7 months ago (2013-05-20 03:23:41 UTC) #10
kinuko
Thx for updating the description. I think I still have a question reg: when we ...
7 years, 7 months ago (2013-05-20 03:42:22 UTC) #11
calvinlo
https://codereview.chromium.org/15023022/diff/40001/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (left): https://codereview.chromium.org/15023022/diff/40001/chrome/browser/sync_file_system/drive_file_sync_service.cc#oldcode445 chrome/browser/sync_file_system/drive_file_sync_service.cc:445: } On 2013/05/20 02:42:08, kinuko wrote: > Drive-by question ...
7 years, 7 months ago (2013-05-20 03:53:13 UTC) #12
kinuko
https://codereview.chromium.org/15023022/diff/40001/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (left): https://codereview.chromium.org/15023022/diff/40001/chrome/browser/sync_file_system/drive_file_sync_service.cc#oldcode445 chrome/browser/sync_file_system/drive_file_sync_service.cc:445: } On 2013/05/20 03:53:14, calvinlo wrote: > On 2013/05/20 ...
7 years, 7 months ago (2013-05-20 04:06:22 UTC) #13
tzik
https://codereview.chromium.org/15023022/diff/40001/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (left): https://codereview.chromium.org/15023022/diff/40001/chrome/browser/sync_file_system/drive_file_sync_service.cc#oldcode445 chrome/browser/sync_file_system/drive_file_sync_service.cc:445: } On 2013/05/20 04:06:22, kinuko wrote: > On 2013/05/20 ...
7 years, 7 months ago (2013-05-20 04:27:59 UTC) #14
calvinlo
https://codereview.chromium.org/15023022/diff/40001/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (left): https://codereview.chromium.org/15023022/diff/40001/chrome/browser/sync_file_system/drive_file_sync_service.cc#oldcode445 chrome/browser/sync_file_system/drive_file_sync_service.cc:445: } On 2013/05/20 04:06:22, kinuko wrote: > On 2013/05/20 ...
7 years, 7 months ago (2013-05-20 04:31:54 UTC) #15
kinuko
https://codereview.chromium.org/15023022/diff/40001/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (left): https://codereview.chromium.org/15023022/diff/40001/chrome/browser/sync_file_system/drive_file_sync_service.cc#oldcode445 chrome/browser/sync_file_system/drive_file_sync_service.cc:445: } On 2013/05/20 04:31:54, calvinlo wrote: > On 2013/05/20 ...
7 years, 7 months ago (2013-05-20 04:41:47 UTC) #16
calvinlo1
My comment was written taking into consideration taiju's comment to: "I think we should just ...
7 years, 7 months ago (2013-05-20 05:02:17 UTC) #17
calvinlo
Per offline help from Taiju, please note that the review changes while small, forced a ...
7 years, 7 months ago (2013-05-20 13:48:58 UTC) #18
kinuko
https://codereview.chromium.org/15023022/diff/70003/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (right): https://codereview.chromium.org/15023022/diff/70003/chrome/browser/sync_file_system/drive_file_sync_service.cc#newcode527 chrome/browser/sync_file_system/drive_file_sync_service.cc:527: if (!metadata_store_->IsBatchSyncOrigin(origin) && This line could be removed too? ...
7 years, 7 months ago (2013-05-20 15:31:49 UTC) #19
calvinlo
Just FYI, when I started this patch I had talked to Taiju about whether to ...
7 years, 7 months ago (2013-05-21 02:09:00 UTC) #20
kinuko
I'm not asking for deprecating DriveMetadataStore.batch_sync_origins_ at this stage, just want to make this patch ...
7 years, 7 months ago (2013-05-21 02:52:27 UTC) #21
tzik
I think it's OK to postpone actual batch sync removal as far as it doesn't ...
7 years, 7 months ago (2013-05-21 04:05:45 UTC) #22
calvinlo
Sorry for the large number of changes. I've had to change a lot based on ...
7 years, 7 months ago (2013-05-21 07:12:25 UTC) #23
tzik
lgtm https://codereview.chromium.org/15023022/diff/91009/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (right): https://codereview.chromium.org/15023022/diff/91009/chrome/browser/sync_file_system/drive_file_sync_service.cc#newcode394 chrome/browser/sync_file_system/drive_file_sync_service.cc:394: On 2013/05/21 07:12:26, calvinlo wrote: > Do we ...
7 years, 7 months ago (2013-05-21 14:08:38 UTC) #24
calvinlo
On 2013/05/21 14:08:38, tzik wrote: > lgtm > > https://codereview.chromium.org/15023022/diff/91009/chrome/browser/sync_file_system/drive_file_sync_service.cc > File chrome/browser/sync_file_system/drive_file_sync_service.cc (right): > ...
7 years, 7 months ago (2013-05-21 14:22:08 UTC) #25
tzik
https://codereview.chromium.org/15023022/diff/121001/chrome/browser/sync_file_system/drive_file_sync_service_mock_unittest.cc File chrome/browser/sync_file_system/drive_file_sync_service_mock_unittest.cc (right): https://codereview.chromium.org/15023022/diff/121001/chrome/browser/sync_file_system/drive_file_sync_service_mock_unittest.cc#newcode751 chrome/browser/sync_file_system/drive_file_sync_service_mock_unittest.cc:751: metadata_store()->AddIncrementalSyncOrigin(kOrigin2, kDirectoryResourceId2); Could you move this back before SetUpDriveSyncService? ...
7 years, 7 months ago (2013-05-23 04:03:05 UTC) #26
calvinlo
https://codereview.chromium.org/15023022/diff/121001/chrome/browser/sync_file_system/drive_file_sync_service_mock_unittest.cc File chrome/browser/sync_file_system/drive_file_sync_service_mock_unittest.cc (right): https://codereview.chromium.org/15023022/diff/121001/chrome/browser/sync_file_system/drive_file_sync_service_mock_unittest.cc#newcode751 chrome/browser/sync_file_system/drive_file_sync_service_mock_unittest.cc:751: metadata_store()->AddIncrementalSyncOrigin(kOrigin2, kDirectoryResourceId2); On 2013/05/23 04:03:05, tzik wrote: > Could ...
7 years, 7 months ago (2013-05-23 08:23:04 UTC) #27
tzik
lgtm
7 years, 7 months ago (2013-05-24 03:44:21 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calvinlo@chromium.org/15023022/146001
7 years, 7 months ago (2013-05-24 03:45:45 UTC) #29
commit-bot: I haz the power
7 years, 7 months ago (2013-05-24 09:20:20 UTC) #30
Message was sent while issue was closed.
Change committed as 202025

Powered by Google App Engine
This is Rietveld 408576698