Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / sync / glue / shared_change_processor_ref.cc
blob366bb4ecc1087f9e43e49f513d799f147fbd691c
1 // Copyright (c) 2012 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.
5 #include "chrome/browser/sync/glue/shared_change_processor_ref.h"
7 namespace browser_sync {
9 SharedChangeProcessorRef::SharedChangeProcessorRef(
10 const scoped_refptr<SharedChangeProcessor>& change_processor)
11 : change_processor_(change_processor) {
12 DCHECK(change_processor_.get());
15 SharedChangeProcessorRef::~SharedChangeProcessorRef() {}
17 syncer::SyncError SharedChangeProcessorRef::ProcessSyncChanges(
18 const tracked_objects::Location& from_here,
19 const syncer::SyncChangeList& change_list) {
20 return change_processor_->ProcessSyncChanges(from_here, change_list);
23 syncer::SyncDataList SharedChangeProcessorRef::GetAllSyncData(
24 syncer::ModelType type) const {
25 return change_processor_->GetAllSyncData(type);
28 syncer::SyncError SharedChangeProcessorRef::CreateAndUploadError(
29 const tracked_objects::Location& from_here,
30 const std::string& message) {
31 return change_processor_->CreateAndUploadError(from_here, message);
34 } // namespace browser_sync