| OLD | NEW |
| 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/syncable/mutable_entry.h" | 5 #include "components/sync/syncable/mutable_entry.h" |
| 6 | 6 |
| 7 #include <stdint.h> | |
| 8 | |
| 9 #include <memory> | 7 #include <memory> |
| 10 | 8 |
| 11 #include "components/sync/base/unique_position.h" | 9 #include "components/sync/base/unique_position.h" |
| 12 #include "components/sync/syncable/directory.h" | 10 #include "components/sync/syncable/directory.h" |
| 13 #include "components/sync/syncable/scoped_kernel_lock.h" | 11 #include "components/sync/syncable/scoped_kernel_lock.h" |
| 14 #include "components/sync/syncable/scoped_parent_child_index_updater.h" | 12 #include "components/sync/syncable/scoped_parent_child_index_updater.h" |
| 15 #include "components/sync/syncable/syncable_changes_version.h" | 13 #include "components/sync/syncable/syncable_changes_version.h" |
| 16 #include "components/sync/syncable/syncable_util.h" | 14 #include "components/sync/syncable/syncable_util.h" |
| 17 #include "components/sync/syncable/syncable_write_transaction.h" | 15 #include "components/sync/syncable/syncable_write_transaction.h" |
| 18 | 16 |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 DCHECK(!e->IsRoot()) << "We shouldn't mark a permanent object for syncing."; | 309 DCHECK(!e->IsRoot()) << "We shouldn't mark a permanent object for syncing."; |
| 312 if (!(e->PutIsUnsynced(true))) | 310 if (!(e->PutIsUnsynced(true))) |
| 313 return false; | 311 return false; |
| 314 if (e->GetSyncing()) | 312 if (e->GetSyncing()) |
| 315 e->PutDirtySync(true); | 313 e->PutDirtySync(true); |
| 316 return true; | 314 return true; |
| 317 } | 315 } |
| 318 | 316 |
| 319 } // namespace syncable | 317 } // namespace syncable |
| 320 } // namespace syncer | 318 } // namespace syncer |
| OLD | NEW |