| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/callback.h" | 7 #include "base/callback_old.h" |
| 8 #include "chrome/browser/sync/engine/model_safe_worker.h" | 8 #include "chrome/browser/sync/engine/model_safe_worker.h" |
| 9 #include "chrome/browser/sync/sessions/status_controller.h" | 9 #include "chrome/browser/sync/sessions/status_controller.h" |
| 10 #include "chrome/browser/sync/sessions/sync_session.h" | 10 #include "chrome/browser/sync/sessions/sync_session.h" |
| 11 | 11 |
| 12 namespace browser_sync { | 12 namespace browser_sync { |
| 13 | 13 |
| 14 void ModelChangingSyncerCommand::ExecuteImpl(sessions::SyncSession* session) { | 14 void ModelChangingSyncerCommand::ExecuteImpl(sessions::SyncSession* session) { |
| 15 work_session_ = session; | 15 work_session_ = session; |
| 16 if (!ModelNeutralExecuteImpl(work_session_)) { | 16 if (!ModelNeutralExecuteImpl(work_session_)) { |
| 17 return; | 17 return; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 28 worker->DoWorkAndWaitUntilDone(c.get()); | 28 worker->DoWorkAndWaitUntilDone(c.get()); |
| 29 } | 29 } |
| 30 } | 30 } |
| 31 | 31 |
| 32 bool ModelChangingSyncerCommand::ModelNeutralExecuteImpl( | 32 bool ModelChangingSyncerCommand::ModelNeutralExecuteImpl( |
| 33 sessions::SyncSession* session) { | 33 sessions::SyncSession* session) { |
| 34 return true; | 34 return true; |
| 35 } | 35 } |
| 36 | 36 |
| 37 } // namespace browser_sync | 37 } // namespace browser_sync |
| OLD | NEW |