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

Issue 265853004: Revert of Keep track of which attachments are referenced by which sync entries. (Closed)

Created:
6 years, 7 months ago by maniscalco
Modified:
6 years, 7 months ago
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, albertb+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

Revert of Keep track of which attachments are referenced by which sync entries. (https://codereview.chromium.org/247983002/) Reason for revert: Looks like this may have introduced a memory leak: http://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20Tests%20%28valgrind%29%282%29/builds/37232 Reverting. Will investigate and reland when appropriate. Original issue's description: > Keep track of which attachments are referenced by which sync entries. > > PutAttachmentMetadata on MutableEntry now notifies the Directory when > the attachments associated with an entry change. > > Give Directory::InitializeIndices a ScopedKernelLock to be consistent > and make it easier to ensure we are locking when we need to. > > GenericChangeProcess passes new attachments to AttachmentService for > storage and upload. > > Add an output parameter to GenericChangeProcessor's HandleActionAdd and > HandleActionUpdate methods so they can keep track of potentially new > attachments and pass them to AttachmentService for storage/upload. > > Convert AttachmentService's OnSyncDataAdd to StoreAttachments. > > Implement HasAttachmentNotOnServer. > > BUG=348625, 353303, 354530, 356266 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267617 TBR=pavely@chromium.org,tim@chromium.org NOTREECHECKS=true NOTRY=true BUG=348625, 353303, 354530, 356266 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267649

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -861 lines) Patch
M components/sync_driver/generic_change_processor.h View 1 chunk +4 lines, -13 lines 0 comments Download
M components/sync_driver/generic_change_processor.cc View 10 chunks +25 lines, -92 lines 0 comments Download
M components/sync_driver/generic_change_processor_unittest.cc View 6 chunks +8 lines, -107 lines 0 comments Download
M sync/api/attachments/attachment_id.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M sync/api/attachments/attachment_service.h View 2 chunks +5 lines, -18 lines 0 comments Download
M sync/api/attachments/attachment_service_proxy.h View 2 chunks +2 lines, -4 lines 0 comments Download
M sync/api/attachments/attachment_service_proxy.cc View 3 chunks +4 lines, -21 lines 0 comments Download
M sync/api/attachments/attachment_service_proxy_unittest.cc View 6 chunks +6 lines, -22 lines 0 comments Download
M sync/api/attachments/fake_attachment_service.h View 2 chunks +1 line, -4 lines 0 comments Download
M sync/api/attachments/fake_attachment_service.cc View 2 chunks +3 lines, -20 lines 0 comments Download
M sync/api/sync_data.h View 1 chunk +5 lines, -10 lines 0 comments Download
M sync/api/sync_data.cc View 3 chunks +6 lines, -16 lines 0 comments Download
M sync/engine/get_commit_ids.cc View 1 chunk +3 lines, -7 lines 0 comments Download
M sync/internal_api/base_node.cc View 1 chunk +4 lines, -7 lines 0 comments Download
D sync/internal_api/public/base/attachment_id_proto.h View 1 chunk +0 lines, -20 lines 0 comments Download
D sync/internal_api/public/base/attachment_id_proto.cc View 1 chunk +0 lines, -19 lines 0 comments Download
M sync/internal_api/public/base_transaction.h View 1 chunk +0 lines, -3 lines 0 comments Download
M sync/internal_api/public/write_node.h View 1 chunk +0 lines, -4 lines 0 comments Download
M sync/internal_api/sync_manager_impl_unittest.cc View 20 chunks +78 lines, -173 lines 0 comments Download
M sync/internal_api/write_node.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M sync/protocol/attachments.proto View 1 chunk +0 lines, -9 lines 0 comments Download
M sync/sync_internal_api.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M sync/syncable/directory.h View 6 chunks +1 line, -43 lines 0 comments Download
M sync/syncable/directory.cc View 10 chunks +2 lines, -68 lines 0 comments Download
M sync/syncable/directory_backing_store.cc View 2 chunks +0 lines, -9 lines 0 comments Download
M sync/syncable/directory_unittest.h View 2 chunks +4 lines, -15 lines 0 comments Download
M sync/syncable/directory_unittest.cc View 5 chunks +10 lines, -127 lines 0 comments Download
M sync/syncable/entry_kernel.h View 1 chunk +0 lines, -4 lines 0 comments Download
M sync/syncable/mutable_entry.h View 1 chunk +0 lines, -3 lines 0 comments Download
M sync/syncable/mutable_entry.cc View 1 chunk +0 lines, -14 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
maniscalco
Created Revert of Keep track of which attachments are referenced by which sync entries.
6 years, 7 months ago (2014-05-01 21:58:53 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maniscalco@chromium.org/265853004/1
6 years, 7 months ago (2014-05-01 21:59:47 UTC) #2
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-01 21:59:48 UTC) #3
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 7 months ago (2014-05-01 21:59:48 UTC) #4
Lei Zhang
The CQ bit was checked by thestig@chromium.org
6 years, 7 months ago (2014-05-01 22:00:49 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maniscalco@chromium.org/265853004/1
6 years, 7 months ago (2014-05-01 22:04:35 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-01 22:04:41 UTC) #7
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 7 months ago (2014-05-01 22:04:41 UTC) #8
Lei Zhang
and lgtm
6 years, 7 months ago (2014-05-01 22:07:02 UTC) #9
Lei Zhang
The CQ bit was checked by thestig@chromium.org
6 years, 7 months ago (2014-05-01 22:07:05 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maniscalco@chromium.org/265853004/1
6 years, 7 months ago (2014-05-01 22:07:41 UTC) #11
commit-bot: I haz the power
6 years, 7 months ago (2014-05-01 22:10:42 UTC) #12
Message was sent while issue was closed.
Change committed as 267649

Powered by Google App Engine
This is Rietveld 408576698