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

Unified Diff: chrome/browser/sync/test/integration/passwords_helper.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: Win and Mac 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/sync/test/integration/passwords_helper.cc
diff --git a/chrome/browser/sync/test/integration/passwords_helper.cc b/chrome/browser/sync/test/integration/passwords_helper.cc
index 7c550a2d33149de4d445146e74df74261482db67..73a6219a066d09129c0fced405abc2beeddbdaa7 100644
--- a/chrome/browser/sync/test/integration/passwords_helper.cc
+++ b/chrome/browser/sync/test/integration/passwords_helper.cc
@@ -11,6 +11,7 @@
#include "chrome/browser/password_manager/password_form_data.h"
#include "chrome/browser/password_manager/password_store.h"
#include "chrome/browser/password_manager/password_store_consumer.h"
+#include "chrome/browser/password_manager/password_store_factory.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/sync/profile_sync_service_factory.h"
#include "chrome/browser/sync/profile_sync_service_harness.h"
@@ -116,11 +117,13 @@ void SetPassphrase(int index, const std::string& passphrase) {
}
PasswordStore* GetPasswordStore(int index) {
- return test()->GetProfile(index)->GetPasswordStore(Profile::IMPLICIT_ACCESS);
+ return PasswordStoreFactory::GetForProfile(test()->GetProfile(index),
+ Profile::IMPLICIT_ACCESS);
}
PasswordStore* GetVerifierPasswordStore() {
- return test()->verifier()->GetPasswordStore(Profile::IMPLICIT_ACCESS);
+ return PasswordStoreFactory::GetForProfile(test()->verifier(),
+ Profile::IMPLICIT_ACCESS);
}
bool ProfileContainsSamePasswordFormsAsVerifier(int index) {

Powered by Google App Engine
This is Rietveld 408576698