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

Unified Diff: chrome/browser/chromeos/arc/arc_auth_service_impl.cc

Issue 1618193003: arc: Pass auth token from Chrome to ARC instance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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_impl.cc
diff --git a/chrome/browser/chromeos/arc/arc_auth_service_impl.cc b/chrome/browser/chromeos/arc/arc_auth_service_impl.cc
index 88174ff2f133d145b308ae8c8bd0281f73f7a922..c634c78cc2088b60637fe0fadf2658daf4d321f2 100644
--- a/chrome/browser/chromeos/arc/arc_auth_service_impl.cc
+++ b/chrome/browser/chromeos/arc/arc_auth_service_impl.cc
@@ -4,7 +4,8 @@
#include "chrome/browser/chromeos/arc/arc_auth_service_impl.h"
-#include <utility>
+#include "components/arc/arc_service_manager.h"
+#include "components/arc/opt_in/arc_opt_in_manager.h"
namespace arc {
@@ -25,8 +26,8 @@ void ArcAuthServiceImpl::OnAuthInstanceReady() {
}
void ArcAuthServiceImpl::GetAuthCode(const GetAuthCodeCallback& callback) {
- // TODO(victorhsieh): request auth code from LSO (crbug.com/571146).
- callback.Run(mojo::String("fake auth code from ArcAuthService in Chrome"));
+ callback.Run(mojo::String(
+ ArcServiceManager::Get()->arc_opt_in_manager()->GetAuthToken()));
}
} // namespace arc

Powered by Google App Engine
This is Rietveld 408576698