| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/apply_updates_command.h" | 5 #include "sync/engine/apply_updates_command.h" |
| 6 | 6 |
| 7 #include "base/location.h" | 7 #include "base/location.h" |
| 8 #include "sync/engine/update_applicator.h" | 8 #include "sync/engine/update_applicator.h" |
| 9 #include "sync/sessions/sync_session.h" | 9 #include "sync/sessions/sync_session.h" |
| 10 #include "sync/syncable/directory.h" | 10 #include "sync/syncable/directory.h" |
| 11 #include "sync/syncable/read_transaction.h" | 11 #include "sync/syncable/read_transaction.h" |
| 12 #include "sync/syncable/write_transaction.h" | 12 #include "sync/syncable/write_transaction.h" |
| 13 | 13 |
| 14 namespace csync { | 14 namespace syncer { |
| 15 | 15 |
| 16 using sessions::SyncSession; | 16 using sessions::SyncSession; |
| 17 | 17 |
| 18 ApplyUpdatesCommand::ApplyUpdatesCommand() {} | 18 ApplyUpdatesCommand::ApplyUpdatesCommand() {} |
| 19 ApplyUpdatesCommand::~ApplyUpdatesCommand() {} | 19 ApplyUpdatesCommand::~ApplyUpdatesCommand() {} |
| 20 | 20 |
| 21 std::set<ModelSafeGroup> ApplyUpdatesCommand::GetGroupsToChange( | 21 std::set<ModelSafeGroup> ApplyUpdatesCommand::GetGroupsToChange( |
| 22 const sessions::SyncSession& session) const { | 22 const sessions::SyncSession& session) const { |
| 23 std::set<ModelSafeGroup> groups_with_unapplied_updates; | 23 std::set<ModelSafeGroup> groups_with_unapplied_updates; |
| 24 | 24 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 for (syncable::ModelTypeSet::Iterator it = | 78 for (syncable::ModelTypeSet::Iterator it = |
| 79 status.updates_request_types().First(); it.Good(); it.Inc()) { | 79 status.updates_request_types().First(); it.Good(); it.Inc()) { |
| 80 // This gets persisted to the directory's backing store. | 80 // This gets persisted to the directory's backing store. |
| 81 dir->set_initial_sync_ended_for_type(it.Get(), true); | 81 dir->set_initial_sync_ended_for_type(it.Get(), true); |
| 82 } | 82 } |
| 83 } | 83 } |
| 84 | 84 |
| 85 return SYNCER_OK; | 85 return SYNCER_OK; |
| 86 } | 86 } |
| 87 | 87 |
| 88 } // namespace csync | 88 } // namespace syncer |
| OLD | NEW |