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