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

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

Issue 14103021: Use Observer to notify of WebDB load instead of callbacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix WIN builds Created 7 years, 8 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
diff --git a/chrome/browser/sync/glue/autofill_profile_data_type_controller.h b/chrome/browser/sync/glue/autofill_profile_data_type_controller.h
index 3d4fa57cbbe50bc11e2cc2143780f70f004cd853..d49a2f55cf016b7720a81f915e9213400d6b0bb5 100644
--- a/chrome/browser/sync/glue/autofill_profile_data_type_controller.h
+++ b/chrome/browser/sync/glue/autofill_profile_data_type_controller.h
@@ -10,7 +10,7 @@
#include "base/scoped_observer.h"
#include "chrome/browser/sync/glue/non_ui_data_type_controller.h"
#include "components/autofill/browser/personal_data_manager_observer.h"
-#include "components/autofill/browser/webdata/autofill_webdata_service_observer.h"
+#include "components/webdata/common/web_database_observer.h"
namespace autofill {
class AutofillWebDataService;
@@ -21,7 +21,7 @@ namespace browser_sync {
class AutofillProfileDataTypeController
: public NonUIDataTypeController,
- public autofill::AutofillWebDataServiceObserverOnUIThread,
+ public WebDatabaseObserver,
public autofill::PersonalDataManagerObserver {
public:
AutofillProfileDataTypeController(
@@ -33,7 +33,7 @@ class AutofillProfileDataTypeController
virtual syncer::ModelType type() const OVERRIDE;
virtual syncer::ModelSafeGroup model_safe_group() const OVERRIDE;
- // AutofillWebDataServiceObserverOnUIThread implementation.
+ // WebDatabaseObserver implementation.
virtual void WebDatabaseLoaded() OVERRIDE;
// PersonalDataManagerObserver implementation:
@@ -52,8 +52,6 @@ class AutofillProfileDataTypeController
private:
autofill::PersonalDataManager* personal_data_;
scoped_refptr<autofill::AutofillWebDataService> web_data_service_;
- ScopedObserver<autofill::AutofillWebDataService,
- AutofillProfileDataTypeController> scoped_observer_;
DISALLOW_COPY_AND_ASSIGN(AutofillProfileDataTypeController);
};

Powered by Google App Engine
This is Rietveld 408576698