| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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/model_changing_syncer_command.h" | 5 #include "chrome/browser/sync/engine/model_changing_syncer_command.h" |
| 6 | 6 |
| 7 #include "chrome/browser/sync/engine/model_safe_worker.h" | 7 #include "chrome/browser/sync/engine/model_safe_worker.h" |
| 8 #include "chrome/browser/sync/engine/syncer_session.h" | 8 #include "chrome/browser/sync/sessions/sync_session.h" |
| 9 #include "chrome/browser/sync/util/closure.h" | 9 #include "chrome/browser/sync/util/closure.h" |
| 10 | 10 |
| 11 namespace browser_sync { | 11 namespace browser_sync { |
| 12 | 12 |
| 13 void ModelChangingSyncerCommand::ExecuteImpl(SyncerSession* session) { | 13 void ModelChangingSyncerCommand::ExecuteImpl(sessions::SyncSession* session) { |
| 14 work_session_ = session; | 14 work_session_ = session; |
| 15 session->model_safe_worker()->DoWorkAndWaitUntilDone( | 15 session->context()->model_safe_worker()->DoWorkAndWaitUntilDone( |
| 16 NewCallback(this, &ModelChangingSyncerCommand::StartChangingModel)); | 16 NewCallback(this, &ModelChangingSyncerCommand::StartChangingModel)); |
| 17 } | 17 } |
| 18 | 18 |
| 19 } // namespace browser_sync | 19 } // namespace browser_sync |
| OLD | NEW |