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

Unified Diff: chrome/browser/sync/glue/extension_data_type_controller.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: Reffffactor 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/extension_data_type_controller.cc
diff --git a/chrome/browser/sync/glue/extension_data_type_controller.cc b/chrome/browser/sync/glue/extension_data_type_controller.cc
index 11f4a72c6f6c1a644b52e3585944f0af238f840a..b364a574df07dfe08eb323f0e2597123a28b47df 100644
--- a/chrome/browser/sync/glue/extension_data_type_controller.cc
+++ b/chrome/browser/sync/glue/extension_data_type_controller.cc
@@ -6,6 +6,7 @@
#include "base/metrics/histogram.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/sync/glue/generic_change_processor.h"
#include "chrome/browser/sync/profile_sync_factory.h"
namespace browser_sync {
@@ -36,7 +37,12 @@ void ExtensionDataTypeController::CreateSyncComponents() {
profile_sync_factory_->CreateExtensionSyncComponents(sync_service_,
this);
set_model_associator(sync_components.model_associator);
- set_change_processor(sync_components.change_processor);
+ change_processor_.reset(reinterpret_cast<GenericChangeProcessor*>(
akalin 2011/10/11 22:41:08 static_cast
Nicolas Zea 2011/10/12 04:24:19 Done.
+ sync_components.change_processor));
+}
+
+ChangeProcessor* ExtensionDataTypeController::change_processor() const {
+ return change_processor_.get();
}
void ExtensionDataTypeController::RecordUnrecoverableError(

Powered by Google App Engine
This is Rietveld 408576698