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/build_and_process_conflict_sets_command.h" | 5 #include "chrome/browser/sync/engine/build_and_process_conflict_sets_command.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <sstream> | 9 #include <sstream> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/format_macros.h" | 13 #include "base/format_macros.h" |
14 #include "base/tracked.h" | 14 #include "base/location.h" |
15 #include "chrome/browser/sync/engine/syncer_util.h" | 15 #include "chrome/browser/sync/engine/syncer_util.h" |
16 #include "chrome/browser/sync/engine/update_applicator.h" | 16 #include "chrome/browser/sync/engine/update_applicator.h" |
17 #include "chrome/browser/sync/sessions/sync_session.h" | 17 #include "chrome/browser/sync/sessions/sync_session.h" |
18 #include "chrome/browser/sync/syncable/directory_manager.h" | 18 #include "chrome/browser/sync/syncable/directory_manager.h" |
19 | 19 |
20 namespace browser_sync { | 20 namespace browser_sync { |
21 | 21 |
22 using sessions::ConflictProgress; | 22 using sessions::ConflictProgress; |
23 using sessions::StatusController; | 23 using sessions::StatusController; |
24 using sessions::SyncSession; | 24 using sessions::SyncSession; |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 LocallyDeletedPathChecker checker; | 400 LocallyDeletedPathChecker checker; |
401 if (!checker.CausingConflict(parent, *entry)) | 401 if (!checker.CausingConflict(parent, *entry)) |
402 return; | 402 return; |
403 conflict_progress->MergeSets(entry->Get(syncable::ID), | 403 conflict_progress->MergeSets(entry->Get(syncable::ID), |
404 parent.Get(syncable::ID)); | 404 parent.Get(syncable::ID)); |
405 CrawlDeletedTreeMergingSets(trans, parent, conflict_progress, checker); | 405 CrawlDeletedTreeMergingSets(trans, parent, conflict_progress, checker); |
406 } | 406 } |
407 } | 407 } |
408 | 408 |
409 } // namespace browser_sync | 409 } // namespace browser_sync |
OLD | NEW |