Chromium Code Reviews| Index: google_apis/gaia/gaia_oauth_client.cc |
| diff --git a/google_apis/gaia/gaia_oauth_client.cc b/google_apis/gaia/gaia_oauth_client.cc |
| index ed344082fe848037b7781ca7ad5db6441e6c6f66..2de8c3f03b90370ee2bafcca95c611d481d02e04 100644 |
| --- a/google_apis/gaia/gaia_oauth_client.cc |
| +++ b/google_apis/gaia/gaia_oauth_client.cc |
| @@ -11,6 +11,7 @@ |
| #include "base/logging.h" |
| #include "base/strings/string_util.h" |
| #include "base/values.h" |
| +#include "google_apis/gaia/gaia_auth_util.h" |
| #include "google_apis/gaia/gaia_urls.h" |
| #include "net/base/escape.h" |
| #include "net/base/load_flags.h" |
| @@ -183,6 +184,7 @@ void GaiaOAuthClient::Core::GetUserInfoImpl( |
| request_->SetMaxRetriesOn5xx(max_retries); |
| request_->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES | |
| net::LOAD_DO_NOT_SAVE_COOKIES); |
| + MarkURLFetcherAsGaia(&*request_); |
|
msarda
2017/01/23 09:29:29
Here are below: I think I would prefer request.get
Raj
2017/01/23 18:47:11
Done.
|
| // Fetchers are sometimes cancelled because a network change was detected, |
| // especially at startup and after sign-in on ChromeOS. Retrying once should |
| @@ -222,6 +224,7 @@ void GaiaOAuthClient::Core::MakeGaiaRequest( |
| request_->SetMaxRetriesOn5xx(max_retries); |
| request_->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES | |
| net::LOAD_DO_NOT_SAVE_COOKIES); |
| + MarkURLFetcherAsGaia(&*request_); |
| // See comment on SetAutomaticallyRetryOnNetworkChanges() above. |
| request_->SetAutomaticallyRetryOnNetworkChanges(3); |
| request_->Start(); |