OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/commit_processor.h" | 5 #include "components/sync/engine_impl/commit_processor.h" |
6 | 6 |
| 7 #include <memory> |
7 #include <utility> | 8 #include <utility> |
8 | 9 |
9 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
10 #include "components/sync/engine_impl/commit_contribution.h" | 11 #include "components/sync/engine_impl/commit_contribution.h" |
11 #include "components/sync/engine_impl/commit_contributor.h" | 12 #include "components/sync/engine_impl/commit_contributor.h" |
12 #include "components/sync/protocol/sync.pb.h" | 13 #include "components/sync/protocol/sync.pb.h" |
13 | 14 |
14 namespace syncer { | 15 namespace syncer { |
15 | 16 |
16 typedef std::map<ModelType, size_t> TypeToIndexMap; | 17 typedef std::map<ModelType, size_t> TypeToIndexMap; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 } | 54 } |
54 if (num_entries >= max_entries) { | 55 if (num_entries >= max_entries) { |
55 DCHECK_EQ(num_entries, max_entries) | 56 DCHECK_EQ(num_entries, max_entries) |
56 << "Number of commit entries exceeeds maximum"; | 57 << "Number of commit entries exceeeds maximum"; |
57 break; | 58 break; |
58 } | 59 } |
59 } | 60 } |
60 } | 61 } |
61 | 62 |
62 } // namespace syncer | 63 } // namespace syncer |
OLD | NEW |