OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_node.h" | 5 #include "components/sync/core/write_node.h" |
6 | 6 |
| 7 #include <memory> |
| 8 |
7 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
8 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
9 #include "base/values.h" | 11 #include "base/values.h" |
10 #include "components/sync/base/cryptographer.h" | 12 #include "components/sync/base/cryptographer.h" |
11 #include "components/sync/core/base_transaction.h" | 13 #include "components/sync/core/base_transaction.h" |
12 #include "components/sync/core/write_transaction.h" | 14 #include "components/sync/core/write_transaction.h" |
13 #include "components/sync/core_impl/syncapi_internal.h" | 15 #include "components/sync/core_impl/syncapi_internal.h" |
14 #include "components/sync/protocol/bookmark_specifics.pb.h" | 16 #include "components/sync/protocol/bookmark_specifics.pb.h" |
15 #include "components/sync/protocol/typed_url_specifics.pb.h" | 17 #include "components/sync/protocol/typed_url_specifics.pb.h" |
16 #include "components/sync/syncable/mutable_entry.h" | 18 #include "components/sync/syncable/mutable_entry.h" |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 syncable::Id predecessor_id = | 469 syncable::Id predecessor_id = |
468 predecessor ? predecessor->GetSyncId() : syncable::Id(); | 470 predecessor ? predecessor->GetSyncId() : syncable::Id(); |
469 return entry_->PutPredecessor(predecessor_id); | 471 return entry_->PutPredecessor(predecessor_id); |
470 } | 472 } |
471 | 473 |
472 void WriteNode::MarkForSyncing() { | 474 void WriteNode::MarkForSyncing() { |
473 syncable::MarkForSyncing(entry_); | 475 syncable::MarkForSyncing(entry_); |
474 } | 476 } |
475 | 477 |
476 } // namespace syncer | 478 } // namespace syncer |
OLD | NEW |