Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(674)

Side by Side Diff: chrome/browser/google_apis/dummy_auth_service.cc

Issue 96413002: Move c/b/google_apis to google_apis/drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #include "chrome/browser/google_apis/dummy_auth_service.h"
6
7 namespace google_apis {
8
9 DummyAuthService::DummyAuthService() {
10 set_access_token("dummy");
11 set_refresh_token("dummy");
12 }
13
14 void DummyAuthService::AddObserver(AuthServiceObserver* observer) {
15 }
16
17 void DummyAuthService::RemoveObserver(AuthServiceObserver* observer) {
18 }
19
20 void DummyAuthService::StartAuthentication(const AuthStatusCallback& callback) {
21 }
22
23 bool DummyAuthService::HasAccessToken() const {
24 return !access_token_.empty();
25 }
26
27 bool DummyAuthService::HasRefreshToken() const {
28 return !refresh_token_.empty();
29 }
30
31 const std::string& DummyAuthService::access_token() const {
32 return access_token_;
33 }
34
35 void DummyAuthService::ClearAccessToken() {
36 access_token_.clear();
37 }
38
39 void DummyAuthService::ClearRefreshToken() {
40 refresh_token_.clear();
41 }
42
43 } // namespace google_apis
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/dummy_auth_service.h ('k') | chrome/browser/google_apis/gdata_contacts_requests.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698