| Index: chrome/browser/profiles/profile_downloader.cc
|
| diff --git a/chrome/browser/profiles/profile_downloader.cc b/chrome/browser/profiles/profile_downloader.cc
|
| index 7248e53518fadd49002e1fd32e706589a469fe6b..9a7a7154cd45407dc904f71e0a7ec4aa853f51de 100644
|
| --- a/chrome/browser/profiles/profile_downloader.cc
|
| +++ b/chrome/browser/profiles/profile_downloader.cc
|
| @@ -19,8 +19,6 @@
|
| #include "chrome/browser/profiles/profile_manager.h"
|
| #include "chrome/browser/signin/profile_oauth2_token_service.h"
|
| #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
|
| -#include "chrome/browser/signin/signin_manager.h"
|
| -#include "chrome/browser/signin/signin_manager_factory.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "google_apis/gaia/gaia_constants.h"
|
| #include "google_apis/gaia/gaia_urls.h"
|
| @@ -235,11 +233,8 @@
|
| return;
|
| }
|
|
|
| - SigninManagerBase* signin_manager =
|
| - SigninManagerFactory::GetForProfile(delegate_->GetBrowserProfile());
|
| account_id_ =
|
| - account_id.empty() ?
|
| - signin_manager->GetAuthenticatedAccountId() : account_id;
|
| + account_id.empty() ? service->GetPrimaryAccountId() : account_id;
|
| if (service->RefreshTokenIsAvailable(account_id_)) {
|
| StartFetchingOAuth2AccessToken();
|
| } else {
|
|
|