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