Hide the sign-in/out button in about:settings for supervised users.
[chromium-blink-merge.git] / google_apis / drive / dummy_auth_service.cc
blobe1b6891f969674523439e7ea918a37642de0c12a
1 // Copyright 2013 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.
5 #include "google_apis/drive/dummy_auth_service.h"
7 namespace google_apis {
9 DummyAuthService::DummyAuthService() {
10 set_access_token("dummy");
11 set_refresh_token("dummy");
14 void DummyAuthService::AddObserver(AuthServiceObserver* observer) {
17 void DummyAuthService::RemoveObserver(AuthServiceObserver* observer) {
20 void DummyAuthService::StartAuthentication(const AuthStatusCallback& callback) {
23 bool DummyAuthService::HasAccessToken() const {
24 return !access_token_.empty();
27 bool DummyAuthService::HasRefreshToken() const {
28 return !refresh_token_.empty();
31 const std::string& DummyAuthService::access_token() const {
32 return access_token_;
35 void DummyAuthService::ClearAccessToken() {
36 access_token_.clear();
39 void DummyAuthService::ClearRefreshToken() {
40 refresh_token_.clear();
43 } // namespace google_apis