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

Unified Diff: chrome/browser/sync/glue/sync_backend_registrar.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/sync/glue/sync_backend_registrar.cc
diff --git a/chrome/browser/sync/glue/sync_backend_registrar.cc b/chrome/browser/sync/glue/sync_backend_registrar.cc
index 919b641154c9d8849c72cfbd9cb7b86e020f736c..452bcd9c5cbfc3d6e2c19cb9663e3ea72f12214d 100644
--- a/chrome/browser/sync/glue/sync_backend_registrar.cc
+++ b/chrome/browser/sync/glue/sync_backend_registrar.cc
@@ -9,6 +9,7 @@
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/message_loop.h"
+#include "chrome/browser/password_manager/password_store_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/engine/passive_model_worker.h"
#include "chrome/browser/sync/glue/browser_thread_model_worker.h"
@@ -87,7 +88,7 @@ SyncBackendRegistrar::SyncBackendRegistrar(
}
PasswordStore* password_store =
- profile->GetPasswordStore(Profile::IMPLICIT_ACCESS);
+ PasswordStoreFactory::GetForProfile(profile, Profile::IMPLICIT_ACCESS);
if (password_store) {
workers_[GROUP_PASSWORD] = new PasswordModelWorker(password_store);
} else {

Powered by Google App Engine
This is Rietveld 408576698