| 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 "sync/engine/commit.h" | 5 #include "sync/engine/commit.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/metrics/sparse_histogram.h" | 9 #include "base/metrics/sparse_histogram.h" |
| 8 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
| 9 #include "sync/engine/commit_contribution.h" | 11 #include "sync/engine/commit_contribution.h" |
| 10 #include "sync/engine/commit_processor.h" | 12 #include "sync/engine/commit_processor.h" |
| 11 #include "sync/engine/commit_util.h" | 13 #include "sync/engine/commit_util.h" |
| 12 #include "sync/engine/syncer.h" | 14 #include "sync/engine/syncer.h" |
| 13 #include "sync/engine/syncer_proto_util.h" | 15 #include "sync/engine/syncer_proto_util.h" |
| 14 #include "sync/internal_api/public/events/commit_request_event.h" | 16 #include "sync/internal_api/public/events/commit_request_event.h" |
| 15 #include "sync/internal_api/public/events/commit_response_event.h" | 17 #include "sync/internal_api/public/events/commit_response_event.h" |
| 16 #include "sync/sessions/sync_session.h" | 18 #include "sync/sessions/sync_session.h" |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 184 |
| 183 void Commit::CleanUp() { | 185 void Commit::CleanUp() { |
| 184 for (ContributionMap::const_iterator it = contributions_.begin(); | 186 for (ContributionMap::const_iterator it = contributions_.begin(); |
| 185 it != contributions_.end(); ++it) { | 187 it != contributions_.end(); ++it) { |
| 186 it->second->CleanUp(); | 188 it->second->CleanUp(); |
| 187 } | 189 } |
| 188 cleaned_up_ = true; | 190 cleaned_up_ = true; |
| 189 } | 191 } |
| 190 | 192 |
| 191 } // namespace syncer | 193 } // namespace syncer |
| OLD | NEW |