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

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

Issue 1310553005: [Sync] Replace ProfileSyncComponentsFactory with SyncClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review 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/frontend_data_type_controller.h
diff --git a/chrome/browser/sync/glue/frontend_data_type_controller.h b/chrome/browser/sync/glue/frontend_data_type_controller.h
index 2bd713603c8d613d685f44ff0636521c02e983be..fa6c3178723a24249798fd46a5db3599c938b21e 100644
--- a/chrome/browser/sync/glue/frontend_data_type_controller.h
+++ b/chrome/browser/sync/glue/frontend_data_type_controller.h
@@ -13,10 +13,6 @@
#include "components/sync_driver/data_type_controller.h"
#include "components/sync_driver/data_type_error_handler.h"
-class Profile;
-class ProfileSyncService;
-class ProfileSyncComponentsFactory;
-
namespace base {
class SingleThreadTaskRunner;
class TimeDelta;
@@ -29,6 +25,7 @@ class SyncError;
namespace sync_driver {
class AssociatorInterface;
class ChangeProcessor;
+class SyncClient;
}
namespace browser_sync {
@@ -48,9 +45,7 @@ class FrontendDataTypeController : public sync_driver::DataTypeController {
FrontendDataTypeController(
scoped_refptr<base::SingleThreadTaskRunner> ui_thread,
const base::Closure& error_callback,
- ProfileSyncComponentsFactory* profile_sync_factory,
- Profile* profile,
- ProfileSyncService* sync_service);
+ sync_driver::SyncClient* sync_client);
// DataTypeController interface.
void LoadModels(const ModelLoadCallback& model_load_callback) override;
@@ -114,9 +109,7 @@ class FrontendDataTypeController : public sync_driver::DataTypeController {
const tracked_objects::Location& from_here,
const std::string& message);
- ProfileSyncComponentsFactory* const profile_sync_factory_;
- Profile* const profile_;
- ProfileSyncService* const sync_service_;
+ sync_driver::SyncClient* const sync_client_;
State state_;

Powered by Google App Engine
This is Rietveld 408576698