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

Unified Diff: chrome/browser/ui/webui/options/password_manager_handler.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
Index: chrome/browser/ui/webui/options/password_manager_handler.cc
diff --git a/chrome/browser/ui/webui/options/password_manager_handler.cc b/chrome/browser/ui/webui/options/password_manager_handler.cc
index f1bbc90e27076c5a3b32fe86b790f2eb01296988..4e2ce713c076b2bd3017570eaeccaa2d2e55547c 100644
--- a/chrome/browser/ui/webui/options/password_manager_handler.cc
+++ b/chrome/browser/ui/webui/options/password_manager_handler.cc
@@ -8,6 +8,7 @@
#include "base/string_number_conversions.h"
#include "base/utf_string_conversions.h"
#include "base/values.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/common/chrome_notification_types.h"
@@ -113,8 +114,9 @@ void PasswordManagerHandler::OnLoginsChanged() {
}
PasswordStore* PasswordManagerHandler::GetPasswordStore() {
- return Profile::FromWebUI(web_ui())->
- GetPasswordStore(Profile::EXPLICIT_ACCESS);
+ return PasswordStoreFactory::GetForProfile(
+ Profile::FromWebUI(web_ui()),
+ Profile::EXPLICIT_ACCESS);
}
void PasswordManagerHandler::Observe(
« no previous file with comments | « chrome/browser/sync/test_profile_sync_service.cc ('k') | chrome/browser/ui/webui/options2/password_manager_handler2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698