}
void PasswordStoreService::Shutdown() {
- if (password_store_)
+ if (password_store_.get())
password_store_->Shutdown();
}
#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;
}