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/engine_impl/update_applicator.h" | 5 #include "components/sync/engine_impl/update_applicator.h" |
6 | 6 |
7 #include <stdint.h> | |
8 | |
9 #include <vector> | |
10 | |
11 #include "base/logging.h" | 7 #include "base/logging.h" |
12 #include "components/sync/engine_impl/syncer_util.h" | 8 #include "components/sync/engine_impl/syncer_util.h" |
13 #include "components/sync/syncable/entry.h" | 9 #include "components/sync/syncable/entry.h" |
14 #include "components/sync/syncable/mutable_entry.h" | 10 #include "components/sync/syncable/mutable_entry.h" |
15 #include "components/sync/syncable/syncable_id.h" | |
16 #include "components/sync/syncable/syncable_write_transaction.h" | 11 #include "components/sync/syncable/syncable_write_transaction.h" |
17 | 12 |
18 using std::vector; | 13 using std::vector; |
19 | 14 |
20 namespace syncer { | 15 namespace syncer { |
21 | 16 |
22 using syncable::ID; | 17 using syncable::ID; |
23 | 18 |
24 UpdateApplicator::UpdateApplicator(Cryptographer* cryptographer) | 19 UpdateApplicator::UpdateApplicator(Cryptographer* cryptographer) |
25 : cryptographer_(cryptographer), | 20 : cryptographer_(cryptographer), |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 83 |
89 // We made some progress, so prepare for what might be another iteration. | 84 // We made some progress, so prepare for what might be another iteration. |
90 // If everything went well, to_reapply will be empty and we'll break out on | 85 // If everything went well, to_reapply will be empty and we'll break out on |
91 // the while condition. | 86 // the while condition. |
92 to_apply.swap(to_reapply); | 87 to_apply.swap(to_reapply); |
93 to_reapply.clear(); | 88 to_reapply.clear(); |
94 } | 89 } |
95 } | 90 } |
96 | 91 |
97 } // namespace syncer | 92 } // namespace syncer |
OLD | NEW |