| Index: cloud_print/gcp20/prototype/cloud_print_requester.cc
|
| diff --git a/cloud_print/gcp20/prototype/cloud_print_requester.cc b/cloud_print/gcp20/prototype/cloud_print_requester.cc
|
| index 1154d62b38f5b867fad08e725c8bd4008a2e3807..1cc18876b04c8a1188158cd2423e9e91a22ee7f5 100644
|
| --- a/cloud_print/gcp20/prototype/cloud_print_requester.cc
|
| +++ b/cloud_print/gcp20/prototype/cloud_print_requester.cc
|
| @@ -168,10 +168,14 @@ void CloudPrintRequester::OnFetchError(const std::string& server_api,
|
| VLOG(3) << "Function: " << __FUNCTION__;
|
| EraseRequest();
|
| current_print_job_.reset();
|
| - delegate_->OnServerError("Fetch error");
|
| +
|
| + if (server_http_code == net::HTTP_FORBIDDEN) {
|
| + delegate_->OnAuthError();
|
| + } else {
|
| + delegate_->OnServerError("Fetch error");
|
| + }
|
|
|
| // TODO(maksymb): |server_api| and other
|
| - NOTIMPLEMENTED();
|
| }
|
|
|
| void CloudPrintRequester::OnFetchTimeoutReached() {
|
| @@ -186,8 +190,8 @@ void CloudPrintRequester::OnGetTokensResponse(const std::string& refresh_token,
|
| int expires_in_seconds) {
|
| VLOG(3) << "Function: " << __FUNCTION__;
|
| gaia_.reset();
|
| - delegate_->OnGetAuthCodeResponseParsed(refresh_token,
|
| - access_token, expires_in_seconds);
|
| + delegate_->OnRegistrationFinished(refresh_token,
|
| + access_token, expires_in_seconds);
|
| }
|
|
|
| void CloudPrintRequester::OnRefreshTokenResponse(
|
|
|