| OLD | NEW |
| 1 // Copyright (c) 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/engine/syncer_util.h" | 5 #include "sync/engine/syncer_util.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
| 14 #include "sync/engine/conflict_resolver.h" | 14 #include "sync/engine/conflict_resolver.h" |
| 15 #include "sync/engine/syncer_proto_util.h" | 15 #include "sync/engine/syncer_proto_util.h" |
| 16 #include "sync/engine/syncer_types.h" | 16 #include "sync/engine/syncer_types.h" |
| 17 #include "sync/internal_api/public/base/model_type.h" | 17 #include "sync/internal_api/public/base/model_type.h" |
| 18 #include "sync/protocol/bookmark_specifics.pb.h" | 18 #include "sync/protocol/bookmark_specifics.pb.h" |
| 19 #include "sync/protocol/password_specifics.pb.h" | 19 #include "sync/protocol/password_specifics.pb.h" |
| 20 #include "sync/protocol/sync.pb.h" | 20 #include "sync/protocol/sync.pb.h" |
| 21 #include "sync/syncable/directory.h" | 21 #include "sync/syncable/directory.h" |
| 22 #include "sync/syncable/entry.h" | 22 #include "sync/syncable/entry.h" |
| 23 #include "sync/syncable/mutable_entry.h" | 23 #include "sync/syncable/mutable_entry.h" |
| 24 #include "sync/syncable/read_transaction.h" | |
| 25 #include "sync/syncable/syncable_changes_version.h" | 24 #include "sync/syncable/syncable_changes_version.h" |
| 26 #include "sync/syncable/syncable_proto_util.h" | 25 #include "sync/syncable/syncable_proto_util.h" |
| 26 #include "sync/syncable/syncable_read_transaction.h" |
| 27 #include "sync/syncable/syncable_util.h" | 27 #include "sync/syncable/syncable_util.h" |
| 28 #include "sync/syncable/write_transaction.h" | 28 #include "sync/syncable/syncable_write_transaction.h" |
| 29 #include "sync/util/cryptographer.h" | 29 #include "sync/util/cryptographer.h" |
| 30 #include "sync/util/time.h" | 30 #include "sync/util/time.h" |
| 31 | 31 |
| 32 // TODO(vishwath): Remove this include after node positions have | 32 // TODO(vishwath): Remove this include after node positions have |
| 33 // shifted to completely uing Ordinals. | 33 // shifted to completely uing Ordinals. |
| 34 // See http://crbug.com/145412 . | 34 // See http://crbug.com/145412 . |
| 35 #include "sync/internal_api/public/base/node_ordinal.h" | 35 #include "sync/internal_api/public/base/node_ordinal.h" |
| 36 | 36 |
| 37 namespace syncer { | 37 namespace syncer { |
| 38 | 38 |
| (...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 if (update.version() < target->Get(SERVER_VERSION)) { | 651 if (update.version() < target->Get(SERVER_VERSION)) { |
| 652 LOG(WARNING) << "Update older than current server version for " | 652 LOG(WARNING) << "Update older than current server version for " |
| 653 << *target << " Update:" | 653 << *target << " Update:" |
| 654 << SyncerProtoUtil::SyncEntityDebugString(update); | 654 << SyncerProtoUtil::SyncEntityDebugString(update); |
| 655 return VERIFY_SUCCESS; // Expected in new sync protocol. | 655 return VERIFY_SUCCESS; // Expected in new sync protocol. |
| 656 } | 656 } |
| 657 return VERIFY_UNDECIDED; | 657 return VERIFY_UNDECIDED; |
| 658 } | 658 } |
| 659 | 659 |
| 660 } // namespace syncer | 660 } // namespace syncer |
| OLD | NEW |