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

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

Issue 12476031: Refactor notifications of chrome/browser/webdata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 9 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_data_type_controller.h
diff --git a/chrome/browser/sync/glue/autofill_data_type_controller.h b/chrome/browser/sync/glue/autofill_data_type_controller.h
index a649f4cc5f0865c96cd08933af27d3140f3f7519..5a5b6c937464a41924b7101087bc92e77fa7b690 100644
--- a/chrome/browser/sync/glue/autofill_data_type_controller.h
+++ b/chrome/browser/sync/glue/autofill_data_type_controller.h
@@ -11,16 +11,16 @@
#include "base/gtest_prod_util.h"
#include "base/memory/ref_counted.h"
#include "chrome/browser/sync/glue/non_ui_data_type_controller.h"
-#include "content/public/browser/notification_observer.h"
-#include "content/public/browser/notification_registrar.h"
+#include "chrome/browser/webdata/autofill_web_data_service_observer.h"
class AutofillWebDataService;
namespace browser_sync {
// A class that manages the startup and shutdown of autofill sync.
-class AutofillDataTypeController : public NonUIDataTypeController,
- public content::NotificationObserver {
+class AutofillDataTypeController
+ : public NonUIDataTypeController,
+ public AutofillWebDataServiceObserverOnUIThread {
public:
AutofillDataTypeController(
ProfileSyncComponentsFactory* profile_sync_factory,
@@ -35,10 +35,8 @@ class AutofillDataTypeController : public NonUIDataTypeController,
// 163431 is addressed / implemented.
virtual void StartAssociating(const StartCallback& start_callback) OVERRIDE;
- // content::NotificationObserver implementation.
- virtual void Observe(int notification_type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
+ // AutofillWebDataServiceObserverOnUIThread implementation.
+ virtual void WebDatabaseLoaded() OVERRIDE;
protected:
virtual ~AutofillDataTypeController();
@@ -60,7 +58,6 @@ class AutofillDataTypeController : public NonUIDataTypeController,
void UpdateAutofillCullingSettings(bool cull_expired_entries);
scoped_refptr<AutofillWebDataService> web_data_service_;
- content::NotificationRegistrar notification_registrar_;
DISALLOW_COPY_AND_ASSIGN(AutofillDataTypeController);
};

Powered by Google App Engine
This is Rietveld 408576698