device_identity_provider.cc revision 0529e5d033099cbfc42635f6f6183833b09dff6e
1// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "chrome/browser/chromeos/settings/device_identity_provider.h"
6
7#include "chrome/browser/chromeos/settings/device_oauth2_token_service.h"
8
9namespace chromeos {
10
11DeviceIdentityProvider::DeviceIdentityProvider(
12    chromeos::DeviceOAuth2TokenService* token_service)
13    : token_service_(token_service) {}
14
15DeviceIdentityProvider::~DeviceIdentityProvider() {}
16
17std::string DeviceIdentityProvider::GetActiveUsername() {
18  return token_service_->GetRobotAccountId();
19}
20
21std::string DeviceIdentityProvider::GetActiveAccountId() {
22  return token_service_->GetRobotAccountId();
23}
24
25OAuth2TokenService* DeviceIdentityProvider::GetTokenService() {
26  return token_service_;
27}
28
29bool DeviceIdentityProvider::RequestLogin() {
30  return false;
31}
32
33}  // namespace chromeos
34