Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: chromeos/dbus/fake_auth_policy_client.cc

Issue 2587993002: Chromad: Switch AuthPolicyClient to use cros_system_api enums. (Closed)
Patch Set: Move default to the end of switch. Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/auth_policy_client.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_auth_policy_client.cc
diff --git a/chromeos/dbus/fake_auth_policy_client.cc b/chromeos/dbus/fake_auth_policy_client.cc
index c4a584768703731cc01f7ec1e367996d7747e7f9..b822db46ca82095d79745fe7ed6a4cec67a50c8c 100644
--- a/chromeos/dbus/fake_auth_policy_client.cc
+++ b/chromeos/dbus/fake_auth_policy_client.cc
@@ -19,6 +19,7 @@
#include "components/policy/proto/cloud_policy.pb.h"
#include "components/policy/proto/device_management_backend.pb.h"
#include "components/signin/core/account_id/account_id.h"
+#include "third_party/cros_system_api/dbus/service_constants.h"
namespace em = enterprise_management;
@@ -65,15 +66,14 @@ void FakeAuthPolicyClient::JoinAdDomain(const std::string& machine_name,
const std::string& user_principal_name,
int password_fd,
const JoinCallback& callback) {
- callback.Run(authpolicy::types::AD_JOIN_ERROR_NONE);
+ callback.Run(authpolicy::ERROR_NONE);
}
void FakeAuthPolicyClient::AuthenticateUser(
const std::string& user_principal_name,
int password_fd,
const AuthCallback& callback) {
- callback.Run(authpolicy::AUTH_USER_ERROR_NONE,
- base::MD5String(user_principal_name));
+ callback.Run(authpolicy::ERROR_NONE, base::MD5String(user_principal_name));
}
void FakeAuthPolicyClient::RefreshDevicePolicy(
« no previous file with comments | « chromeos/dbus/auth_policy_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698