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

Unified Diff: chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc

Issue 1162103003: ListAccounts will return the Gaia ID as well as the email of the account. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/chromeos/login/signin/oauth2_login_verifier.cc
diff --git a/chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc b/chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc
index b2f8a8a4c446df5db54d94c28548da2a75a46ba0..c9317a73a70e9d32da464804e6b6f72f0f003405 100644
--- a/chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc
+++ b/chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc
@@ -33,7 +33,7 @@ OAuth2LoginVerifier::~OAuth2LoginVerifier() {
void OAuth2LoginVerifier::VerifyUserCookies(Profile* profile) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
- std::vector<std::pair<std::string, bool> > accounts;
+ std::vector<gaia::ListedAccount> accounts;
if (cookie_manager_service_->ListAccounts(&accounts)) {
OnGaiaAccountsInCookieUpdated(
accounts, GoogleServiceAuthError(GoogleServiceAuthError::NONE));
@@ -68,8 +68,8 @@ void OAuth2LoginVerifier::OnAddAccountToCookieCompleted(
}
void OAuth2LoginVerifier::OnGaiaAccountsInCookieUpdated(
- const std::vector<std::pair<std::string, bool> >& accounts,
- const GoogleServiceAuthError& error) {
+ const std::vector<gaia::ListedAccount>& accounts,
+ const GoogleServiceAuthError& error) {
if (error.state() == GoogleServiceAuthError::State::NONE) {
VLOG(1) << "ListAccounts successful.";
delegate_->OnListAccountsSuccess(accounts);

Powered by Google App Engine
This is Rietveld 408576698