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

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

Issue 7967024: Profile shouldn't own PersonalDataManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addresses isherman #11 Created 9 years, 3 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
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/sync/glue/autofill_change_processor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/autofill_change_processor.h
diff --git a/chrome/browser/sync/glue/autofill_change_processor.h b/chrome/browser/sync/glue/autofill_change_processor.h
index 13196e3dea59631e2493c140599ecff11f5a8c90..454c11fd8ce744e2bbfa650cf3d2e1c30eb828a7 100644
--- a/chrome/browser/sync/glue/autofill_change_processor.h
+++ b/chrome/browser/sync/glue/autofill_change_processor.h
@@ -9,9 +9,6 @@
#include <vector>
#include "base/compiler_specific.h"
-#include "chrome/browser/autofill/autofill_profile.h"
-#include "chrome/browser/autofill/credit_card.h"
-#include "chrome/browser/autofill/personal_data_manager.h"
#include "chrome/browser/sync/glue/change_processor.h"
#include "chrome/browser/sync/glue/sync_backend_host.h"
#include "chrome/browser/sync/protocol/autofill_specifics.pb.h"
@@ -19,10 +16,8 @@
#include "content/common/notification_observer.h"
#include "content/common/notification_registrar.h"
-class AutofillCreditCardChange;
class AutofillEntry;
class AutofillProfileChange;
-class PersonalDataManager;
class WebDatabase;
namespace sync_api {
@@ -44,7 +39,7 @@ class AutofillChangeProcessor : public ChangeProcessor,
public:
AutofillChangeProcessor(AutofillModelAssociator* model_associator,
WebDatabase* web_database,
- PersonalDataManager* personal_data,
+ Profile* profile,
UnrecoverableErrorHandler* error_handler);
virtual ~AutofillChangeProcessor();
@@ -108,10 +103,6 @@ class AutofillChangeProcessor : public ChangeProcessor,
void ApplySyncAutofillProfileDelete(
int64 sync_id);
- // Helper to post a task to the UI loop to inform the PersonalDataManager
- // it needs to refresh itself.
- void PostOptimisticRefreshTask();
-
// Called to see if we need to upgrade to the new autofill2 profile.
bool HasNotMigratedYet(const sync_api::BaseTransaction* trans);
@@ -123,9 +114,9 @@ class AutofillChangeProcessor : public ChangeProcessor,
// holding a reference.
WebDatabase* web_database_;
- // We periodically tell the PersonalDataManager to refresh as we make
- // changes to the autofill data in the WebDatabase.
- PersonalDataManager* personal_data_;
+ // The profile we are syncing for. This is used to notify listeners of
+ // the changes made.
+ Profile* profile_;
NotificationRegistrar notification_registrar_;
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/sync/glue/autofill_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698