OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_tracker_factory.h" | 5 #include "chrome/browser/signin/signin_tracker_factory.h" |
6 | 6 |
7 #include "chrome/browser/signin/chrome_signin_client_factory.h" | |
8 #include "chrome/browser/signin/gaia_cookie_manager_service_factory.h" | 7 #include "chrome/browser/signin/gaia_cookie_manager_service_factory.h" |
9 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 8 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
10 #include "chrome/browser/signin/signin_manager_factory.h" | 9 #include "chrome/browser/signin/signin_manager_factory.h" |
11 #include "components/signin/core/common/profile_management_switches.h" | 10 #include "components/signin/core/common/profile_management_switches.h" |
12 | 11 |
13 SigninTrackerFactory::SigninTrackerFactory() {} | 12 SigninTrackerFactory::SigninTrackerFactory() {} |
14 SigninTrackerFactory::~SigninTrackerFactory() {} | 13 SigninTrackerFactory::~SigninTrackerFactory() {} |
15 | 14 |
16 // static | 15 // static |
17 std::unique_ptr<SigninTracker> SigninTrackerFactory::CreateForProfile( | 16 std::unique_ptr<SigninTracker> SigninTrackerFactory::CreateForProfile( |
18 Profile* profile, | 17 Profile* profile, |
19 SigninTracker::Observer* observer) { | 18 SigninTracker::Observer* observer) { |
20 return std::unique_ptr<SigninTracker>(new SigninTracker( | 19 return std::unique_ptr<SigninTracker>(new SigninTracker( |
21 ProfileOAuth2TokenServiceFactory::GetForProfile(profile), | 20 ProfileOAuth2TokenServiceFactory::GetForProfile(profile), |
22 SigninManagerFactory::GetForProfile(profile), | 21 SigninManagerFactory::GetForProfile(profile), |
23 GaiaCookieManagerServiceFactory::GetForProfile(profile), | 22 GaiaCookieManagerServiceFactory::GetForProfile(profile), observer)); |
24 ChromeSigninClientFactory::GetForProfile(profile), observer)); | |
25 } | 23 } |
OLD | NEW |