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

Unified Diff: chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher.cc

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
Index: chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher.cc
diff --git a/chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher.cc b/chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher.cc
index 48e114ff47522a985d1f2a6527ca604574814d90..5eafda32f31132174a3ac4fb97b490225feed7f6 100644
--- a/chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher.cc
+++ b/chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher.cc
@@ -81,11 +81,12 @@ void ArcRobotAuthCodeFetcher::OnFetchRobotAuthCodeCompleted(
if (status != policy::DM_STATUS_SUCCESS) {
LOG(ERROR) << "Fetching of robot auth code failed. DM Status: " << status;
- callback.Run(std::string());
+ callback.Run(ArcAuthInfoFetcher::Status::FAILURE, std::string());
return;
}
- callback.Run(response.service_api_access_response().auth_code());
+ callback.Run(ArcAuthInfoFetcher::Status::SUCCESS,
+ response.service_api_access_response().auth_code());
}
} // namespace arc

Powered by Google App Engine
This is Rietveld 408576698