| 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
|
|
|