Upstream version 7.35.144.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / invalidation / device_invalidation_auth_provider_chromeos.cc
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/invalidation/device_invalidation_auth_provider_chromeos.h"
6
7 #include "chrome/browser/chromeos/settings/device_oauth2_token_service.h"
8
9 namespace invalidation {
10
11 DeviceInvalidationAuthProvider::DeviceInvalidationAuthProvider(
12     chromeos::DeviceOAuth2TokenService* token_service)
13     : token_service_(token_service) {}
14
15 DeviceInvalidationAuthProvider::~DeviceInvalidationAuthProvider() {}
16
17 std::string DeviceInvalidationAuthProvider::GetAccountId() {
18   return token_service_->GetRobotAccountId();
19 }
20
21 OAuth2TokenService* DeviceInvalidationAuthProvider::GetTokenService() {
22   return token_service_;
23 }
24
25 bool DeviceInvalidationAuthProvider::ShowLoginUI() { return false; }
26
27 }  // namespace invalidation