| 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/commit.h" | 5 #include "components/sync/engine_impl/commit.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/metrics/sparse_histogram.h" | 9 #include "base/metrics/histogram_macros.h" |
| 10 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
| 11 #include "components/sync/base/data_type_histogram.h" | 11 #include "components/sync/base/data_type_histogram.h" |
| 12 #include "components/sync/engine/events/commit_request_event.h" | 12 #include "components/sync/engine/events/commit_request_event.h" |
| 13 #include "components/sync/engine/events/commit_response_event.h" | 13 #include "components/sync/engine/events/commit_response_event.h" |
| 14 #include "components/sync/engine_impl/commit_contribution.h" | 14 #include "components/sync/engine_impl/commit_contribution.h" |
| 15 #include "components/sync/engine_impl/commit_processor.h" | 15 #include "components/sync/engine_impl/commit_processor.h" |
| 16 #include "components/sync/engine_impl/commit_util.h" | 16 #include "components/sync/engine_impl/commit_util.h" |
| 17 #include "components/sync/engine_impl/cycle/sync_cycle.h" | 17 #include "components/sync/engine_impl/cycle/sync_cycle.h" |
| 18 #include "components/sync/engine_impl/syncer.h" | 18 #include "components/sync/engine_impl/syncer.h" |
| 19 #include "components/sync/engine_impl/syncer_proto_util.h" | 19 #include "components/sync/engine_impl/syncer_proto_util.h" |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 176 |
| 177 void Commit::CleanUp() { | 177 void Commit::CleanUp() { |
| 178 for (ContributionMap::const_iterator it = contributions_.begin(); | 178 for (ContributionMap::const_iterator it = contributions_.begin(); |
| 179 it != contributions_.end(); ++it) { | 179 it != contributions_.end(); ++it) { |
| 180 it->second->CleanUp(); | 180 it->second->CleanUp(); |
| 181 } | 181 } |
| 182 cleaned_up_ = true; | 182 cleaned_up_ = true; |
| 183 } | 183 } |
| 184 | 184 |
| 185 } // namespace syncer | 185 } // namespace syncer |
| OLD | NEW |