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

Unified Diff: chrome/browser/sync/glue/search_engine_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: Rebase++++ 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/search_engine_data_type_controller.cc
diff --git a/chrome/browser/sync/glue/search_engine_data_type_controller.cc b/chrome/browser/sync/glue/search_engine_data_type_controller.cc
index 7e434c9e87a0913c20b802787ac49f2aa3ceaece..9f90cd54e5281ce7f868e81607a16a7cfdabaa71 100644
--- a/chrome/browser/sync/glue/search_engine_data_type_controller.cc
+++ b/chrome/browser/sync/glue/search_engine_data_type_controller.cc
@@ -9,7 +9,6 @@
#include "chrome/browser/search_engines/template_url_service.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/browser/sync/api/syncable_service.h"
-#include "chrome/browser/sync/glue/generic_change_processor.h"
#include "chrome/browser/sync/profile_sync_factory.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/common/chrome_notification_types.h"
@@ -70,7 +69,13 @@ void SearchEngineDataTypeController::CreateSyncComponents() {
profile_sync_factory_->CreateSearchEngineSyncComponents(sync_service_,
this);
set_model_associator(sync_components.model_associator);
- set_change_processor(sync_components.change_processor);
+ generic_change_processor_.reset(static_cast<GenericChangeProcessor*>(
+ sync_components.change_processor));
+}
+
+GenericChangeProcessor* SearchEngineDataTypeController::change_processor()
+ const {
+ return generic_change_processor_.get();
}
void SearchEngineDataTypeController::RecordUnrecoverableError(
« no previous file with comments | « chrome/browser/sync/glue/search_engine_data_type_controller.h ('k') | chrome/browser/sync/glue/shared_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698