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

Side by Side Diff: chrome/browser/gcm/instance_id/instance_id_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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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/instance_id/instance_id_profile_service_fa ctory.h" 5 #include "chrome/browser/gcm/instance_id/instance_id_profile_service_factory.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "chrome/browser/gcm/gcm_profile_service_factory.h"
10 #include "chrome/browser/gcm/instance_id/instance_id_profile_service.h"
9 #include "chrome/browser/profiles/incognito_helpers.h" 11 #include "chrome/browser/profiles/incognito_helpers.h"
10 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h"
12 #include "chrome/browser/services/gcm/instance_id/instance_id_profile_service.h"
13 #include "components/keyed_service/content/browser_context_dependency_manager.h" 13 #include "components/keyed_service/content/browser_context_dependency_manager.h"
14 14
15 namespace instance_id { 15 namespace instance_id {
16 16
17 // static 17 // static
18 InstanceIDProfileService* InstanceIDProfileServiceFactory::GetForProfile( 18 InstanceIDProfileService* InstanceIDProfileServiceFactory::GetForProfile(
19 content::BrowserContext* profile) { 19 content::BrowserContext* profile) {
20 // Instance ID is not supported in incognito mode. 20 // Instance ID is not supported in incognito mode.
21 if (profile->IsOffTheRecord()) 21 if (profile->IsOffTheRecord())
22 return NULL; 22 return NULL;
(...skipping 24 matching lines...) Expand all
47 return new InstanceIDProfileService(Profile::FromBrowserContext(context)); 47 return new InstanceIDProfileService(Profile::FromBrowserContext(context));
48 } 48 }
49 49
50 content::BrowserContext* 50 content::BrowserContext*
51 InstanceIDProfileServiceFactory::GetBrowserContextToUse( 51 InstanceIDProfileServiceFactory::GetBrowserContextToUse(
52 content::BrowserContext* context) const { 52 content::BrowserContext* context) const {
53 return chrome::GetBrowserContextOwnInstanceInIncognito(context); 53 return chrome::GetBrowserContextOwnInstanceInIncognito(context);
54 } 54 }
55 55
56 } // namespace instance_id 56 } // namespace instance_id
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698