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

Unified Diff: chrome/browser/ui/webui/options/autofill_options_handler.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/ui/webui/options/autofill_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/autofill_options_handler.cc b/chrome/browser/ui/webui/options/autofill_options_handler.cc
index e56352b0a6108c0048ebf875e087032485fb2756..dba5519d4886f0a9847f738d28b7f33412abd20f 100644
--- a/chrome/browser/ui/webui/options/autofill_options_handler.cc
+++ b/chrome/browser/ui/webui/options/autofill_options_handler.cc
@@ -15,6 +15,7 @@
#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/autofill/personal_data_manager_factory.h"
#include "chrome/browser/autofill/phone_number_i18n.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/web_ui_util.h"
@@ -225,7 +226,8 @@ void AutofillOptionsHandler::GetLocalizedValues(
}
void AutofillOptionsHandler::Initialize() {
- personal_data_ = Profile::FromWebUI(web_ui_)->GetPersonalDataManager();
+ personal_data_ = PersonalDataManagerFactory::GetForProfile(
+ Profile::FromWebUI(web_ui_));
personal_data_->SetObserver(this);
LoadAutofillData();

Powered by Google App Engine
This is Rietveld 408576698