| 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 "chrome/browser/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 "chrome/browser/sync/engine/update_applicator.h" | 8 #include "sync/engine/update_applicator.h" |
| 9 #include "chrome/browser/sync/sessions/sync_session.h" | 9 #include "sync/sessions/sync_session.h" |
| 10 #include "chrome/browser/sync/syncable/syncable.h" | 10 #include "sync/syncable/syncable.h" |
| 11 | 11 |
| 12 namespace browser_sync { | 12 namespace browser_sync { |
| 13 | 13 |
| 14 using sessions::SyncSession; | 14 using sessions::SyncSession; |
| 15 | 15 |
| 16 ApplyUpdatesCommand::ApplyUpdatesCommand() {} | 16 ApplyUpdatesCommand::ApplyUpdatesCommand() {} |
| 17 ApplyUpdatesCommand::~ApplyUpdatesCommand() {} | 17 ApplyUpdatesCommand::~ApplyUpdatesCommand() {} |
| 18 | 18 |
| 19 std::set<ModelSafeGroup> ApplyUpdatesCommand::GetGroupsToChange( | 19 std::set<ModelSafeGroup> ApplyUpdatesCommand::GetGroupsToChange( |
| 20 const sessions::SyncSession& session) const { | 20 const sessions::SyncSession& session) const { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 status.updates_request_types().First(); it.Good(); it.Inc()) { | 77 status.updates_request_types().First(); it.Good(); it.Inc()) { |
| 78 // This gets persisted to the directory's backing store. | 78 // This gets persisted to the directory's backing store. |
| 79 dir->set_initial_sync_ended_for_type(it.Get(), true); | 79 dir->set_initial_sync_ended_for_type(it.Get(), true); |
| 80 } | 80 } |
| 81 } | 81 } |
| 82 | 82 |
| 83 return SYNCER_OK; | 83 return SYNCER_OK; |
| 84 } | 84 } |
| 85 | 85 |
| 86 } // namespace browser_sync | 86 } // namespace browser_sync |
| OLD | NEW |