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

Unified Diff: chromeos/dbus/fake_auth_policy_client.cc

Issue 2587993002: Chromad: Switch AuthPolicyClient to use cros_system_api enums. (Closed)
Patch Set: Switch to new universal enum type. Created 4 years 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
« chromeos/dbus/auth_policy_client.cc ('K') | « 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 02a9b5bea6e7a75c0810cf9f73d8544e487fa73f..92eaea8198dd977e05be5b40a2d0458b98ef2d5f 100644
--- a/chromeos/dbus/fake_auth_policy_client.cc
+++ b/chromeos/dbus/fake_auth_policy_client.cc
@@ -15,6 +15,7 @@
#include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h"
#include "chromeos/chromeos_paths.h"
#include "components/policy/proto/device_management_backend.pb.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(
« chromeos/dbus/auth_policy_client.cc ('K') | « chromeos/dbus/auth_policy_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698