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

Unified Diff: chrome/browser/automation/testing_automation_provider.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 | « no previous file | chrome/browser/browsing_data_remover.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/testing_automation_provider.cc
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index ad54966e8230c6d8c77934a45153dc9fec85080d..a28a08bd95a8b152fa72a32208aabf771d53f85b 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -69,6 +69,7 @@
#include "chrome/browser/notifications/notification_ui_manager.h"
#include "chrome/browser/password_manager/password_store.h"
#include "chrome/browser/password_manager/password_store_change.h"
+#include "chrome/browser/password_manager/password_store_factory.h"
#include "chrome/browser/platform_util.h"
#include "chrome/browser/plugin_prefs.h"
#include "chrome/browser/prefs/pref_service.h"
@@ -3983,8 +3984,8 @@ void TestingAutomationProvider::AddSavedPassword(
GetPasswordFormFromDict(*password_dict);
// Use IMPLICIT_ACCESS since new passwords aren't added in incognito mode.
- PasswordStore* password_store =
- browser->profile()->GetPasswordStore(Profile::IMPLICIT_ACCESS);
+ PasswordStore* password_store = PasswordStoreFactory::GetForProfile(
+ browser->profile(), Profile::IMPLICIT_ACCESS);
// The password store does not exist for an incognito window.
if (password_store == NULL) {
@@ -4029,8 +4030,8 @@ void TestingAutomationProvider::RemoveSavedPassword(
GetPasswordFormFromDict(*password_dict);
// Use EXPLICIT_ACCESS since passwords can be removed in incognito mode.
- PasswordStore* password_store =
- browser->profile()->GetPasswordStore(Profile::EXPLICIT_ACCESS);
+ PasswordStore* password_store = PasswordStoreFactory::GetForProfile(
+ browser->profile(), Profile::EXPLICIT_ACCESS);
if (password_store == NULL) {
AutomationJSONReply(this, reply_message).SendError(
"Unable to get password store.");
@@ -4055,8 +4056,8 @@ void TestingAutomationProvider::GetSavedPasswords(
IPC::Message* reply_message) {
// Use EXPLICIT_ACCESS since saved passwords can be retrieved in
// incognito mode.
- PasswordStore* password_store =
- browser->profile()->GetPasswordStore(Profile::EXPLICIT_ACCESS);
+ PasswordStore* password_store = PasswordStoreFactory::GetForProfile(
+ browser->profile(), Profile::EXPLICIT_ACCESS);
if (password_store == NULL) {
AutomationJSONReply reply(this, reply_message);
« no previous file with comments | « no previous file | chrome/browser/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698