| 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 bc54887757c1b19bd660c200ba9cd8efe3209ca5..4a6cbd4c18abd2bcc09661db9abe6b190ef7ffd7 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.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"
|
| @@ -87,9 +88,9 @@ SyncBackendRegistrar::SyncBackendRegistrar(
|
| routing_info_.erase(syncable::TYPED_URLS);
|
| }
|
|
|
| - PasswordStore* password_store =
|
| + scoped_refptr<PasswordStore> password_store =
|
| PasswordStoreFactory::GetForProfile(profile, Profile::IMPLICIT_ACCESS);
|
| - if (password_store) {
|
| + if (password_store.get()) {
|
| workers_[GROUP_PASSWORD] = new PasswordModelWorker(password_store);
|
| } else {
|
| LOG_IF(WARNING, initial_types.Has(syncable::PASSWORDS))
|
|
|