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

Side by Side Diff: sync/internal_api/read_transaction.cc

Issue 582913002: Make GenericChangeProcessor upload attachments on startup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with master. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sync/internal_api/public/read_transaction.h ('k') | sync/syncable/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sync/internal_api/public/read_transaction.h" 5 #include "sync/internal_api/public/read_transaction.h"
6 6
7 #include "sync/syncable/directory.h" 7 #include "sync/syncable/directory.h"
8 #include "sync/syncable/syncable_read_transaction.h" 8 #include "sync/syncable/syncable_read_transaction.h"
9 9
10 namespace syncer { 10 namespace syncer {
(...skipping 29 matching lines...) Expand all
40 return transaction_->directory()->GetTransactionVersion(type); 40 return transaction_->directory()->GetTransactionVersion(type);
41 } 41 }
42 42
43 void ReadTransaction::GetDataTypeContext( 43 void ReadTransaction::GetDataTypeContext(
44 ModelType type, 44 ModelType type,
45 sync_pb::DataTypeContext* context) const { 45 sync_pb::DataTypeContext* context) const {
46 return transaction_->directory()->GetDataTypeContext( 46 return transaction_->directory()->GetDataTypeContext(
47 transaction_, type, context); 47 transaction_, type, context);
48 } 48 }
49 49
50 void ReadTransaction::GetAttachmentIdsToUpload(ModelType type,
51 AttachmentIdSet* id_set) {
52 DCHECK(id_set);
53 transaction_->directory()->GetAttachmentIdsToUpload(
54 transaction_, type, id_set);
55 }
56
50 } // namespace syncer 57 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/public/read_transaction.h ('k') | sync/syncable/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698