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/shared_change_processor_ref.h" | |
| 6 | |
| 7 namespace browser_sync { | |
| 8 | |
| 9 SharedChangeProcessorRef::SharedChangeProcessorRef( | |
| 10 SharedChangeProcessor* change_processor) | |
| 11 : change_processor_(change_processor) { | |
| 12 } | |
| 13 | |
| 14 SharedChangeProcessorRef::~SharedChangeProcessorRef() {} | |
| 15 | |
| 16 SyncError SharedChangeProcessorRef::ProcessSyncChanges( | |
| 17 const tracked_objects::Location& from_here, | |
| 18 const SyncChangeList& change_list) { | |
| 19 if (change_processor_.get()) { | |
| 20 return change_processor_->ProcessSyncChanges(from_here, change_list); | |
|
akalin
2011/10/07 20:51:16
change_processor_ should be valid at construction-
Nicolas Zea
2011/10/07 22:05:52
Done.
| |
| 21 } else { | |
| 22 return SyncError(FROM_HERE, "Change processor not set yet.", | |
| 23 syncable::UNSPECIFIED); | |
| 24 } | |
| 25 } | |
| 26 | |
| 27 } // namespace browser_sync | |
| OLD | NEW |