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