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/conflict_resolver.h" | 5 #include "chrome/browser/sync/engine/conflict_resolver.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "base/tracked.h" | 12 #include "base/tracked.h" |
13 #include "chrome/browser/sync/engine/syncer.h" | 13 #include "chrome/browser/sync/engine/syncer.h" |
14 #include "chrome/browser/sync/engine/syncer_util.h" | 14 #include "chrome/browser/sync/engine/syncer_util.h" |
15 #include "chrome/browser/sync/protocol/service_constants.h" | 15 #include "chrome/browser/sync/protocol/service_constants.h" |
16 #include "chrome/browser/sync/sessions/status_controller.h" | 16 #include "chrome/browser/sync/sessions/status_controller.h" |
17 #include "chrome/browser/sync/syncable/directory_manager.h" | 17 #include "chrome/browser/sync/syncable/directory_manager.h" |
18 #include "chrome/browser/sync/syncable/syncable.h" | 18 #include "chrome/browser/sync/syncable/syncable.h" |
19 #include "chrome/common/deprecated/event_sys-inl.h" | |
20 | 19 |
21 using std::map; | 20 using std::map; |
22 using std::set; | 21 using std::set; |
23 using syncable::BaseTransaction; | 22 using syncable::BaseTransaction; |
24 using syncable::Directory; | 23 using syncable::Directory; |
25 using syncable::Entry; | 24 using syncable::Entry; |
26 using syncable::Id; | 25 using syncable::Id; |
27 using syncable::MutableEntry; | 26 using syncable::MutableEntry; |
28 using syncable::ScopedDirLookup; | 27 using syncable::ScopedDirLookup; |
29 using syncable::WriteTransaction; | 28 using syncable::WriteTransaction; |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 conflict_set_count_map_.erase(i++); | 513 conflict_set_count_map_.erase(i++); |
515 // METRIC self resolved conflict sets ++. | 514 // METRIC self resolved conflict sets ++. |
516 } else { | 515 } else { |
517 ++i; | 516 ++i; |
518 } | 517 } |
519 } | 518 } |
520 return rv; | 519 return rv; |
521 } | 520 } |
522 | 521 |
523 } // namespace browser_sync | 522 } // namespace browser_sync |
OLD | NEW |