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

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

Issue 2705213002: Show different error message if ARC is disabled. (Closed)
Patch Set: Rebase Created 3 years, 9 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 | « no previous file | chrome/browser/chromeos/arc/arc_auth_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f8bd222204cbe6ba15c22032e69ca2054403547b..b2367b0daa119850230a38d5b11d4632f53ace32 100644
--- a/chrome/browser/chromeos/arc/arc_auth_service.h
+++ b/chrome/browser/chromeos/arc/arc_auth_service.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
+#include "chrome/browser/chromeos/arc/auth/arc_auth_info_fetcher.h"
#include "components/arc/arc_service.h"
#include "components/arc/common/auth.mojom.h"
#include "components/arc/instance_holder.h"
@@ -17,8 +18,6 @@
namespace arc {
-class ArcAuthInfoFetcher;
-
// Implementation of ARC authorization.
// TODO(hidehiko): Move to c/b/c/arc/auth with adding tests.
class ArcAuthService : public ArcService,
@@ -63,8 +62,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(ArcAuthInfoFetcher::Status status,
+ const std::string& enrollment_token);
+ void OnAuthCodeFetched(ArcAuthInfoFetcher::Status status,
+ const std::string& auth_code);
// Called to let ARC container know the account info.
void OnAccountInfoReady(mojom::AccountInfoPtr account_info);
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_auth_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698