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

Unified Diff: chrome/browser/ui/browser.cc

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
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 639ba740a4df900b77b4bb00c012061833709b20..73ff3c5c75f42ee2c6fe775e45760b99b29e9fd9 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -25,6 +25,7 @@
#include "base/utf_string_conversions.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/autofill/autofill_manager.h"
+#include "chrome/browser/autofill/personal_data_manager_factory.h"
#include "chrome/browser/background/background_contents_service.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/bookmarks/bookmark_utils.h"
@@ -523,7 +524,7 @@ void Browser::InitBrowserWindow() {
local_state->GetBoolean(prefs::kAutofillPersonalDataManagerFirstRun)) {
// Notify PDM that this is a first run.
#if defined(OS_WIN)
- ImportAutofillDataWin(profile_->GetPersonalDataManager());
+ ImportAutofillDataWin(PersonalDataManagerFactory::GetForProfile(profile_));
#endif // defined(OS_WIN)
// Reset the preference so we don't call it again for subsequent windows.
local_state->ClearPref(prefs::kAutofillPersonalDataManagerFirstRun);
« no previous file with comments | « chrome/browser/sync/test/integration/autofill_helper.cc ('k') | chrome/browser/ui/webui/bidi_checker_web_ui_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698