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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/private_api_misc.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: Rebasing to include the update to ProfileSyncService: r224220 Created 7 years, 3 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/extensions/file_manager/private_api_misc.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc
index 5db622e8c62fd0ebed9bbfe30b26563725ac535b..63ea1c5c54ea9d39f8dfb66537e827006a6abd06 100644
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc
@@ -229,7 +229,7 @@ bool FileBrowserPrivateRequestWebStoreAccessTokenFunction::RunImpl() {
std::vector<std::string> scopes;
scopes.push_back(kCWSScope);
- OAuth2TokenService* oauth_service =
+ ProfileOAuth2TokenService* oauth_service =
ProfileOAuth2TokenServiceFactory::GetForProfile(profile());
net::URLRequestContextGetter* url_request_context_getter =
g_browser_process->system_request_context();
@@ -244,6 +244,7 @@ bool FileBrowserPrivateRequestWebStoreAccessTokenFunction::RunImpl() {
auth_service_.reset(new google_apis::AuthService(
oauth_service,
+ oauth_service->GetPrimaryAccountId(),
url_request_context_getter,
scopes));
auth_service_->StartAuthentication(base::Bind(
« no previous file with comments | « chrome/browser/chromeos/drive/drive_integration_service.cc ('k') | chrome/browser/chromeos/login/oauth2_login_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698