Commit d56f127a authored by satorux's avatar satorux Committed by Commit bot

Fix wrong constants are used for unstabbing D-Bus clients

BUG=401192
TEST=existing tests

Review URL: https://codereview.chromium.org/497453003

Cr-Commit-Position: refs/heads/master@{#291879}
parent 337d5963
...@@ -246,12 +246,12 @@ DBusClientBundle::DBusClientBundle() { ...@@ -246,12 +246,12 @@ DBusClientBundle::DBusClientBundle() {
permission_broker_client_.reset(new FakePermissionBrokerClient); permission_broker_client_.reset(new FakePermissionBrokerClient);
power_manager_client_.reset(PowerManagerClient::Create( power_manager_client_.reset(PowerManagerClient::Create(
DBusThreadManager::IsUsingStub(CROS_DISKS) ? DBusThreadManager::IsUsingStub(POWER_MANAGER) ?
STUB_DBUS_CLIENT_IMPLEMENTATION : STUB_DBUS_CLIENT_IMPLEMENTATION :
REAL_DBUS_CLIENT_IMPLEMENTATION)); REAL_DBUS_CLIENT_IMPLEMENTATION));
session_manager_client_.reset(SessionManagerClient::Create( session_manager_client_.reset(SessionManagerClient::Create(
DBusThreadManager::IsUsingStub(CROS_DISKS) ? DBusThreadManager::IsUsingStub(SESSION_MANAGER) ?
STUB_DBUS_CLIENT_IMPLEMENTATION : STUB_DBUS_CLIENT_IMPLEMENTATION :
REAL_DBUS_CLIENT_IMPLEMENTATION)); REAL_DBUS_CLIENT_IMPLEMENTATION));
...@@ -266,7 +266,7 @@ DBusClientBundle::DBusClientBundle() { ...@@ -266,7 +266,7 @@ DBusClientBundle::DBusClientBundle() {
system_clock_client_.reset(new FakeSystemClockClient); system_clock_client_.reset(new FakeSystemClockClient);
update_engine_client_.reset(UpdateEngineClient::Create( update_engine_client_.reset(UpdateEngineClient::Create(
DBusThreadManager::IsUsingStub(CROS_DISKS) ? DBusThreadManager::IsUsingStub(UPDATE_ENGINE) ?
STUB_DBUS_CLIENT_IMPLEMENTATION : STUB_DBUS_CLIENT_IMPLEMENTATION :
REAL_DBUS_CLIENT_IMPLEMENTATION)); REAL_DBUS_CLIENT_IMPLEMENTATION));
} }
......
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