This source file includes following definitions.
- GetAccountId
- GetTokenService
- ShowLoginUI
#include "chrome/browser/invalidation/device_invalidation_auth_provider_chromeos.h"
#include "chrome/browser/chromeos/settings/device_oauth2_token_service.h"
namespace invalidation {
DeviceInvalidationAuthProvider::DeviceInvalidationAuthProvider(
chromeos::DeviceOAuth2TokenService* token_service)
: token_service_(token_service) {}
DeviceInvalidationAuthProvider::~DeviceInvalidationAuthProvider() {}
std::string DeviceInvalidationAuthProvider::GetAccountId() {
return token_service_->GetRobotAccountId();
}
OAuth2TokenService* DeviceInvalidationAuthProvider::GetTokenService() {
return token_service_;
}
bool DeviceInvalidationAuthProvider::ShowLoginUI() { return false; }
}