Index: google_apis/drive/auth_service.cc |
diff --git a/google_apis/drive/auth_service.cc b/google_apis/drive/auth_service.cc |
index 49fe38adbbd2d647937c63df9d9c4c9dfde50900..b2a4ba6b4156342028be0c15f4868cfe2942da5b 100644 |
--- a/google_apis/drive/auth_service.cc |
+++ b/google_apis/drive/auth_service.cc |
@@ -130,8 +130,8 @@ AuthService::AuthService( |
// Get OAuth2 refresh token (if we have any) and register for its updates. |
oauth2_token_service_->AddObserver(this); |
- has_refresh_token_ = oauth2_token_service_->RefreshTokenIsAvailable( |
- account_id_); |
+ has_refresh_token_ = !account_id_.empty() && |
+ oauth2_token_service_->RefreshTokenIsAvailable(account_id_); |
} |
AuthService::~AuthService() { |