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

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

Issue 7967024: Profile shouldn't own PersonalDataManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: chrome/browser/sync/glue/autofill_profile_syncable_service.h
diff --git a/chrome/browser/sync/glue/autofill_profile_syncable_service.h b/chrome/browser/sync/glue/autofill_profile_syncable_service.h
index 19ede70f9e168b00c34444e3fab5be0266c77aec..5877ba961c46e78920df68bd48138c87b93a77aa 100644
--- a/chrome/browser/sync/glue/autofill_profile_syncable_service.h
+++ b/chrome/browser/sync/glue/autofill_profile_syncable_service.h
@@ -6,15 +6,13 @@
#pragma once
#include <map>
-#include <set>
#include <string>
#include <vector>
#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_vector.h"
#include "base/synchronization/lock.h"
#include "base/threading/non_thread_safe.h"
-#include "chrome/browser/autofill/personal_data_manager.h"
#include "chrome/browser/sync/api/sync_change.h"
#include "chrome/browser/sync/api/sync_data.h"
#include "chrome/browser/sync/api/sync_error.h"
@@ -47,9 +45,7 @@ class AutofillProfileSyncableService
public NotificationObserver,
public base::NonThreadSafe {
public:
- AutofillProfileSyncableService(WebDatabase* web_database,
- PersonalDataManager* data_manager,
- Profile* profile);
+ AutofillProfileSyncableService(WebDatabase* web_database, Profile* profile);
virtual ~AutofillProfileSyncableService();
static syncable::ModelType model_type() { return syncable::AUTOFILL_PROFILE; }
@@ -137,7 +133,7 @@ class AutofillProfileSyncableService
}
WebDatabase* web_database_;
- PersonalDataManager* personal_data_;
+ Profile* profile_;
NotificationRegistrar notification_registrar_;
// Cached Autofill profiles. *Warning* deleted profiles are still in the
@@ -163,4 +159,3 @@ struct AutofillProfileSyncableService::DataBundle {
} // namespace browser_sync
#endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_SYNCABLE_SERVICE_H_
-

Powered by Google App Engine
This is Rietveld 408576698