OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/gcm/gcm_profile_service_factory.h" | 5 #include "chrome/browser/gcm/gcm_profile_service_factory.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
| 9 #include "base/threading/sequenced_worker_pool.h" |
9 #include "build/build_config.h" | 10 #include "build/build_config.h" |
10 #include "chrome/browser/profiles/incognito_helpers.h" | 11 #include "chrome/browser/profiles/incognito_helpers.h" |
11 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 13 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
13 #include "chrome/browser/signin/signin_manager_factory.h" | 14 #include "chrome/browser/signin/signin_manager_factory.h" |
14 #include "components/gcm_driver/gcm_profile_service.h" | 15 #include "components/gcm_driver/gcm_profile_service.h" |
15 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 16 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
16 #include "components/signin/core/browser/profile_identity_provider.h" | 17 #include "components/signin/core/browser/profile_identity_provider.h" |
17 #include "components/signin/core/browser/signin_manager.h" | 18 #include "components/signin/core/browser/signin_manager.h" |
18 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 blocking_task_runner); | 87 blocking_task_runner); |
87 #endif | 88 #endif |
88 } | 89 } |
89 | 90 |
90 content::BrowserContext* GCMProfileServiceFactory::GetBrowserContextToUse( | 91 content::BrowserContext* GCMProfileServiceFactory::GetBrowserContextToUse( |
91 content::BrowserContext* context) const { | 92 content::BrowserContext* context) const { |
92 return chrome::GetBrowserContextOwnInstanceInIncognito(context); | 93 return chrome::GetBrowserContextOwnInstanceInIncognito(context); |
93 } | 94 } |
94 | 95 |
95 } // namespace gcm | 96 } // namespace gcm |
OLD | NEW |