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

Unified Diff: chrome/browser/chromeos/arc/arc_auth_service.h

Issue 2655873002: Get enrollment token from DMServer when an Active Directory user uses ARC (Closed)
Patch Set: Remove unnecessary includes Created 3 years, 11 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
Index: chrome/browser/chromeos/arc/arc_auth_service.h
diff --git a/chrome/browser/chromeos/arc/arc_auth_service.h b/chrome/browser/chromeos/arc/arc_auth_service.h
index 13080e11bee63658a564ef052f21d4729f4e657b..6d73bbdb0ab9affc1ec36894ed4a447fe777a8e0 100644
--- a/chrome/browser/chromeos/arc/arc_auth_service.h
+++ b/chrome/browser/chromeos/arc/arc_auth_service.h
@@ -17,7 +17,7 @@
namespace arc {
-class ArcAuthCodeFetcher;
+class ArcAuthInfoFetcher;
// Implementation of ARC authorization.
// TODO(hidehiko): Move to c/b/c/arc/auth with adding tests.
@@ -61,8 +61,9 @@ class ArcAuthService : public ArcService,
void RequestAccountInfoInternal(
std::unique_ptr<AccountInfoNotifier> account_info_notifier);
- // Callback on auth_code fetched.
+ // Callbacks when auth info is fetched.
void OnAuthCodeFetched(const std::string& auth_code);
+ void OnEnrollmentTokenFetched(const std::string& enrollment_token);
// Called to let ARC container know the account info.
void OnAccountInfoReady(mojom::AccountInfoPtr account_info);
@@ -70,7 +71,7 @@ class ArcAuthService : public ArcService,
mojo::Binding<mojom::AuthHost> binding_;
std::unique_ptr<AccountInfoNotifier> notifier_;
- std::unique_ptr<ArcAuthCodeFetcher> fetcher_;
+ std::unique_ptr<ArcAuthInfoFetcher> fetcher_;
base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698