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

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: 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/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 58bedb762d2fe7fa2e9128e73a8c2d1cd4209fb6..fe6a02defd9f6b8412667565629209376a6b99c8 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
@@ -79,11 +79,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(ArcAuthInfoFetchStatus::FAILURE, std::string());
return;
}
- callback.Run(response.service_api_access_response().auth_code());
+ callback.Run(ArcAuthInfoFetchStatus::SUCCESS,
+ response.service_api_access_response().auth_code());
}
} // namespace arc

Powered by Google App Engine
This is Rietveld 408576698