| Index: chrome/browser/sync/profile_sync_service.cc
|
| diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
|
| index d726545a168ff29ff508b4abda7781604ba08716..0519109147b0cb0bd6e4fa72df907aed09292d2b 100644
|
| --- a/chrome/browser/sync/profile_sync_service.cc
|
| +++ b/chrome/browser/sync/profile_sync_service.cc
|
| @@ -282,8 +282,9 @@ bool ProfileSyncService::IsOAuthRefreshTokenAvailable() {
|
| if (!oauth2_token_service_)
|
| return false;
|
|
|
| - return oauth2_token_service_->RefreshTokenIsAvailable(
|
| - signin_->GetAccountIdToUse());
|
| + std::string account_id = signin_->GetAccountIdToUse();
|
| + return !account_id.empty() &&
|
| + oauth2_token_service_->RefreshTokenIsAvailable(account_id);
|
| }
|
|
|
| void ProfileSyncService::Initialize() {
|
|
|