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