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

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

Issue 2705213002: Show different error message if ARC is disabled. (Closed)
Patch Set: Fix browsertests and add a new test for 904 Arc Disabled Created 3 years, 10 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 b61927a80bbfe3d58eb15e25be1622f767f7d13d..853ebf3e70917ab1d801a17cf5917c3686187111 100644
--- a/chrome/browser/chromeos/arc/arc_auth_service.h
+++ b/chrome/browser/chromeos/arc/arc_auth_service.h
@@ -18,6 +18,7 @@
namespace arc {
class ArcAuthInfoFetcher;
+enum class ArcAuthInfoFetchStatus;
// Implementation of ARC authorization.
// TODO(hidehiko): Move to c/b/c/arc/auth with adding tests.
@@ -62,8 +63,10 @@ class ArcAuthService : public ArcService,
std::unique_ptr<AccountInfoNotifier> account_info_notifier);
// Callbacks when auth info is fetched.
- void OnEnrollmentTokenFetched(const std::string& enrollment_token);
- void OnAuthCodeFetched(const std::string& auth_code);
+ void OnEnrollmentTokenFetched(ArcAuthInfoFetchStatus status,
+ const std::string& enrollment_token);
+ void OnAuthCodeFetched(ArcAuthInfoFetchStatus status,
+ const std::string& auth_code);
// Called to let ARC container know the account info.
void OnAccountInfoReady(mojom::AccountInfoPtr account_info);

Powered by Google App Engine
This is Rietveld 408576698