OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/sync/engine/syncer_util.h" | 5 #include "chrome/browser/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 "chrome/browser/sync/engine/conflict_resolver.h" | 12 #include "chrome/browser/sync/engine/conflict_resolver.h" |
13 #include "chrome/browser/sync/engine/syncer_proto_util.h" | 13 #include "chrome/browser/sync/engine/syncer_proto_util.h" |
14 #include "chrome/browser/sync/engine/syncer_types.h" | 14 #include "chrome/browser/sync/engine/syncer_types.h" |
15 #include "chrome/browser/sync/engine/syncproto.h" | 15 #include "chrome/browser/sync/engine/syncproto.h" |
16 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" | 16 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" |
17 #include "chrome/browser/sync/protocol/nigori_specifics.pb.h" | 17 #include "chrome/browser/sync/protocol/nigori_specifics.pb.h" |
| 18 #include "chrome/browser/sync/protocol/password_specifics.pb.h" |
18 #include "chrome/browser/sync/protocol/sync.pb.h" | 19 #include "chrome/browser/sync/protocol/sync.pb.h" |
19 #include "chrome/browser/sync/syncable/directory_manager.h" | 20 #include "chrome/browser/sync/syncable/directory_manager.h" |
20 #include "chrome/browser/sync/syncable/model_type.h" | 21 #include "chrome/browser/sync/syncable/model_type.h" |
21 #include "chrome/browser/sync/syncable/nigori_util.h" | 22 #include "chrome/browser/sync/syncable/nigori_util.h" |
22 #include "chrome/browser/sync/syncable/syncable.h" | 23 #include "chrome/browser/sync/syncable/syncable.h" |
23 #include "chrome/browser/sync/syncable/syncable_changes_version.h" | 24 #include "chrome/browser/sync/syncable/syncable_changes_version.h" |
24 | 25 |
25 using syncable::BASE_VERSION; | 26 using syncable::BASE_VERSION; |
26 using syncable::Blob; | 27 using syncable::Blob; |
27 using syncable::CHANGES_VERSION; | 28 using syncable::CHANGES_VERSION; |
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 if (update.version() < target->Get(SERVER_VERSION)) { | 826 if (update.version() < target->Get(SERVER_VERSION)) { |
826 LOG(WARNING) << "Update older than current server version for " | 827 LOG(WARNING) << "Update older than current server version for " |
827 << *target << " Update:" | 828 << *target << " Update:" |
828 << SyncerProtoUtil::SyncEntityDebugString(update); | 829 << SyncerProtoUtil::SyncEntityDebugString(update); |
829 return VERIFY_SUCCESS; // Expected in new sync protocol. | 830 return VERIFY_SUCCESS; // Expected in new sync protocol. |
830 } | 831 } |
831 return VERIFY_UNDECIDED; | 832 return VERIFY_UNDECIDED; |
832 } | 833 } |
833 | 834 |
834 } // namespace browser_sync | 835 } // namespace browser_sync |
OLD | NEW |