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

Unified Diff: remoting/test/access_token_fetcher.cc

Issue 2542343004: Updating the Chromoting Test Driver to target the test environment (Closed)
Patch Set: Addressing feedback Created 4 years 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
« no previous file with comments | « remoting/client/chromoting_client.cc ('k') | remoting/test/app_remoting_connection_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/access_token_fetcher.cc
diff --git a/remoting/test/access_token_fetcher.cc b/remoting/test/access_token_fetcher.cc
index d6cfaedeaa8126fb00e54f9000940b384f0728a3..b4aa2fdc5fc43f364f83c1c83512146658929987 100644
--- a/remoting/test/access_token_fetcher.cc
+++ b/remoting/test/access_token_fetcher.cc
@@ -52,9 +52,9 @@ void AccessTokenFetcher::GetAccessTokenFromAuthCode(
// Create a new GaiaOAuthClient for each request to GAIA.
CreateNewGaiaOAuthClientInstance();
- auth_client_->GetTokensFromAuthCode(
- oauth_client_info_, auth_code, kMaxGetTokensRetries,
- this); // GaiaOAuthClient::Delegate* delegate
+ auth_client_->GetTokensFromAuthCode(oauth_client_info_, auth_code,
+ kMaxGetTokensRetries,
+ /*delegate=*/this);
}
void AccessTokenFetcher::GetAccessTokenFromRefreshToken(
@@ -73,9 +73,9 @@ void AccessTokenFetcher::GetAccessTokenFromRefreshToken(
// Create a new GaiaOAuthClient for each request to GAIA.
CreateNewGaiaOAuthClientInstance();
auth_client_->RefreshToken(oauth_client_info_, refresh_token_,
- std::vector<std::string>(), // scopes
+ /*scopes=*/std::vector<std::string>(),
kMaxGetTokensRetries,
- this); // GaiaOAuthClient::Delegate* delegate
+ /*delegate=*/this);
}
void AccessTokenFetcher::CreateNewGaiaOAuthClientInstance() {
@@ -181,7 +181,7 @@ void AccessTokenFetcher::ValidateAccessToken() {
// Create a new GaiaOAuthClient for each request to GAIA.
CreateNewGaiaOAuthClientInstance();
auth_client_->GetTokenInfo(access_token_, kMaxGetTokensRetries,
- this); // GaiaOAuthClient::Delegate* delegate
+ /*delegate=*/this);
}
} // namespace test
« no previous file with comments | « remoting/client/chromoting_client.cc ('k') | remoting/test/app_remoting_connection_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698