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

Unified Diff: chrome/browser/extensions/api/identity/identity_apitest.cc

Issue 1143323005: Refactor AO2TS to make it easier to componentize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address final comments Created 5 years, 6 months 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
Index: chrome/browser/extensions/api/identity/identity_apitest.cc
diff --git a/chrome/browser/extensions/api/identity/identity_apitest.cc b/chrome/browser/extensions/api/identity/identity_apitest.cc
index 0850b45a6cc83c8a00e241bfb887243d1fea39f9..93d8c8de0153b684f9c2f1d86a682dda206d7aea 100644
--- a/chrome/browser/extensions/api/identity/identity_apitest.cc
+++ b/chrome/browser/extensions/api/identity/identity_apitest.cc
@@ -591,7 +591,7 @@ class IdentityTestWithSignin : public AsyncExtensionBrowserTest {
#else
signin_manager_->SignIn(gaia, email, "password");
#endif
- token_service_->IssueRefreshTokenForUser(account_id, "refresh_token");
+ token_service_->UpdateCredentials(account_id, "refresh_token");
}
FakeSigninManagerForTesting* signin_manager_;
@@ -669,7 +669,7 @@ class GetAuthTokenFunctionTest : public IdentityTestWithSignin {
}
void IssueLoginRefreshTokenForAccount(const std::string account_key) {
- token_service_->IssueRefreshTokenForUser(account_key, "refresh_token");
+ token_service_->UpdateCredentials(account_key, "refresh_token");
}
void IssueLoginAccessTokenForAccount(const std::string account_key) {

Powered by Google App Engine
This is Rietveld 408576698