| 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 "components/signin/core/browser/fake_signin_manager.h" | 5 #include "components/signin/core/browser/fake_signin_manager.h" |
| 6 | 6 |
| 7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "build/build_config.h" |
| 9 #include "components/signin/core/browser/account_tracker_service.h" | 10 #include "components/signin/core/browser/account_tracker_service.h" |
| 10 #include "components/signin/core/browser/signin_metrics.h" | 11 #include "components/signin/core/browser/signin_metrics.h" |
| 11 | 12 |
| 12 FakeSigninManagerBase::FakeSigninManagerBase( | 13 FakeSigninManagerBase::FakeSigninManagerBase( |
| 13 SigninClient* client, | 14 SigninClient* client, |
| 14 AccountTrackerService* account_tracker_service) | 15 AccountTrackerService* account_tracker_service) |
| 15 : SigninManagerBase(client, account_tracker_service) {} | 16 : SigninManagerBase(client, account_tracker_service) {} |
| 16 | 17 |
| 17 FakeSigninManagerBase::~FakeSigninManagerBase() {} | 18 FakeSigninManagerBase::~FakeSigninManagerBase() {} |
| 18 | 19 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 set_password(std::string()); | 80 set_password(std::string()); |
| 80 const std::string account_id = GetAuthenticatedAccountId(); | 81 const std::string account_id = GetAuthenticatedAccountId(); |
| 81 const std::string username = GetAuthenticatedAccountInfo().email; | 82 const std::string username = GetAuthenticatedAccountInfo().email; |
| 82 authenticated_account_id_.clear(); | 83 authenticated_account_id_.clear(); |
| 83 | 84 |
| 84 FOR_EACH_OBSERVER(SigninManagerBase::Observer, observer_list_, | 85 FOR_EACH_OBSERVER(SigninManagerBase::Observer, observer_list_, |
| 85 GoogleSignedOut(account_id, username)); | 86 GoogleSignedOut(account_id, username)); |
| 86 } | 87 } |
| 87 | 88 |
| 88 #endif // !defined (OS_CHROMEOS) | 89 #endif // !defined (OS_CHROMEOS) |
| OLD | NEW |