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

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

Issue 8274020: Revert 105404 - [Sync] Refactor non-frontend DTC to handle new API properly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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/autofill_profile_data_type_controller.h
===================================================================
--- chrome/browser/sync/glue/autofill_profile_data_type_controller.h (revision 105407)
+++ chrome/browser/sync/glue/autofill_profile_data_type_controller.h (working copy)
@@ -6,64 +6,27 @@
#define CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_DATA_TYPE_CONTROLLER_H_
#pragma once
-#include "base/compiler_specific.h"
-#include "base/memory/ref_counted.h"
-#include "chrome/browser/autofill/personal_data_manager_observer.h"
-#include "chrome/browser/sync/glue/new_non_frontend_data_type_controller.h"
-#include "content/common/notification_observer.h"
-#include "content/common/notification_registrar.h"
+#include "chrome/browser/sync/glue/autofill_data_type_controller.h"
+#include "chrome/browser/sync/profile_sync_factory.h"
-class NotificationDetails;
-class NotificationSource;
-class PersonalDataManager;
-class WebDataService;
-
namespace browser_sync {
-class AutofillProfileDataTypeController
- : public NewNonFrontendDataTypeController,
- public NotificationObserver,
- public PersonalDataManagerObserver {
+class AutofillProfileDataTypeController : public AutofillDataTypeController {
public:
AutofillProfileDataTypeController(
ProfileSyncFactory* profile_sync_factory,
Profile* profile);
virtual ~AutofillProfileDataTypeController();
- // NewNonFrontendDataTypeController implementation.
- virtual syncable::ModelType type() const OVERRIDE;
- virtual browser_sync::ModelSafeGroup model_safe_group() const OVERRIDE;
+ virtual syncable::ModelType type() const;
- // NotificationObserver implementation.
- virtual void Observe(int type,
- const NotificationSource& source,
- const NotificationDetails& details) OVERRIDE;
-
- // PersonalDataManagerObserver implementation:
- virtual void OnPersonalDataChanged() OVERRIDE;
-
protected:
- // NewNonFrontendDataTypeController implementation.
- virtual bool StartModels() OVERRIDE;
- virtual bool StartAssociationAsync() OVERRIDE;
- virtual base::WeakPtr<SyncableService> GetWeakPtrToSyncableService()
- const OVERRIDE;
- virtual void StopModels() OVERRIDE;
- virtual void StopLocalServiceAsync() OVERRIDE;
+ virtual void CreateSyncComponents();
virtual void RecordUnrecoverableError(
const tracked_objects::Location& from_here,
- const std::string& message) OVERRIDE;
- virtual void RecordAssociationTime(base::TimeDelta time) OVERRIDE;
- virtual void RecordStartFailure(StartResult result) OVERRIDE;
-
- void DoStartAssociationAsync();
-
- private:
- PersonalDataManager* personal_data_;
- scoped_refptr<WebDataService> web_data_service_;
- NotificationRegistrar notification_registrar_;
-
- DISALLOW_COPY_AND_ASSIGN(AutofillProfileDataTypeController);
+ const std::string& message);
+ virtual void RecordAssociationTime(base::TimeDelta time);
+ virtual void RecordStartFailure(StartResult result);
};
} // namespace browser_sync

Powered by Google App Engine
This is Rietveld 408576698