Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: chrome/browser/gcm/gcm_profile_service_factory.cc

Issue 2657823005: Move //c/b/services/gcm/ to //c/b/gcm/ (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/services/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 "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/browser/profiles/incognito_helpers.h" 10 #include "chrome/browser/profiles/incognito_helpers.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 12 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
13 #include "chrome/browser/signin/signin_manager_factory.h" 13 #include "chrome/browser/signin/signin_manager_factory.h"
14 #include "components/gcm_driver/gcm_profile_service.h" 14 #include "components/gcm_driver/gcm_profile_service.h"
15 #include "components/keyed_service/content/browser_context_dependency_manager.h" 15 #include "components/keyed_service/content/browser_context_dependency_manager.h"
16 #include "components/signin/core/browser/profile_identity_provider.h" 16 #include "components/signin/core/browser/profile_identity_provider.h"
17 #include "components/signin/core/browser/signin_manager.h" 17 #include "components/signin/core/browser/signin_manager.h"
18 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
19 19
20 #if !defined(OS_ANDROID) 20 #if !defined(OS_ANDROID)
21 #include "chrome/browser/services/gcm/gcm_product_util.h" 21 #include "chrome/browser/gcm/gcm_product_util.h"
22 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" 22 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h"
23 #include "chrome/common/channel_info.h" 23 #include "chrome/common/channel_info.h"
24 #include "components/gcm_driver/gcm_client_factory.h" 24 #include "components/gcm_driver/gcm_client_factory.h"
25 #endif 25 #endif
26 26
27 namespace gcm { 27 namespace gcm {
28 28
29 // static 29 // static
30 GCMProfileService* GCMProfileServiceFactory::GetForProfile( 30 GCMProfileService* GCMProfileServiceFactory::GetForProfile(
31 content::BrowserContext* profile) { 31 content::BrowserContext* profile) {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 blocking_task_runner); 86 blocking_task_runner);
87 #endif 87 #endif
88 } 88 }
89 89
90 content::BrowserContext* GCMProfileServiceFactory::GetBrowserContextToUse( 90 content::BrowserContext* GCMProfileServiceFactory::GetBrowserContextToUse(
91 content::BrowserContext* context) const { 91 content::BrowserContext* context) const {
92 return chrome::GetBrowserContextOwnInstanceInIncognito(context); 92 return chrome::GetBrowserContextOwnInstanceInIncognito(context);
93 } 93 }
94 94
95 } // namespace gcm 95 } // namespace gcm
OLDNEW
« no previous file with comments | « chrome/browser/gcm/gcm_profile_service_factory.h ('k') | chrome/browser/gcm/gcm_profile_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698