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

Unified Diff: chrome/browser/sync/glue/typed_url_data_type_controller.h

Issue 1310553005: [Sync] Replace ProfileSyncComponentsFactory with SyncClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Really fix GN Created 5 years, 4 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/typed_url_data_type_controller.h
diff --git a/chrome/browser/sync/glue/typed_url_data_type_controller.h b/chrome/browser/sync/glue/typed_url_data_type_controller.h
index ad2025518b371c819e4a815c20676c97bc8bcefb..d5436164259afeeec889375e0343624c020615c7 100644
--- a/chrome/browser/sync/glue/typed_url_data_type_controller.h
+++ b/chrome/browser/sync/glue/typed_url_data_type_controller.h
@@ -12,6 +12,7 @@
#include "base/prefs/pref_change_registrar.h"
#include "base/task/cancelable_task_tracker.h"
#include "chrome/browser/sync/glue/non_frontend_data_type_controller.h"
+#include "components/sync_driver/sync_api_component_factory.h"
namespace history {
class HistoryBackend;
@@ -24,10 +25,7 @@ class ControlTask;
// A class that manages the startup and shutdown of typed_url sync.
class TypedUrlDataTypeController : public NonFrontendDataTypeController {
public:
- TypedUrlDataTypeController(
- ProfileSyncComponentsFactory* profile_sync_factory,
- Profile* profile,
- ProfileSyncService* sync_service);
+ explicit TypedUrlDataTypeController(sync_driver::SyncClient* sync_client);
// NonFrontendDataTypeController implementation
syncer::ModelType type() const override;
@@ -42,7 +40,8 @@ class TypedUrlDataTypeController : public NonFrontendDataTypeController {
// NonFrontendDataTypeController interface.
bool PostTaskOnBackendThread(const tracked_objects::Location& from_here,
const base::Closure& task) override;
- ProfileSyncComponentsFactory::SyncComponents CreateSyncComponents() override;
+ sync_driver::SyncApiComponentFactory::SyncComponents CreateSyncComponents()
+ override;
void DisconnectProcessor(sync_driver::ChangeProcessor* processor) override;
private:
« no previous file with comments | « chrome/browser/sync/glue/theme_data_type_controller.cc ('k') | chrome/browser/sync/glue/typed_url_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698