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

Unified Diff: chromeos/dbus/auth_policy_client.h

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 | « chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc ('k') | chromeos/dbus/auth_policy_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/auth_policy_client.h
diff --git a/chromeos/dbus/auth_policy_client.h b/chromeos/dbus/auth_policy_client.h
index 8578be69535353121baccc9e83842c12fdc60190..6b237250dd98231c9895660efb80045e10eae789 100644
--- a/chromeos/dbus/auth_policy_client.h
+++ b/chromeos/dbus/auth_policy_client.h
@@ -14,18 +14,6 @@
class AccountId;
-// TODO(rsorokin): Switch to service constants when it's landed.
-// (see crbug.com/659732)
-namespace authpolicy {
-namespace types {
-enum ADJoinErrorType {
- AD_JOIN_ERROR_NONE = 0,
- AD_JOIN_ERROR_UNKNOWN = 1,
- AD_JOIN_ERROR_DBUS_FAIL = 2,
-};
-} // namespace types
-} // namespace authpolicy
-
namespace chromeos {
// AuthPolicyClient is used to communicate with the org.chromium.AuthPolicy
@@ -35,9 +23,9 @@ class CHROMEOS_EXPORT AuthPolicyClient : public DBusClient {
public:
// |user_id| is a unique id for the users. Using objectGUID from Active
// Directory server.
- using AuthCallback = base::Callback<void(authpolicy::AuthUserErrorType error,
+ using AuthCallback = base::Callback<void(authpolicy::ErrorType error,
const std::string& user_id)>;
- using JoinCallback = base::Callback<void(int error_code)>;
+ using JoinCallback = base::Callback<void(authpolicy::ErrorType error)>;
using RefreshPolicyCallback = base::Callback<void(bool success)>;
~AuthPolicyClient() override;
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc ('k') | chromeos/dbus/auth_policy_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698