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.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" |
(...skipping 11 matching lines...) Expand all Loading... |
22 ModelSafeGroup group = worker->GetModelSafeGroup(); | 22 ModelSafeGroup group = worker->GetModelSafeGroup(); |
23 | 23 |
24 sessions::StatusController* status = work_session_->status_controller(); | 24 sessions::StatusController* status = work_session_->status_controller(); |
25 sessions::ScopedModelSafeGroupRestriction r(status, group); | 25 sessions::ScopedModelSafeGroupRestriction r(status, group); |
26 scoped_ptr<Callback0::Type> c(NewCallback(this, | 26 scoped_ptr<Callback0::Type> c(NewCallback(this, |
27 &ModelChangingSyncerCommand::StartChangingModel)); | 27 &ModelChangingSyncerCommand::StartChangingModel)); |
28 worker->DoWorkAndWaitUntilDone(c.get()); | 28 worker->DoWorkAndWaitUntilDone(c.get()); |
29 } | 29 } |
30 } | 30 } |
31 | 31 |
| 32 bool ModelChangingSyncerCommand::ModelNeutralExecuteImpl( |
| 33 sessions::SyncSession* session) { |
| 34 return true; |
| 35 } |
| 36 |
32 } // namespace browser_sync | 37 } // namespace browser_sync |
OLD | NEW |