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/fake_signin_manager_builder.h" | 5 #include "chrome/browser/signin/fake_signin_manager_builder.h" |
6 | 6 |
| 7 #include "build/build_config.h" |
7 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
8 #include "chrome/browser/signin/account_tracker_service_factory.h" | 9 #include "chrome/browser/signin/account_tracker_service_factory.h" |
9 #include "chrome/browser/signin/chrome_signin_client_factory.h" | 10 #include "chrome/browser/signin/chrome_signin_client_factory.h" |
10 #include "chrome/browser/signin/gaia_cookie_manager_service_factory.h" | 11 #include "chrome/browser/signin/gaia_cookie_manager_service_factory.h" |
11 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 12 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
12 #include "chrome/browser/signin/signin_manager_factory.h" | 13 #include "chrome/browser/signin/signin_manager_factory.h" |
13 | 14 |
14 scoped_ptr<KeyedService> BuildFakeSigninManagerBase( | 15 scoped_ptr<KeyedService> BuildFakeSigninManagerBase( |
15 content::BrowserContext* context) { | 16 content::BrowserContext* context) { |
16 scoped_ptr<SigninManagerBase> manager; | 17 scoped_ptr<SigninManagerBase> manager; |
(...skipping 11 matching lines...) Expand all Loading... |
28 ChromeSigninClientFactory::GetForProfile(profile), | 29 ChromeSigninClientFactory::GetForProfile(profile), |
29 AccountTrackerServiceFactory::GetForProfile(profile)) {} | 30 AccountTrackerServiceFactory::GetForProfile(profile)) {} |
30 #else | 31 #else |
31 FakeSigninManagerForTesting::FakeSigninManagerForTesting(Profile* profile) | 32 FakeSigninManagerForTesting::FakeSigninManagerForTesting(Profile* profile) |
32 : FakeSigninManager( | 33 : FakeSigninManager( |
33 ChromeSigninClientFactory::GetForProfile(profile), | 34 ChromeSigninClientFactory::GetForProfile(profile), |
34 ProfileOAuth2TokenServiceFactory::GetForProfile(profile), | 35 ProfileOAuth2TokenServiceFactory::GetForProfile(profile), |
35 AccountTrackerServiceFactory::GetForProfile(profile), | 36 AccountTrackerServiceFactory::GetForProfile(profile), |
36 GaiaCookieManagerServiceFactory::GetForProfile(profile)) {} | 37 GaiaCookieManagerServiceFactory::GetForProfile(profile)) {} |
37 #endif | 38 #endif |
OLD | NEW |