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

Unified Diff: chrome/browser/importer/profile_writer.cc

Issue 9665007: Profile refactoring: Remove all PasswordStore code from the Profile interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add to factory list Created 8 years, 9 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/browsing_data_remover.cc ('k') | chrome/browser/password_manager/mock_password_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/profile_writer.cc
diff --git a/chrome/browser/importer/profile_writer.cc b/chrome/browser/importer/profile_writer.cc
index f93a32d23b9ac468ade520f96e4625d05af7c095..3be6d7b823d2a3aa315b580c7cb2f2b35df19024 100644
--- a/chrome/browser/importer/profile_writer.cc
+++ b/chrome/browser/importer/profile_writer.cc
@@ -14,6 +14,7 @@
#include "base/utf_string_conversions.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/password_manager/password_store.h"
+#include "chrome/browser/password_manager/password_store_factory.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search_engines/template_url.h"
@@ -87,7 +88,8 @@ bool ProfileWriter::TemplateURLServiceIsLoaded() const {
}
void ProfileWriter::AddPasswordForm(const webkit::forms::PasswordForm& form) {
- profile_->GetPasswordStore(Profile::EXPLICIT_ACCESS)->AddLogin(form);
+ PasswordStoreFactory::GetForProfile(
+ profile_, Profile::EXPLICIT_ACCESS)->AddLogin(form);
}
#if defined(OS_WIN)
« no previous file with comments | « chrome/browser/browsing_data_remover.cc ('k') | chrome/browser/password_manager/mock_password_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698