| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/signin/signin_manager_fake.h" | 5 #include "chrome/browser/signin/signin_manager_fake.h" |
| 6 | 6 |
| 7 FakeSigninManager::FakeSigninManager() {} | 7 FakeSigninManager::FakeSigninManager() {} |
| 8 | 8 |
| 9 FakeSigninManager::~FakeSigninManager() {} | 9 FakeSigninManager::~FakeSigninManager() {} |
| 10 | 10 |
| 11 void FakeSigninManager::StartSignIn(const std::string& username, | 11 void FakeSigninManager::StartSignIn(const std::string& username, |
| 12 const std::string& password, | 12 const std::string& password, |
| 13 const std::string& login_token, | 13 const std::string& login_token, |
| 14 const std::string& login_captcha) { | 14 const std::string& login_captcha) { |
| 15 SetAuthenticatedUsername(username); | 15 SetAuthenticatedUsername(username); |
| 16 } | 16 } |
| 17 | 17 |
| 18 void FakeSigninManager::SignOut() { | 18 void FakeSigninManager::SignOut() { |
| 19 authenticated_username_.clear(); | 19 authenticated_username_.clear(); |
| 20 } | 20 } |
| 21 | 21 |
| 22 // static | 22 // static |
| 23 ProfileKeyedBase* FakeSigninManager::Build(Profile* profile) { | 23 ProfileKeyedService* FakeSigninManager::Build(Profile* profile) { |
| 24 return new FakeSigninManager(); | 24 return new FakeSigninManager(); |
| 25 } | 25 } |
| OLD | NEW |