| Index: chrome/browser/chromeos/login/oauth2_login_verifier.cc
|
| diff --git a/chrome/browser/chromeos/login/oauth2_login_verifier.cc b/chrome/browser/chromeos/login/oauth2_login_verifier.cc
|
| index 8ade58bfc37371f7200b72f4cac4f98f859d57b8..603b50690ca8494da58605bfddf90bfd7a09fad7 100644
|
| --- a/chrome/browser/chromeos/login/oauth2_login_verifier.cc
|
| +++ b/chrome/browser/chromeos/login/oauth2_login_verifier.cc
|
| @@ -76,9 +76,13 @@ void OAuth2LoginVerifier::VerifyProfileTokens(Profile* profile) {
|
| void OAuth2LoginVerifier::StartFetchingOAuthLoginAccessToken(Profile* profile) {
|
| OAuth2TokenService::ScopeSet scopes;
|
| scopes.insert(GaiaUrls::GetInstance()->oauth1_login_scope());
|
| - login_token_request_ = ProfileOAuth2TokenServiceFactory::
|
| - GetForProfile(profile)->StartRequestWithContext(
|
| - system_request_context_.get(), scopes, this);
|
| + ProfileOAuth2TokenService* token_service =
|
| + ProfileOAuth2TokenServiceFactory::GetForProfile(profile);
|
| + login_token_request_ = token_service->StartRequestWithContext(
|
| + token_service->GetPrimaryAccountId(),
|
| + system_request_context_.get(),
|
| + scopes,
|
| + this);
|
| }
|
|
|
| void OAuth2LoginVerifier::StartOAuthLoginForUberToken() {
|
|
|