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

Unified Diff: chrome/browser/sync/glue/shared_change_processor_ref.cc

Issue 8065016: [Sync] Refactor non-frontend DTC to handle new API properly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/glue/shared_change_processor_ref.cc
diff --git a/chrome/browser/sync/glue/shared_change_processor_ref.cc b/chrome/browser/sync/glue/shared_change_processor_ref.cc
new file mode 100644
index 0000000000000000000000000000000000000000..e0b2a520abddedc92b38b4e5238a05d9680ab67c
--- /dev/null
+++ b/chrome/browser/sync/glue/shared_change_processor_ref.cc
@@ -0,0 +1,23 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/sync/glue/shared_change_processor_ref.h"
+
+namespace browser_sync {
+
+SharedChangeProcessorRef::SharedChangeProcessorRef(
+ const scoped_refptr<SharedChangeProcessor>& change_processor)
+ : change_processor_(change_processor) {
+ DCHECK(change_processor_.get());
+}
+
+SharedChangeProcessorRef::~SharedChangeProcessorRef() {}
+
+SyncError SharedChangeProcessorRef::ProcessSyncChanges(
+ const tracked_objects::Location& from_here,
+ const SyncChangeList& change_list) {
+ return change_processor_->ProcessSyncChanges(from_here, change_list);
+}
+
+} // namespace browser_sync

Powered by Google App Engine
This is Rietveld 408576698