| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/sync/glue/generic_change_processor.h" |
| 6 |
| 7 #include "chrome/browser/sync/glue/model_associator.h" |
| 8 |
| 9 namespace browser_sync { |
| 10 |
| 11 GenericChangeProcessor::GenericChangeProcessor( |
| 12 UnrecoverableErrorHandler* error_handler, |
| 13 NewAssociatorInterface* model_associator) |
| 14 : ChangeProcessor(error_handler), |
| 15 model_associator_(model_associator) { |
| 16 DCHECK(model_associator_); |
| 17 } |
| 18 GenericChangeProcessor::~GenericChangeProcessor() { |
| 19 model_associator_ = NULL; |
| 20 } |
| 21 |
| 22 void GenericChangeProcessor::ApplyChangesFromSyncModel( |
| 23 const sync_api::BaseTransaction* trans, |
| 24 const sync_api::SyncManager::ChangeRecord* changes, |
| 25 int change_count) { |
| 26 model_associator_->ApplyChangesFromSync(trans, changes, change_count); |
| 27 } |
| 28 |
| 29 void GenericChangeProcessor::StartImpl(Profile* profile) {} |
| 30 |
| 31 void GenericChangeProcessor::StopImpl() {} |
| 32 |
| 33 } // namespace browser_sync |
| OLD | NEW |