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

Unified Diff: chrome/browser/autofill/autofill_manager.cc

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/autofill/autofill_manager.cc
diff --git a/chrome/browser/autofill/autofill_manager.cc b/chrome/browser/autofill/autofill_manager.cc
index b7eafaf88e1ff63b484a03eb882ef843d30deed4..4558c5ab73eea61b0ff12494bf893dc76cbf1df0 100644
--- a/chrome/browser/autofill/autofill_manager.cc
+++ b/chrome/browser/autofill/autofill_manager.cc
@@ -26,6 +26,7 @@
#include "chrome/browser/autofill/credit_card.h"
#include "chrome/browser/autofill/form_structure.h"
#include "chrome/browser/autofill/personal_data_manager.h"
+#include "chrome/browser/autofill/personal_data_manager_factory.h"
#include "chrome/browser/autofill/phone_number.h"
#include "chrome/browser/autofill/phone_number_i18n.h"
#include "chrome/browser/autofill/select_control_handler.h"
@@ -217,8 +218,8 @@ AutofillManager::AutofillManager(TabContentsWrapper* tab_contents)
DCHECK(tab_contents);
// |personal_data_| is NULL when using TestTabContents.
- personal_data_ =
- tab_contents->profile()->GetOriginalProfile()->GetPersonalDataManager();
+ personal_data_ = PersonalDataManagerFactory::GetForProfile(
+ tab_contents->profile()->GetOriginalProfile());
download_manager_.SetObserver(this);
}

Powered by Google App Engine
This is Rietveld 408576698