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

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: Adding the AndroidPO2TS update 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 544c04e97d2f0b6f2b532009406a8c4f8486b330..e34165754097b3f7123dcf446fd7f17a59b294f0 100644
--- a/chrome/browser/extensions/extension_install_prompt.cc
+++ b/chrome/browser/extensions/extension_install_prompt.cc
@@ -714,14 +714,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