Chromium Code Reviews| 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 #include "chrome/browser/sync/syncable_service.h" | |
| 9 | |
| 10 namespace browser_sync { | |
| 11 | |
| 12 GenericChangeProcessor::GenericChangeProcessor( | |
| 13 SyncableService* local_service, | |
| 14 UnrecoverableErrorHandler* error_handler) | |
| 15 : ChangeProcessor(error_handler), | |
| 16 local_service_(local_service) { | |
| 17 DCHECK(local_service_); | |
| 18 } | |
| 19 GenericChangeProcessor::~GenericChangeProcessor() { | |
| 20 // Set to null to ensure it's not used after destruction. | |
| 21 local_service_ = NULL; | |
|
tim (not reviewing)
2011/05/05 17:45:42
... just a bit freaked out that this comment impli
Nicolas Zea
2011/05/06 00:26:43
It obviously shouldn't, but if it were I'd like it
| |
| 22 } | |
| 23 | |
| 24 void GenericChangeProcessor::ApplyChangesFromSyncModel( | |
| 25 const sync_api::BaseTransaction* trans, | |
| 26 const sync_api::SyncManager::ChangeRecord* changes, | |
| 27 int change_count) { | |
| 28 local_service_->ApplyChangesFromSync(trans, changes, change_count); | |
| 29 } | |
| 30 | |
| 31 void GenericChangeProcessor::StartImpl(Profile* profile) {} | |
| 32 | |
| 33 void GenericChangeProcessor::StopImpl() {} | |
| 34 | |
| 35 } // namespace browser_sync | |
| OLD | NEW |