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