Clear "system" proxy preference from persistent preferences.
[chromium-blink-merge.git] / google_apis / gaia / fake_identity_provider.cc
blob7360e41bc1d1a3e90ab044fae9327416d561cc24
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.
5 #include "google_apis/gaia/fake_identity_provider.h"
7 #include "google_apis/gaia/oauth2_token_service.h"
9 FakeIdentityProvider::FakeIdentityProvider(OAuth2TokenService* token_service)
10 : token_service_(token_service) {
13 FakeIdentityProvider::~FakeIdentityProvider() {
16 void FakeIdentityProvider::LogIn(const std::string& account_id) {
17 account_id_ = account_id;
18 FireOnActiveAccountLogin();
21 void FakeIdentityProvider::LogOut() {
22 account_id_.clear();
23 FireOnActiveAccountLogout();
26 std::string FakeIdentityProvider::GetActiveUsername() {
27 return account_id_;
30 std::string FakeIdentityProvider::GetActiveAccountId() {
31 return account_id_;
34 OAuth2TokenService* FakeIdentityProvider::GetTokenService() {
35 return token_service_;
38 bool FakeIdentityProvider::RequestLogin() {
39 return false;