Commit cf266cb6 authored by Reilly Grant's avatar Reilly Grant Committed by Commit Bot

Convert base::Bind and base::Callback in chromeos/dbus/cryptohome to Once/Repeating

Bug: 1007656
Change-Id: Ie1e65006e62d17843b716a0e860b74a2f26d506c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1925697
Commit-Queue: Reilly Grant <reillyg@chromium.org>
Reviewed-by: default avatarDarren Krahn <dkrahn@chromium.org>
Auto-Submit: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#719252}
parent 3938e6ad
...@@ -1079,34 +1079,36 @@ class CryptohomeClientImpl : public CryptohomeClient { ...@@ -1079,34 +1079,36 @@ class CryptohomeClientImpl : public CryptohomeClient {
proxy_->ConnectToSignal( proxy_->ConnectToSignal(
cryptohome::kCryptohomeInterface, cryptohome::kSignalAsyncCallStatus, cryptohome::kCryptohomeInterface, cryptohome::kSignalAsyncCallStatus,
base::Bind(&CryptohomeClientImpl::AsyncCallStatusReceived, base::BindRepeating(&CryptohomeClientImpl::AsyncCallStatusReceived,
weak_ptr_factory_.GetWeakPtr()), weak_ptr_factory_.GetWeakPtr()),
base::BindOnce(&CryptohomeClientImpl::OnSignalConnected, base::BindOnce(&CryptohomeClientImpl::OnSignalConnected,
weak_ptr_factory_.GetWeakPtr())); weak_ptr_factory_.GetWeakPtr()));
proxy_->ConnectToSignal( proxy_->ConnectToSignal(
cryptohome::kCryptohomeInterface, cryptohome::kCryptohomeInterface,
cryptohome::kSignalAsyncCallStatusWithData, cryptohome::kSignalAsyncCallStatusWithData,
base::Bind(&CryptohomeClientImpl::AsyncCallStatusWithDataReceived, base::BindRepeating(
weak_ptr_factory_.GetWeakPtr()), &CryptohomeClientImpl::AsyncCallStatusWithDataReceived,
weak_ptr_factory_.GetWeakPtr()),
base::BindOnce(&CryptohomeClientImpl::OnSignalConnected, base::BindOnce(&CryptohomeClientImpl::OnSignalConnected,
weak_ptr_factory_.GetWeakPtr())); weak_ptr_factory_.GetWeakPtr()));
proxy_->ConnectToSignal( proxy_->ConnectToSignal(
cryptohome::kCryptohomeInterface, cryptohome::kSignalTpmInitStatus, cryptohome::kCryptohomeInterface, cryptohome::kSignalTpmInitStatus,
base::Bind(&CryptohomeClientImpl::TpmInitStatusReceived, base::BindRepeating(&CryptohomeClientImpl::TpmInitStatusReceived,
weak_ptr_factory_.GetWeakPtr()), weak_ptr_factory_.GetWeakPtr()),
base::BindOnce(&CryptohomeClientImpl::OnSignalConnected, base::BindOnce(&CryptohomeClientImpl::OnSignalConnected,
weak_ptr_factory_.GetWeakPtr())); weak_ptr_factory_.GetWeakPtr()));
proxy_->ConnectToSignal( proxy_->ConnectToSignal(
cryptohome::kCryptohomeInterface, cryptohome::kSignalLowDiskSpace, cryptohome::kCryptohomeInterface, cryptohome::kSignalLowDiskSpace,
base::Bind(&CryptohomeClientImpl::LowDiskSpaceReceived, base::BindRepeating(&CryptohomeClientImpl::LowDiskSpaceReceived,
weak_ptr_factory_.GetWeakPtr()), weak_ptr_factory_.GetWeakPtr()),
base::BindOnce(&CryptohomeClientImpl::OnSignalConnected, base::BindOnce(&CryptohomeClientImpl::OnSignalConnected,
weak_ptr_factory_.GetWeakPtr())); weak_ptr_factory_.GetWeakPtr()));
proxy_->ConnectToSignal( proxy_->ConnectToSignal(
cryptohome::kCryptohomeInterface, cryptohome::kCryptohomeInterface,
cryptohome::kSignalDircryptoMigrationProgress, cryptohome::kSignalDircryptoMigrationProgress,
base::Bind(&CryptohomeClientImpl::DircryptoMigrationProgressReceived, base::BindRepeating(
weak_ptr_factory_.GetWeakPtr()), &CryptohomeClientImpl::DircryptoMigrationProgressReceived,
weak_ptr_factory_.GetWeakPtr()),
base::BindOnce(&CryptohomeClientImpl::OnSignalConnected, base::BindOnce(&CryptohomeClientImpl::OnSignalConnected,
weak_ptr_factory_.GetWeakPtr())); weak_ptr_factory_.GetWeakPtr()));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment