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 ba14d449158d98680fae790b0411ba88f2be8bd9..5d99b0d25404645718eefb7ecc2626ee0014fdfa 100644 |
--- a/chrome/browser/sync/glue/sync_backend_registrar.cc |
+++ b/chrome/browser/sync/glue/sync_backend_registrar.cc |
@@ -79,9 +79,9 @@ SyncBackendRegistrar::SyncBackendRegistrar( |
scoped_refptr<PasswordStore> password_store = |
PasswordStoreFactory::GetForProfile(profile, Profile::IMPLICIT_ACCESS); |
- if (password_store) { |
- workers_[syncer::GROUP_PASSWORD] = new PasswordModelWorker(password_store, |
- this); |
+ if (password_store.get()) { |
+ workers_[syncer::GROUP_PASSWORD] = |
+ new PasswordModelWorker(password_store, this); |
} |
} |
@@ -248,7 +248,7 @@ void SyncBackendRegistrar::GetWorkers( |
out->clear(); |
for (WorkerMap::const_iterator it = workers_.begin(); |
it != workers_.end(); ++it) { |
- out->push_back(it->second); |
+ out->push_back(it->second.get()); |
} |
} |