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

Unified Diff: chrome/browser/extensions/extension_install_prompt.cc

Issue 23382008: Making OAuth2TokenService multi-login aware, updating callers, minor fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing a bug affecting ProfileSyncService and CR comments. Created 7 years, 4 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/extension_install_prompt.cc
diff --git a/chrome/browser/extensions/extension_install_prompt.cc b/chrome/browser/extensions/extension_install_prompt.cc
index 7045625fa0fcf90e02aa636853680669a3f010f2..6f083e93ba686adfa479e6e6aaf56626531f9624 100644
--- a/chrome/browser/extensions/extension_install_prompt.cc
+++ b/chrome/browser/extensions/extension_install_prompt.cc
@@ -754,14 +754,17 @@ void ExtensionInstallPrompt::FetchOAuthIssueAdviceIfNeeded() {
ProfileOAuth2TokenService* token_service =
ProfileOAuth2TokenServiceFactory::GetForProfile(install_ui_->profile());
- if (!token_service || !token_service->RefreshTokenIsAvailable()) {
+ if (!token_service || !token_service->RefreshTokenIsAvailable(
+ token_service->GetPrimaryAccountId())) {
ShowConfirmation();
return;
}
// Get an access token from the token service.
login_token_request_ = token_service->StartRequest(
- OAuth2TokenService::ScopeSet(), this);
+ token_service->GetPrimaryAccountId(),
+ OAuth2TokenService::ScopeSet(),
+ this);
}
void ExtensionInstallPrompt::OnGetTokenSuccess(

Powered by Google App Engine
This is Rietveld 408576698