Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: sync/api/sync_change_processor_delegator.cc

Issue 151963002: Remove duplicated code from sync related unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename SyncChangeProcessorDelgate to SyncChangeProcessorDelgator. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 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 "sync/api/sync_change_processor_delegator.h"
6
7 namespace syncer {
8
9 SyncChangeProcessorDelegator::SyncChangeProcessorDelegator(
10 syncer::SyncChangeProcessor* recipient)
11 : recipient_(recipient) {
12 DCHECK(recipient_);
13 }
14
15 SyncChangeProcessorDelegator::~SyncChangeProcessorDelegator() {}
16
17 syncer::SyncError SyncChangeProcessorDelegator::ProcessSyncChanges(
18 const tracked_objects::Location& from_here,
19 const syncer::SyncChangeList& change_list) {
20 return recipient_->ProcessSyncChanges(from_here, change_list);
21 }
22
23 syncer::SyncDataList SyncChangeProcessorDelegator::GetAllSyncData(
24 syncer::ModelType type) const {
25 return recipient_->GetAllSyncData(type);
26 }
27
28 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698