Index: chrome/browser/password_manager/password_store_factory.cc |
diff --git a/chrome/browser/password_manager/password_store_factory.cc b/chrome/browser/password_manager/password_store_factory.cc |
index 41c95ca6a6ec3ea2abec55a617b6ccded5634563..6503a209300cdb0662f8723f69a0a20a82fb6c22 100644 |
--- a/chrome/browser/password_manager/password_store_factory.cc |
+++ b/chrome/browser/password_manager/password_store_factory.cc |
@@ -62,7 +62,7 @@ scoped_refptr<PasswordStore> PasswordStoreService::GetPasswordStore() { |
} |
void PasswordStoreService::Shutdown() { |
- if (password_store_) |
+ if (password_store_.get()) |
password_store_->Shutdown(); |
} |
@@ -229,9 +229,9 @@ KeyedService* PasswordStoreFactory::BuildServiceInstanceFor( |
#endif |
std::string sync_username = |
password_manager_sync_metrics::GetSyncUsername(profile); |
- if (!ps || !ps->Init( |
- sync_start_util::GetFlareForSyncableService(profile->GetPath()), |
- sync_username)) { |
+ if (!ps.get() || |
+ !ps->Init(sync_start_util::GetFlareForSyncableService(profile->GetPath()), |
+ sync_username)) { |
NOTREACHED() << "Could not initialize password manager."; |
return NULL; |
} |