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

Unified Diff: ash/public/interfaces/session_controller_traits.h

Issue 2519823006: Chromad: Add authentication flow (Closed)
Patch Set: Rename HandleAdAuth. Use system_api enums 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
« no previous file with comments | « ash/public/interfaces/session_controller.mojom ('k') | chrome/browser/chromeos/login/helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/public/interfaces/session_controller_traits.h
diff --git a/ash/public/interfaces/session_controller_traits.h b/ash/public/interfaces/session_controller_traits.h
index 354c507748c44369a99be0f8bb0aa079bd8a1e62..059420da820bfb7e5c8cfae7140280b1ea832af6 100644
--- a/ash/public/interfaces/session_controller_traits.h
+++ b/ash/public/interfaces/session_controller_traits.h
@@ -83,6 +83,8 @@ struct EnumTraits<ash::mojom::UserType, user_manager::UserType> {
return ash::mojom::UserType::CHILD;
case user_manager::USER_TYPE_ARC_KIOSK_APP:
return ash::mojom::UserType::ARC_KIOSK;
+ case user_manager::USER_TYPE_ACTIVE_DIRECTORY:
+ return ash::mojom::UserType::ACTIVE_DIRECTORY;
case user_manager::NUM_USER_TYPES:
// Bail as this is not a valid user type.
break;
@@ -115,6 +117,9 @@ struct EnumTraits<ash::mojom::UserType, user_manager::UserType> {
case ash::mojom::UserType::ARC_KIOSK:
*out = user_manager::USER_TYPE_ARC_KIOSK_APP;
return true;
+ case ash::mojom::UserType::ACTIVE_DIRECTORY:
+ *out = user_manager::USER_TYPE_ACTIVE_DIRECTORY;
+ return true;
}
NOTREACHED();
return false;
« no previous file with comments | « ash/public/interfaces/session_controller.mojom ('k') | chrome/browser/chromeos/login/helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698