| Index: chromeos/dbus/update_engine_client.cc
|
| diff --git a/chromeos/dbus/update_engine_client.cc b/chromeos/dbus/update_engine_client.cc
|
| index 2abd1b02ab316b2b58f840494d02327486be7447..b2ae229eab9d02b940990aa22b1c3567415965d8 100644
|
| --- a/chromeos/dbus/update_engine_client.cc
|
| +++ b/chromeos/dbus/update_engine_client.cc
|
| @@ -231,18 +231,20 @@ class UpdateEngineClientImpl : public UpdateEngineClient {
|
| base::Bind(&UpdateEngineClientImpl::StatusUpdateConnected,
|
| weak_ptr_factory_.GetWeakPtr()));
|
| update_engine_proxy_->WaitForServiceToBeAvailable(
|
| - base::Bind(&UpdateEngineClientImpl::OnProxyAvailabilityChanged,
|
| + base::Bind(&UpdateEngineClientImpl::OnServiceInitiallyAvailable,
|
| weak_ptr_factory_.GetWeakPtr()));
|
| }
|
|
|
| private:
|
| - void OnProxyAvailabilityChanged(bool service_is_available) {
|
| + void OnServiceInitiallyAvailable(bool service_is_available) {
|
| if (service_is_available) {
|
| // Get update engine status for the initial status. Update engine won't
|
| // send StatusUpdate signal unless there is a status change. If chrome
|
| // crashes after UPDATE_STATUS_UPDATED_NEED_REBOOT status is set,
|
| // restarted chrome would not get this status. See crbug.com/154104.
|
| GetUpdateEngineStatus();
|
| + } else {
|
| + LOG(ERROR) << "Failed to wait for D-Bus service to become available";
|
| }
|
| }
|
|
|
|
|