Index: google_apis/drive/auth_service.cc |
diff --git a/google_apis/drive/auth_service.cc b/google_apis/drive/auth_service.cc |
index 82fc529df5d7f683e1db34990307ab616a89d562..7c7d447b13cc4ff5626b1a1d7ba435a2441ba869 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() { |