Index: chromeos/dbus/auth_policy_client.cc |
diff --git a/chromeos/dbus/auth_policy_client.cc b/chromeos/dbus/auth_policy_client.cc |
index 98bf6a6fc5fb5665eaa3167dc6bf103993f1c021..434dccb32b2c2a7d5e19f4d655461c6df8761c5b 100644 |
--- a/chromeos/dbus/auth_policy_client.cc |
+++ b/chromeos/dbus/auth_policy_client.cc |
@@ -8,7 +8,6 @@ |
#include "dbus/bus.h" |
#include "dbus/message.h" |
#include "dbus/object_proxy.h" |
-#include "third_party/cros_system_api/dbus/service_constants.h" |
namespace chromeos { |
@@ -81,20 +80,20 @@ class AuthPolicyClientImpl : public AuthPolicyClient { |
if (!response) { |
LOG(ERROR) << "Join: Couldn't call to authpolicy"; |
// TODO(rsorokin): make proper call, after defining possible errors codes. |
- callback.Run(authpolicy::types::AD_JOIN_ERROR_UNKNOWN); |
+ callback.Run(authpolicy::AD_JOIN_ERROR_UNKNOWN); |
return; |
} |
dbus::MessageReader reader(response); |
- int res = authpolicy::types::AD_JOIN_ERROR_UNKNOWN; |
+ int32_t res = static_cast<int32_t>(authpolicy::AD_JOIN_ERROR_UNKNOWN); |
if (!reader.PopInt32(&res)) { |
LOG(ERROR) << "Join: Couldn't get an error from the response"; |
// TODO(rsorokin): make proper call, after defining possible errors codes. |
- callback.Run(authpolicy::types::AD_JOIN_ERROR_DBUS_FAIL); |
+ callback.Run(authpolicy::AD_JOIN_ERROR_DBUS_FAILURE); |
return; |
} |
- callback.Run(res); |
+ callback.Run(static_cast<authpolicy::ADJoinErrorType>(res)); |
} |
dbus::Bus* bus_ = nullptr; |