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

Side by Side Diff: components/sync/syncable/write_transaction.cc

Issue 2407163004: [Sync] Move some directory-related things from core/ to syncable/. (Closed)
Patch Set: Created 4 years, 2 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 | « components/sync/syncable/write_transaction.h ('k') | components/sync/tools/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 "components/sync/core/write_transaction.h" 5 #include "components/sync/syncable/write_transaction.h"
6 6
7 #include "components/sync/syncable/directory.h" 7 #include "components/sync/syncable/directory.h"
8 #include "components/sync/syncable/mutable_entry.h" 8 #include "components/sync/syncable/mutable_entry.h"
9 #include "components/sync/syncable/syncable_write_transaction.h" 9 #include "components/sync/syncable/syncable_write_transaction.h"
10 10
11 namespace syncer { 11 namespace syncer {
12 12
13 ////////////////////////////////////////////////////////////////////////// 13 //////////////////////////////////////////////////////////////////////////
14 // WriteTransaction member definitions 14 // WriteTransaction member definitions
15 WriteTransaction::WriteTransaction(const tracked_objects::Location& from_here, 15 WriteTransaction::WriteTransaction(const tracked_objects::Location& from_here,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 GetDirectory()->GetMetahandlesByAttachmentId( 80 GetDirectory()->GetMetahandlesByAttachmentId(
81 transaction_, attachment_id.GetProto(), &handles); 81 transaction_, attachment_id.GetProto(), &handles);
82 for (syncable::Directory::Metahandles::iterator iter = handles.begin(); 82 for (syncable::Directory::Metahandles::iterator iter = handles.begin();
83 iter != handles.end(); ++iter) { 83 iter != handles.end(); ++iter) {
84 syncable::MutableEntry entry(transaction_, syncable::GET_BY_HANDLE, *iter); 84 syncable::MutableEntry entry(transaction_, syncable::GET_BY_HANDLE, *iter);
85 entry.MarkAttachmentAsOnServer(attachment_id.GetProto()); 85 entry.MarkAttachmentAsOnServer(attachment_id.GetProto());
86 } 86 }
87 } 87 }
88 88
89 } // namespace syncer 89 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/syncable/write_transaction.h ('k') | components/sync/tools/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698