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/services/gcm/fake_signin_manager.h" | 5 #include "chrome/browser/services/gcm/fake_signin_manager.h" |
6 | 6 |
7 #include "base/observer_list.h" | 7 #include "base/observer_list.h" |
8 #include "base/prefs/pref_service.h" | |
9 #include "build/build_config.h" | 8 #include "build/build_config.h" |
10 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/signin/account_tracker_service_factory.h" | 10 #include "chrome/browser/signin/account_tracker_service_factory.h" |
12 #include "chrome/browser/signin/chrome_signin_client_factory.h" | 11 #include "chrome/browser/signin/chrome_signin_client_factory.h" |
13 #include "chrome/browser/signin/gaia_cookie_manager_service_factory.h" | 12 #include "chrome/browser/signin/gaia_cookie_manager_service_factory.h" |
14 #include "components/keyed_service/core/keyed_service.h" | 13 #include "components/keyed_service/core/keyed_service.h" |
| 14 #include "components/prefs/pref_service.h" |
15 #include "components/signin/core/browser/account_tracker_service.h" | 15 #include "components/signin/core/browser/account_tracker_service.h" |
16 #include "components/signin/core/common/signin_pref_names.h" | 16 #include "components/signin/core/common/signin_pref_names.h" |
17 #include "content/public/browser/browser_context.h" | 17 #include "content/public/browser/browser_context.h" |
18 | 18 |
19 #if !defined(OS_CHROMEOS) | 19 #if !defined(OS_CHROMEOS) |
20 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 20 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
21 #endif | 21 #endif |
22 | 22 |
23 namespace gcm { | 23 namespace gcm { |
24 | 24 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 observer_list_, | 60 observer_list_, |
61 GoogleSignedOut(account_id, username)); | 61 GoogleSignedOut(account_id, username)); |
62 } | 62 } |
63 | 63 |
64 // static | 64 // static |
65 KeyedService* FakeSigninManager::Build(content::BrowserContext* context) { | 65 KeyedService* FakeSigninManager::Build(content::BrowserContext* context) { |
66 return new FakeSigninManager(Profile::FromBrowserContext(context)); | 66 return new FakeSigninManager(Profile::FromBrowserContext(context)); |
67 } | 67 } |
68 | 68 |
69 } // namespace gcm | 69 } // namespace gcm |
OLD | NEW |